From d0282b75a112a211b7f5d92c62ebf0720bf9c16a Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 13 Jun 2019 14:22:37 -0700 Subject: [PATCH 001/159] Add test to verify when source changes --- .../unittests/tsserver/projectReferences.ts | 75 ++++++++++++++++++- 1 file changed, 73 insertions(+), 2 deletions(-) diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index 1b2e90bcd4f..eb3d83e2b98 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -169,6 +169,8 @@ fn5(); expectedResponse: Response; expectedResponseNoMap?: Response; expectedResponseNoDts?: Response; + requestDependencyChange?: Partial; + expectedResponseDependencyChange: Response; } function gotoDefintinionFromMainTs(fn: number): SessionAction { const textSpan = usageSpan(fn); @@ -200,6 +202,11 @@ fn5(); // To import declaration definitions: [{ file: mainTs.path, ...importSpan(fn) }], textSpan + }, + expectedResponseDependencyChange: { + // Definition on fn + 1 line + definitions: [{ file: dependencyTs.path, ...declarationSpan(fn + 1) }], + textSpan } }; } @@ -227,6 +234,8 @@ fn5(); function renameFromDependencyTs(fn: number): SessionAction { const defSpan = declarationSpan(fn); const { contextStart: _, contextEnd: _1, ...triggerSpan } = defSpan; + const defSpanPlusOne = declarationSpan(fn + 1); + const { contextStart: _2, contextEnd: _3, ...triggerSpanPlusOne } = defSpanPlusOne; return { reqName: "rename", request: { @@ -246,12 +255,30 @@ fn5(); locs: [ { file: dependencyTs.path, locs: [defSpan] } ] + }, + requestDependencyChange: { + command: protocol.CommandTypes.Rename, + arguments: { file: dependencyTs.path, ...triggerSpanPlusOne.start } + }, + expectedResponseDependencyChange: { + info: { + canRename: true, + fileToRename: undefined, + displayName: `fn${fn}`, + fullDisplayName: `"${dependecyLocation}/FnS".fn${fn}`, + kind: ScriptElementKind.functionElement, + kindModifiers: "export", + triggerSpan: triggerSpanPlusOne + }, + locs: [ + { file: dependencyTs.path, locs: [defSpanPlusOne] } + ] } }; } function renameFromDependencyTsWithBothProjectsOpen(fn: number): SessionAction { - const { reqName, request, expectedResponse } = renameFromDependencyTs(fn); + const { reqName, request, expectedResponse, expectedResponseDependencyChange, requestDependencyChange } = renameFromDependencyTs(fn); const { info, locs } = expectedResponse; return { reqName, @@ -271,7 +298,21 @@ fn5(); }, // Only dependency result expectedResponseNoMap: expectedResponse, - expectedResponseNoDts: expectedResponse + expectedResponseNoDts: expectedResponse, + requestDependencyChange, + expectedResponseDependencyChange: { + info: expectedResponseDependencyChange.info, + locs: [ + expectedResponseDependencyChange.locs[0], + { + file: mainTs.path, + locs: [ + importSpan(fn), + usageSpan(fn) + ] + } + ] + } }; } @@ -633,6 +674,36 @@ fn5(); verifyMainScenarioAndScriptInfoCollectionWithNoDts, /*noDts*/ true ); + + it("when defining project source changes", () => { + const { host, session } = openTsFile(); + + // First action + firstAction(session); + + // Make change, without rebuild of solution + if (contains(openInfos, dependencyTs.path)) { + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: dependencyTs.path, line: 1, offset: 1, endLine: 1, endOffset: 1, insertString: `function fooBar() { } +`} + }); + } + else { + host.writeFile(dependencyTs.path, `function fooBar() { } +${dependencyTs.content}`); + } + host.runQueuedTimeoutCallbacks(); + + for (const actionGetter of actionGetters) { + for (let fn = 1; fn <= 5; fn++) { + const { reqName, request, requestDependencyChange, expectedResponseDependencyChange } = actionGetter(fn); + const { response } = session.executeCommandSeq(requestDependencyChange || request); + assert.deepEqual(response, expectedResponseDependencyChange, `Failed on ${reqName}`); + } + } + }); } const usageVerifier: DocumentPositionMapperVerifier = { From 0adab8934aad26fb3a5883b64f1198943700c0f2 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 21 Jun 2019 13:11:39 -0700 Subject: [PATCH 002/159] Use source files instead of .d.ts files from project references --- src/compiler/program.ts | 86 +++++++++++++++---- src/compiler/types.ts | 9 ++ src/server/editorServices.ts | 4 +- src/server/project.ts | 26 ++++++ src/services/services.ts | 6 ++ src/services/types.ts | 4 + .../reference/api/tsserverlibrary.d.ts | 2 + 7 files changed, 119 insertions(+), 18 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 2b62da72d24..27bd1fd3d3b 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -813,6 +813,8 @@ namespace ts { let resolvedProjectReferences: ReadonlyArray | undefined; let projectReferenceRedirects: Map | undefined; let mapFromFileToProjectReferenceRedirects: Map | undefined; + let mapFromToProjectReferenceRedirectSource: Map | undefined; + const useSourceOfReference = host.useSourceInsteadOfReferenceRedirect && host.useSourceInsteadOfReferenceRedirect(); const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options); const structuralIsReused = tryReuseStructureFromOldProgram(); @@ -824,17 +826,29 @@ namespace ts { if (!resolvedProjectReferences) { resolvedProjectReferences = projectReferences.map(parseProjectReferenceConfigFile); } + if (host.setGetSourceOfProjectReferenceRedirect) { + host.setGetSourceOfProjectReferenceRedirect(getSourceOfProjectReferenceRedirect); + } if (rootNames.length) { for (const parsedRef of resolvedProjectReferences) { if (!parsedRef) continue; const out = parsedRef.commandLine.options.outFile || parsedRef.commandLine.options.out; - if (out) { - processSourceFile(changeExtension(out, ".d.ts"), /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, /*packageId*/ undefined); + if (useSourceOfReference) { + if (out || getEmitModuleKind(parsedRef.commandLine.options) === ModuleKind.None) { + for (const fileName of parsedRef.commandLine.fileNames) { + processSourceFile(fileName, /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, /*packageId*/ undefined); + } + } } - else if (getEmitModuleKind(parsedRef.commandLine.options) === ModuleKind.None) { - for (const fileName of parsedRef.commandLine.fileNames) { - if (!fileExtensionIs(fileName, Extension.Dts) && hasTSFileExtension(fileName)) { - processSourceFile(getOutputDeclarationFileName(fileName, parsedRef.commandLine, !host.useCaseSensitiveFileNames()), /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, /*packageId*/ undefined); + else { + if (out) { + processSourceFile(changeExtension(out, ".d.ts"), /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, /*packageId*/ undefined); + } + else if (getEmitModuleKind(parsedRef.commandLine.options) === ModuleKind.None) { + for (const fileName of parsedRef.commandLine.fileNames) { + if (!fileExtensionIs(fileName, Extension.Dts) && hasTSFileExtension(fileName)) { + processSourceFile(getOutputDeclarationFileName(fileName, parsedRef.commandLine, !host.useCaseSensitiveFileNames()), /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, /*packageId*/ undefined); + } } } } @@ -1212,6 +1226,9 @@ namespace ts { } if (projectReferences) { resolvedProjectReferences = projectReferences.map(parseProjectReferenceConfigFile); + if (host.setGetSourceOfProjectReferenceRedirect) { + host.setGetSourceOfProjectReferenceRedirect(getSourceOfProjectReferenceRedirect); + } } // check if program source files has changed in the way that can affect structure of the program @@ -2220,6 +2237,14 @@ namespace ts { // Get source file from normalized fileName function findSourceFile(fileName: string, path: Path, isDefaultLib: boolean, ignoreNoDefaultLib: boolean, refFile: SourceFile, refPos: number, refEnd: number, packageId: PackageId | undefined): SourceFile | undefined { + if (useSourceOfReference) { + const source = getSourceOfProjectReferenceRedirect(fileName); + if (source) { + return isString(source) ? + findSourceFile(source, toPath(source), isDefaultLib, ignoreNoDefaultLib, refFile, refPos, refEnd, packageId) : + undefined; + } + } const originalFileName = fileName; if (filesByName.has(path)) { const file = filesByName.get(path); @@ -2267,7 +2292,7 @@ namespace ts { } let redirectedPath: Path | undefined; - if (refFile) { + if (refFile && !useSourceOfReference) { const redirectProject = getProjectReferenceRedirectProject(fileName); if (redirectProject) { if (redirectProject.commandLine.options.outFile || redirectProject.commandLine.options.out) { @@ -2286,15 +2311,20 @@ namespace ts { } // We haven't looked for this file, do so now and cache result - const file = host.getSourceFile(fileName, options.target!, hostErrorMessage => { // TODO: GH#18217 - if (refFile !== undefined && refPos !== undefined && refEnd !== undefined) { - fileProcessingDiagnostics.add(createFileDiagnostic(refFile, refPos, refEnd - refPos, - Diagnostics.Cannot_read_file_0_Colon_1, fileName, hostErrorMessage)); - } - else { - fileProcessingDiagnostics.add(createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, hostErrorMessage)); - } - }, shouldCreateNewSourceFile); + const file = host.getSourceFile( + fileName, + options.target!, + hostErrorMessage => { // TODO: GH#18217 + if (refFile !== undefined && refPos !== undefined && refEnd !== undefined) { + fileProcessingDiagnostics.add(createFileDiagnostic(refFile, refPos, refEnd - refPos, + Diagnostics.Cannot_read_file_0_Colon_1, fileName, hostErrorMessage)); + } + else { + fileProcessingDiagnostics.add(createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, hostErrorMessage)); + } + }, + shouldCreateNewSourceFile + ); if (packageId) { const packageIdKey = packageIdToString(packageId); @@ -2424,6 +2454,30 @@ namespace ts { }); } + function getSourceOfProjectReferenceRedirect(file: string) { + if (!isDeclarationFileName(file)) return undefined; + if (mapFromToProjectReferenceRedirectSource === undefined) { + mapFromToProjectReferenceRedirectSource = createMap(); + forEachResolvedProjectReference(resolvedRef => { + if (resolvedRef) { + const out = resolvedRef.commandLine.options.outFile || resolvedRef.commandLine.options.out; + if (out) { + // Dont know which source file it means so return true? + const outputDts = changeExtension(out, Extension.Dts); + mapFromToProjectReferenceRedirectSource!.set(toPath(outputDts), true); + } + else { + forEach(resolvedRef.commandLine.fileNames, fileName => { + const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, host.useCaseSensitiveFileNames()); + mapFromToProjectReferenceRedirectSource!.set(toPath(outputDts), fileName); + }); + } + } + }); + } + return mapFromToProjectReferenceRedirectSource.get(toPath(file)); + } + function forEachProjectReference( projectReferences: ReadonlyArray | undefined, resolvedProjectReferences: ReadonlyArray | undefined, diff --git a/src/compiler/types.ts b/src/compiler/types.ts index ec46da039d9..fc24088e0fa 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -5166,11 +5166,20 @@ namespace ts { /* @internal */ hasChangedAutomaticTypeDirectiveNames?: boolean; createHash?(data: string): string; getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined; + /* @internal */ setGetSourceOfProjectReferenceRedirect?(getSource: GetSourceOfProjectReferenceRedirect): void; + /* @internal */ useSourceInsteadOfReferenceRedirect?(): boolean; // TODO: later handle this in better way in builder host instead once the api for tsbuild finalizes and doesn't use compilerHost as base /*@internal*/createDirectory?(directory: string): void; } + /** true if --out otherwise source file name */ + /*@internal*/ + export type SourceOfProjectReferenceRedirect = string | true ; + + /*@internal*/ + export type GetSourceOfProjectReferenceRedirect = (fileName: string) => SourceOfProjectReferenceRedirect | undefined; + /* @internal */ export const enum TransformFlags { None = 0, diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index 4e5435feaba..f7fb537f543 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -1798,7 +1798,7 @@ namespace ts.server { let scriptInfo: ScriptInfo | NormalizedPath; let path: Path; // Use the project's fileExists so that it can use caching instead of reaching to disk for the query - if (!isDynamic && !project.fileExists(newRootFile)) { + if (!isDynamic && !project.fileExistsWithCache(newRootFile)) { path = normalizedPathToPath(normalizedPath, this.currentDirectory, this.toCanonicalFileName); const existingValue = projectRootFilesMap.get(path)!; if (isScriptInfo(existingValue)) { @@ -1831,7 +1831,7 @@ namespace ts.server { projectRootFilesMap.forEach((value, path) => { if (!newRootScriptInfoMap.has(path)) { if (isScriptInfo(value)) { - project.removeFile(value, project.fileExists(path), /*detachFromProject*/ true); + project.removeFile(value, project.fileExistsWithCache(path), /*detachFromProject*/ true); } else { projectRootFilesMap.delete(path); diff --git a/src/server/project.ts b/src/server/project.ts index d1605e22d1d..3e69a785516 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -381,6 +381,11 @@ namespace ts.server { } fileExists(file: string): boolean { + return this.fileExistsWithCache(file); + } + + /* @internal */ + fileExistsWithCache(file: string): boolean { // As an optimization, don't hit the disks for files we already know don't exist // (because we're watching for their creation). const path = this.toPath(file); @@ -1369,6 +1374,7 @@ namespace ts.server { configFileWatcher: FileWatcher | undefined; private directoriesWatchedForWildcards: Map | undefined; readonly canonicalConfigFilePath: NormalizedPath; + private getSourceOfProjectReferenceRedirect: GetSourceOfProjectReferenceRedirect | undefined; /* @internal */ pendingReload: ConfigFileProgramReloadLevel | undefined; @@ -1414,6 +1420,25 @@ namespace ts.server { this.canonicalConfigFilePath = asNormalizedPath(projectService.toCanonicalFileName(configFileName)); } + /* @internal */ + setGetSourceOfProjectReferenceRedirect(getSource: GetSourceOfProjectReferenceRedirect) { + this.getSourceOfProjectReferenceRedirect = getSource; + } + + /* @internal */ + useSourceInsteadOfReferenceRedirect() { + return true; + } + + fileExists(file: string): boolean { + // Project references go to source file instead of .d.ts file + if (this.getSourceOfProjectReferenceRedirect) { + const source = this.getSourceOfProjectReferenceRedirect(file); + if (source) return isString(source) ? super.fileExists(source) : true; + } + return super.fileExists(file); + } + /** * If the project has reload from disk pending, it reloads (and then updates graph as part of that) instead of just updating the graph * @returns: true if set of files in the project stays the same and false - otherwise. @@ -1436,6 +1461,7 @@ namespace ts.server { default: result = super.updateGraph(); } + this.getSourceOfProjectReferenceRedirect = undefined; this.projectService.sendProjectLoadingFinishEvent(this); this.projectService.sendProjectTelemetry(this); return result; diff --git a/src/services/services.ts b/src/services/services.ts index fab6f88b779..a8b05402e76 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1245,6 +1245,12 @@ namespace ts { return host.resolveTypeReferenceDirectives!(typeReferenceDirectiveNames, containingFile, redirectedReference); }; } + if (host.setGetSourceOfProjectReferenceRedirect) { + compilerHost.setGetSourceOfProjectReferenceRedirect = getSource => host.setGetSourceOfProjectReferenceRedirect!(getSource); + } + if (host.useSourceInsteadOfReferenceRedirect) { + compilerHost.useSourceInsteadOfReferenceRedirect = () => host.useSourceInsteadOfReferenceRedirect!(); + } const documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings); const options: CreateProgramOptions = { diff --git a/src/services/types.ts b/src/services/types.ts index b97125734f7..3c9509ca5e9 100644 --- a/src/services/types.ts +++ b/src/services/types.ts @@ -236,6 +236,10 @@ namespace ts { getDocumentPositionMapper?(generatedFileName: string, sourceFileName?: string): DocumentPositionMapper | undefined; /* @internal */ getSourceFileLike?(fileName: string): SourceFileLike | undefined; + /* @internal */ + setGetSourceOfProjectReferenceRedirect?(getSource: GetSourceOfProjectReferenceRedirect): void; + /* @internal */ + useSourceInsteadOfReferenceRedirect?(): boolean; } /* @internal */ diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 82ab70b6e6f..53459d993cf 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -8546,11 +8546,13 @@ declare namespace ts.server { private typeAcquisition; private directoriesWatchedForWildcards; readonly canonicalConfigFilePath: NormalizedPath; + private getSourceOfProjectReferenceRedirect; /** Ref count to the project when opened from external project */ private externalProjectRefCount; private projectErrors; private projectReferences; protected isInitialLoadPending: () => boolean; + fileExists(file: string): boolean; /** * If the project has reload from disk pending, it reloads (and then updates graph as part of that) instead of just updating the graph * @returns: true if set of files in the project stays the same and false - otherwise. From c97be16fa192e4c6ce04e5867b0a9e042cfdb392 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 21 Jun 2019 13:54:06 -0700 Subject: [PATCH 003/159] Log the config of the project --- src/server/editorServices.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index f7fb537f543..1b2666d4cba 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -1757,6 +1757,12 @@ namespace ts.server { configFileErrors.push(...parsedCommandLine.errors); } + this.logger.info(`Config: ${configFilename} : ${JSON.stringify({ + rootNames: parsedCommandLine.fileNames, + options: parsedCommandLine.options, + projectReferences: parsedCommandLine.projectReferences + }, /*replacer*/ undefined, " ")}`); + Debug.assert(!!parsedCommandLine.fileNames); const compilerOptions = parsedCommandLine.options; From 746b01e5772d5eda7f71a72265c5fee3a3a6ba8e Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 21 Jun 2019 14:16:40 -0700 Subject: [PATCH 004/159] Check only for .d.ts files --- src/compiler/program.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 27bd1fd3d3b..6fee35d2448 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -2468,8 +2468,10 @@ namespace ts { } else { forEach(resolvedRef.commandLine.fileNames, fileName => { - const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, host.useCaseSensitiveFileNames()); - mapFromToProjectReferenceRedirectSource!.set(toPath(outputDts), fileName); + if (!fileExtensionIs(fileName, Extension.Dts) && hasTSFileExtension(fileName)) { + const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, host.useCaseSensitiveFileNames()); + mapFromToProjectReferenceRedirectSource!.set(toPath(outputDts), fileName); + } }); } } From ecf875112b7a7faea715a60ac1ee4da8c201bb38 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 21 Jun 2019 14:22:11 -0700 Subject: [PATCH 005/159] Check for language serivice enabled when including source files --- src/server/project.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/project.ts b/src/server/project.ts index 3e69a785516..3b721c14b58 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -1427,12 +1427,12 @@ namespace ts.server { /* @internal */ useSourceInsteadOfReferenceRedirect() { - return true; + return !!this.languageServiceEnabled; } fileExists(file: string): boolean { // Project references go to source file instead of .d.ts file - if (this.getSourceOfProjectReferenceRedirect) { + if (this.languageServiceEnabled && this.getSourceOfProjectReferenceRedirect) { const source = this.getSourceOfProjectReferenceRedirect(file); if (source) return isString(source) ? super.fileExists(source) : true; } From 181028821ba5600324b13b645f93b098747f6d5a Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 21 Jun 2019 14:54:38 -0700 Subject: [PATCH 006/159] Fix tests --- src/testRunner/unittests/tsserver/projectReferences.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index eb3d83e2b98..d5a67252824 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -85,8 +85,8 @@ namespace ts.projectSystem { }); const { file: _, ...renameTextOfMyConstInLib } = locationOfMyConstInLib; assert.deepEqual(response.locs, [ - { file: myConstFile, locs: [{ start: myConstStart, end: myConstEnd }] }, - { file: locationOfMyConstInLib.file, locs: [renameTextOfMyConstInLib] } + { file: locationOfMyConstInLib.file, locs: [renameTextOfMyConstInLib] }, + { file: myConstFile, locs: [{ start: myConstStart, end: myConstEnd }] } ]); }); }); From f4728682b7f6a8275b034fb9be5a2f64b84e0aea Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 25 Jun 2019 12:15:04 -0700 Subject: [PATCH 007/159] Watch generated file if it doesnt exist when trying to translate it to to source generated position --- src/server/editorServices.ts | 8 +- src/server/project.ts | 100 +++++++++ src/server/utilities.ts | 1 + .../unittests/tsserver/projectReferences.ts | 200 ++++++++++-------- .../reference/api/tsserverlibrary.d.ts | 4 + 5 files changed, 229 insertions(+), 84 deletions(-) diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index 1b2666d4cba..8c7462d857b 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -2240,7 +2240,13 @@ namespace ts.server { getDocumentPositionMapper(project: Project, generatedFileName: string, sourceFileName?: string): DocumentPositionMapper | undefined { // Since declaration info and map file watches arent updating project's directory structure host (which can cache file structure) use host const declarationInfo = this.getOrCreateScriptInfoNotOpenedByClient(generatedFileName, project.currentDirectory, this.host); - if (!declarationInfo) return undefined; + if (!declarationInfo) { + if (sourceFileName) { + // Project contains source file and it generates the generated file name + project.addGeneratedFileWatch(generatedFileName, sourceFileName); + } + return undefined; + } // Try to get from cache declarationInfo.getSnapshot(); // Ensure synchronized diff --git a/src/server/project.ts b/src/server/project.ts index 3b721c14b58..8f8e6e5da8e 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -109,12 +109,22 @@ namespace ts.server { return value instanceof ScriptInfo; } + interface GeneratedFileWatcher { + generatedFilePath: Path; + watcher: FileWatcher; + } + type GeneratedFileWatcherMap = GeneratedFileWatcher | Map; + function isGeneratedFileWatcher(watch: GeneratedFileWatcherMap): watch is GeneratedFileWatcher { + return (watch as GeneratedFileWatcher).generatedFilePath !== undefined; + } + export abstract class Project implements LanguageServiceHost, ModuleResolutionHost { private rootFiles: ScriptInfo[] = []; private rootFilesMap: Map = createMap(); private program: Program | undefined; private externalFiles: SortedReadonlyArray | undefined; private missingFilesMap: Map | undefined; + private generatedFilesMap: GeneratedFileWatcherMap | undefined; private plugins: PluginModuleWithName[] = []; /*@internal*/ @@ -573,6 +583,7 @@ namespace ts.server { this.lastFileExceededProgramSize = lastFileExceededProgramSize; this.builderState = undefined; this.resolutionCache.closeTypeRootsWatch(); + this.clearGeneratedFileWatch(); this.projectService.onUpdateLanguageServiceStateForProject(this, /*languageServiceEnabled*/ false); } @@ -654,6 +665,7 @@ namespace ts.server { clearMap(this.missingFilesMap, closeFileWatcher); this.missingFilesMap = undefined!; } + this.clearGeneratedFileWatch(); // signal language service to release source files acquired from document registry this.languageService.dispose(); @@ -947,6 +959,39 @@ namespace ts.server { missingFilePath => this.addMissingFileWatcher(missingFilePath) ); + if (this.generatedFilesMap) { + const outPath = this.compilerOptions.outFile && this.compilerOptions.out; + if (isGeneratedFileWatcher(this.generatedFilesMap)) { + // --out + if (!outPath || !this.isValidGeneratedFileWatcher( + removeFileExtension(outPath) + Extension.Dts, + this.generatedFilesMap, + )) { + this.clearGeneratedFileWatch(); + } + } + else { + // MultiFile + if (outPath) { + this.clearGeneratedFileWatch(); + } + else { + this.generatedFilesMap.forEach((watcher, source) => { + const sourceFile = this.program!.getSourceFileByPath(source as Path); + if (!sourceFile || + sourceFile.resolvedPath !== source || + !this.isValidGeneratedFileWatcher( + getDeclarationEmitOutputFilePathWorker(sourceFile.fileName, this.compilerOptions, this.currentDirectory, this.program!.getCommonSourceDirectory(), this.getCanonicalFileName), + watcher + )) { + closeFileWatcherOf(watcher); + (this.generatedFilesMap as Map).delete(source); + } + }); + } + } + } + // Watch the type locations that would be added to program as part of automatic type resolutions if (this.languageServiceEnabled) { this.resolutionCache.updateTypeRootsWatch(); @@ -1011,6 +1056,61 @@ namespace ts.server { return !!this.missingFilesMap && this.missingFilesMap.has(path); } + /* @internal */ + addGeneratedFileWatch(generatedFile: string, sourceFile: string) { + if (this.compilerOptions.outFile || this.compilerOptions.out) { + // Single watcher + if (!this.generatedFilesMap) { + this.generatedFilesMap = this.createGeneratedFileWatcher(generatedFile); + } + } + else { + // Map + const path = this.toPath(sourceFile); + if (this.generatedFilesMap) { + if (isGeneratedFileWatcher(this.generatedFilesMap)) { + Debug.fail(`${this.projectName} Expected not to have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`); + return; + } + if (this.generatedFilesMap.has(path)) return; + } + else { + this.generatedFilesMap = createMap(); + } + this.generatedFilesMap.set(path, this.createGeneratedFileWatcher(generatedFile)); + } + } + + private createGeneratedFileWatcher(generatedFile: string): GeneratedFileWatcher { + return { + generatedFilePath: this.toPath(generatedFile), + watcher: this.projectService.watchFactory.watchFile( + this.projectService.host, + generatedFile, + () => this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this), + PollingInterval.High, + WatchType.MissingGeneratedFile, + this + ) + }; + } + + private isValidGeneratedFileWatcher(generateFile: string, watcher: GeneratedFileWatcher) { + return this.toPath(generateFile) === watcher.generatedFilePath; + } + + private clearGeneratedFileWatch() { + if (this.generatedFilesMap) { + if (isGeneratedFileWatcher(this.generatedFilesMap)) { + closeFileWatcherOf(this.generatedFilesMap); + } + else { + clearMap(this.generatedFilesMap, closeFileWatcherOf); + } + this.generatedFilesMap = undefined; + } + } + getScriptInfoForNormalizedPath(fileName: NormalizedPath): ScriptInfo | undefined { const scriptInfo = this.projectService.getScriptInfoForPath(this.toPath(fileName)); if (scriptInfo && !scriptInfo.isAttached(this)) { diff --git a/src/server/utilities.ts b/src/server/utilities.ts index 91880ccfdbe..fd38c6a4326 100644 --- a/src/server/utilities.ts +++ b/src/server/utilities.ts @@ -227,5 +227,6 @@ namespace ts { NodeModulesForClosedScriptInfo = "node_modules for closed script infos in them", MissingSourceMapFile = "Missing source map file", NoopConfigFileForInferredRoot = "Noop Config file for the inferred project root", + MissingGeneratedFile = "Missing generated file" } } diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index d5a67252824..9c02b670bb7 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -94,6 +94,7 @@ namespace ts.projectSystem { describe("with main and depedency project", () => { const projectLocation = "/user/username/projects/myproject"; const dependecyLocation = `${projectLocation}/dependency`; + const dependecyDeclsLocation = `${projectLocation}/decls`; const mainLocation = `${projectLocation}/main`; const dependencyTs: File = { path: `${dependecyLocation}/FnS.ts`, @@ -106,7 +107,7 @@ export function fn5() { } }; const dependencyConfig: File = { path: `${dependecyLocation}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true, declarationMap: true } }) + content: JSON.stringify({ compilerOptions: { composite: true, declarationMap: true, declarationDir: "../decls" } }) }; const mainTs: File = { @@ -117,7 +118,7 @@ export function fn5() { } fn3, fn4, fn5 -} from '../dependency/fns' +} from '../decls/fns' fn1(); fn2(); @@ -142,9 +143,9 @@ fn5(); path: `${projectLocation}/random/tsconfig.json`, content: "{}" }; - const dtsLocation = `${dependecyLocation}/FnS.d.ts`; + const dtsLocation = `${dependecyDeclsLocation}/FnS.d.ts`; const dtsPath = dtsLocation.toLowerCase() as Path; - const dtsMapLocation = `${dtsLocation}.map`; + const dtsMapLocation = `${dependecyDeclsLocation}/FnS.d.ts.map`; const dtsMapPath = dtsMapLocation.toLowerCase() as Path; const files = [dependencyTs, dependencyConfig, mainTs, mainConfig, libFile, randomFile, randomConfig]; @@ -224,7 +225,7 @@ fn5(); start: { line: fn + 1, offset: 5 }, end: { line: fn + 1, offset: 8 }, contextStart: { line: 1, offset: 1 }, - contextEnd: { line: 7, offset: 27 } + contextEnd: { line: 7, offset: 22 } }; } function usageSpan(fn: number): protocol.TextSpan { @@ -328,19 +329,25 @@ fn5(); function verifyDocumentPositionMapperUpdates( mainScenario: string, verifier: ReadonlyArray, - closedInfos: ReadonlyArray) { + closedInfos: ReadonlyArray, + withRefs: boolean) { const openFiles = verifier.map(v => v.openFile); const expectedProjectActualFiles = verifier.map(v => v.expectedProjectActualFiles); - const actionGetters = verifier.map(v => v.actionGetter); const openFileLastLines = verifier.map(v => v.openFileLastLine); const configFiles = openFiles.map(openFile => `${getDirectoryPath(openFile.path)}/tsconfig.json`); const openInfos = openFiles.map(f => f.path); // When usage and dependency are used, dependency config is part of closedInfo so ignore - const otherWatchedFiles = verifier.length > 1 ? [configFiles[0]] : configFiles; + const otherWatchedFiles = withRefs && verifier.length > 1 ? [configFiles[0]] : configFiles; function openTsFile(onHostCreate?: (host: TestServerHost) => void) { const host = createHost(files, [mainConfig.path]); + if (!withRefs) { + // Erase project reference + host.writeFile(mainConfig.path, JSON.stringify({ + compilerOptions: { composite: true, declarationMap: true } + })); + } if (onHostCreate) { onHostCreate(host); } @@ -377,7 +384,7 @@ fn5(); ); } - function verifyInfosWhenNoDtsFile(session: TestSession, host: TestServerHost, dependencyTsAndMapOk?: true) { + function verifyInfosWhenNoDtsFile(session: TestSession, host: TestServerHost, watchDts: boolean, dependencyTsAndMapOk?: true) { const dtsMapClosedInfo = firstDefined(closedInfos, f => f.toLowerCase() === dtsMapPath ? f : undefined); const dtsClosedInfo = firstDefined(closedInfos, f => f.toLowerCase() === dtsPath ? f : undefined); verifyInfosWithRandom( @@ -385,8 +392,7 @@ fn5(); host, openInfos, closedInfos.filter(f => (dependencyTsAndMapOk || f !== dtsMapClosedInfo) && f !== dtsClosedInfo && (dependencyTsAndMapOk || f !== dependencyTs.path)), - // When project actual file contains dts, it needs to be watched - dtsClosedInfo && expectedProjectActualFiles.some(expectedProjectActualFiles => expectedProjectActualFiles.some(f => f.toLowerCase() === dtsPath)) ? + dtsClosedInfo && watchDts ? otherWatchedFiles.concat(dtsClosedInfo) : otherWatchedFiles ); @@ -402,22 +408,22 @@ fn5(); } } - function action(actionGetter: SessionActionGetter, fn: number, session: TestSession) { - const { reqName, request, expectedResponse, expectedResponseNoMap, expectedResponseNoDts } = actionGetter(fn); + function action(verifier: DocumentPositionMapperVerifier, fn: number, session: TestSession) { + const { reqName, request, expectedResponse, expectedResponseNoMap, expectedResponseNoDts } = verifier.actionGetter(fn); const { response } = session.executeCommandSeq(request); - return { reqName, response, expectedResponse, expectedResponseNoMap, expectedResponseNoDts }; + return { reqName, response, expectedResponse, expectedResponseNoMap, expectedResponseNoDts, verifier }; } function firstAction(session: TestSession) { - actionGetters.forEach(actionGetter => action(actionGetter, 1, session)); + verifier.forEach(v => action(v, 1, session)); } function verifyAllFnActionWorker(session: TestSession, verifyAction: (result: ReturnType, dtsInfo: server.ScriptInfo | undefined, isFirst: boolean) => void, dtsAbsent?: true) { // action let isFirst = true; - for (const actionGetter of actionGetters) { + for (const v of verifier) { for (let fn = 1; fn <= 5; fn++) { - const result = action(actionGetter, fn, session); + const result = action(v, fn, session); const dtsInfo = session.getProjectService().filenameToScriptInfo.get(dtsPath); if (dtsAbsent) { assert.isUndefined(dtsInfo); @@ -490,9 +496,17 @@ fn5(); dependencyTsAndMapOk?: true ) { // action - verifyAllFnActionWorker(session, ({ reqName, response, expectedResponse, expectedResponseNoDts }) => { + verifyAllFnActionWorker(session, ({ reqName, response, expectedResponse, expectedResponseNoDts, verifier }) => { assert.deepEqual(response, expectedResponseNoDts || expectedResponse, `Failed on ${reqName}`); - verifyInfosWhenNoDtsFile(session, host, dependencyTsAndMapOk); + verifyInfosWhenNoDtsFile( + session, + host, + // Even when project actual file contains dts, its not watched because the dts is in another folder and module resolution just fails + // instead of succeeding to source file and then mapping using project reference (When using usage location) + // But watched if sourcemapper is in source project since we need to keep track of dts to update the source mapper for any potential usages + verifier.expectedProjectActualFiles.every(f => f.toLowerCase() !== dtsPath), + dependencyTsAndMapOk, + ); }, /*dtsAbsent*/ true); } @@ -576,7 +590,11 @@ fn5(); // Collecting at this point retains dependency.d.ts and map watcher closeFilesForSession([randomFile], session); openFilesForSession([randomFile], session); - verifyInfosWhenNoDtsFile(session, host); + verifyInfosWhenNoDtsFile( + session, + host, + !!forEach(verifier, v => v.expectedProjectActualFiles.every(f => f.toLowerCase() !== dtsPath)) + ); // Closing open file, removes dependencies too closeFilesForSession([...openFiles, randomFile], session); @@ -657,7 +675,7 @@ fn5(); "when dependency file's map changes", host => host.writeFile( dtsMapLocation, - `{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"}` + `{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"}` ), /*afterActionDocumentPositionMapperNotEquals*/ true ); @@ -675,75 +693,91 @@ fn5(); /*noDts*/ true ); - it("when defining project source changes", () => { - const { host, session } = openTsFile(); + if (withRefs) { + it("when defining project source changes", () => { + const { host, session } = openTsFile(); - // First action - firstAction(session); + // First action + firstAction(session); - // Make change, without rebuild of solution - if (contains(openInfos, dependencyTs.path)) { - session.executeCommandSeq({ - command: protocol.CommandTypes.Change, - arguments: { - file: dependencyTs.path, line: 1, offset: 1, endLine: 1, endOffset: 1, insertString: `function fooBar() { } + // Make change, without rebuild of solution + if (contains(openInfos, dependencyTs.path)) { + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: dependencyTs.path, line: 1, offset: 1, endLine: 1, endOffset: 1, insertString: `function fooBar() { } `} - }); - } - else { - host.writeFile(dependencyTs.path, `function fooBar() { } -${dependencyTs.content}`); - } - host.runQueuedTimeoutCallbacks(); - - for (const actionGetter of actionGetters) { - for (let fn = 1; fn <= 5; fn++) { - const { reqName, request, requestDependencyChange, expectedResponseDependencyChange } = actionGetter(fn); - const { response } = session.executeCommandSeq(requestDependencyChange || request); - assert.deepEqual(response, expectedResponseDependencyChange, `Failed on ${reqName}`); + }); } - } + else { + host.writeFile(dependencyTs.path, `function fooBar() { } +${dependencyTs.content}`); + } + host.runQueuedTimeoutCallbacks(); + + for (const v of verifier) { + for (let fn = 1; fn <= 5; fn++) { + const { reqName, request, requestDependencyChange, expectedResponseDependencyChange } = v.actionGetter(fn); + const { response } = session.executeCommandSeq(requestDependencyChange || request); + assert.deepEqual(response, expectedResponseDependencyChange, `Failed on ${reqName}`); + } + } + }); + } + } + + function verifyScenarios(withRefs: boolean) { + describe(withRefs ? "when main tsconfig has project reference" : "when main tsconfig doesnt have project reference", () => { + const usageVerifier: DocumentPositionMapperVerifier = { + openFile: mainTs, + expectedProjectActualFiles: [mainTs.path, libFile.path, mainConfig.path, dtsPath], + actionGetter: gotoDefintinionFromMainTs, + openFileLastLine: 14 + }; + describe("from project that uses dependency", () => { + const closedInfos = withRefs ? + [dependencyTs.path, dependencyConfig.path, libFile.path, dtsPath, dtsMapLocation] : + [dependencyTs.path, libFile.path, dtsPath, dtsMapLocation]; + verifyDocumentPositionMapperUpdates( + "can go to definition correctly", + [usageVerifier], + closedInfos, + withRefs + ); + }); + + const definingVerifier: DocumentPositionMapperVerifier = { + openFile: dependencyTs, + expectedProjectActualFiles: [dependencyTs.path, libFile.path, dependencyConfig.path], + actionGetter: renameFromDependencyTs, + openFileLastLine: 6, + }; + describe("from defining project", () => { + const closedInfos = [libFile.path, dtsLocation, dtsMapLocation]; + verifyDocumentPositionMapperUpdates( + "rename locations from dependency", + [definingVerifier], + closedInfos, + withRefs + ); + }); + + describe("when opening depedency and usage project", () => { + const closedInfos = withRefs ? + [libFile.path, dtsPath, dtsMapLocation, dependencyConfig.path] : + [libFile.path, dtsPath, dtsMapLocation]; + verifyDocumentPositionMapperUpdates( + "goto Definition in usage and rename locations from defining project", + [usageVerifier, { ...definingVerifier, actionGetter: renameFromDependencyTsWithBothProjectsOpen }], + closedInfos, + withRefs + ); + }); }); } - const usageVerifier: DocumentPositionMapperVerifier = { - openFile: mainTs, - expectedProjectActualFiles: [mainTs.path, libFile.path, mainConfig.path, dtsPath], - actionGetter: gotoDefintinionFromMainTs, - openFileLastLine: 14 - }; - describe("from project that uses dependency", () => { - const closedInfos = [dependencyTs.path, dependencyConfig.path, libFile.path, dtsPath, dtsMapLocation]; - verifyDocumentPositionMapperUpdates( - "can go to definition correctly", - [usageVerifier], - closedInfos - ); - }); - - const definingVerifier: DocumentPositionMapperVerifier = { - openFile: dependencyTs, - expectedProjectActualFiles: [dependencyTs.path, libFile.path, dependencyConfig.path], - actionGetter: renameFromDependencyTs, - openFileLastLine: 6 - }; - describe("from defining project", () => { - const closedInfos = [libFile.path, dtsLocation, dtsMapLocation]; - verifyDocumentPositionMapperUpdates( - "rename locations from dependency", - [definingVerifier], - closedInfos - ); - }); - - describe("when opening depedency and usage project", () => { - const closedInfos = [libFile.path, dtsPath, dtsMapLocation, dependencyConfig.path]; - verifyDocumentPositionMapperUpdates( - "goto Definition in usage and rename locations from defining project", - [usageVerifier, { ...definingVerifier, actionGetter: renameFromDependencyTsWithBothProjectsOpen }], - closedInfos - ); - }); + verifyScenarios(/*withRefs*/ false); + verifyScenarios(/*withRefs*/ true); }); }); } diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 53459d993cf..286516f37af 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -8397,6 +8397,7 @@ declare namespace ts.server { private program; private externalFiles; private missingFilesMap; + private generatedFilesMap; private plugins; private lastFileExceededProgramSize; protected languageService: LanguageService; @@ -8509,6 +8510,9 @@ declare namespace ts.server { private detachScriptInfoFromProject; private addMissingFileWatcher; private isWatchedMissingFile; + private createGeneratedFileWatcher; + private isValidGeneratedFileWatcher; + private clearGeneratedFileWatch; getScriptInfoForNormalizedPath(fileName: NormalizedPath): ScriptInfo | undefined; getScriptInfo(uncheckedFileName: string): ScriptInfo | undefined; filesToString(writeProjectFileNames: boolean): string; From 012ecdacde36330ecd1eab532dbe1d83624d87be Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 26 Jun 2019 13:41:46 -0700 Subject: [PATCH 008/159] Add sourceOf project reference redirect to filesByName list for redirect path so that module symbol is correctly resolved --- src/compiler/program.ts | 11 +- src/services/services.ts | 9 +- src/services/sourcemaps.ts | 6 + .../unittests/tsserver/projectReferences.ts | 158 +++++++++--------- 4 files changed, 103 insertions(+), 81 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 6fee35d2448..9a4e26a2903 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1411,6 +1411,13 @@ namespace ts { for (const newSourceFile of newSourceFiles) { const filePath = newSourceFile.path; addFileToFilesByName(newSourceFile, filePath, newSourceFile.resolvedPath); + if (useSourceOfReference) { + const redirectProject = getProjectReferenceRedirectProject(newSourceFile.fileName); + if (redirectProject && !(redirectProject.commandLine.options.outFile || redirectProject.commandLine.options.out)) { + const redirect = getProjectReferenceOutputName(redirectProject, newSourceFile.fileName); + addFileToFilesByName(newSourceFile, toPath(redirect), /*redirectedPath*/ undefined); + } + } // Set the file as found during node modules search if it was found that way in old progra, if (oldProgram.isSourceFileFromExternalLibrary(oldProgram.getSourceFileByPath(filePath)!)) { sourceFilesFoundSearchingNodeModules.set(filePath, true); @@ -2240,9 +2247,11 @@ namespace ts { if (useSourceOfReference) { const source = getSourceOfProjectReferenceRedirect(fileName); if (source) { - return isString(source) ? + const file = isString(source) ? findSourceFile(source, toPath(source), isDefaultLib, ignoreNoDefaultLib, refFile, refPos, refEnd, packageId) : undefined; + if (file) addFileToFilesByName(file, path, /*redirectedPath*/ undefined); + return file; } } const originalFileName = fileName; diff --git a/src/services/services.ts b/src/services/services.ts index a8b05402e76..aa6ea119225 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1148,10 +1148,11 @@ namespace ts { useCaseSensitiveFileNames: () => useCaseSensitiveFileNames, getCurrentDirectory: () => currentDirectory, getProgram, - fileExists: host.fileExists && (f => host.fileExists!(f)), - readFile: host.readFile && ((f, encoding) => host.readFile!(f, encoding)), - getDocumentPositionMapper: host.getDocumentPositionMapper && ((generatedFileName, sourceFileName) => host.getDocumentPositionMapper!(generatedFileName, sourceFileName)), - getSourceFileLike: host.getSourceFileLike && (f => host.getSourceFileLike!(f)), + fileExists: maybeBind(host, host.fileExists), + readFile: maybeBind(host, host.readFile), + getDocumentPositionMapper: maybeBind(host, host.getDocumentPositionMapper), + useSourceInsteadOfReferenceRedirect: maybeBind(host, host.useSourceInsteadOfReferenceRedirect), + getSourceFileLike: maybeBind(host, host.getSourceFileLike), log }); diff --git a/src/services/sourcemaps.ts b/src/services/sourcemaps.ts index d07c21a9f43..de590d4e5b4 100644 --- a/src/services/sourcemaps.ts +++ b/src/services/sourcemaps.ts @@ -17,6 +17,7 @@ namespace ts { readFile?(path: string, encoding?: string): string | undefined; getSourceFileLike?(fileName: string): SourceFileLike | undefined; getDocumentPositionMapper?(generatedFileName: string, sourceFileName?: string): DocumentPositionMapper | undefined; + /* @internal */ useSourceInsteadOfReferenceRedirect?(): boolean; log(s: string): void; } @@ -70,6 +71,11 @@ namespace ts { if (!sourceFile) return undefined; const program = host.getProgram()!; + // If this is source file of project reference source (instead of redirect) there is no generated position + if (host.useSourceInsteadOfReferenceRedirect && + host.useSourceInsteadOfReferenceRedirect() && + program.getResolvedProjectReferenceToRedirect(sourceFile.fileName)) return undefined; + const options = program.getCompilerOptions(); const outPath = options.outFile || options.out; diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index 9c02b670bb7..5320cfe13bc 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -373,7 +373,7 @@ fn5(); verifyInfosWithRandom(session, host, openInfos, closedInfos, otherWatchedFiles); } - function verifyInfosWhenNoMapFile(session: TestSession, host: TestServerHost, dependencyTsOK?: true) { + function verifyInfosWhenNoMapFile(session: TestSession, host: TestServerHost, dependencyTsOK?: boolean) { const dtsMapClosedInfo = firstDefined(closedInfos, f => f.toLowerCase() === dtsMapPath ? f : undefined); verifyInfosWithRandom( session, @@ -384,46 +384,48 @@ fn5(); ); } - function verifyInfosWhenNoDtsFile(session: TestSession, host: TestServerHost, watchDts: boolean, dependencyTsAndMapOk?: true) { + function verifyInfosWhenNoDtsFile(session: TestSession, host: TestServerHost, watchDts: boolean, dependencyTsOk?: boolean, depedencyMapOk?: boolean) { const dtsMapClosedInfo = firstDefined(closedInfos, f => f.toLowerCase() === dtsMapPath ? f : undefined); const dtsClosedInfo = firstDefined(closedInfos, f => f.toLowerCase() === dtsPath ? f : undefined); verifyInfosWithRandom( session, host, openInfos, - closedInfos.filter(f => (dependencyTsAndMapOk || f !== dtsMapClosedInfo) && f !== dtsClosedInfo && (dependencyTsAndMapOk || f !== dependencyTs.path)), + closedInfos.filter(f => (depedencyMapOk || f !== dtsMapClosedInfo) && f !== dtsClosedInfo && (dependencyTsOk || f !== dependencyTs.path)), dtsClosedInfo && watchDts ? otherWatchedFiles.concat(dtsClosedInfo) : otherWatchedFiles ); } - function verifyDocumentPositionMapper(session: TestSession, dependencyMap: server.ScriptInfo, documentPositionMapper: server.ScriptInfo["documentPositionMapper"], notEqual?: true) { + function verifyDocumentPositionMapper(session: TestSession, dependencyMap: server.ScriptInfo | undefined, documentPositionMapper: server.ScriptInfo["documentPositionMapper"], notEqual?: true) { assert.strictEqual(session.getProjectService().filenameToScriptInfo.get(dtsMapPath), dependencyMap); - if (notEqual) { - assert.notStrictEqual(dependencyMap.documentPositionMapper, documentPositionMapper); - } - else { - assert.strictEqual(dependencyMap.documentPositionMapper, documentPositionMapper); + if (dependencyMap) { + if (notEqual) { + assert.notStrictEqual(dependencyMap.documentPositionMapper, documentPositionMapper); + } + else { + assert.strictEqual(dependencyMap.documentPositionMapper, documentPositionMapper); + } } } - function action(verifier: DocumentPositionMapperVerifier, fn: number, session: TestSession) { - const { reqName, request, expectedResponse, expectedResponseNoMap, expectedResponseNoDts } = verifier.actionGetter(fn); - const { response } = session.executeCommandSeq(request); - return { reqName, response, expectedResponse, expectedResponseNoMap, expectedResponseNoDts, verifier }; + function action(verifier: DocumentPositionMapperVerifier, fn: number, session: TestSession, useDependencyChange?: boolean) { + const { reqName, request, expectedResponse, expectedResponseNoMap, expectedResponseNoDts, requestDependencyChange, expectedResponseDependencyChange } = verifier.actionGetter(fn); + const { response } = session.executeCommandSeq(useDependencyChange ? requestDependencyChange || request : request); + return { reqName, response, expectedResponse, expectedResponseNoMap, expectedResponseNoDts, expectedResponseDependencyChange, verifier }; } function firstAction(session: TestSession) { verifier.forEach(v => action(v, 1, session)); } - function verifyAllFnActionWorker(session: TestSession, verifyAction: (result: ReturnType, dtsInfo: server.ScriptInfo | undefined, isFirst: boolean) => void, dtsAbsent?: true) { + function verifyAllFnActionWorker(session: TestSession, verifyAction: (result: ReturnType, dtsInfo: server.ScriptInfo | undefined, isFirst: boolean) => void, dtsAbsent?: boolean, useDependencyChange?: boolean) { // action let isFirst = true; for (const v of verifier) { for (let fn = 1; fn <= 5; fn++) { - const result = action(v, fn, session); + const result = action(v, fn, session, useDependencyChange); const dtsInfo = session.getProjectService().filenameToScriptInfo.get(dtsPath); if (dtsAbsent) { assert.isUndefined(dtsInfo); @@ -437,33 +439,38 @@ fn5(); } } + function dtsAbsent() { + return withRefs && !contains(closedInfos, dtsPath, (a, b) => a.toLowerCase() === b.toLowerCase()); + } + function verifyAllFnAction( session: TestSession, host: TestServerHost, firstDocumentPositionMapperNotEquals?: true, dependencyMap?: server.ScriptInfo, - documentPositionMapper?: server.ScriptInfo["documentPositionMapper"] + documentPositionMapper?: server.ScriptInfo["documentPositionMapper"], + useDependencyChange?: boolean ) { // action - verifyAllFnActionWorker(session, ({ reqName, response, expectedResponse }, dtsInfo, isFirst) => { - assert.deepEqual(response, expectedResponse, `Failed on ${reqName}`); + verifyAllFnActionWorker(session, ({ reqName, response, expectedResponse, expectedResponseDependencyChange }, dtsInfo, isFirst) => { + assert.deepEqual(response, useDependencyChange ? expectedResponseDependencyChange || expectedResponse : expectedResponse, `Failed on ${reqName}`); verifyInfos(session, host); - assert.equal(dtsInfo!.sourceMapFilePath, dtsMapPath); + if (dtsInfo) assert.equal(dtsInfo.sourceMapFilePath, dtsMapPath); if (isFirst) { if (dependencyMap) { verifyDocumentPositionMapper(session, dependencyMap, documentPositionMapper, firstDocumentPositionMapperNotEquals); documentPositionMapper = dependencyMap.documentPositionMapper; } else { - dependencyMap = session.getProjectService().filenameToScriptInfo.get(dtsMapPath)!; - documentPositionMapper = dependencyMap.documentPositionMapper; + dependencyMap = session.getProjectService().filenameToScriptInfo.get(dtsMapPath); + documentPositionMapper = dependencyMap && dependencyMap.documentPositionMapper; } } else { - verifyDocumentPositionMapper(session, dependencyMap!, documentPositionMapper); + verifyDocumentPositionMapper(session, dependencyMap, documentPositionMapper); } - }); - return { dependencyMap: dependencyMap!, documentPositionMapper }; + }, dtsAbsent(), useDependencyChange); + return { dependencyMap, documentPositionMapper }; } function verifyAllFnActionWithNoMap( @@ -474,19 +481,21 @@ fn5(); let sourceMapFilePath: server.ScriptInfo["sourceMapFilePath"]; // action verifyAllFnActionWorker(session, ({ reqName, response, expectedResponse, expectedResponseNoMap }, dtsInfo, isFirst) => { - assert.deepEqual(response, expectedResponseNoMap || expectedResponse, `Failed on ${reqName}`); + assert.deepEqual(response, withRefs ? expectedResponse : expectedResponseNoMap || expectedResponse, `Failed on ${reqName}`); verifyInfosWhenNoMapFile(session, host, dependencyTsOK); assert.isUndefined(session.getProjectService().filenameToScriptInfo.get(dtsMapPath)); - if (isFirst) { - assert.isNotString(dtsInfo!.sourceMapFilePath); - assert.isNotFalse(dtsInfo!.sourceMapFilePath); - assert.isDefined(dtsInfo!.sourceMapFilePath); - sourceMapFilePath = dtsInfo!.sourceMapFilePath; + if (!withRefs) { + if (isFirst) { + assert.isNotString(dtsInfo!.sourceMapFilePath); + assert.isNotFalse(dtsInfo!.sourceMapFilePath); + assert.isDefined(dtsInfo!.sourceMapFilePath); + sourceMapFilePath = dtsInfo!.sourceMapFilePath; + } + else { + assert.equal(dtsInfo!.sourceMapFilePath, sourceMapFilePath); + } } - else { - assert.equal(dtsInfo!.sourceMapFilePath, sourceMapFilePath); - } - }); + }, dtsAbsent()); return sourceMapFilePath; } @@ -497,7 +506,7 @@ fn5(); ) { // action verifyAllFnActionWorker(session, ({ reqName, response, expectedResponse, expectedResponseNoDts, verifier }) => { - assert.deepEqual(response, expectedResponseNoDts || expectedResponse, `Failed on ${reqName}`); + assert.deepEqual(response, withRefs ? expectedResponse : expectedResponseNoDts || expectedResponse, `Failed on ${reqName}`); verifyInfosWhenNoDtsFile( session, host, @@ -505,7 +514,8 @@ fn5(); // instead of succeeding to source file and then mapping using project reference (When using usage location) // But watched if sourcemapper is in source project since we need to keep track of dts to update the source mapper for any potential usages verifier.expectedProjectActualFiles.every(f => f.toLowerCase() !== dtsPath), - dependencyTsAndMapOk, + /*dependencyTsOk*/ withRefs || dependencyTsAndMapOk, + /*dependencyMapOk*/ dependencyTsAndMapOk ); }, /*dtsAbsent*/ true); } @@ -513,14 +523,15 @@ fn5(); function verifyScenarioWithChangesWorker( change: (host: TestServerHost, session: TestSession) => void, afterActionDocumentPositionMapperNotEquals: true | undefined, - timeoutBeforeAction: boolean + timeoutBeforeAction: boolean, + useDependencyChange?: boolean ) { const { host, session } = openTsFile(); // Create DocumentPositionMapper firstAction(session); - const dependencyMap = session.getProjectService().filenameToScriptInfo.get(dtsMapPath)!; - const documentPositionMapper = dependencyMap.documentPositionMapper; + const dependencyMap = session.getProjectService().filenameToScriptInfo.get(dtsMapPath); + const documentPositionMapper = dependencyMap && dependencyMap.documentPositionMapper; // change change(host, session); @@ -531,21 +542,22 @@ fn5(); } // action - verifyAllFnAction(session, host, afterActionDocumentPositionMapperNotEquals, dependencyMap, documentPositionMapper); + verifyAllFnAction(session, host, afterActionDocumentPositionMapperNotEquals, dependencyMap, documentPositionMapper, useDependencyChange); } function verifyScenarioWithChanges( scenarioName: string, change: (host: TestServerHost, session: TestSession) => void, - afterActionDocumentPositionMapperNotEquals?: true + afterActionDocumentPositionMapperNotEquals?: true, + useDependencyChange?: boolean ) { describe(scenarioName, () => { it("when timeout occurs before request", () => { - verifyScenarioWithChangesWorker(change, afterActionDocumentPositionMapperNotEquals, /*timeoutBeforeAction*/ true); + verifyScenarioWithChangesWorker(change, afterActionDocumentPositionMapperNotEquals, /*timeoutBeforeAction*/ true, useDependencyChange); }); it("when timeout does not occur before request", () => { - verifyScenarioWithChangesWorker(change, afterActionDocumentPositionMapperNotEquals, /*timeoutBeforeAction*/ false); + verifyScenarioWithChangesWorker(change, afterActionDocumentPositionMapperNotEquals, /*timeoutBeforeAction*/ false, useDependencyChange); }); }); } @@ -570,12 +582,12 @@ fn5(); function verifyMainScenarioAndScriptInfoCollectionWithNoMap(session: TestSession, host: TestServerHost, dependencyTsOKInScenario?: true) { // Main scenario action - verifyAllFnActionWithNoMap(session, host, dependencyTsOKInScenario); + verifyAllFnActionWithNoMap(session, host, withRefs || dependencyTsOKInScenario); // Collecting at this point retains dependency.d.ts and map watcher closeFilesForSession([randomFile], session); openFilesForSession([randomFile], session); - verifyInfosWhenNoMapFile(session, host); + verifyInfosWhenNoMapFile(session, host, withRefs); // Closing open file, removes dependencies too closeFilesForSession([...openFiles, randomFile], session); @@ -593,7 +605,8 @@ fn5(); verifyInfosWhenNoDtsFile( session, host, - !!forEach(verifier, v => v.expectedProjectActualFiles.every(f => f.toLowerCase() !== dtsPath)) + !!forEach(verifier, v => v.expectedProjectActualFiles.every(f => f.toLowerCase() !== dtsPath)), + /*dependencyTsOk*/ withRefs ); // Closing open file, removes dependencies too @@ -694,35 +707,26 @@ fn5(); ); if (withRefs) { - it("when defining project source changes", () => { - const { host, session } = openTsFile(); - - // First action - firstAction(session); - - // Make change, without rebuild of solution - if (contains(openInfos, dependencyTs.path)) { - session.executeCommandSeq({ - command: protocol.CommandTypes.Change, - arguments: { - file: dependencyTs.path, line: 1, offset: 1, endLine: 1, endOffset: 1, insertString: `function fooBar() { } + verifyScenarioWithChanges( + "when defining project source changes", + (host, session) => { + // Make change, without rebuild of solution + if (contains(openInfos, dependencyTs.path)) { + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: dependencyTs.path, line: 1, offset: 1, endLine: 1, endOffset: 1, insertString: `function fooBar() { } `} - }); - } - else { - host.writeFile(dependencyTs.path, `function fooBar() { } -${dependencyTs.content}`); - } - host.runQueuedTimeoutCallbacks(); - - for (const v of verifier) { - for (let fn = 1; fn <= 5; fn++) { - const { reqName, request, requestDependencyChange, expectedResponseDependencyChange } = v.actionGetter(fn); - const { response } = session.executeCommandSeq(requestDependencyChange || request); - assert.deepEqual(response, expectedResponseDependencyChange, `Failed on ${reqName}`); + }); } - } - }); + else { + host.writeFile(dependencyTs.path, `function fooBar() { } +${dependencyTs.content}`); + } + }, + /*afterActionDocumentPositionMapperNotEquals*/ undefined, + /*useDepedencyChange*/ true + ); } } @@ -730,13 +734,15 @@ ${dependencyTs.content}`); describe(withRefs ? "when main tsconfig has project reference" : "when main tsconfig doesnt have project reference", () => { const usageVerifier: DocumentPositionMapperVerifier = { openFile: mainTs, - expectedProjectActualFiles: [mainTs.path, libFile.path, mainConfig.path, dtsPath], + expectedProjectActualFiles: withRefs ? + [mainTs.path, libFile.path, mainConfig.path, dependencyTs.path] : + [mainTs.path, libFile.path, mainConfig.path, dtsPath], actionGetter: gotoDefintinionFromMainTs, openFileLastLine: 14 }; describe("from project that uses dependency", () => { const closedInfos = withRefs ? - [dependencyTs.path, dependencyConfig.path, libFile.path, dtsPath, dtsMapLocation] : + [dependencyTs.path, dependencyConfig.path, libFile.path] : [dependencyTs.path, libFile.path, dtsPath, dtsMapLocation]; verifyDocumentPositionMapperUpdates( "can go to definition correctly", @@ -764,7 +770,7 @@ ${dependencyTs.content}`); describe("when opening depedency and usage project", () => { const closedInfos = withRefs ? - [libFile.path, dtsPath, dtsMapLocation, dependencyConfig.path] : + [libFile.path, dependencyConfig.path] : [libFile.path, dtsPath, dtsMapLocation]; verifyDocumentPositionMapperUpdates( "goto Definition in usage and rename locations from defining project", From 2f30add809bbc5988d817896f85ecb93dfec61c4 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 26 Jun 2019 15:29:35 -0700 Subject: [PATCH 009/159] More tests --- .../unittests/tsserver/declarationFileMaps.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/testRunner/unittests/tsserver/declarationFileMaps.ts b/src/testRunner/unittests/tsserver/declarationFileMaps.ts index 0f8af3c414e..b060790939f 100644 --- a/src/testRunner/unittests/tsserver/declarationFileMaps.ts +++ b/src/testRunner/unittests/tsserver/declarationFileMaps.ts @@ -199,7 +199,7 @@ namespace ts.projectSystem { } function verifyUserTsConfigProject(session: TestSession) { - checkProjectActualFiles(session.getProjectService().configuredProjects.get(userTsconfig.path)!, [userTs.path, aDts.path, userTsconfig.path]); + checkProjectActualFiles(session.getProjectService().configuredProjects.get(userTsconfig.path)!, [userTs.path, aTs.path, userTsconfig.path]); } it("goToDefinition", () => { @@ -470,6 +470,13 @@ namespace ts.projectSystem { name: "function f(): void", }, references: [ + makeReferenceEntry({ + file: aTs, + text: "f", + options: { index: 1 }, + contextText: "function f() {}", + isDefinition: true + }), { fileName: bTs.path, isDefinition: false, @@ -477,13 +484,6 @@ namespace ts.projectSystem { isWriteAccess: false, textSpan: { start: 0, length: 1 }, }, - makeReferenceEntry({ - file: aTs, - text: "f", - options: { index: 1 }, - contextText: "function f() {}", - isDefinition: true - }) ], } ]); From da9260c01305bc4f91193f787c868f0def6c0f48 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 26 Jun 2019 15:57:22 -0700 Subject: [PATCH 010/159] Create original project when location is in source of project reference redirect --- src/compiler/program.ts | 2 +- src/compiler/utilities.ts | 4 ++++ src/server/editorServices.ts | 7 +++++-- src/server/project.ts | 18 +++++++++++++++--- src/server/session.ts | 6 ++++-- src/services/sourcemaps.ts | 7 ++++--- .../tsserver/events/projectLoading.ts | 2 +- 7 files changed, 34 insertions(+), 12 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 9a4e26a2903..2ddf191a327 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -814,7 +814,7 @@ namespace ts { let projectReferenceRedirects: Map | undefined; let mapFromFileToProjectReferenceRedirects: Map | undefined; let mapFromToProjectReferenceRedirectSource: Map | undefined; - const useSourceOfReference = host.useSourceInsteadOfReferenceRedirect && host.useSourceInsteadOfReferenceRedirect(); + const useSourceOfReference = useSourceInsteadOfReferenceRedirect(host); const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options); const structuralIsReused = tryReuseStructureFromOldProgram(); diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 0e2488a0233..ecf7d431a2e 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -4614,6 +4614,10 @@ namespace ts { return false; } } + + export function useSourceInsteadOfReferenceRedirect(host: { useSourceInsteadOfReferenceRedirect?(): boolean; }) { + return host.useSourceInsteadOfReferenceRedirect && host.useSourceInsteadOfReferenceRedirect(); + } } namespace ts { diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index 8c7462d857b..e379d1fda2c 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -2570,7 +2570,9 @@ namespace ts.server { /*@internal*/ getOriginalLocationEnsuringConfiguredProject(project: Project, location: DocumentPosition): DocumentPosition | undefined { - const originalLocation = project.getSourceMapper().tryGetSourcePosition(location); + const originalLocation = useSourceInsteadOfReferenceRedirect(project) && project.getResolvedProjectReferenceToRedirect(location.fileName) ? + location : + project.getSourceMapper().tryGetSourcePosition(location); if (!originalLocation) return undefined; const { fileName } = originalLocation; @@ -2581,7 +2583,8 @@ namespace ts.server { if (!configFileName) return undefined; const configuredProject = this.findConfiguredProjectByProjectName(configFileName) || - this.createAndLoadConfiguredProject(configFileName, `Creating project for original file: ${originalFileInfo.fileName} for location: ${location.fileName}`); + this.createAndLoadConfiguredProject(configFileName, `Creating project for original file: ${originalFileInfo.fileName}${location !== originalLocation ? " for location " + location.fileName : ""}`); + if (configuredProject === project) return originalLocation; updateProjectIfDirty(configuredProject); // Keep this configured project as referenced from project addOriginalConfiguredProject(configuredProject); diff --git a/src/server/project.ts b/src/server/project.ts index 8f8e6e5da8e..c6c8ab84b20 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -196,6 +196,14 @@ namespace ts.server { /*@internal*/ originalConfiguredProjects: Map | undefined; + /*@internal*/ + useSourceInsteadOfReferenceRedirect?: () => boolean; + + /*@internal*/ + getResolvedProjectReferenceToRedirect(_fileName: string): ResolvedProjectReference | undefined { + return undefined; + } + private readonly cancellationToken: ThrottledCancellationToken; public isNonTsProject() { @@ -1526,9 +1534,7 @@ namespace ts.server { } /* @internal */ - useSourceInsteadOfReferenceRedirect() { - return !!this.languageServiceEnabled; - } + useSourceInsteadOfReferenceRedirect = () => !!this.languageServiceEnabled; fileExists(file: string): boolean { // Project references go to source file instead of .d.ts file @@ -1590,6 +1596,12 @@ namespace ts.server { return program && program.forEachResolvedProjectReference(cb); } + /*@internal*/ + getResolvedProjectReferenceToRedirect(fileName: string): ResolvedProjectReference | undefined { + const program = this.getCurrentProgram(); + return program && program.getResolvedProjectReferenceToRedirect(fileName); + } + /*@internal*/ enablePluginsWithOptions(options: CompilerOptions, pluginConfigOverrides: Map | undefined) { const host = this.projectService.host; diff --git a/src/server/session.ts b/src/server/session.ts index 5064b529560..792ec2cbce9 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -443,7 +443,9 @@ namespace ts.server { function getDefinitionInProject(definition: DocumentPosition | undefined, definingProject: Project, project: Project): DocumentPosition | undefined { if (!definition || project.containsFile(toNormalizedPath(definition.fileName))) return definition; - const mappedDefinition = definingProject.getLanguageService().getSourceMapper().tryGetGeneratedPosition(definition); + const mappedDefinition = useSourceInsteadOfReferenceRedirect(definingProject) && definingProject.getResolvedProjectReferenceToRedirect(definition.fileName) ? + definition : + definingProject.getLanguageService().getSourceMapper().tryGetGeneratedPosition(definition); return mappedDefinition && project.containsFile(toNormalizedPath(mappedDefinition.fileName)) ? mappedDefinition : undefined; } @@ -472,7 +474,7 @@ namespace ts.server { for (const symlinkedProject of symlinkedProjects) addToTodo({ project: symlinkedProject, location: originalLocation as TLocation }, toDo!, seenProjects); }); } - return originalLocation; + return originalLocation === location ? undefined : originalLocation; }); return toDo; } diff --git a/src/services/sourcemaps.ts b/src/services/sourcemaps.ts index de590d4e5b4..c4c14e58686 100644 --- a/src/services/sourcemaps.ts +++ b/src/services/sourcemaps.ts @@ -72,9 +72,10 @@ namespace ts { const program = host.getProgram()!; // If this is source file of project reference source (instead of redirect) there is no generated position - if (host.useSourceInsteadOfReferenceRedirect && - host.useSourceInsteadOfReferenceRedirect() && - program.getResolvedProjectReferenceToRedirect(sourceFile.fileName)) return undefined; + if (useSourceInsteadOfReferenceRedirect(host) && + program.getResolvedProjectReferenceToRedirect(sourceFile.fileName)) { + return undefined; + } const options = program.getCompilerOptions(); const outPath = options.outFile || options.out; diff --git a/src/testRunner/unittests/tsserver/events/projectLoading.ts b/src/testRunner/unittests/tsserver/events/projectLoading.ts index 7a881ff1380..53fe28240f8 100644 --- a/src/testRunner/unittests/tsserver/events/projectLoading.ts +++ b/src/testRunner/unittests/tsserver/events/projectLoading.ts @@ -110,7 +110,7 @@ namespace ts.projectSystem { checkNumberOfProjects(service, { configuredProjects: 2 }); const project = service.configuredProjects.get(configA.path)!; assert.isDefined(project); - verifyEvent(project, `Creating project for original file: ${aTs.path} for location: ${aDTs.path}`); + verifyEvent(project, `Creating project for original file: ${aTs.path}`); }); describe("with external projects and config files ", () => { From 75bd3cd9be28686c492d7028ed828fce7f9bcef9 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 27 Jun 2019 12:12:02 -0700 Subject: [PATCH 011/159] Fix more tests --- src/testRunner/unittests/tsbuildWatchMode.ts | 191 +++++++++++-------- 1 file changed, 108 insertions(+), 83 deletions(-) diff --git a/src/testRunner/unittests/tsbuildWatchMode.ts b/src/testRunner/unittests/tsbuildWatchMode.ts index a630e28f1d8..6a577888c7e 100644 --- a/src/testRunner/unittests/tsbuildWatchMode.ts +++ b/src/testRunner/unittests/tsbuildWatchMode.ts @@ -681,9 +681,9 @@ let x: string = 10;`); const coreIndexDts = projectFileName(SubProject.core, "index.d.ts"); const coreAnotherModuleDts = projectFileName(SubProject.core, "anotherModule.d.ts"); const logicIndexDts = projectFileName(SubProject.logic, "index.d.ts"); - const expectedWatchedFiles = [core[0], logic[0], ...tests, libFile].map(f => f.path).concat([coreIndexDts, coreAnotherModuleDts, logicIndexDts].map(f => f.toLowerCase())); const expectedWatchedDirectoriesRecursive = projectSystem.getTypeRootsFromLocation(projectPath(SubProject.tests)); const expectedProgramFiles = [tests[1].path, libFile.path, coreIndexDts, coreAnotherModuleDts, logicIndexDts]; + const expectedProjectFiles = [libFile, ...tests, ...logic.slice(1), ...core.slice(1, core.length - 1)].map(f => f.path); function createSolutionAndWatchMode() { return createSolutionAndWatchModeOfProject(allFiles, projectsLocation, `${project}/${SubProject.tests}`, tests[0].path, getOutputFileStamps); @@ -694,12 +694,19 @@ let x: string = 10;`); } function verifyWatches(host: TsBuildWatchSystem, withTsserver?: boolean) { - verifyWatchesOfProject(host, withTsserver ? expectedWatchedFiles.filter(f => f !== tests[1].path.toLowerCase()) : expectedWatchedFiles, expectedWatchedDirectoriesRecursive); + verifyWatchesOfProject( + host, + withTsserver ? + [...core.slice(0, core.length - 1), ...logic, tests[0], libFile].map(f => f.path.toLowerCase()) : + [core[0], logic[0], ...tests, libFile].map(f => f.path).concat([coreIndexDts, coreAnotherModuleDts, logicIndexDts].map(f => f.toLowerCase())), + expectedWatchedDirectoriesRecursive + ); } function verifyScenario( edit: (host: TsBuildWatchSystem, solutionBuilder: SolutionBuilder) => void, - expectedFilesAfterEdit: ReadonlyArray + expectedProgramFilesAfterEdit: ReadonlyArray, + expectedProjectFilesAfterEdit: ReadonlyArray ) { it("with tsc-watch", () => { const { host, solutionBuilder, watch } = createSolutionAndWatchMode(); @@ -708,7 +715,7 @@ let x: string = 10;`); host.checkTimeoutQueueLengthAndRun(1); checkOutputErrorsIncremental(host, emptyArray); - checkProgramActualFiles(watch(), expectedFilesAfterEdit); + checkProgramActualFiles(watch(), expectedProgramFilesAfterEdit); }); @@ -718,7 +725,7 @@ let x: string = 10;`); edit(host, solutionBuilder); host.checkTimeoutQueueLengthAndRun(2); - checkProjectActualFiles(service, tests[0].path, [tests[0].path, ...expectedFilesAfterEdit]); + checkProjectActualFiles(service, tests[0].path, [...expectedProjectFilesAfterEdit]); }); } @@ -748,7 +755,7 @@ function foo() { // not ideal, but currently because of d.ts but no new file is written // There will be timeout queued even though file contents are same - }, expectedProgramFiles); + }, expectedProgramFiles, expectedProjectFiles); }); describe("non local edit in ts file, rebuilds in watch compilation", () => { @@ -758,7 +765,7 @@ export function gfoo() { }`); solutionBuilder.invalidateProject(logic[0].path.toLowerCase() as ResolvedConfigFilePath); solutionBuilder.buildNextInvalidatedProject(); - }, expectedProgramFiles); + }, expectedProgramFiles, expectedProjectFiles); }); describe("change in project reference config file builds correctly", () => { @@ -769,7 +776,7 @@ export function gfoo() { })); solutionBuilder.invalidateProject(logic[0].path.toLowerCase() as ResolvedConfigFilePath, ConfigFileProgramReloadLevel.Full); solutionBuilder.buildNextInvalidatedProject(); - }, [tests[1].path, libFile.path, coreIndexDts, coreAnotherModuleDts, projectFilePath(SubProject.logic, "decls/index.d.ts")]); + }, [tests[1].path, libFile.path, coreIndexDts, coreAnotherModuleDts, projectFilePath(SubProject.logic, "decls/index.d.ts")], expectedProjectFiles); }); }); @@ -859,7 +866,9 @@ export function gfoo() { const aDts = dtsFile(multiFolder ? "a/index" : "a"), bDts = dtsFile(multiFolder ? "b/index" : "b"); const expectedFiles = [jsFile(multiFolder ? "a/index" : "a"), aDts, jsFile(multiFolder ? "b/index" : "b"), bDts, jsFile(multiFolder ? "c/index" : "c")]; const expectedProgramFiles = [cTs.path, libFile.path, aDts, refs.path, bDts]; + const expectedProjectFiles = [cTs.path, libFile.path, aTs.path, refs.path, bTs.path]; const expectedWatchedFiles = expectedProgramFiles.concat(cTsconfig.path, bTsconfig.path, aTsconfig.path).map(s => s.toLowerCase()); + const expectedProjectWatchedFiles = expectedProjectFiles.concat(cTsconfig.path, bTsconfig.path, aTsconfig.path).map(s => s.toLowerCase()); const expectedWatchedDirectories = multiFolder ? [ getProjectPath(project).toLowerCase() // watches for directories created for resolution of b ] : emptyArray; @@ -897,22 +906,29 @@ export function gfoo() { } function verifyProject(host: TsBuildWatchSystem, service: projectSystem.TestProjectService, orphanInfos?: ReadonlyArray) { - verifyServerState(host, service, expectedProgramFiles, expectedWatchedFiles, expectedWatchedDirectoriesRecursive, orphanInfos); + verifyServerState({ host, service, expectedProjectFiles, expectedProjectWatchedFiles, expectedWatchedDirectoriesRecursive, orphanInfos }); } - function verifyServerState( - host: TsBuildWatchSystem, - service: projectSystem.TestProjectService, - expectedProgramFiles: ReadonlyArray, - expectedWatchedFiles: ReadonlyArray, - expectedWatchedDirectoriesRecursive: ReadonlyArray, - orphanInfos?: ReadonlyArray) { - checkProjectActualFiles(service, cTsconfig.path, expectedProgramFiles.concat(cTsconfig.path)); - const watchedFiles = expectedWatchedFiles.filter(f => f !== cTs.path.toLowerCase()); - if (orphanInfos) { + interface VerifyServerState { + host: TsBuildWatchSystem; + service: projectSystem.TestProjectService; + expectedProjectFiles: ReadonlyArray; + expectedProjectWatchedFiles: ReadonlyArray; + expectedWatchedDirectoriesRecursive: ReadonlyArray; + orphanInfos?: ReadonlyArray; + } + function verifyServerState({ host, service, expectedProjectFiles, expectedProjectWatchedFiles, expectedWatchedDirectoriesRecursive, orphanInfos }: VerifyServerState) { + checkProjectActualFiles(service, cTsconfig.path, expectedProjectFiles.concat(cTsconfig.path)); + const watchedFiles = expectedProjectWatchedFiles.filter(f => f !== cTs.path.toLowerCase()); + const actualOrphan = arrayFrom(mapDefinedIterator( + service.filenameToScriptInfo.values(), + v => v.containingProjects.length === 0 ? v.fileName : undefined + )); + assert.equal(actualOrphan.length, orphanInfos ? orphanInfos.length : 0, `Orphans found: ${JSON.stringify(actualOrphan, /*replacer*/ undefined, " ")}`); + if (orphanInfos && orphanInfos.length) { for (const orphan of orphanInfos) { const info = service.getScriptInfoForPath(orphan as Path); - assert.isDefined(info); + assert.isDefined(info, `${orphan} expected to be present. Actual: ${JSON.stringify(actualOrphan, /*replacer*/ undefined, " ")}`); assert.equal(info!.containingProjects.length, 0); watchedFiles.push(orphan); } @@ -920,16 +936,20 @@ export function gfoo() { verifyWatchesOfProject(host, watchedFiles, expectedWatchedDirectoriesRecursive, expectedWatchedDirectories); } - function verifyScenario( - edit: (host: TsBuildWatchSystem, solutionBuilder: SolutionBuilder) => void, - expectedEditErrors: ReadonlyArray, - expectedProgramFiles: ReadonlyArray, - expectedWatchedFiles: ReadonlyArray, - expectedWatchedDirectoriesRecursive: ReadonlyArray, - dependencies: ReadonlyArray<[string, ReadonlyArray]>, - revert?: (host: TsBuildWatchSystem) => void, - orphanInfosAfterEdit?: ReadonlyArray, - orphanInfosAfterRevert?: ReadonlyArray) { + interface VerifyScenario { + edit: (host: TsBuildWatchSystem, solutionBuilder: SolutionBuilder) => void; + expectedEditErrors: ReadonlyArray; + expectedProgramFiles: ReadonlyArray; + expectedProjectFiles: ReadonlyArray; + expectedWatchedFiles: ReadonlyArray; + expectedProjectWatchedFiles: ReadonlyArray; + expectedWatchedDirectoriesRecursive: ReadonlyArray; + dependencies: ReadonlyArray<[string, ReadonlyArray]>; + revert?: (host: TsBuildWatchSystem) => void; + orphanInfosAfterEdit?: ReadonlyArray; + orphanInfosAfterRevert?: ReadonlyArray; + } + function verifyScenario({ edit, expectedEditErrors, expectedProgramFiles, expectedProjectFiles, expectedWatchedFiles, expectedProjectWatchedFiles, expectedWatchedDirectoriesRecursive, dependencies, revert, orphanInfosAfterEdit, orphanInfosAfterRevert }: VerifyScenario) { it("with tsc-watch", () => { const { host, solutionBuilder, watch } = createSolutionAndWatchMode(); @@ -956,7 +976,7 @@ export function gfoo() { edit(host, solutionBuilder); host.checkTimeoutQueueLengthAndRun(2); - verifyServerState(host, service, expectedProgramFiles, expectedWatchedFiles, expectedWatchedDirectoriesRecursive, orphanInfosAfterEdit); + verifyServerState({ host, service, expectedProjectFiles, expectedProjectWatchedFiles, expectedWatchedDirectoriesRecursive, orphanInfos: orphanInfosAfterEdit }); if (revert) { revert(host); @@ -981,20 +1001,21 @@ export function gfoo() { }); describe("non local edit updates the program and watch correctly", () => { - verifyScenario( - (host, solutionBuilder) => { + verifyScenario({ + edit: (host, solutionBuilder) => { // edit - host.writeFile(bTs.path, `${bTs.content} -export function gfoo() { -}`); - solutionBuilder.invalidateProject(bTsconfig.path.toLowerCase() as ResolvedConfigFilePath); + host.writeFile(bTs.path, `${bTs.content}\nexport function gfoo() {\n}`); + solutionBuilder.invalidateProject((bTsconfig.path.toLowerCase() as ResolvedConfigFilePath)); solutionBuilder.buildNextInvalidatedProject(); }, - emptyArray, + expectedEditErrors: emptyArray, expectedProgramFiles, + expectedProjectFiles, expectedWatchedFiles, + expectedProjectWatchedFiles, expectedWatchedDirectoriesRecursive, - defaultDependencies); + dependencies: defaultDependencies + }); }); describe("edit on config file", () => { @@ -1003,30 +1024,32 @@ export function gfoo() { path: getFilePathInProject(project, "nrefs/a.d.ts"), content: refs.content }; - verifyScenario( - host => { + verifyScenario({ + edit: host => { const cTsConfigJson = JSON.parse(cTsconfig.content); host.ensureFileOrFolder(nrefs); cTsConfigJson.compilerOptions.paths = { "@ref/*": nrefsPath }; host.writeFile(cTsconfig.path, JSON.stringify(cTsConfigJson)); }, - emptyArray, - expectedProgramFiles.map(nrefReplacer), - expectedWatchedFiles.map(nrefReplacer), - expectedWatchedDirectoriesRecursive.map(nrefReplacer), - [ + expectedEditErrors: emptyArray, + expectedProgramFiles: expectedProgramFiles.map(nrefReplacer), + expectedProjectFiles: expectedProjectFiles.map(nrefReplacer), + expectedWatchedFiles: expectedWatchedFiles.map(nrefReplacer), + expectedProjectWatchedFiles: expectedProjectWatchedFiles.map(nrefReplacer), + expectedWatchedDirectoriesRecursive: expectedWatchedDirectoriesRecursive.map(nrefReplacer), + dependencies: [ [aDts, [aDts]], [bDts, [bDts, aDts]], [nrefs.path, [nrefs.path]], [cTs.path, [cTs.path, nrefs.path, bDts]] ], // revert the update - host => host.writeFile(cTsconfig.path, cTsconfig.content), + revert: host => host.writeFile(cTsconfig.path, cTsconfig.content), // AfterEdit:: Extra watched files on server since the script infos arent deleted till next file open - [refs.path.toLowerCase()], + orphanInfosAfterEdit: [refs.path.toLowerCase()], // AfterRevert:: Extra watched files on server since the script infos arent deleted till next file open - [nrefs.path.toLowerCase()] - ); + orphanInfosAfterRevert: [nrefs.path.toLowerCase()] + }); }); describe("edit in referenced config file", () => { @@ -1035,82 +1058,84 @@ export function gfoo() { content: "export declare class A {}" }; const expectedProgramFiles = [cTs.path, bDts, nrefs.path, refs.path, libFile.path]; + const expectedProjectFiles = [cTs.path, bTs.path, nrefs.path, refs.path, libFile.path]; const [, ...expectedWatchedDirectoriesRecursiveWithoutA] = expectedWatchedDirectoriesRecursive; // Not looking in a folder for resolution in multi folder scenario - verifyScenario( - host => { + verifyScenario({ + edit: host => { const bTsConfigJson = JSON.parse(bTsconfig.content); host.ensureFileOrFolder(nrefs); bTsConfigJson.compilerOptions.paths = { "@ref/*": nrefsPath }; host.writeFile(bTsconfig.path, JSON.stringify(bTsConfigJson)); }, - emptyArray, + expectedEditErrors: emptyArray, expectedProgramFiles, - expectedProgramFiles.concat(cTsconfig.path, bTsconfig.path, aTsconfig.path).map(s => s.toLowerCase()), - (multiFolder ? expectedWatchedDirectoriesRecursiveWithoutA : expectedWatchedDirectoriesRecursive).concat(getFilePathInProject(project, "nrefs").toLowerCase()), - [ + expectedProjectFiles, + expectedWatchedFiles: expectedProgramFiles.concat(cTsconfig.path, bTsconfig.path, aTsconfig.path).map(s => s.toLowerCase()), + expectedProjectWatchedFiles: expectedProjectFiles.concat(cTsconfig.path, bTsconfig.path, aTsconfig.path).map(s => s.toLowerCase()), + expectedWatchedDirectoriesRecursive: (multiFolder ? expectedWatchedDirectoriesRecursiveWithoutA : expectedWatchedDirectoriesRecursive).concat(getFilePathInProject(project, "nrefs").toLowerCase()), + dependencies: [ [nrefs.path, [nrefs.path]], [bDts, [bDts, nrefs.path]], [refs.path, [refs.path]], [cTs.path, [cTs.path, refs.path, bDts]], ], // revert the update - host => host.writeFile(bTsconfig.path, bTsconfig.content), + revert: host => host.writeFile(bTsconfig.path, bTsconfig.content), // AfterEdit:: Extra watched files on server since the script infos arent deleted till next file open - [aDts.toLowerCase()], + orphanInfosAfterEdit: [aTs.path.toLowerCase()], // AfterRevert:: Extra watched files on server since the script infos arent deleted till next file open - [nrefs.path.toLowerCase()] - ); + orphanInfosAfterRevert: [nrefs.path.toLowerCase()] + }); }); describe("deleting referenced config file", () => { const expectedProgramFiles = [cTs.path, bTs.path, refs.path, libFile.path]; + const expectedWatchedFiles = expectedProgramFiles.concat(cTsconfig.path, bTsconfig.path).map(s => s.toLowerCase()); const [, ...expectedWatchedDirectoriesRecursiveWithoutA] = expectedWatchedDirectoriesRecursive; // Not looking in a folder for resolution in multi folder scenario // Resolutions should change now // Should map to b.ts instead with options from our own config - verifyScenario( - host => host.deleteFile(bTsconfig.path), - [ + verifyScenario({ + edit: host => host.deleteFile(bTsconfig.path), + expectedEditErrors: [ `${multiFolder ? "c/tsconfig.json" : "tsconfig.c.json"}(9,21): error TS6053: File '/user/username/projects/transitiveReferences/${multiFolder ? "b" : "tsconfig.b.json"}' not found.\n` ], expectedProgramFiles, - expectedProgramFiles.concat(cTsconfig.path, bTsconfig.path).map(s => s.toLowerCase()), - multiFolder ? expectedWatchedDirectoriesRecursiveWithoutA : expectedWatchedDirectoriesRecursive, - [ + expectedProjectFiles: expectedProgramFiles, + expectedWatchedFiles, + expectedProjectWatchedFiles: expectedWatchedFiles, + expectedWatchedDirectoriesRecursive: multiFolder ? expectedWatchedDirectoriesRecursiveWithoutA : expectedWatchedDirectoriesRecursive, + dependencies: [ [bTs.path, [bTs.path, refs.path]], [refs.path, [refs.path]], [cTs.path, [cTs.path, refs.path, bTs.path]], ], // revert the update - host => host.writeFile(bTsconfig.path, bTsconfig.content), + revert: host => host.writeFile(bTsconfig.path, bTsconfig.content), // AfterEdit:: Extra watched files on server since the script infos arent deleted till next file open - [bDts.toLowerCase(), aDts.toLowerCase(), aTsconfig.path.toLowerCase()], - // AfterRevert:: Extra watched files on server since the script infos arent deleted till next file open - [bTs.path.toLowerCase()] - ); + orphanInfosAfterEdit: [aTs.path.toLowerCase(), aTsconfig.path.toLowerCase()], + }); }); describe("deleting transitively referenced config file", () => { - verifyScenario( - host => host.deleteFile(aTsconfig.path), - [ + verifyScenario({ + edit: host => host.deleteFile(aTsconfig.path), + expectedEditErrors: [ `${multiFolder ? "b/tsconfig.json" : "tsconfig.b.json"}(10,21): error TS6053: File '/user/username/projects/transitiveReferences/${multiFolder ? "a" : "tsconfig.a.json"}' not found.\n` ], - expectedProgramFiles.map(s => s.replace(aDts, aTs.path)), - expectedWatchedFiles.map(s => s.replace(aDts.toLowerCase(), aTs.path.toLocaleLowerCase())), + expectedProgramFiles: expectedProgramFiles.map(s => s.replace(aDts, aTs.path)), + expectedProjectFiles, + expectedWatchedFiles: expectedWatchedFiles.map(s => s.replace(aDts.toLowerCase(), aTs.path.toLocaleLowerCase())), + expectedProjectWatchedFiles, expectedWatchedDirectoriesRecursive, - [ + dependencies: [ [aTs.path, [aTs.path]], [bDts, [bDts, aTs.path]], [refs.path, [refs.path]], [cTs.path, [cTs.path, refs.path, bDts]], ], // revert the update - host => host.writeFile(aTsconfig.path, aTsconfig.content), - // AfterEdit:: Extra watched files on server since the script infos arent deleted till next file open - [aDts.toLowerCase()], - // AfterRevert:: Extra watched files on server since the script infos arent deleted till next file open - [aTs.path.toLowerCase()] - ); + revert: host => host.writeFile(aTsconfig.path, aTsconfig.content), + }); }); } From f72af3be60688fa30a2e918e8dc86c1fad882b8a Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 28 Jun 2019 15:49:48 -0700 Subject: [PATCH 012/159] Verify the scenarios when d.ts directory of dependency doesnt exist --- src/compiler/program.ts | 14 ++++-- src/compiler/types.ts | 9 ++-- src/server/project.ts | 45 ++++++++++++++++--- src/services/services.ts | 4 +- src/services/types.ts | 2 +- .../unittests/tsserver/projectReferences.ts | 30 +++++++++++++ 6 files changed, 88 insertions(+), 16 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 27f5d25c847..37c2d6a9c83 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -826,8 +826,11 @@ namespace ts { if (!resolvedProjectReferences) { resolvedProjectReferences = projectReferences.map(parseProjectReferenceConfigFile); } - if (host.setGetSourceOfProjectReferenceRedirect) { - host.setGetSourceOfProjectReferenceRedirect(getSourceOfProjectReferenceRedirect); + if (host.setResolvedProjectReferenceCallbacks) { + host.setResolvedProjectReferenceCallbacks({ + getSourceOfProjectReferenceRedirect, + forEachResolvedProjectReference + }); } if (rootNames.length) { for (const parsedRef of resolvedProjectReferences) { @@ -1226,8 +1229,11 @@ namespace ts { } if (projectReferences) { resolvedProjectReferences = projectReferences.map(parseProjectReferenceConfigFile); - if (host.setGetSourceOfProjectReferenceRedirect) { - host.setGetSourceOfProjectReferenceRedirect(getSourceOfProjectReferenceRedirect); + if (host.setResolvedProjectReferenceCallbacks) { + host.setResolvedProjectReferenceCallbacks({ + getSourceOfProjectReferenceRedirect, + forEachResolvedProjectReference + }); } } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 79a92cfa31d..3cf506b0d58 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -5166,7 +5166,7 @@ namespace ts { /* @internal */ hasChangedAutomaticTypeDirectiveNames?: boolean; createHash?(data: string): string; getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined; - /* @internal */ setGetSourceOfProjectReferenceRedirect?(getSource: GetSourceOfProjectReferenceRedirect): void; + /* @internal */ setResolvedProjectReferenceCallbacks?(callbacks: ResolvedProjectReferenceCallbacks): void; /* @internal */ useSourceInsteadOfReferenceRedirect?(): boolean; // TODO: later handle this in better way in builder host instead once the api for tsbuild finalizes and doesn't use compilerHost as base @@ -5175,10 +5175,13 @@ namespace ts { /** true if --out otherwise source file name */ /*@internal*/ - export type SourceOfProjectReferenceRedirect = string | true ; + export type SourceOfProjectReferenceRedirect = string | true; /*@internal*/ - export type GetSourceOfProjectReferenceRedirect = (fileName: string) => SourceOfProjectReferenceRedirect | undefined; + interface ResolvedProjectReferenceCallbacks { + getSourceOfProjectReferenceRedirect(fileName: string): SourceOfProjectReferenceRedirect | undefined; + forEachResolvedProjectReference(cb: (resolvedProjectReference: ResolvedProjectReference | undefined, resolvedProjectReferencePath: Path) => T | undefined): T | undefined; + } /* @internal */ export const enum TransformFlags { diff --git a/src/server/project.ts b/src/server/project.ts index c6c8ab84b20..04a5b91531a 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -1482,7 +1482,8 @@ namespace ts.server { configFileWatcher: FileWatcher | undefined; private directoriesWatchedForWildcards: Map | undefined; readonly canonicalConfigFilePath: NormalizedPath; - private getSourceOfProjectReferenceRedirect: GetSourceOfProjectReferenceRedirect | undefined; + private projectReferenceCallbacks: ResolvedProjectReferenceCallbacks | undefined; + private mapOfDeclarationDirectories: Map | undefined; /* @internal */ pendingReload: ConfigFileProgramReloadLevel | undefined; @@ -1529,8 +1530,8 @@ namespace ts.server { } /* @internal */ - setGetSourceOfProjectReferenceRedirect(getSource: GetSourceOfProjectReferenceRedirect) { - this.getSourceOfProjectReferenceRedirect = getSource; + setResolvedProjectReferenceCallbacks(projectReferenceCallbacks: ResolvedProjectReferenceCallbacks) { + this.projectReferenceCallbacks = projectReferenceCallbacks; } /* @internal */ @@ -1538,13 +1539,42 @@ namespace ts.server { fileExists(file: string): boolean { // Project references go to source file instead of .d.ts file - if (this.languageServiceEnabled && this.getSourceOfProjectReferenceRedirect) { - const source = this.getSourceOfProjectReferenceRedirect(file); + if (this.useSourceInsteadOfReferenceRedirect() && this.projectReferenceCallbacks) { + const source = this.projectReferenceCallbacks.getSourceOfProjectReferenceRedirect(file); if (source) return isString(source) ? super.fileExists(source) : true; } return super.fileExists(file); } + directoryExists(path: string): boolean { + if (super.directoryExists(path)) return true; + if (!this.useSourceInsteadOfReferenceRedirect() || !this.projectReferenceCallbacks) return false; + + if (!this.mapOfDeclarationDirectories) { + this.mapOfDeclarationDirectories = createMap(); + this.projectReferenceCallbacks.forEachResolvedProjectReference(ref => { + if (!ref) return; + const out = ref.commandLine.options.outFile || ref.commandLine.options.outDir; + if (out) { + this.mapOfDeclarationDirectories!.set(getDirectoryPath(this.toPath(out)), true); + } + else { + // Set declaration's in different locations only, if they are next to source the directory present doesnt change + const declarationDir = ref.commandLine.options.declarationDir || ref.commandLine.options.outDir; + if (declarationDir) { + this.mapOfDeclarationDirectories!.set(this.toPath(declarationDir), true); + } + } + }); + } + const dirPath = this.toPath(path); + const dirPathWithTrailingDirectorySeparator = `${dirPath}${directorySeparator}`; + return !!forEachKey( + this.mapOfDeclarationDirectories, + declDirPath => dirPath === declDirPath || startsWith(declDirPath, dirPathWithTrailingDirectorySeparator) + ); + } + /** * If the project has reload from disk pending, it reloads (and then updates graph as part of that) instead of just updating the graph * @returns: true if set of files in the project stays the same and false - otherwise. @@ -1553,6 +1583,8 @@ namespace ts.server { this.isInitialLoadPending = returnFalse; const reloadLevel = this.pendingReload; this.pendingReload = ConfigFileProgramReloadLevel.None; + this.projectReferenceCallbacks = undefined; + this.mapOfDeclarationDirectories = undefined; let result: boolean; switch (reloadLevel) { case ConfigFileProgramReloadLevel.Partial: @@ -1567,7 +1599,6 @@ namespace ts.server { default: result = super.updateGraph(); } - this.getSourceOfProjectReferenceRedirect = undefined; this.projectService.sendProjectLoadingFinishEvent(this); this.projectService.sendProjectTelemetry(this); return result; @@ -1684,6 +1715,8 @@ namespace ts.server { this.stopWatchingWildCards(); this.projectErrors = undefined; this.configFileSpecs = undefined; + this.projectReferenceCallbacks = undefined; + this.mapOfDeclarationDirectories = undefined; super.close(); } diff --git a/src/services/services.ts b/src/services/services.ts index aa6ea119225..7de7934653e 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1246,8 +1246,8 @@ namespace ts { return host.resolveTypeReferenceDirectives!(typeReferenceDirectiveNames, containingFile, redirectedReference); }; } - if (host.setGetSourceOfProjectReferenceRedirect) { - compilerHost.setGetSourceOfProjectReferenceRedirect = getSource => host.setGetSourceOfProjectReferenceRedirect!(getSource); + if (host.setResolvedProjectReferenceCallbacks) { + compilerHost.setResolvedProjectReferenceCallbacks = callbacks => host.setResolvedProjectReferenceCallbacks!(callbacks); } if (host.useSourceInsteadOfReferenceRedirect) { compilerHost.useSourceInsteadOfReferenceRedirect = () => host.useSourceInsteadOfReferenceRedirect!(); diff --git a/src/services/types.ts b/src/services/types.ts index 3c9509ca5e9..b4fc25e587f 100644 --- a/src/services/types.ts +++ b/src/services/types.ts @@ -237,7 +237,7 @@ namespace ts { /* @internal */ getSourceFileLike?(fileName: string): SourceFileLike | undefined; /* @internal */ - setGetSourceOfProjectReferenceRedirect?(getSource: GetSourceOfProjectReferenceRedirect): void; + setResolvedProjectReferenceCallbacks?(callbacks: ResolvedProjectReferenceCallbacks): void; /* @internal */ useSourceInsteadOfReferenceRedirect?(): boolean; } diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index 5320cfe13bc..0b8b074f8e2 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -727,6 +727,36 @@ ${dependencyTs.content}`); /*afterActionDocumentPositionMapperNotEquals*/ undefined, /*useDepedencyChange*/ true ); + + it("when d.ts file is not generated", () => { + const host = createServerHost(files); + const session = createSession(host); + openFilesForSession([...openFiles, randomFile], session); + + const expectedClosedInfos = closedInfos.filter(f => f.toLowerCase() !== dtsPath && f.toLowerCase() !== dtsMapPath); + // If closed infos includes dts and dtsMap, watch dts since its not present + const expectedWatchedFiles = closedInfos.length === expectedClosedInfos.length ? + otherWatchedFiles : + otherWatchedFiles.concat(dtsPath); + // Main scenario action + verifyAllFnActionWorker(session, ({ reqName, response, expectedResponse }) => { + assert.deepEqual(response, expectedResponse, `Failed on ${reqName}`); + verifyInfosWithRandom(session, host, openInfos, expectedClosedInfos, expectedWatchedFiles); + verifyDocumentPositionMapper(session, /*dependencyMap*/ undefined, /*documentPositionMapper*/ undefined); + }, /*dtsAbsent*/ true); + checkProject(session); + + // Collecting at this point retains dependency.d.ts and map + closeFilesForSession([randomFile], session); + openFilesForSession([randomFile], session); + verifyInfosWithRandom(session, host, openInfos, expectedClosedInfos, expectedWatchedFiles); + verifyDocumentPositionMapper(session, /*dependencyMap*/ undefined, /*documentPositionMapper*/ undefined); + + // Closing open file, removes dependencies too + closeFilesForSession([...openFiles, randomFile], session); + openFilesForSession([randomFile], session); + verifyOnlyRandomInfos(session, host); + }); } } From f9e4b91203a0bcbddcca2acee442bb4f5ca0a869 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 1 Jul 2019 13:37:35 -0700 Subject: [PATCH 013/159] Fix incorrectly exported type --- src/compiler/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 3cf506b0d58..ff0aba6acad 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -5178,7 +5178,7 @@ namespace ts { export type SourceOfProjectReferenceRedirect = string | true; /*@internal*/ - interface ResolvedProjectReferenceCallbacks { + export interface ResolvedProjectReferenceCallbacks { getSourceOfProjectReferenceRedirect(fileName: string): SourceOfProjectReferenceRedirect | undefined; forEachResolvedProjectReference(cb: (resolvedProjectReference: ResolvedProjectReference | undefined, resolvedProjectReferencePath: Path) => T | undefined): T | undefined; } From f7ea0bab60d4198c04f81de624ea61b6d75bcc9c Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 1 Jul 2019 14:29:32 -0700 Subject: [PATCH 014/159] Refactoring --- src/compiler/program.ts | 7 ++++++- src/compiler/types.ts | 2 ++ src/compiler/utilities.ts | 4 ---- src/server/editorServices.ts | 2 +- src/server/project.ts | 8 +++++--- src/server/session.ts | 2 +- src/services/services.ts | 1 - src/services/sourcemaps.ts | 4 +--- 8 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 9da4b2efe06..78e5f314879 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -814,7 +814,7 @@ namespace ts { let projectReferenceRedirects: Map | undefined; let mapFromFileToProjectReferenceRedirects: Map | undefined; let mapFromToProjectReferenceRedirectSource: Map | undefined; - const useSourceOfReference = useSourceInsteadOfReferenceRedirect(host); + const useSourceOfReference = !!host.useSourceInsteadOfReferenceRedirect && host.useSourceInsteadOfReferenceRedirect(); const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options); const structuralIsReused = tryReuseStructureFromOldProgram(); @@ -964,6 +964,7 @@ namespace ts { getResolvedProjectReferenceToRedirect, getResolvedProjectReferenceByPath, forEachResolvedProjectReference, + isSourceOfProjectReferenceRedirect, emitBuildInfo }; @@ -2496,6 +2497,10 @@ namespace ts { return mapFromToProjectReferenceRedirectSource.get(toPath(file)); } + function isSourceOfProjectReferenceRedirect(fileName: string) { + return useSourceOfReference && !!getResolvedProjectReferenceToRedirect(fileName); + } + function forEachProjectReference( projectReferences: ReadonlyArray | undefined, resolvedProjectReferences: ReadonlyArray | undefined, diff --git a/src/compiler/types.ts b/src/compiler/types.ts index ff0aba6acad..16ea47beecc 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2993,6 +2993,7 @@ namespace ts { /*@internal*/ getResolvedProjectReferenceToRedirect(fileName: string): ResolvedProjectReference | undefined; /*@internal*/ forEachResolvedProjectReference(cb: (resolvedProjectReference: ResolvedProjectReference | undefined, resolvedProjectReferencePath: Path) => T | undefined): T | undefined; /*@internal*/ getResolvedProjectReferenceByPath(projectReferencePath: Path): ResolvedProjectReference | undefined; + /*@internal*/ isSourceOfProjectReferenceRedirect(fileName: string): boolean; /*@internal*/ getProgramBuildInfo?(): ProgramBuildInfo | undefined; /*@internal*/ emitBuildInfo(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken): EmitResult; } @@ -3090,6 +3091,7 @@ namespace ts { getSourceFile(fileName: string): SourceFile | undefined; getResolvedTypeReferenceDirectives(): ReadonlyMap; getProjectReferenceRedirect(fileName: string): string | undefined; + isSourceOfProjectReferenceRedirect(fileName: string): boolean; readonly redirectTargetsMap: RedirectTargetsMap; } diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 47877e1b27f..562d066b64e 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -4616,10 +4616,6 @@ namespace ts { return false; } } - - export function useSourceInsteadOfReferenceRedirect(host: { useSourceInsteadOfReferenceRedirect?(): boolean; }) { - return host.useSourceInsteadOfReferenceRedirect && host.useSourceInsteadOfReferenceRedirect(); - } } namespace ts { diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index e379d1fda2c..6fea0bc4171 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -2570,7 +2570,7 @@ namespace ts.server { /*@internal*/ getOriginalLocationEnsuringConfiguredProject(project: Project, location: DocumentPosition): DocumentPosition | undefined { - const originalLocation = useSourceInsteadOfReferenceRedirect(project) && project.getResolvedProjectReferenceToRedirect(location.fileName) ? + const originalLocation = project.isSourceOfProjectReferenceRedirect(location.fileName) ? location : project.getSourceMapper().tryGetSourcePosition(location); if (!originalLocation) return undefined; diff --git a/src/server/project.ts b/src/server/project.ts index 4e038b94773..cd5a3fec855 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -196,9 +196,6 @@ namespace ts.server { /*@internal*/ originalConfiguredProjects: Map | undefined; - /*@internal*/ - useSourceInsteadOfReferenceRedirect?: () => boolean; - /*@internal*/ getResolvedProjectReferenceToRedirect(_fileName: string): ResolvedProjectReference | undefined { return undefined; @@ -1231,6 +1228,11 @@ namespace ts.server { this.rootFilesMap.delete(info.path); } + /*@internal*/ + isSourceOfProjectReferenceRedirect(fileName: string) { + return !!this.program && this.program.isSourceOfProjectReferenceRedirect(fileName); + } + protected enableGlobalPlugins(options: CompilerOptions, pluginConfigOverrides: Map | undefined) { const host = this.projectService.host; diff --git a/src/server/session.ts b/src/server/session.ts index 088a3a1a249..ff339b06a81 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -443,7 +443,7 @@ namespace ts.server { function getDefinitionInProject(definition: DocumentPosition | undefined, definingProject: Project, project: Project): DocumentPosition | undefined { if (!definition || project.containsFile(toNormalizedPath(definition.fileName))) return definition; - const mappedDefinition = useSourceInsteadOfReferenceRedirect(definingProject) && definingProject.getResolvedProjectReferenceToRedirect(definition.fileName) ? + const mappedDefinition = definingProject.isSourceOfProjectReferenceRedirect(definition.fileName) ? definition : definingProject.getLanguageService().getSourceMapper().tryGetGeneratedPosition(definition); return mappedDefinition && project.containsFile(toNormalizedPath(mappedDefinition.fileName)) ? mappedDefinition : undefined; diff --git a/src/services/services.ts b/src/services/services.ts index 7de7934653e..2f9ba6eec94 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1151,7 +1151,6 @@ namespace ts { fileExists: maybeBind(host, host.fileExists), readFile: maybeBind(host, host.readFile), getDocumentPositionMapper: maybeBind(host, host.getDocumentPositionMapper), - useSourceInsteadOfReferenceRedirect: maybeBind(host, host.useSourceInsteadOfReferenceRedirect), getSourceFileLike: maybeBind(host, host.getSourceFileLike), log }); diff --git a/src/services/sourcemaps.ts b/src/services/sourcemaps.ts index c4c14e58686..6ab656b4236 100644 --- a/src/services/sourcemaps.ts +++ b/src/services/sourcemaps.ts @@ -17,7 +17,6 @@ namespace ts { readFile?(path: string, encoding?: string): string | undefined; getSourceFileLike?(fileName: string): SourceFileLike | undefined; getDocumentPositionMapper?(generatedFileName: string, sourceFileName?: string): DocumentPositionMapper | undefined; - /* @internal */ useSourceInsteadOfReferenceRedirect?(): boolean; log(s: string): void; } @@ -72,8 +71,7 @@ namespace ts { const program = host.getProgram()!; // If this is source file of project reference source (instead of redirect) there is no generated position - if (useSourceInsteadOfReferenceRedirect(host) && - program.getResolvedProjectReferenceToRedirect(sourceFile.fileName)) { + if (program.isSourceOfProjectReferenceRedirect(sourceFile.fileName)) { return undefined; } From b5737fc535701caff9b197b3cba6dd4c832e745f Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 2 Jul 2019 16:29:09 -0700 Subject: [PATCH 015/159] Refactor tests so its easy to edit and reason about them --- src/harness/virtualFileSystemWithWatch.ts | 4 +- src/testRunner/unittests/tsserver/helpers.ts | 4 +- .../unittests/tsserver/projectReferences.ts | 1321 +++++++++++------ 3 files changed, 835 insertions(+), 494 deletions(-) diff --git a/src/harness/virtualFileSystemWithWatch.ts b/src/harness/virtualFileSystemWithWatch.ts index f49f15cadc2..9e615a02638 100644 --- a/src/harness/virtualFileSystemWithWatch.ts +++ b/src/harness/virtualFileSystemWithWatch.ts @@ -196,8 +196,8 @@ interface Array {}` } } - export function checkWatchedFiles(host: TestServerHost, expectedFiles: string[]) { - checkMapKeys("watchedFiles", host.watchedFiles, expectedFiles); + export function checkWatchedFiles(host: TestServerHost, expectedFiles: string[], additionalInfo?: string) { + checkMapKeys(`watchedFiles:: ${additionalInfo || ""}::`, host.watchedFiles, expectedFiles); } export function checkWatchedFilesDetailed(host: TestServerHost, expectedFiles: ReadonlyMap): void; diff --git a/src/testRunner/unittests/tsserver/helpers.ts b/src/testRunner/unittests/tsserver/helpers.ts index 1c2383ab004..1c6bd4e9f59 100644 --- a/src/testRunner/unittests/tsserver/helpers.ts +++ b/src/testRunner/unittests/tsserver/helpers.ts @@ -488,8 +488,8 @@ namespace ts.projectSystem { checkArray("Open files", arrayFrom(projectService.openFiles.keys(), path => projectService.getScriptInfoForPath(path as Path)!.fileName), expectedFiles.map(file => file.path)); } - export function checkScriptInfos(projectService: server.ProjectService, expectedFiles: ReadonlyArray) { - checkArray("ScriptInfos files", arrayFrom(projectService.filenameToScriptInfo.values(), info => info.fileName), expectedFiles); + export function checkScriptInfos(projectService: server.ProjectService, expectedFiles: ReadonlyArray, additionInfo?: string) { + checkArray(`ScriptInfos files: ${additionInfo || ""}`, arrayFrom(projectService.filenameToScriptInfo.values(), info => info.fileName), expectedFiles); } export function protocolLocationFromSubstring(str: string, substring: string): protocol.Location { diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index 1eb7e8ecd18..c5712df2e1a 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -150,66 +150,17 @@ fn5(); const files = [dependencyTs, dependencyConfig, mainTs, mainConfig, libFile, randomFile, randomConfig]; - function verifyScriptInfos(session: TestSession, host: TestServerHost, openInfos: ReadonlyArray, closedInfos: ReadonlyArray, otherWatchedFiles: ReadonlyArray) { - checkScriptInfos(session.getProjectService(), openInfos.concat(closedInfos)); - checkWatchedFiles(host, closedInfos.concat(otherWatchedFiles).map(f => f.toLowerCase())); + function verifyScriptInfos(session: TestSession, host: TestServerHost, openInfos: ReadonlyArray, closedInfos: ReadonlyArray, otherWatchedFiles: ReadonlyArray, additionalInfo: string) { + checkScriptInfos(session.getProjectService(), openInfos.concat(closedInfos), additionalInfo); + checkWatchedFiles(host, closedInfos.concat(otherWatchedFiles).map(f => f.toLowerCase()), additionalInfo); } - function verifyInfosWithRandom(session: TestSession, host: TestServerHost, openInfos: ReadonlyArray, closedInfos: ReadonlyArray, otherWatchedFiles: ReadonlyArray) { - verifyScriptInfos(session, host, openInfos.concat(randomFile.path), closedInfos, otherWatchedFiles.concat(randomConfig.path)); + function verifyInfosWithRandom(session: TestSession, host: TestServerHost, openInfos: ReadonlyArray, closedInfos: ReadonlyArray, otherWatchedFiles: ReadonlyArray, reqName: string) { + verifyScriptInfos(session, host, openInfos.concat(randomFile.path), closedInfos, otherWatchedFiles.concat(randomConfig.path), reqName); } function verifyOnlyRandomInfos(session: TestSession, host: TestServerHost) { - verifyScriptInfos(session, host, [randomFile.path], [libFile.path], [randomConfig.path]); - } - - // Returns request and expected Response, expected response when no map file - interface SessionAction { - reqName: string; - request: Partial; - expectedResponse: Response; - expectedResponseNoMap?: Response; - expectedResponseNoDts?: Response; - requestDependencyChange?: Partial; - expectedResponseDependencyChange: Response; - } - function gotoDefintinionFromMainTs(fn: number): SessionAction { - const textSpan = usageSpan(fn); - const definition: protocol.FileSpan = { file: dependencyTs.path, ...declarationSpan(fn) }; - const declareSpaceLength = "declare ".length; - return { - reqName: "goToDef", - request: { - command: protocol.CommandTypes.DefinitionAndBoundSpan, - arguments: { file: mainTs.path, ...textSpan.start } - }, - expectedResponse: { - // To dependency - definitions: [definition], - textSpan - }, - expectedResponseNoMap: { - // To the dts - definitions: [{ - file: dtsPath, - start: { line: fn, offset: definition.start.offset + declareSpaceLength }, - end: { line: fn, offset: definition.end.offset + declareSpaceLength }, - contextStart: { line: fn, offset: 1 }, - contextEnd: { line: fn, offset: 37 } - }], - textSpan - }, - expectedResponseNoDts: { - // To import declaration - definitions: [{ file: mainTs.path, ...importSpan(fn) }], - textSpan - }, - expectedResponseDependencyChange: { - // Definition on fn + 1 line - definitions: [{ file: dependencyTs.path, ...declarationSpan(fn + 1) }], - textSpan - } - }; + verifyScriptInfos(session, host, [randomFile.path], [libFile.path], [randomConfig.path], "Random"); } function declarationSpan(fn: number): protocol.TextSpanWithContext { @@ -232,11 +183,93 @@ fn5(); return { start: { line: fn + 8, offset: 1 }, end: { line: fn + 8, offset: 4 } }; } - function renameFromDependencyTs(fn: number): SessionAction { + function goToDefFromMainTs(fn: number): Action { + const textSpan = usageSpan(fn); + const definition: protocol.FileSpan = { file: dependencyTs.path, ...declarationSpan(fn) }; + return { + reqName: "goToDef", + request: { + command: protocol.CommandTypes.DefinitionAndBoundSpan, + arguments: { file: mainTs.path, ...textSpan.start } + }, + expectedResponse: { + // To dependency + definitions: [definition], + textSpan + } + }; + } + + function goToDefFromMainTsWithNoMap(fn: number): Action { + const textSpan = usageSpan(fn); + const definition = declarationSpan(fn); + const declareSpaceLength = "declare ".length; + return { + reqName: "goToDef", + request: { + command: protocol.CommandTypes.DefinitionAndBoundSpan, + arguments: { file: mainTs.path, ...textSpan.start } + }, + expectedResponse: { + // To the dts + definitions: [{ + file: dtsPath, + start: { line: fn, offset: definition.start.offset + declareSpaceLength }, + end: { line: fn, offset: definition.end.offset + declareSpaceLength }, + contextStart: { line: fn, offset: 1 }, + contextEnd: { line: fn, offset: 37 } + }], + textSpan + } + }; + } + + function goToDefFromMainTsWithNoDts(fn: number): Action { + const textSpan = usageSpan(fn); + return { + reqName: "goToDef", + request: { + command: protocol.CommandTypes.DefinitionAndBoundSpan, + arguments: { file: mainTs.path, ...textSpan.start } + }, + expectedResponse: { + // To import declaration + definitions: [{ file: mainTs.path, ...importSpan(fn) }], + textSpan + } + }; + } + + function goToDefFromMainTsWithDependencyChange(fn: number): Action { + const textSpan = usageSpan(fn); + return { + reqName: "goToDef", + request: { + command: protocol.CommandTypes.DefinitionAndBoundSpan, + arguments: { file: mainTs.path, ...textSpan.start } + }, + expectedResponse: { + // Definition on fn + 1 line + definitions: [{ file: dependencyTs.path, ...declarationSpan(fn + 1) }], + textSpan + } + }; + } + + function goToDefFromMainTsProjectInfoVerifier(withRefs: boolean): ProjectInfoVerifier { + return { + openFile: mainTs, + openFileLastLine: 14, + configFile: mainConfig, + expectedProjectActualFiles: withRefs ? + [mainTs.path, libFile.path, mainConfig.path, dependencyTs.path] : + [mainTs.path, libFile.path, mainConfig.path, dtsPath] + }; + } + + function renameFromDependencyTs(fn: number): Action { const defSpan = declarationSpan(fn); const { contextStart: _, contextEnd: _1, ...triggerSpan } = defSpan; - const defSpanPlusOne = declarationSpan(fn + 1); - const { contextStart: _2, contextEnd: _3, ...triggerSpanPlusOne } = defSpanPlusOne; return { reqName: "rename", request: { @@ -256,30 +289,37 @@ fn5(); locs: [ { file: dependencyTs.path, locs: [defSpan] } ] - }, - requestDependencyChange: { - command: protocol.CommandTypes.Rename, - arguments: { file: dependencyTs.path, ...triggerSpanPlusOne.start } - }, - expectedResponseDependencyChange: { - info: { - canRename: true, - fileToRename: undefined, - displayName: `fn${fn}`, - fullDisplayName: `"${dependecyLocation}/FnS".fn${fn}`, - kind: ScriptElementKind.functionElement, - kindModifiers: "export", - triggerSpan: triggerSpanPlusOne - }, - locs: [ - { file: dependencyTs.path, locs: [defSpanPlusOne] } - ] } }; } - function renameFromDependencyTsWithBothProjectsOpen(fn: number): SessionAction { - const { reqName, request, expectedResponse, expectedResponseDependencyChange, requestDependencyChange } = renameFromDependencyTs(fn); + function renameFromDependencyTsWithDependencyChange(fn: number): Action { + const { expectedResponse: { info, locs }, ...rest } = renameFromDependencyTs(fn + 1); + + return { + ...rest, + expectedResponse: { + info: { + ...info as protocol.RenameInfoSuccess, + displayName: `fn${fn}`, + fullDisplayName: `"${dependecyLocation}/FnS".fn${fn}`, + }, + locs + } + }; + } + + function renameFromDependencyTsProjectInfoVerifier(): ProjectInfoVerifier { + return { + openFile: dependencyTs, + openFileLastLine: 6, + configFile: dependencyConfig, + expectedProjectActualFiles: [dependencyTs.path, libFile.path, dependencyConfig.path] + }; + } + + function renameFromDependencyTsWithBothProjectsOpen(fn: number): Action { + const { reqName, request, expectedResponse } = renameFromDependencyTs(fn); const { info, locs } = expectedResponse; return { reqName, @@ -296,15 +336,20 @@ fn5(); ] } ] - }, - // Only dependency result - expectedResponseNoMap: expectedResponse, - expectedResponseNoDts: expectedResponse, - requestDependencyChange, - expectedResponseDependencyChange: { - info: expectedResponseDependencyChange.info, + } + }; + } + + function renameFromDependencyTsWithBothProjectsOpenWithDependencyChange(fn: number): Action { + const { reqName, request, expectedResponse, } = renameFromDependencyTsWithDependencyChange(fn); + const { info, locs } = expectedResponse; + return { + reqName, + request, + expectedResponse: { + info, locs: [ - expectedResponseDependencyChange.locs[0], + locs[0], { file: mainTs.path, locs: [ @@ -317,401 +362,453 @@ fn5(); }; } - // Returns request and expected Response - type SessionActionGetter = (fn: number) => SessionAction; - // Open File, expectedProjectActualFiles, actionGetter, openFileLastLine - interface DocumentPositionMapperVerifier { + interface Action { + reqName: string; + request: Partial; + expectedResponse: Response; + } + interface ActionInfo { + action: (fn: number) => Action; + closedInfos: () => readonly string[]; + otherWatchedFiles: () => readonly string[]; + expectsDts: boolean; + expectsMap: boolean; + } + type ActionKey = keyof ActionInfoVerifier; + type ActionInfoGetterFn = () => ActionInfo; + type ActionInfoGetter = ActionInfoGetterFn | ActionKey; + interface ProjectInfoVerifier { openFile: File; - expectedProjectActualFiles: ReadonlyArray; - actionGetter: SessionActionGetter; openFileLastLine: number; + configFile: File; + expectedProjectActualFiles: readonly string[]; + } + interface ActionInfoVerifier { + main: ActionInfoGetter; + noMap: ActionInfoGetter; + mapFileCreated: ActionInfoGetter; + mapFileDeleted: ActionInfoGetter; + noDts: ActionInfoGetter; + dtsFileCreated: ActionInfoGetter; + dtsFileDeleted: ActionInfoGetter; + dependencyChange: ActionInfoGetter; + noBuild: ActionInfoGetter; + } + interface DocumentPositionMapperVerifier extends ProjectInfoVerifier, ActionInfoVerifier { } - function verifyDocumentPositionMapperUpdates( - mainScenario: string, - verifier: ReadonlyArray, - closedInfos: ReadonlyArray, - withRefs: boolean) { - const openFiles = verifier.map(v => v.openFile); - const expectedProjectActualFiles = verifier.map(v => v.expectedProjectActualFiles); - const openFileLastLines = verifier.map(v => v.openFileLastLine); + interface VerifierAndWithRefs { + withRefs: boolean; + verifier: (withRefs: boolean) => readonly DocumentPositionMapperVerifier[]; + } - const configFiles = openFiles.map(openFile => `${getDirectoryPath(openFile.path)}/tsconfig.json`); - const openInfos = openFiles.map(f => f.path); - // When usage and dependency are used, dependency config is part of closedInfo so ignore - const otherWatchedFiles = withRefs && verifier.length > 1 ? [configFiles[0]] : configFiles; - function openTsFile(onHostCreate?: (host: TestServerHost) => void) { - const host = createHost(files, [mainConfig.path]); - if (!withRefs) { - // Erase project reference - host.writeFile(mainConfig.path, JSON.stringify({ - compilerOptions: { composite: true, declarationMap: true } - })); - } - if (onHostCreate) { - onHostCreate(host); - } - const session = createSession(host); - openFilesForSession([...openFiles, randomFile], session); - return { host, session }; + function openFiles(verifiers: readonly DocumentPositionMapperVerifier[]) { + return verifiers.map(v => v.openFile); + } + interface OpenTsFile extends VerifierAndWithRefs { + onHostCreate?: (host: TestServerHost) => void; + } + function openTsFile({ withRefs, verifier, onHostCreate }: OpenTsFile) { + const host = createHost(files, [mainConfig.path]); + if (!withRefs) { + // Erase project reference + host.writeFile(mainConfig.path, JSON.stringify({ + compilerOptions: { composite: true, declarationMap: true } + })); } - - function checkProject(session: TestSession, noDts?: true) { - const service = session.getProjectService(); - checkNumberOfProjects(service, { configuredProjects: 1 + verifier.length }); - configFiles.forEach((configFile, index) => { - checkProjectActualFiles( - service.configuredProjects.get(configFile)!, - noDts ? - expectedProjectActualFiles[index].filter(f => f.toLowerCase() !== dtsPath) : - expectedProjectActualFiles[index] - ); - }); + if (onHostCreate) { + onHostCreate(host); } + const session = createSession(host); + const verifiers = verifier(withRefs); + openFilesForSession([...openFiles(verifiers), randomFile], session); + return { host, session, verifiers }; + } - function verifyInfos(session: TestSession, host: TestServerHost) { - verifyInfosWithRandom(session, host, openInfos, closedInfos, otherWatchedFiles); - } - - function verifyInfosWhenNoMapFile(session: TestSession, host: TestServerHost, dependencyTsOK?: boolean) { - const dtsMapClosedInfo = firstDefined(closedInfos, f => f.toLowerCase() === dtsMapPath ? f : undefined); - verifyInfosWithRandom( - session, - host, - openInfos, - closedInfos.filter(f => f !== dtsMapClosedInfo && (dependencyTsOK || f !== dependencyTs.path)), - dtsMapClosedInfo ? otherWatchedFiles.concat(dtsMapClosedInfo) : otherWatchedFiles + function checkProject(session: TestSession, verifiers: readonly DocumentPositionMapperVerifier[], noDts?: true) { + const service = session.getProjectService(); + checkNumberOfProjects(service, { configuredProjects: 1 + verifiers.length }); + verifiers.forEach(({ configFile, expectedProjectActualFiles }) => { + checkProjectActualFiles( + service.configuredProjects.get(configFile.path.toLowerCase())!, + noDts ? + expectedProjectActualFiles.filter(f => f.toLowerCase() !== dtsPath) : + expectedProjectActualFiles ); - } + }); + } - function verifyInfosWhenNoDtsFile(session: TestSession, host: TestServerHost, watchDts: boolean, dependencyTsOk?: boolean, depedencyMapOk?: boolean) { - const dtsMapClosedInfo = firstDefined(closedInfos, f => f.toLowerCase() === dtsMapPath ? f : undefined); - const dtsClosedInfo = firstDefined(closedInfos, f => f.toLowerCase() === dtsPath ? f : undefined); - verifyInfosWithRandom( - session, - host, - openInfos, - closedInfos.filter(f => (depedencyMapOk || f !== dtsMapClosedInfo) && f !== dtsClosedInfo && (dependencyTsOk || f !== dependencyTs.path)), - dtsClosedInfo && watchDts ? - otherWatchedFiles.concat(dtsClosedInfo) : - otherWatchedFiles - ); + function firstAction(session: TestSession, verifiers: readonly DocumentPositionMapperVerifier[]) { + for (const { action } of getActionInfo(verifiers, "main")) { + const { request } = action(1); + session.executeCommandSeq(request); } + } - function verifyDocumentPositionMapper(session: TestSession, dependencyMap: server.ScriptInfo | undefined, documentPositionMapper: server.ScriptInfo["documentPositionMapper"], notEqual?: true) { - assert.strictEqual(session.getProjectService().filenameToScriptInfo.get(dtsMapPath), dependencyMap); - if (dependencyMap) { - if (notEqual) { - assert.notStrictEqual(dependencyMap.documentPositionMapper, documentPositionMapper); - } - else { - assert.strictEqual(dependencyMap.documentPositionMapper, documentPositionMapper); - } + function verifyAction(session: TestSession, { reqName, request, expectedResponse }: Action) { + const { response } = session.executeCommandSeq(request); + assert.deepEqual(response, expectedResponse, `Failed Request: ${reqName}`); + } + + function verifyScriptInfoPresence(session: TestSession, path: string, expectedToBePresent: boolean, reqName: string) { + const info = session.getProjectService().filenameToScriptInfo.get(path); + if (expectedToBePresent) { + assert.isDefined(info, `${reqName}:: ${path} expected to be present`); + } + else { + assert.isUndefined(info, `${reqName}:: ${path} expected to be not present`); + } + return info; + } + + function verifyDocumentPositionMapper(session: TestSession, dependencyMap: server.ScriptInfo | undefined, documentPositionMapper: server.ScriptInfo["documentPositionMapper"], equal: boolean) { + assert.strictEqual(session.getProjectService().filenameToScriptInfo.get(dtsMapPath), dependencyMap); + if (dependencyMap) { + if (equal) { + assert.strictEqual(dependencyMap.documentPositionMapper, documentPositionMapper); + } + else { + assert.notStrictEqual(dependencyMap.documentPositionMapper, documentPositionMapper); } } + } - function action(verifier: DocumentPositionMapperVerifier, fn: number, session: TestSession, useDependencyChange?: boolean) { - const { reqName, request, expectedResponse, expectedResponseNoMap, expectedResponseNoDts, requestDependencyChange, expectedResponseDependencyChange } = verifier.actionGetter(fn); - const { response } = session.executeCommandSeq(useDependencyChange ? requestDependencyChange || request : request); - return { reqName, response, expectedResponse, expectedResponseNoMap, expectedResponseNoDts, expectedResponseDependencyChange, verifier }; - } - - function firstAction(session: TestSession) { - verifier.forEach(v => action(v, 1, session)); - } - - function verifyAllFnActionWorker(session: TestSession, verifyAction: (result: ReturnType, dtsInfo: server.ScriptInfo | undefined, isFirst: boolean) => void, dtsAbsent?: boolean, useDependencyChange?: boolean) { - // action - let isFirst = true; - for (const v of verifier) { - for (let fn = 1; fn <= 5; fn++) { - const result = action(v, fn, session, useDependencyChange); - const dtsInfo = session.getProjectService().filenameToScriptInfo.get(dtsPath); - if (dtsAbsent) { - assert.isUndefined(dtsInfo); - } - else { - assert.isDefined(dtsInfo); - } - verifyAction(result, dtsInfo, isFirst); - isFirst = false; - } + function getActionInfo(verifiers: readonly DocumentPositionMapperVerifier[], actionKey: ActionKey): ActionInfo[] { + return verifiers.map(v => { + let actionInfoGetter = v[actionKey]; + while (isString(actionInfoGetter)) { + actionInfoGetter = v[actionInfoGetter]; } - } + return actionInfoGetter(); + }); + } - function dtsAbsent() { - return withRefs && !contains(closedInfos, dtsPath, (a, b) => a.toLowerCase() === b.toLowerCase()); - } - - function verifyAllFnAction( - session: TestSession, - host: TestServerHost, - firstDocumentPositionMapperNotEquals?: true, - dependencyMap?: server.ScriptInfo, - documentPositionMapper?: server.ScriptInfo["documentPositionMapper"], - useDependencyChange?: boolean - ) { - // action - verifyAllFnActionWorker(session, ({ reqName, response, expectedResponse, expectedResponseDependencyChange }, dtsInfo, isFirst) => { - assert.deepEqual(response, useDependencyChange ? expectedResponseDependencyChange || expectedResponse : expectedResponse, `Failed on ${reqName}`); - verifyInfos(session, host); - if (dtsInfo) assert.equal(dtsInfo.sourceMapFilePath, dtsMapPath); - if (isFirst) { - if (dependencyMap) { - verifyDocumentPositionMapper(session, dependencyMap, documentPositionMapper, firstDocumentPositionMapperNotEquals); - documentPositionMapper = dependencyMap.documentPositionMapper; - } - else { - dependencyMap = session.getProjectService().filenameToScriptInfo.get(dtsMapPath); - documentPositionMapper = dependencyMap && dependencyMap.documentPositionMapper; - } - } - else { - verifyDocumentPositionMapper(session, dependencyMap, documentPositionMapper); - } - }, dtsAbsent(), useDependencyChange); - return { dependencyMap, documentPositionMapper }; - } - - function verifyAllFnActionWithNoMap( - session: TestSession, - host: TestServerHost, - dependencyTsOK?: true - ) { - let sourceMapFilePath: server.ScriptInfo["sourceMapFilePath"]; - // action - verifyAllFnActionWorker(session, ({ reqName, response, expectedResponse, expectedResponseNoMap }, dtsInfo, isFirst) => { - assert.deepEqual(response, withRefs ? expectedResponse : expectedResponseNoMap || expectedResponse, `Failed on ${reqName}`); - verifyInfosWhenNoMapFile(session, host, dependencyTsOK); - assert.isUndefined(session.getProjectService().filenameToScriptInfo.get(dtsMapPath)); - if (!withRefs) { - if (isFirst) { - assert.isNotString(dtsInfo!.sourceMapFilePath); - assert.isNotFalse(dtsInfo!.sourceMapFilePath); - assert.isDefined(dtsInfo!.sourceMapFilePath); - sourceMapFilePath = dtsInfo!.sourceMapFilePath; - } - else { - assert.equal(dtsInfo!.sourceMapFilePath, sourceMapFilePath); - } - } - }, dtsAbsent()); - return sourceMapFilePath; - } - - function verifyAllFnActionWithNoDts( - session: TestSession, - host: TestServerHost, - dependencyTsAndMapOk?: true - ) { - // action - verifyAllFnActionWorker(session, ({ reqName, response, expectedResponse, expectedResponseNoDts, verifier }) => { - assert.deepEqual(response, withRefs ? expectedResponse : expectedResponseNoDts || expectedResponse, `Failed on ${reqName}`); - verifyInfosWhenNoDtsFile( + interface VerifyAllFnAction { + session: TestSession; + host: TestServerHost; + verifiers: readonly DocumentPositionMapperVerifier[]; + actionKey: ActionKey; + sourceMapPath?: server.ScriptInfo["sourceMapFilePath"]; + dependencyMap?: server.ScriptInfo | undefined; + documentPositionMapper?: server.ScriptInfo["documentPositionMapper"]; + firstEquals?: boolean; + } + interface VerifyAllFnActionResult { + actionInfos: readonly ActionInfo[]; + actionKey: ActionKey; + dependencyMap: server.ScriptInfo | undefined; + documentPositionMapper: server.ScriptInfo["documentPositionMapper"] | undefined; + } + function verifyAllFnAction({ + session, + host, + verifiers, + actionKey, + dependencyMap, + documentPositionMapper, + firstEquals + }: VerifyAllFnAction): VerifyAllFnActionResult { + const actionInfos = getActionInfo(verifiers, actionKey); + let sourceMapPath: server.ScriptInfo["sourceMapFilePath"] | undefined; + // action + let first = true; + for (const { action, closedInfos, otherWatchedFiles, expectsDts, expectsMap } of actionInfos) { + for (let fn = 1; fn <= 5; fn++) { + const fnAction = action(fn); + verifyAction(session, fnAction); + const dtsInfo = verifyScriptInfoPresence(session, dtsPath, expectsDts, fnAction.reqName); + const dtsMapInfo = verifyScriptInfoPresence(session, dtsMapPath, expectsMap, fnAction.reqName); + verifyInfosWithRandom( session, host, - // Even when project actual file contains dts, its not watched because the dts is in another folder and module resolution just fails - // instead of succeeding to source file and then mapping using project reference (When using usage location) - // But watched if sourcemapper is in source project since we need to keep track of dts to update the source mapper for any potential usages - verifier.expectedProjectActualFiles.every(f => f.toLowerCase() !== dtsPath), - /*dependencyTsOk*/ withRefs || dependencyTsAndMapOk, - /*dependencyMapOk*/ dependencyTsAndMapOk + openFiles(verifiers).map(f => f.path), + closedInfos(), + otherWatchedFiles(), + `${actionKey}:: ${fnAction.reqName}` ); - }, /*dtsAbsent*/ true); + + if (dtsInfo) { + if (first) { + if (dtsMapInfo) { + assert.equal(dtsInfo.sourceMapFilePath, dtsMapPath, `${actionKey}:: ${fnAction.reqName}`); + } + else { + assert.isNotString(dtsInfo.sourceMapFilePath); + assert.isNotFalse(dtsInfo.sourceMapFilePath); + assert.isDefined(dtsInfo.sourceMapFilePath); + } + } + else { + assert.equal(dtsInfo.sourceMapFilePath, sourceMapPath, `${actionKey}:: ${fnAction.reqName}`); + } + } + if (!first || firstEquals !== undefined) { + verifyDocumentPositionMapper(session, dependencyMap, documentPositionMapper, !first || !!firstEquals); + } + sourceMapPath = dtsInfo && dtsInfo.sourceMapFilePath; + dependencyMap = dtsMapInfo; + documentPositionMapper = dependencyMap && dependencyMap.documentPositionMapper; + first = false; + } } - function verifyScenarioWithChangesWorker( - change: (host: TestServerHost, session: TestSession) => void, - afterActionDocumentPositionMapperNotEquals: true | undefined, - timeoutBeforeAction: boolean, - useDependencyChange?: boolean - ) { - const { host, session } = openTsFile(); + return { actionInfos, actionKey, dependencyMap, documentPositionMapper }; + } + + function verifyScriptInfoCollection( + session: TestSession, + host: TestServerHost, + verifiers: readonly DocumentPositionMapperVerifier[], + { dependencyMap, documentPositionMapper, actionInfos, actionKey }: VerifyAllFnActionResult + ) { + // Collecting at this point retains dependency.d.ts and map + closeFilesForSession([randomFile], session); + openFilesForSession([randomFile], session); + + const { closedInfos, otherWatchedFiles } = last(actionInfos); + verifyInfosWithRandom( + session, + host, + openFiles(verifiers).map(f => f.path), + closedInfos(), + otherWatchedFiles(), + `${actionKey} Collection` + ); + verifyDocumentPositionMapper(session, dependencyMap, documentPositionMapper, /*equal*/ true); + + // Closing open file, removes dependencies too + closeFilesForSession([...openFiles(verifiers), randomFile], session); + openFilesForSession([randomFile], session); + verifyOnlyRandomInfos(session, host); + } + + function verifyScenarioAndScriptInfoCollection( + session: TestSession, + host: TestServerHost, + verifiers: readonly DocumentPositionMapperVerifier[], + actionKey: ActionKey, + noDts?: true + ) { + // Main scenario action + const result = verifyAllFnAction({ session, host, verifiers, actionKey }); + checkProject(session, verifiers, noDts); + verifyScriptInfoCollection(session, host, verifiers, result); + } + + function verifyScenarioWithChangesWorker( + { + scenarioName, + verifier, + withRefs, + change, + afterActionDocumentPositionMapperNotEquals, + afterChangeActionKey + }: VerifyScenarioWithChanges, + timeoutBeforeAction: boolean, + ) { + it(scenarioName, () => { + const { host, session, verifiers } = openTsFile({ verifier, withRefs }); // Create DocumentPositionMapper - firstAction(session); + firstAction(session, verifiers); const dependencyMap = session.getProjectService().filenameToScriptInfo.get(dtsMapPath); const documentPositionMapper = dependencyMap && dependencyMap.documentPositionMapper; // change - change(host, session); + change(host, session, verifiers); if (timeoutBeforeAction) { host.runQueuedTimeoutCallbacks(); - checkProject(session); - verifyDocumentPositionMapper(session, dependencyMap, documentPositionMapper); + checkProject(session, verifiers); + verifyDocumentPositionMapper(session, dependencyMap, documentPositionMapper, /*equal*/ true); } // action - verifyAllFnAction(session, host, afterActionDocumentPositionMapperNotEquals, dependencyMap, documentPositionMapper, useDependencyChange); - } - - function verifyScenarioWithChanges( - scenarioName: string, - change: (host: TestServerHost, session: TestSession) => void, - afterActionDocumentPositionMapperNotEquals?: true, - useDependencyChange?: boolean - ) { - describe(scenarioName, () => { - it("when timeout occurs before request", () => { - verifyScenarioWithChangesWorker(change, afterActionDocumentPositionMapperNotEquals, /*timeoutBeforeAction*/ true, useDependencyChange); - }); - - it("when timeout does not occur before request", () => { - verifyScenarioWithChangesWorker(change, afterActionDocumentPositionMapperNotEquals, /*timeoutBeforeAction*/ false, useDependencyChange); - }); - }); - } - - function verifyMainScenarioAndScriptInfoCollection(session: TestSession, host: TestServerHost) { - // Main scenario action - const { dependencyMap, documentPositionMapper } = verifyAllFnAction(session, host); - checkProject(session); - verifyInfos(session, host); - - // Collecting at this point retains dependency.d.ts and map - closeFilesForSession([randomFile], session); - openFilesForSession([randomFile], session); - verifyInfos(session, host); - verifyDocumentPositionMapper(session, dependencyMap, documentPositionMapper); - - // Closing open file, removes dependencies too - closeFilesForSession([...openFiles, randomFile], session); - openFilesForSession([randomFile], session); - verifyOnlyRandomInfos(session, host); - } - - function verifyMainScenarioAndScriptInfoCollectionWithNoMap(session: TestSession, host: TestServerHost, dependencyTsOKInScenario?: true) { - // Main scenario action - verifyAllFnActionWithNoMap(session, host, withRefs || dependencyTsOKInScenario); - - // Collecting at this point retains dependency.d.ts and map watcher - closeFilesForSession([randomFile], session); - openFilesForSession([randomFile], session); - verifyInfosWhenNoMapFile(session, host, withRefs); - - // Closing open file, removes dependencies too - closeFilesForSession([...openFiles, randomFile], session); - openFilesForSession([randomFile], session); - verifyOnlyRandomInfos(session, host); - } - - function verifyMainScenarioAndScriptInfoCollectionWithNoDts(session: TestSession, host: TestServerHost, dependencyTsAndMapOk?: true) { - // Main scenario action - verifyAllFnActionWithNoDts(session, host, dependencyTsAndMapOk); - - // Collecting at this point retains dependency.d.ts and map watcher - closeFilesForSession([randomFile], session); - openFilesForSession([randomFile], session); - verifyInfosWhenNoDtsFile( + verifyAllFnAction({ session, host, - !!forEach(verifier, v => v.expectedProjectActualFiles.every(f => f.toLowerCase() !== dtsPath)), - /*dependencyTsOk*/ withRefs - ); + verifiers, + actionKey: afterChangeActionKey, + dependencyMap, + documentPositionMapper, + firstEquals: !afterActionDocumentPositionMapperNotEquals + }); + }); + } - // Closing open file, removes dependencies too - closeFilesForSession([...openFiles, randomFile], session); - openFilesForSession([randomFile], session); - verifyOnlyRandomInfos(session, host); - } + interface VerifyScenarioWithChanges extends VerifierAndWithRefs { + scenarioName: string; + change: (host: TestServerHost, session: TestSession, verifiers: readonly DocumentPositionMapperVerifier[]) => void; + afterActionDocumentPositionMapperNotEquals?: true; + afterChangeActionKey: ActionKey; + } + function verifyScenarioWithChanges(verify: VerifyScenarioWithChanges) { + describe("when timeout occurs before request", () => { + verifyScenarioWithChangesWorker(verify, /*timeoutBeforeAction*/ true); + }); - function verifyScenarioWhenFileNotPresent( - scenarioName: string, - fileLocation: string, - verifyScenarioAndScriptInfoCollection: (session: TestSession, host: TestServerHost, dependencyTsOk?: true) => void, - noDts?: true - ) { - describe(scenarioName, () => { - it(mainScenario, () => { - const { host, session } = openTsFile(host => host.deleteFile(fileLocation)); - checkProject(session, noDts); + describe("when timeout does not occur before request", () => { + verifyScenarioWithChangesWorker(verify, /*timeoutBeforeAction*/ false); + }); + } - verifyScenarioAndScriptInfoCollection(session, host); + interface VerifyScenarioWhenFileNotPresent extends VerifierAndWithRefs { + scenarioName: string; + fileLocation: string; + fileNotPresentKey: ActionKey; + fileCreatedKey: ActionKey; + fileDeletedKey: ActionKey; + noDts?: true; + } + function verifyScenarioWhenFileNotPresent({ + scenarioName, + verifier, + withRefs, + fileLocation, + fileNotPresentKey, + fileCreatedKey, + fileDeletedKey, + noDts + }: VerifyScenarioWhenFileNotPresent) { + describe(scenarioName, () => { + it("when file is not present", () => { + const { host, session, verifiers } = openTsFile({ + verifier, + withRefs, + onHostCreate: host => host.deleteFile(fileLocation) }); + checkProject(session, verifiers, noDts); - it("when file is created", () => { - let fileContents: string | undefined; - const { host, session } = openTsFile(host => { + verifyScenarioAndScriptInfoCollection(session, host, verifiers, fileNotPresentKey, noDts); + }); + + it("when file is created after actions on projects", () => { + let fileContents: string | undefined; + const { host, session, verifiers } = openTsFile({ + verifier, + withRefs, + onHostCreate: host => { fileContents = host.readFile(fileLocation); host.deleteFile(fileLocation); - }); - firstAction(session); - - host.writeFile(fileLocation, fileContents!); - verifyMainScenarioAndScriptInfoCollection(session, host); + } }); + firstAction(session, verifiers); - it("when file is deleted", () => { - const { host, session } = openTsFile(); - firstAction(session); - - // The dependency file is deleted when orphan files are collected - host.deleteFile(fileLocation); - verifyScenarioAndScriptInfoCollection(session, host, /*dependencyTsOk*/ true); - }); + host.writeFile(fileLocation, fileContents!); + verifyScenarioAndScriptInfoCollection(session, host, verifiers, fileCreatedKey); }); - } + it("when file is deleted after actions on the projects", () => { + const { host, session, verifiers } = openTsFile({ verifier, withRefs }); + firstAction(session, verifiers); + + // The dependency file is deleted when orphan files are collected + host.deleteFile(fileLocation); + // Verify with deleted action key + const result = verifyAllFnAction({ session, host, verifiers, actionKey: fileDeletedKey }); + checkProject(session, verifiers, noDts); + + // Script info collection should behave as fileNotPresentKey + verifyScriptInfoCollection( + session, + host, + verifiers, + { + actionInfos: getActionInfo(verifiers, fileNotPresentKey), + actionKey: result.actionKey, + dependencyMap: undefined, + documentPositionMapper: undefined + } + ); + }); + }); + } + + function verifyScenarioWorker({ mainScenario, verifier }: VerifyScenario, withRefs: boolean) { it(mainScenario, () => { - const { host, session } = openTsFile(); - checkProject(session); - - verifyMainScenarioAndScriptInfoCollection(session, host); + const { host, session, verifiers } = openTsFile({ withRefs, verifier }); + checkProject(session, verifiers); + verifyScenarioAndScriptInfoCollection(session, host, verifiers, "main"); }); // Edit - verifyScenarioWithChanges( - "when usage file changes, document position mapper doesnt change", - (_host, session) => openFiles.forEach( - (openFile, index) => session.executeCommandSeq({ + verifyScenarioWithChanges({ + scenarioName: "when usage file changes, document position mapper doesnt change", + verifier, + withRefs, + change: (_host, session, verifiers) => verifiers.forEach( + verifier => session.executeCommandSeq({ command: protocol.CommandTypes.Change, - arguments: { file: openFile.path, line: openFileLastLines[index], offset: 1, endLine: openFileLastLines[index], endOffset: 1, insertString: "const x = 10;" } + arguments: { + file: verifier.openFile.path, + line: verifier.openFileLastLine, + offset: 1, + endLine: verifier.openFileLastLine, + endOffset: 1, + insertString: "const x = 10;" + } }) - ) - ); + ), + afterChangeActionKey: "main" + }); // Edit dts to add new fn - verifyScenarioWithChanges( - "when dependency .d.ts changes, document position mapper doesnt change", - host => host.writeFile( + verifyScenarioWithChanges({ + scenarioName: "when dependency .d.ts changes, document position mapper doesnt change", + verifier, + withRefs, + change: host => host.writeFile( dtsLocation, host.readFile(dtsLocation)!.replace( "//# sourceMappingURL=FnS.d.ts.map", `export declare function fn6(): void; //# sourceMappingURL=FnS.d.ts.map` ) - ) - ); + ), + afterChangeActionKey: "main" + }); // Edit map file to represent added new line - verifyScenarioWithChanges( - "when dependency file's map changes", - host => host.writeFile( + verifyScenarioWithChanges({ + scenarioName: "when dependency file's map changes", + verifier, + withRefs, + change: host => host.writeFile( dtsMapLocation, `{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"}` ), - /*afterActionDocumentPositionMapperNotEquals*/ true - ); + afterChangeActionKey: "main", + afterActionDocumentPositionMapperNotEquals: true + }); - verifyScenarioWhenFileNotPresent( - "when map file is not present", - dtsMapLocation, - verifyMainScenarioAndScriptInfoCollectionWithNoMap - ); + verifyScenarioWhenFileNotPresent({ + scenarioName: "with depedency files map file", + verifier, + withRefs, + fileLocation: dtsMapLocation, + fileNotPresentKey: "noMap", + fileCreatedKey: "mapFileCreated", + fileDeletedKey: "mapFileDeleted" + }); - verifyScenarioWhenFileNotPresent( - "when .d.ts file is not present", - dtsLocation, - verifyMainScenarioAndScriptInfoCollectionWithNoDts, - /*noDts*/ true - ); + verifyScenarioWhenFileNotPresent({ + scenarioName: "with depedency .d.ts file", + verifier, + withRefs, + fileLocation: dtsLocation, + fileNotPresentKey: "noDts", + fileCreatedKey: "dtsFileCreated", + fileDeletedKey: "dtsFileDeleted", + noDts: true + }); if (withRefs) { - verifyScenarioWithChanges( - "when defining project source changes", - (host, session) => { + verifyScenarioWithChanges({ + scenarioName: "when defining project source changes", + verifier, + withRefs, + change: (host, session, verifiers) => { // Make change, without rebuild of solution - if (contains(openInfos, dependencyTs.path)) { + if (contains(openFiles(verifiers), dependencyTs)) { session.executeCommandSeq({ command: protocol.CommandTypes.Change, arguments: { @@ -724,96 +821,340 @@ fn5(); ${dependencyTs.content}`); } }, - /*afterActionDocumentPositionMapperNotEquals*/ undefined, - /*useDepedencyChange*/ true - ); + afterChangeActionKey: "dependencyChange" + }); it("when d.ts file is not generated", () => { const host = createServerHost(files); const session = createSession(host); - openFilesForSession([...openFiles, randomFile], session); - - const expectedClosedInfos = closedInfos.filter(f => f.toLowerCase() !== dtsPath && f.toLowerCase() !== dtsMapPath); - // If closed infos includes dts and dtsMap, watch dts since its not present - const expectedWatchedFiles = closedInfos.length === expectedClosedInfos.length ? - otherWatchedFiles : - otherWatchedFiles.concat(dtsPath); - // Main scenario action - verifyAllFnActionWorker(session, ({ reqName, response, expectedResponse }) => { - assert.deepEqual(response, expectedResponse, `Failed on ${reqName}`); - verifyInfosWithRandom(session, host, openInfos, expectedClosedInfos, expectedWatchedFiles); - verifyDocumentPositionMapper(session, /*dependencyMap*/ undefined, /*documentPositionMapper*/ undefined); - }, /*dtsAbsent*/ true); - checkProject(session); - - // Collecting at this point retains dependency.d.ts and map - closeFilesForSession([randomFile], session); - openFilesForSession([randomFile], session); - verifyInfosWithRandom(session, host, openInfos, expectedClosedInfos, expectedWatchedFiles); - verifyDocumentPositionMapper(session, /*dependencyMap*/ undefined, /*documentPositionMapper*/ undefined); - - // Closing open file, removes dependencies too - closeFilesForSession([...openFiles, randomFile], session); - openFilesForSession([randomFile], session); - verifyOnlyRandomInfos(session, host); + const verifiers = verifier(withRefs); + openFilesForSession([...openFiles(verifiers), randomFile], session); + verifyScenarioAndScriptInfoCollection(session, host, verifiers, "noBuild"); }); } } - function verifyScenarios(withRefs: boolean) { - describe(withRefs ? "when main tsconfig has project reference" : "when main tsconfig doesnt have project reference", () => { - const usageVerifier: DocumentPositionMapperVerifier = { - openFile: mainTs, - expectedProjectActualFiles: withRefs ? - [mainTs.path, libFile.path, mainConfig.path, dependencyTs.path] : - [mainTs.path, libFile.path, mainConfig.path, dtsPath], - actionGetter: gotoDefintinionFromMainTs, - openFileLastLine: 14 - }; - describe("from project that uses dependency", () => { - const closedInfos = withRefs ? - [dependencyTs.path, dependencyConfig.path, libFile.path] : - [dependencyTs.path, libFile.path, dtsPath, dtsMapLocation]; - verifyDocumentPositionMapperUpdates( - "can go to definition correctly", - [usageVerifier], - closedInfos, - withRefs - ); - }); - - const definingVerifier: DocumentPositionMapperVerifier = { - openFile: dependencyTs, - expectedProjectActualFiles: [dependencyTs.path, libFile.path, dependencyConfig.path], - actionGetter: renameFromDependencyTs, - openFileLastLine: 6, - }; - describe("from defining project", () => { - const closedInfos = [libFile.path, dtsLocation, dtsMapLocation]; - verifyDocumentPositionMapperUpdates( - "rename locations from dependency", - [definingVerifier], - closedInfos, - withRefs - ); - }); - - describe("when opening depedency and usage project", () => { - const closedInfos = withRefs ? - [libFile.path, dependencyConfig.path] : - [libFile.path, dtsPath, dtsMapLocation]; - verifyDocumentPositionMapperUpdates( - "goto Definition in usage and rename locations from defining project", - [usageVerifier, { ...definingVerifier, actionGetter: renameFromDependencyTsWithBothProjectsOpen }], - closedInfos, - withRefs - ); - }); + interface VerifyScenario { + mainScenario: string; + verifier: (withRefs: boolean) => readonly DocumentPositionMapperVerifier[]; + } + function verifyScenario(scenario: VerifyScenario) { + describe("when main tsconfig doesnt have project reference", () => { + verifyScenarioWorker(scenario, /*withRefs*/ false); + }); + describe("when main tsconfig has project reference", () => { + verifyScenarioWorker(scenario, /*withRefs*/ true); }); } - verifyScenarios(/*withRefs*/ false); - verifyScenarios(/*withRefs*/ true); + describe("from project that uses dependency", () => { + function goToDefActionInfo(withRefs: boolean): ActionInfo { + return { + action: goToDefFromMainTs, + closedInfos: () => withRefs ? + [dependencyTs.path, dependencyConfig.path, libFile.path] : + [dependencyTs.path, libFile.path, dtsPath, dtsMapLocation], + otherWatchedFiles: () => [mainConfig.path], + expectsDts: !withRefs, // Dts script info present only if no project reference + expectsMap: !withRefs // Map script info present only if no project reference + }; + } + + function goToDefNoMapActionInfo(withRefs: boolean): ActionInfo { + return { + ...goToDefActionInfo(withRefs), + action: withRefs ? + goToDefFromMainTs : + goToDefFromMainTsWithNoMap, + closedInfos: () => withRefs ? + [dependencyTs.path, dependencyConfig.path, libFile.path] : + [libFile.path, dtsPath], // Because map is deleted, dts and dependency are released + otherWatchedFiles: () => withRefs ? + [mainConfig.path] : + [mainConfig.path, dtsMapPath], // Watches deleted file + expectsMap: false + }; + } + + function goToDefNoDtsActionInfo(withRefs: boolean): ActionInfo { + return { + ...goToDefActionInfo(withRefs), + action: withRefs ? + goToDefFromMainTs : + goToDefFromMainTsWithNoDts, + closedInfos: () => withRefs ? + [dependencyTs.path, dependencyConfig.path, libFile.path] : + [libFile.path], // No dts means no map, no dependency + expectsDts: false, + expectsMap: false + }; + } + + verifyScenario({ + mainScenario: "can go to definition correctly", + verifier: withRefs => [ + { + ...goToDefFromMainTsProjectInfoVerifier(withRefs), + main: () => goToDefActionInfo(withRefs), + noMap: () => goToDefNoMapActionInfo(withRefs), + mapFileCreated: "main", + mapFileDeleted: () => ({ + ...goToDefNoMapActionInfo(withRefs), + closedInfos: () => withRefs ? + [dependencyTs.path, dependencyConfig.path, libFile.path] : + // The script info for depedency is collected only after file open + [dependencyTs.path, libFile.path, dtsPath] + }), + noDts: () => goToDefNoDtsActionInfo(withRefs), + dtsFileCreated: "main", + dtsFileDeleted: () => ({ + ...goToDefNoDtsActionInfo(withRefs), + // The script info for map is collected only after file open + closedInfos: () => withRefs ? + [dependencyTs.path, dependencyConfig.path, libFile.path] : + [dependencyTs.path, libFile.path, dtsMapLocation], + expectsMap: !withRefs + }), + dependencyChange: () => ({ + ...goToDefActionInfo(withRefs), + action: goToDefFromMainTsWithDependencyChange, + expectsDts: false, + expectsMap: false + }), + noBuild: "main" + } + ] + }); + }); + + describe("from defining project", () => { + function renameActionInfo(): ActionInfo { + return { + action: renameFromDependencyTs, + closedInfos: () => [libFile.path, dtsLocation, dtsMapLocation], + otherWatchedFiles: () => [dependencyConfig.path], + expectsDts: true, + expectsMap: true + }; + } + + function renameNoMapActionInfo(): ActionInfo { + return { + ...renameActionInfo(), + closedInfos: () => [libFile.path, dtsLocation], // No map + otherWatchedFiles: () => [dependencyConfig.path, dtsMapLocation], // watch map + expectsMap: false + }; + } + + function renameNoDtsActionInfo(): ActionInfo { + return { + action: renameFromDependencyTs, + closedInfos: () => [libFile.path], // no dts or map since dts itself doesnt exist + otherWatchedFiles: () => [dependencyConfig.path, dtsPath], // watch deleted file + expectsDts: false, + expectsMap: false + }; + } + + verifyScenario({ + mainScenario: "rename locations from dependency", + verifier: () => [ + { + ...renameFromDependencyTsProjectInfoVerifier(), + main: renameActionInfo, + noMap: renameNoMapActionInfo, + mapFileCreated: "main", + mapFileDeleted: "noMap", + noDts: renameNoDtsActionInfo, + dtsFileCreated: "main", + dtsFileDeleted: () => ({ + ...renameNoDtsActionInfo(), + // Map is collected after file open + closedInfos: () => [libFile.path, dtsMapLocation], + expectsMap: true + }), + dependencyChange: () => ({ + ...renameActionInfo(), + action: renameFromDependencyTsWithDependencyChange + }), + noBuild: () => ({ + action: renameFromDependencyTs, + closedInfos: () => [libFile.path], // No dts or map since its not built/present + // Watching for creation of dts so that it can give correct results across projects + otherWatchedFiles: () => [dependencyConfig.path, dtsPath], + expectsDts: false, + expectsMap: false + }) + } + ] + }); + }); + + describe("when opening depedency and usage project", () => { + function closedInfos(withRefs: boolean) { + // DependencyTs is open, so omit it from closed infos + return () => withRefs ? + [dependencyConfig.path, libFile.path] : + [libFile.path, dtsPath, dtsMapLocation]; + } + + function otherWatchedFiles(withRefs: boolean) { + return () => withRefs ? + [mainConfig.path] : // Its in closed info + [mainConfig.path, dependencyConfig.path]; + } + + function goToDefActionInfo(withRefs: boolean): ActionInfo { + return { + action: goToDefFromMainTs, + closedInfos: closedInfos(withRefs), + otherWatchedFiles: otherWatchedFiles(withRefs), + expectsDts: !withRefs, // Dts script info present only if no project reference + expectsMap: !withRefs // Map script info present only if no project reference + }; + } + + function renameActionInfo(withRefs: boolean): ActionInfo { + return { + action: renameFromDependencyTsWithBothProjectsOpen, + closedInfos: closedInfos(withRefs), + otherWatchedFiles: otherWatchedFiles(withRefs), + expectsDts: !withRefs, // Dts script info present only if no project reference + expectsMap: !withRefs // Map script info present only if no project reference + }; + } + + function closedInfosNoMap(withRefs: boolean) { + return withRefs ? + closedInfos(withRefs) : + () => [libFile.path, dtsPath]; // No map + } + + function otherWatchedFilesNoMap(withRefs: boolean) { + return withRefs ? + otherWatchedFiles(withRefs) : + () => [mainConfig.path, dependencyConfig.path, dtsMapLocation]; // Watch map file + } + + function goToDefNoMapActionInfo(withRefs: boolean): ActionInfo { + return { + ...goToDefActionInfo(withRefs), + action: withRefs ? + goToDefFromMainTs : + goToDefFromMainTsWithNoMap, + closedInfos: closedInfosNoMap(withRefs), + otherWatchedFiles: otherWatchedFilesNoMap(withRefs), + expectsMap: false + }; + } + + function renameNoMapActionInfo(withRefs: boolean): ActionInfo { + return { + ...renameActionInfo(withRefs), + action: withRefs ? + renameFromDependencyTsWithBothProjectsOpen : + renameFromDependencyTs, + closedInfos: closedInfosNoMap(withRefs), + otherWatchedFiles: otherWatchedFilesNoMap(withRefs), + expectsMap: false + }; + } + + function closedInfosNoDts(withRefs: boolean) { + return withRefs ? + closedInfos(withRefs) : + () => [libFile.path]; // No dts or map + } + + function otherWatchedFilesNoDts(withRefs: boolean) { + return withRefs ? + otherWatchedFiles(withRefs) : + () => [mainConfig.path, dependencyConfig.path, dtsPath]; // Watch dts + } + + function goToDefNoDtsActionInfo(withRefs: boolean): ActionInfo { + return { + ...goToDefActionInfo(withRefs), + action: withRefs ? + goToDefFromMainTs : + goToDefFromMainTsWithNoDts, + closedInfos: closedInfosNoDts(withRefs), + expectsDts: false, + expectsMap: false + }; + } + + function renameNoDtsActionInfo(withRefs: boolean): ActionInfo { + return { + action: withRefs ? + renameFromDependencyTsWithBothProjectsOpen : + renameFromDependencyTs, + closedInfos: closedInfosNoDts(withRefs), + otherWatchedFiles: otherWatchedFilesNoDts(withRefs), + expectsDts: false, + expectsMap: false + }; + } + + function closedInfosDtsFileDeleted(withRefs: boolean) { + // Map collection after file open + return withRefs ? + closedInfos(withRefs) : + () => [libFile.path, dtsMapLocation]; + } + + verifyScenario({ + mainScenario: "goto Definition in usage and rename locations from defining project", + verifier: withRefs => [ + { + ...goToDefFromMainTsProjectInfoVerifier(withRefs), + main: () => goToDefActionInfo(withRefs), + noMap: () => goToDefNoMapActionInfo(withRefs), + mapFileCreated: "main", + mapFileDeleted: "noMap", + noDts: () => goToDefNoDtsActionInfo(withRefs), + dtsFileCreated: "main", + dtsFileDeleted: () => ({ + ...goToDefNoDtsActionInfo(withRefs), + // Map collection after file open + closedInfos: closedInfosDtsFileDeleted(withRefs), + expectsMap: !withRefs + }), + dependencyChange: () => ({ + ...goToDefActionInfo(withRefs), + action: goToDefFromMainTsWithDependencyChange, + expectsDts: false, + expectsMap: false + }), + noBuild: "main" + }, + { + ...renameFromDependencyTsProjectInfoVerifier(), + main: () => renameActionInfo(withRefs), + noMap: () => renameNoMapActionInfo(withRefs), + mapFileCreated: "main", + mapFileDeleted: "noMap", + noDts: () => renameNoDtsActionInfo(withRefs), + dtsFileCreated: "main", + dtsFileDeleted: () => ({ + ...renameNoDtsActionInfo(withRefs), + // Map collection after file open + closedInfos: closedInfosDtsFileDeleted(withRefs), + expectsMap: !withRefs + }), + dependencyChange: () => ({ + ...renameActionInfo(withRefs), + action: renameFromDependencyTsWithBothProjectsOpenWithDependencyChange + }), + noBuild: () => ({ + ...renameActionInfo(withRefs), + expectDts: false + }) + } + ] + }); + }); }); it("reusing d.ts files from composite and non composite projects", () => { From 15b68a93966530f184d471234e3a0566e8c37307 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 1 Jul 2019 14:43:11 -0700 Subject: [PATCH 016/159] Skip typechecking of source of project reference redirect --- src/compiler/builder.ts | 2 +- src/compiler/checker.ts | 4 +- src/compiler/program.ts | 2 +- src/compiler/utilities.ts | 9 +- src/server/scriptInfo.ts | 6 +- src/server/session.ts | 4 +- src/testRunner/tsconfig.json | 1 + .../tsserver/projectReferenceErrors.ts | 236 +++++++++++++ .../unittests/tsserver/projectReferences.ts | 322 +++++++++++------- 9 files changed, 460 insertions(+), 126 deletions(-) create mode 100644 src/testRunner/unittests/tsserver/projectReferenceErrors.ts diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 704cdaf23f9..bd35bac6c5f 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -407,7 +407,7 @@ namespace ts { const options = program.getCompilerOptions(); forEach(program.getSourceFiles(), f => program.isSourceFileDefaultLibrary(f) && - !skipTypeChecking(f, options) && + !skipTypeChecking(f, options, program) && removeSemanticDiagnosticsOf(state, f.path) ); } diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c2e6b0d518a..40040302123 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -338,7 +338,7 @@ namespace ts { return node && getTypeArgumentConstraint(node); }, getSuggestionDiagnostics: (file, ct) => { - if (skipTypeChecking(file, compilerOptions)) { + if (skipTypeChecking(file, compilerOptions, host)) { return emptyArray; } @@ -29657,7 +29657,7 @@ namespace ts { function checkSourceFileWorker(node: SourceFile) { const links = getNodeLinks(node); if (!(links.flags & NodeCheckFlags.TypeChecked)) { - if (skipTypeChecking(node, compilerOptions)) { + if (skipTypeChecking(node, compilerOptions, host)) { return; } diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 78e5f314879..2149e175ca2 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1701,7 +1701,7 @@ namespace ts { function getSemanticDiagnosticsForFileNoCache(sourceFile: SourceFile, cancellationToken: CancellationToken): Diagnostic[] | undefined { return runWithCancellationToken(() => { - if (skipTypeChecking(sourceFile, options)) { + if (skipTypeChecking(sourceFile, options, program)) { return emptyArray; } diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 562d066b64e..ab6c0bfd83d 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -8573,11 +8573,16 @@ namespace ts { return { pos: typeParameters.pos - 1, end: typeParameters.end + 1 }; } - export function skipTypeChecking(sourceFile: SourceFile, options: CompilerOptions) { + export interface HostWithIsSourceOfProjectReferenceRedirect { + isSourceOfProjectReferenceRedirect(fileName: string): boolean; + } + export function skipTypeChecking(sourceFile: SourceFile, options: CompilerOptions, host: HostWithIsSourceOfProjectReferenceRedirect) { // If skipLibCheck is enabled, skip reporting errors if file is a declaration file. // If skipDefaultLibCheck is enabled, skip reporting errors if file contains a // '/// ' directive. - return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib; + return (options.skipLibCheck && sourceFile.isDeclarationFile || + options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib) || + host.isSourceOfProjectReferenceRedirect(sourceFile.fileName); } export function isJsonEqual(a: unknown, b: unknown): boolean { diff --git a/src/server/scriptInfo.ts b/src/server/scriptInfo.ts index 68c448a7e76..a2e75e3dac9 100644 --- a/src/server/scriptInfo.ts +++ b/src/server/scriptInfo.ts @@ -495,15 +495,17 @@ namespace ts.server { // the default project; if no configured projects, the first external project should // be the default project; otherwise the first inferred project should be the default. let firstExternalProject; + let firstConfiguredProject; for (const project of this.containingProjects) { if (project.projectKind === ProjectKind.Configured) { - return project; + if (!project.isSourceOfProjectReferenceRedirect(this.fileName)) return project; + if (!firstConfiguredProject) firstConfiguredProject = project; } else if (project.projectKind === ProjectKind.External && !firstExternalProject) { firstExternalProject = project; } } - return firstExternalProject || this.containingProjects[0]; + return firstConfiguredProject || firstExternalProject || this.containingProjects[0]; } } diff --git a/src/server/session.ts b/src/server/session.ts index ff339b06a81..a5c13574805 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -1658,10 +1658,10 @@ namespace ts.server { } } - private createCheckList(fileNames: string[], defaultProject?: Project): PendingErrorCheck[] { + private createCheckList(fileNames: string[]): PendingErrorCheck[] { return mapDefined(fileNames, uncheckedFileName => { const fileName = toNormalizedPath(uncheckedFileName); - const project = defaultProject || this.projectService.tryGetDefaultProjectForFile(fileName); + const project = this.projectService.tryGetDefaultProjectForFile(fileName); return project && { fileName, project }; }); } diff --git a/src/testRunner/tsconfig.json b/src/testRunner/tsconfig.json index b2e7e3e78b9..9d67215ffd9 100644 --- a/src/testRunner/tsconfig.json +++ b/src/testRunner/tsconfig.json @@ -137,6 +137,7 @@ "unittests/tsserver/occurences.ts", "unittests/tsserver/openFile.ts", "unittests/tsserver/projectErrors.ts", + "unittests/tsserver/projectReferenceErrors.ts", "unittests/tsserver/projectReferences.ts", "unittests/tsserver/projects.ts", "unittests/tsserver/refactors.ts", diff --git a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts new file mode 100644 index 00000000000..8006b916037 --- /dev/null +++ b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts @@ -0,0 +1,236 @@ +namespace ts.projectSystem { + describe("unittests:: tsserver:: with project references and error reporting", () => { + const projectLocation = "/user/username/projects/myproject"; + const dependecyLocation = `${projectLocation}/dependency`; + const usageLocation = `${projectLocation}/usage`; + const dependencyTs: File = { + path: `${dependecyLocation}/fns.ts`, + content: `export function fn1() { } +export function fn2() { } +// Introduce error for fnErr import in main +// export function fnErr() { } +// Error in dependency ts file +export let x: string = 10;` + }; + const dependencyConfig: File = { + path: `${dependecyLocation}/tsconfig.json`, + content: JSON.stringify({ compilerOptions: { composite: true, declarationDir: "../decls" } }) + }; + const usageTs: File = { + path: `${usageLocation}/usage.ts`, + content: `import { + fn1, + fn2, + fnErr +} from '../decls/fns' +fn1(); +fn2(); +fnErr(); +` + }; + const usageConfig: File = { + path: `${usageLocation}/tsconfig.json`, + content: JSON.stringify({ + references: [{ path: "../dependency" }] + }) + }; + + interface CheckErrorsInFile { + session: TestSession; + host: TestServerHost; + expected: GetErrDiagnostics; + expectedSequenceId?: number; + } + function checkErrorsInFile({ session, host, expected: { file, syntax, semantic, suggestion }, expectedSequenceId }: CheckErrorsInFile) { + host.checkTimeoutQueueLengthAndRun(1); + checkErrorMessage(session, "syntaxDiag", { file: file.path, diagnostics: syntax }); + session.clearMessages(); + + host.runQueuedImmediateCallbacks(1); + checkErrorMessage(session, "semanticDiag", { file: file.path, diagnostics: semantic }); + session.clearMessages(); + + host.runQueuedImmediateCallbacks(1); + checkErrorMessage(session, "suggestionDiag", { file: file.path, diagnostics: suggestion }); + if (expectedSequenceId !== undefined) { + checkCompleteEvent(session, 2, expectedSequenceId); + } + session.clearMessages(); + } + + interface CheckAllErrors { + session: TestSession; + host: TestServerHost; + expected: ReadonlyArray; + expectedSequenceId: number; + } + function checkAllErrors({ session, host, expected, expectedSequenceId }: CheckAllErrors) { + for (let i = 0; i < expected.length; i++) { + checkErrorsInFile({ + session, + host, + expected: expected[i], + expectedSequenceId: i === expected.length - 1 ? expectedSequenceId : undefined + }); + } + } + + function verifyErrorsUsingGeterr({ openFiles, expectedGetErr }: VerifyScenario) { + it("verifies the errors in open file", () => { + const host = createServerHost([dependencyTs, dependencyConfig, usageTs, usageConfig, libFile]); + const session = createSession(host, { canUseEvents: true, }); + openFilesForSession(openFiles(), session); + + session.clearMessages(); + const expectedSequenceId = session.getNextSeq(); + const expected = expectedGetErr(); + session.executeCommandSeq({ + command: protocol.CommandTypes.Geterr, + arguments: { + delay: 0, + files: expected.map(f => f.file.path) + } + }); + + checkAllErrors({ session, host, expected, expectedSequenceId }); + }); + } + + function verifyErrorsUsingGeterrForProject({ openFiles, expectedGetErrForProject }: VerifyScenario) { + it("verifies the errors in projects", () => { + const host = createServerHost([dependencyTs, dependencyConfig, usageTs, usageConfig, libFile]); + const session = createSession(host, { canUseEvents: true, }); + openFilesForSession(openFiles(), session); + + session.clearMessages(); + for (const expected of expectedGetErrForProject()) { + const expectedSequenceId = session.getNextSeq(); + session.executeCommandSeq({ + command: protocol.CommandTypes.GeterrForProject, + arguments: { + delay: 0, + file: expected.project + } + }); + + checkAllErrors({ session, host, expected: expected.errors, expectedSequenceId }); + } + }); + } + + interface GetErrDiagnostics { + file: File; + syntax: protocol.Diagnostic[]; + semantic: protocol.Diagnostic[]; + suggestion: protocol.Diagnostic[]; + } + interface GetErrForProjectDiagnostics { + project: string; + errors: ReadonlyArray; + } + interface VerifyScenario { + openFiles: () => ReadonlyArray; + expectedGetErr: () => ReadonlyArray; + expectedGetErrForProject: () => ReadonlyArray; + } + function verifyScenario(scenario: VerifyScenario) { + verifyErrorsUsingGeterr(scenario); + verifyErrorsUsingGeterrForProject(scenario); + } + + function emptyDiagnostics(file: File): GetErrDiagnostics { + return { + file, + syntax: emptyArray, + semantic: emptyArray, + suggestion: emptyArray + }; + } + + function usageDiagnostics(): GetErrDiagnostics { + return { + file: usageTs, + syntax: emptyArray, + semantic: [ + createDiagnostic( + { line: 4, offset: 5 }, + { line: 4, offset: 10 }, + Diagnostics.Module_0_has_no_exported_member_1, + [`"../dependency/fns"`, "fnErr"], + "error", + ) + ], + suggestion: emptyArray + }; + } + + function dependencyDiagnostics(): GetErrDiagnostics { + return { + file: dependencyTs, + syntax: emptyArray, + semantic: [ + createDiagnostic( + { line: 6, offset: 12 }, + { line: 6, offset: 13 }, + Diagnostics.Type_0_is_not_assignable_to_type_1, + ["10", "string"], + "error", + ) + ], + suggestion: emptyArray + }; + } + + function usageProjectDiagnostics(): GetErrForProjectDiagnostics { + return { + project: usageTs.path, + errors: [ + usageDiagnostics(), + emptyDiagnostics(dependencyTs) + ] + }; + } + + function dependencyProjectDiagnostics(): GetErrForProjectDiagnostics { + return { + project: dependencyTs.path, + errors: [ + dependencyDiagnostics() + ] + }; + } + + describe("when dependency project is not open", () => { + verifyScenario({ + openFiles: () => [usageTs], + expectedGetErr: () => [ + usageDiagnostics() + ], + expectedGetErrForProject: () => [ + usageProjectDiagnostics(), + { + project: dependencyTs.path, + errors: [ + emptyDiagnostics(dependencyTs), + usageDiagnostics() + ] + } + ] + }); + }); + + describe("when the depedency file is open", () => { + verifyScenario({ + openFiles: () => [usageTs, dependencyTs], + expectedGetErr: () => [ + usageDiagnostics(), + dependencyDiagnostics(), + ], + expectedGetErrForProject: () => [ + usageProjectDiagnostics(), + dependencyProjectDiagnostics() + ] + }); + }); + }); +} diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index c5712df2e1a..f39ec72e03e 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -373,6 +373,9 @@ fn5(); otherWatchedFiles: () => readonly string[]; expectsDts: boolean; expectsMap: boolean; + freshMapInfo?: boolean; + freshDocumentMapper?: boolean; + skipDtsMapCheck?: boolean; } type ActionKey = keyof ActionInfoVerifier; type ActionInfoGetterFn = () => ActionInfo; @@ -385,6 +388,9 @@ fn5(); } interface ActionInfoVerifier { main: ActionInfoGetter; + change: ActionInfoGetter; + dtsChange: ActionInfoGetter; + mapChange: ActionInfoGetter; noMap: ActionInfoGetter; mapFileCreated: ActionInfoGetter; mapFileDeleted: ActionInfoGetter; @@ -461,14 +467,21 @@ fn5(); return info; } - function verifyDocumentPositionMapper(session: TestSession, dependencyMap: server.ScriptInfo | undefined, documentPositionMapper: server.ScriptInfo["documentPositionMapper"], equal: boolean) { - assert.strictEqual(session.getProjectService().filenameToScriptInfo.get(dtsMapPath), dependencyMap); + interface VerifyDocumentPositionMapper { + session: TestSession; + dependencyMap: server.ScriptInfo | undefined; + documentPositionMapper: server.ScriptInfo["documentPositionMapper"]; + equal: boolean; + debugInfo: string; + } + function verifyDocumentPositionMapper({ session, dependencyMap, documentPositionMapper, equal, debugInfo }: VerifyDocumentPositionMapper) { + assert.strictEqual(session.getProjectService().filenameToScriptInfo.get(dtsMapPath), dependencyMap, debugInfo); if (dependencyMap) { if (equal) { - assert.strictEqual(dependencyMap.documentPositionMapper, documentPositionMapper); + assert.strictEqual(dependencyMap.documentPositionMapper, documentPositionMapper, debugInfo); } else { - assert.notStrictEqual(dependencyMap.documentPositionMapper, documentPositionMapper); + assert.notStrictEqual(dependencyMap.documentPositionMapper, documentPositionMapper, debugInfo); } } } @@ -491,7 +504,6 @@ fn5(); sourceMapPath?: server.ScriptInfo["sourceMapFilePath"]; dependencyMap?: server.ScriptInfo | undefined; documentPositionMapper?: server.ScriptInfo["documentPositionMapper"]; - firstEquals?: boolean; } interface VerifyAllFnActionResult { actionInfos: readonly ActionInfo[]; @@ -506,44 +518,62 @@ fn5(); actionKey, dependencyMap, documentPositionMapper, - firstEquals }: VerifyAllFnAction): VerifyAllFnActionResult { const actionInfos = getActionInfo(verifiers, actionKey); let sourceMapPath: server.ScriptInfo["sourceMapFilePath"] | undefined; // action let first = true; - for (const { action, closedInfos, otherWatchedFiles, expectsDts, expectsMap } of actionInfos) { + for (const { + action, + closedInfos, + otherWatchedFiles, + expectsDts, + expectsMap, + freshMapInfo, + freshDocumentMapper, + skipDtsMapCheck + } of actionInfos) { for (let fn = 1; fn <= 5; fn++) { const fnAction = action(fn); verifyAction(session, fnAction); - const dtsInfo = verifyScriptInfoPresence(session, dtsPath, expectsDts, fnAction.reqName); - const dtsMapInfo = verifyScriptInfoPresence(session, dtsMapPath, expectsMap, fnAction.reqName); + const debugInfo = `${actionKey}:: ${fnAction.reqName}:: ${fn}`; + const dtsInfo = verifyScriptInfoPresence(session, dtsPath, expectsDts, debugInfo); + const dtsMapInfo = verifyScriptInfoPresence(session, dtsMapPath, expectsMap, debugInfo); verifyInfosWithRandom( session, host, openFiles(verifiers).map(f => f.path), closedInfos(), otherWatchedFiles(), - `${actionKey}:: ${fnAction.reqName}` + debugInfo ); if (dtsInfo) { - if (first) { - if (dtsMapInfo) { - assert.equal(dtsInfo.sourceMapFilePath, dtsMapPath, `${actionKey}:: ${fnAction.reqName}`); - } - else { - assert.isNotString(dtsInfo.sourceMapFilePath); - assert.isNotFalse(dtsInfo.sourceMapFilePath); - assert.isDefined(dtsInfo.sourceMapFilePath); + if (first || (fn === 1 && freshMapInfo)) { + if (!skipDtsMapCheck) { + if (dtsMapInfo) { + assert.equal(dtsInfo.sourceMapFilePath, dtsMapPath, debugInfo); + } + else { + assert.isNotString(dtsInfo.sourceMapFilePath, debugInfo); + assert.isNotFalse(dtsInfo.sourceMapFilePath, debugInfo); + assert.isDefined(dtsInfo.sourceMapFilePath, debugInfo); + } } } else { - assert.equal(dtsInfo.sourceMapFilePath, sourceMapPath, `${actionKey}:: ${fnAction.reqName}`); + assert.equal(dtsInfo.sourceMapFilePath, sourceMapPath, debugInfo); } } - if (!first || firstEquals !== undefined) { - verifyDocumentPositionMapper(session, dependencyMap, documentPositionMapper, !first || !!firstEquals); + + if (!first && (fn !== 1 || !freshMapInfo)) { + verifyDocumentPositionMapper({ + session, + dependencyMap, + documentPositionMapper, + equal: fn !== 1 || !freshDocumentMapper, + debugInfo + }); } sourceMapPath = dtsInfo && dtsInfo.sourceMapFilePath; dependencyMap = dtsMapInfo; @@ -566,15 +596,22 @@ fn5(); openFilesForSession([randomFile], session); const { closedInfos, otherWatchedFiles } = last(actionInfos); + const debugInfo = `${actionKey} Collection`; verifyInfosWithRandom( session, host, openFiles(verifiers).map(f => f.path), closedInfos(), otherWatchedFiles(), - `${actionKey} Collection` + debugInfo ); - verifyDocumentPositionMapper(session, dependencyMap, documentPositionMapper, /*equal*/ true); + verifyDocumentPositionMapper({ + session, + dependencyMap, + documentPositionMapper, + equal: true, + debugInfo + }); // Closing open file, removes dependencies too closeFilesForSession([...openFiles(verifiers), randomFile], session); @@ -601,7 +638,6 @@ fn5(); verifier, withRefs, change, - afterActionDocumentPositionMapperNotEquals, afterChangeActionKey }: VerifyScenarioWithChanges, timeoutBeforeAction: boolean, @@ -619,7 +655,13 @@ fn5(); if (timeoutBeforeAction) { host.runQueuedTimeoutCallbacks(); checkProject(session, verifiers); - verifyDocumentPositionMapper(session, dependencyMap, documentPositionMapper, /*equal*/ true); + verifyDocumentPositionMapper({ + session, + dependencyMap, + documentPositionMapper, + equal: true, + debugInfo: "After change timeout" + }); } // action @@ -629,8 +671,7 @@ fn5(); verifiers, actionKey: afterChangeActionKey, dependencyMap, - documentPositionMapper, - firstEquals: !afterActionDocumentPositionMapperNotEquals + documentPositionMapper }); }); } @@ -638,7 +679,6 @@ fn5(); interface VerifyScenarioWithChanges extends VerifierAndWithRefs { scenarioName: string; change: (host: TestServerHost, session: TestSession, verifiers: readonly DocumentPositionMapperVerifier[]) => void; - afterActionDocumentPositionMapperNotEquals?: true; afterChangeActionKey: ActionKey; } function verifyScenarioWithChanges(verify: VerifyScenarioWithChanges) { @@ -704,7 +744,7 @@ fn5(); // The dependency file is deleted when orphan files are collected host.deleteFile(fileLocation); // Verify with deleted action key - const result = verifyAllFnAction({ session, host, verifiers, actionKey: fileDeletedKey }); + verifyAllFnAction({ session, host, verifiers, actionKey: fileDeletedKey }); checkProject(session, verifiers, noDts); // Script info collection should behave as fileNotPresentKey @@ -714,7 +754,7 @@ fn5(); verifiers, { actionInfos: getActionInfo(verifiers, fileNotPresentKey), - actionKey: result.actionKey, + actionKey: fileNotPresentKey, dependencyMap: undefined, documentPositionMapper: undefined } @@ -748,7 +788,7 @@ fn5(); } }) ), - afterChangeActionKey: "main" + afterChangeActionKey: "change" }); // Edit dts to add new fn @@ -764,7 +804,7 @@ fn5(); //# sourceMappingURL=FnS.d.ts.map` ) ), - afterChangeActionKey: "main" + afterChangeActionKey: "dtsChange" }); // Edit map file to represent added new line @@ -776,8 +816,7 @@ fn5(); dtsMapLocation, `{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"}` ), - afterChangeActionKey: "main", - afterActionDocumentPositionMapperNotEquals: true + afterChangeActionKey: "mapChange" }); verifyScenarioWhenFileNotPresent({ @@ -824,7 +863,7 @@ ${dependencyTs.content}`); afterChangeActionKey: "dependencyChange" }); - it("when d.ts file is not generated", () => { + it("when projects are not built", () => { const host = createServerHost(files); const session = createSession(host); const verifiers = verifier(withRefs); @@ -896,6 +935,12 @@ ${dependencyTs.content}`); { ...goToDefFromMainTsProjectInfoVerifier(withRefs), main: () => goToDefActionInfo(withRefs), + change: "main", + dtsChange: "main", + mapChange: () => ({ + ...goToDefActionInfo(withRefs), + freshDocumentMapper: true + }), noMap: () => goToDefNoMapActionInfo(withRefs), mapFileCreated: "main", mapFileDeleted: () => ({ @@ -938,15 +983,6 @@ ${dependencyTs.content}`); }; } - function renameNoMapActionInfo(): ActionInfo { - return { - ...renameActionInfo(), - closedInfos: () => [libFile.path, dtsLocation], // No map - otherWatchedFiles: () => [dependencyConfig.path, dtsMapLocation], // watch map - expectsMap: false - }; - } - function renameNoDtsActionInfo(): ActionInfo { return { action: renameFromDependencyTs, @@ -963,7 +999,18 @@ ${dependencyTs.content}`); { ...renameFromDependencyTsProjectInfoVerifier(), main: renameActionInfo, - noMap: renameNoMapActionInfo, + change: "main", + dtsChange: "main", + mapChange: () => ({ + ...renameActionInfo(), + freshDocumentMapper: true + }), + noMap: () => ({ + ...renameActionInfo(), + closedInfos: () => [libFile.path, dtsLocation], // No map + otherWatchedFiles: () => [dependencyConfig.path, dtsMapLocation], // watch map + expectsMap: false + }), mapFileCreated: "main", mapFileDeleted: "noMap", noDts: renameNoDtsActionInfo, @@ -992,24 +1039,16 @@ ${dependencyTs.content}`); }); describe("when opening depedency and usage project", () => { - function closedInfos(withRefs: boolean) { - // DependencyTs is open, so omit it from closed infos - return () => withRefs ? - [dependencyConfig.path, libFile.path] : - [libFile.path, dtsPath, dtsMapLocation]; - } - - function otherWatchedFiles(withRefs: boolean) { - return () => withRefs ? - [mainConfig.path] : // Its in closed info - [mainConfig.path, dependencyConfig.path]; - } - function goToDefActionInfo(withRefs: boolean): ActionInfo { return { action: goToDefFromMainTs, - closedInfos: closedInfos(withRefs), - otherWatchedFiles: otherWatchedFiles(withRefs), + // DependencyTs is open, so omit it from closed infos + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path] : + [libFile.path, dtsPath, dtsMapLocation], + otherWatchedFiles: () => withRefs ? + [mainConfig.path] : // Its in closed info + [mainConfig.path, dependencyConfig.path], expectsDts: !withRefs, // Dts script info present only if no project reference expectsMap: !withRefs // Map script info present only if no project reference }; @@ -1018,33 +1057,30 @@ ${dependencyTs.content}`); function renameActionInfo(withRefs: boolean): ActionInfo { return { action: renameFromDependencyTsWithBothProjectsOpen, - closedInfos: closedInfos(withRefs), - otherWatchedFiles: otherWatchedFiles(withRefs), - expectsDts: !withRefs, // Dts script info present only if no project reference - expectsMap: !withRefs // Map script info present only if no project reference + // DependencyTs is open, so omit it from closed infos + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path, dtsLocation, dtsMapLocation] : + [libFile.path, dtsPath, dtsMapLocation], + otherWatchedFiles: () => withRefs ? + [mainConfig.path] : // Its in closed info + [mainConfig.path, dependencyConfig.path], + expectsDts: true, + expectsMap: true }; } - function closedInfosNoMap(withRefs: boolean) { - return withRefs ? - closedInfos(withRefs) : - () => [libFile.path, dtsPath]; // No map - } - - function otherWatchedFilesNoMap(withRefs: boolean) { - return withRefs ? - otherWatchedFiles(withRefs) : - () => [mainConfig.path, dependencyConfig.path, dtsMapLocation]; // Watch map file - } - function goToDefNoMapActionInfo(withRefs: boolean): ActionInfo { return { - ...goToDefActionInfo(withRefs), action: withRefs ? goToDefFromMainTs : goToDefFromMainTsWithNoMap, - closedInfos: closedInfosNoMap(withRefs), - otherWatchedFiles: otherWatchedFilesNoMap(withRefs), + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path] : + [libFile.path, dtsPath], // No map + otherWatchedFiles: () => withRefs ? + [mainConfig.path] : // Its in closed info + [mainConfig.path, dependencyConfig.path, dtsMapLocation], // Watch map file + expectsDts: !withRefs, // Dts script info present only if no project reference expectsMap: false }; } @@ -1055,31 +1091,25 @@ ${dependencyTs.content}`); action: withRefs ? renameFromDependencyTsWithBothProjectsOpen : renameFromDependencyTs, - closedInfos: closedInfosNoMap(withRefs), - otherWatchedFiles: otherWatchedFilesNoMap(withRefs), + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path, dtsLocation] : + [libFile.path, dtsPath], // No map + otherWatchedFiles: () => withRefs ? + [mainConfig.path, dtsMapLocation] : // Its in closed info + [mainConfig.path, dependencyConfig.path, dtsMapLocation], // Watch map file expectsMap: false }; } - function closedInfosNoDts(withRefs: boolean) { - return withRefs ? - closedInfos(withRefs) : - () => [libFile.path]; // No dts or map - } - - function otherWatchedFilesNoDts(withRefs: boolean) { - return withRefs ? - otherWatchedFiles(withRefs) : - () => [mainConfig.path, dependencyConfig.path, dtsPath]; // Watch dts - } - function goToDefNoDtsActionInfo(withRefs: boolean): ActionInfo { return { ...goToDefActionInfo(withRefs), action: withRefs ? goToDefFromMainTs : goToDefFromMainTsWithNoDts, - closedInfos: closedInfosNoDts(withRefs), + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path] : + [libFile.path], // No dts or map, expectsDts: false, expectsMap: false }; @@ -1090,49 +1120,100 @@ ${dependencyTs.content}`); action: withRefs ? renameFromDependencyTsWithBothProjectsOpen : renameFromDependencyTs, - closedInfos: closedInfosNoDts(withRefs), - otherWatchedFiles: otherWatchedFilesNoDts(withRefs), + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path] : + [libFile.path], // No dts or map, + otherWatchedFiles: () => withRefs ? + [mainConfig.path, dtsLocation] : + [mainConfig.path, dependencyConfig.path, dtsPath], // Watch dts, expectsDts: false, expectsMap: false }; } - function closedInfosDtsFileDeleted(withRefs: boolean) { - // Map collection after file open - return withRefs ? - closedInfos(withRefs) : - () => [libFile.path, dtsMapLocation]; - } - verifyScenario({ mainScenario: "goto Definition in usage and rename locations from defining project", verifier: withRefs => [ { ...goToDefFromMainTsProjectInfoVerifier(withRefs), main: () => goToDefActionInfo(withRefs), + change: () => ({ + // Because before this rename is done the closed info remains same as rename's main operation + ...goToDefActionInfo(withRefs), + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path, dtsLocation, dtsMapLocation] : + [libFile.path, dtsPath, dtsMapLocation], + expectsDts: true, + expectsMap: true + }), + dtsChange: "change", + mapChange: "change", noMap: () => goToDefNoMapActionInfo(withRefs), - mapFileCreated: "main", - mapFileDeleted: "noMap", + mapFileCreated: () => ({ + // Because before this rename is done the closed info remains same as rename's main + ...goToDefActionInfo(withRefs), + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path, dtsLocation] : + [libFile.path, dtsPath, dtsMapLocation], + expectsDts: true, + // This operation doesnt need map so the map info path in dts is not refreshed + skipDtsMapCheck: withRefs + }), + mapFileDeleted: () => ({ + // Because before this rename is done the closed info remains same as rename's noMap operation + ...goToDefNoMapActionInfo(withRefs), + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path, dtsLocation] : + [libFile.path, dtsPath], // No map, + expectsDts: true, + // This operation doesnt need map so the map info path in dts is not refreshed + skipDtsMapCheck: withRefs + }), noDts: () => goToDefNoDtsActionInfo(withRefs), - dtsFileCreated: "main", + dtsFileCreated: () => ({ + ...goToDefActionInfo(withRefs), + // Since the project for dependency is not updated, the watcher from rename for dts still there + otherWatchedFiles: () => withRefs ? + [mainConfig.path, dtsLocation] : + [mainConfig.path, dependencyConfig.path], + }), dtsFileDeleted: () => ({ ...goToDefNoDtsActionInfo(withRefs), // Map collection after file open - closedInfos: closedInfosDtsFileDeleted(withRefs), - expectsMap: !withRefs + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path, dtsMapLocation] : + [libFile.path, dtsMapLocation], + expectsMap: true }), dependencyChange: () => ({ ...goToDefActionInfo(withRefs), action: goToDefFromMainTsWithDependencyChange, - expectsDts: false, - expectsMap: false + // From rename main action + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path, dtsLocation, dtsMapLocation] : + [libFile.path, dtsPath, dtsMapLocation], + expectsDts: withRefs, + expectsMap: withRefs }), noBuild: "main" }, { ...renameFromDependencyTsProjectInfoVerifier(), - main: () => renameActionInfo(withRefs), - noMap: () => renameNoMapActionInfo(withRefs), + main: () => ({ + ...renameActionInfo(withRefs), + freshMapInfo: withRefs + }), + change: () => renameActionInfo(withRefs), + dtsChange: "change", + mapChange: () => ({ + ...renameActionInfo(withRefs), + freshDocumentMapper: withRefs + }), + noMap: () => ({ + ...renameNoMapActionInfo(withRefs), + freshMapInfo: withRefs, + freshDocumentMapper: withRefs + }), mapFileCreated: "main", mapFileDeleted: "noMap", noDts: () => renameNoDtsActionInfo(withRefs), @@ -1140,16 +1221,25 @@ ${dependencyTs.content}`); dtsFileDeleted: () => ({ ...renameNoDtsActionInfo(withRefs), // Map collection after file open - closedInfos: closedInfosDtsFileDeleted(withRefs), - expectsMap: !withRefs + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path, dtsMapLocation] : + [libFile.path, dtsMapLocation], + expectsMap: true }), dependencyChange: () => ({ ...renameActionInfo(withRefs), action: renameFromDependencyTsWithBothProjectsOpenWithDependencyChange }), noBuild: () => ({ - ...renameActionInfo(withRefs), - expectDts: false + action: renameFromDependencyTsWithBothProjectsOpen, + closedInfos: () => withRefs ? + [dependencyConfig.path, libFile.path] : + [libFile.path], + otherWatchedFiles: () => withRefs ? + [mainConfig.path, dtsLocation] : // Its in closed info + [mainConfig.path, dependencyConfig.path], + expectsDts: false, + expectsMap: false }) } ] From 9be475bdaa9e40787e610ffe0a27ecfe9ae323a8 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 3 Jul 2019 15:47:32 -0700 Subject: [PATCH 017/159] Refactoring --- .../unittests/tsserver/projectReferences.ts | 532 ++++++++---------- 1 file changed, 222 insertions(+), 310 deletions(-) diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index f39ec72e03e..f9445dc6d19 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -105,6 +105,7 @@ export function fn4() { } export function fn5() { } ` }; + const dependencyTsPath = dependencyTs.path.toLowerCase(); const dependencyConfig: File = { path: `${dependecyLocation}/tsconfig.json`, content: JSON.stringify({ compilerOptions: { composite: true, declarationMap: true, declarationDir: "../decls" } }) @@ -362,6 +363,13 @@ fn5(); }; } + function removePath(array: readonly string[], ...delPaths: string[]) { + return array.filter(a => { + const aLower = a.toLowerCase(); + return delPaths.every(dPath => dPath !== aLower); + }); + } + interface Action { reqName: string; request: Partial; @@ -369,8 +377,8 @@ fn5(); } interface ActionInfo { action: (fn: number) => Action; - closedInfos: () => readonly string[]; - otherWatchedFiles: () => readonly string[]; + closedInfos: readonly string[]; + otherWatchedFiles: readonly string[]; expectsDts: boolean; expectsMap: boolean; freshMapInfo?: boolean; @@ -379,7 +387,11 @@ fn5(); } type ActionKey = keyof ActionInfoVerifier; type ActionInfoGetterFn = () => ActionInfo; - type ActionInfoGetter = ActionInfoGetterFn | ActionKey; + type ActionInfoSpreader = [ + ActionKey, // Key to get initial value and pass this value to spread function + (actionInfo: ActionInfo) => Partial> + ]; + type ActionInfoGetter = ActionInfoGetterFn | ActionKey | ActionInfoSpreader; interface ProjectInfoVerifier { openFile: File; openFileLastLine: number; @@ -486,14 +498,25 @@ fn5(); } } + function getActionInfoOfVerfier(verifier: DocumentPositionMapperVerifier, actionKey: ActionKey): ActionInfo { + const actionInfoGetter = verifier[actionKey]; + if (isString(actionInfoGetter)) { + return getActionInfoOfVerfier(verifier, actionInfoGetter); + } + + if (isArray(actionInfoGetter)) { + const initialValue = getActionInfoOfVerfier(verifier, actionInfoGetter[0]); + return { + ...initialValue, + ...actionInfoGetter[1](initialValue) + }; + } + + return actionInfoGetter(); + } + function getActionInfo(verifiers: readonly DocumentPositionMapperVerifier[], actionKey: ActionKey): ActionInfo[] { - return verifiers.map(v => { - let actionInfoGetter = v[actionKey]; - while (isString(actionInfoGetter)) { - actionInfoGetter = v[actionInfoGetter]; - } - return actionInfoGetter(); - }); + return verifiers.map(v => getActionInfoOfVerfier(v, actionKey)); } interface VerifyAllFnAction { @@ -543,8 +566,8 @@ fn5(); session, host, openFiles(verifiers).map(f => f.path), - closedInfos(), - otherWatchedFiles(), + closedInfos, + otherWatchedFiles, debugInfo ); @@ -601,8 +624,8 @@ fn5(); session, host, openFiles(verifiers).map(f => f.path), - closedInfos(), - otherWatchedFiles(), + closedInfos, + otherWatchedFiles, debugInfo ); verifyDocumentPositionMapper({ @@ -887,360 +910,249 @@ ${dependencyTs.content}`); } describe("from project that uses dependency", () => { - function goToDefActionInfo(withRefs: boolean): ActionInfo { - return { - action: goToDefFromMainTs, - closedInfos: () => withRefs ? - [dependencyTs.path, dependencyConfig.path, libFile.path] : - [dependencyTs.path, libFile.path, dtsPath, dtsMapLocation], - otherWatchedFiles: () => [mainConfig.path], - expectsDts: !withRefs, // Dts script info present only if no project reference - expectsMap: !withRefs // Map script info present only if no project reference - }; - } - - function goToDefNoMapActionInfo(withRefs: boolean): ActionInfo { - return { - ...goToDefActionInfo(withRefs), - action: withRefs ? - goToDefFromMainTs : - goToDefFromMainTsWithNoMap, - closedInfos: () => withRefs ? - [dependencyTs.path, dependencyConfig.path, libFile.path] : - [libFile.path, dtsPath], // Because map is deleted, dts and dependency are released - otherWatchedFiles: () => withRefs ? - [mainConfig.path] : - [mainConfig.path, dtsMapPath], // Watches deleted file - expectsMap: false - }; - } - - function goToDefNoDtsActionInfo(withRefs: boolean): ActionInfo { - return { - ...goToDefActionInfo(withRefs), - action: withRefs ? - goToDefFromMainTs : - goToDefFromMainTsWithNoDts, - closedInfos: () => withRefs ? - [dependencyTs.path, dependencyConfig.path, libFile.path] : - [libFile.path], // No dts means no map, no dependency - expectsDts: false, - expectsMap: false - }; - } - verifyScenario({ mainScenario: "can go to definition correctly", verifier: withRefs => [ { ...goToDefFromMainTsProjectInfoVerifier(withRefs), - main: () => goToDefActionInfo(withRefs), + main: () => ({ + action: goToDefFromMainTs, + closedInfos: withRefs ? + [dependencyTs.path, dependencyConfig.path, libFile.path] : + [dependencyTs.path, libFile.path, dtsPath, dtsMapLocation], + otherWatchedFiles: [mainConfig.path], + expectsDts: !withRefs, // Dts script info present only if no project reference + expectsMap: !withRefs // Map script info present only if no project reference + }), change: "main", dtsChange: "main", - mapChange: () => ({ - ...goToDefActionInfo(withRefs), + mapChange: ["main", () => ({ freshDocumentMapper: true - }), - noMap: () => goToDefNoMapActionInfo(withRefs), + })], + noMap: withRefs ? + "main" : + ["main", main => ({ + action: goToDefFromMainTsWithNoMap, + // Because map is deleted, dts and dependency are released + closedInfos: removePath(main.closedInfos, dtsMapPath, dependencyTsPath), + // Watches deleted file + otherWatchedFiles: main.otherWatchedFiles.concat(dtsMapLocation), + expectsMap: false + })], mapFileCreated: "main", - mapFileDeleted: () => ({ - ...goToDefNoMapActionInfo(withRefs), - closedInfos: () => withRefs ? - [dependencyTs.path, dependencyConfig.path, libFile.path] : + mapFileDeleted: withRefs ? + "main" : + ["noMap", noMap => ({ // The script info for depedency is collected only after file open - [dependencyTs.path, libFile.path, dtsPath] - }), - noDts: () => goToDefNoDtsActionInfo(withRefs), + closedInfos: noMap.closedInfos.concat(dependencyTs.path) + })], + noDts: withRefs ? + "main" : + ["main", main => ({ + action: goToDefFromMainTsWithNoDts, + // No dts, no map, no dependency + closedInfos: removePath(main.closedInfos, dtsPath, dtsMapPath, dependencyTsPath), + expectsDts: false, + expectsMap: false + })], dtsFileCreated: "main", - dtsFileDeleted: () => ({ - ...goToDefNoDtsActionInfo(withRefs), - // The script info for map is collected only after file open - closedInfos: () => withRefs ? - [dependencyTs.path, dependencyConfig.path, libFile.path] : - [dependencyTs.path, libFile.path, dtsMapLocation], - expectsMap: !withRefs - }), - dependencyChange: () => ({ - ...goToDefActionInfo(withRefs), + dtsFileDeleted: withRefs ? + "main" : + ["noDts", noDts => ({ + // The script info for map is collected only after file open + closedInfos: noDts.closedInfos.concat(dependencyTs.path, dtsMapLocation), + expectsMap: true + })], + dependencyChange: ["main", () => ({ action: goToDefFromMainTsWithDependencyChange, - expectsDts: false, - expectsMap: false - }), - noBuild: "main" + })], + noBuild: "noDts" } ] }); }); describe("from defining project", () => { - function renameActionInfo(): ActionInfo { - return { - action: renameFromDependencyTs, - closedInfos: () => [libFile.path, dtsLocation, dtsMapLocation], - otherWatchedFiles: () => [dependencyConfig.path], - expectsDts: true, - expectsMap: true - }; - } - - function renameNoDtsActionInfo(): ActionInfo { - return { - action: renameFromDependencyTs, - closedInfos: () => [libFile.path], // no dts or map since dts itself doesnt exist - otherWatchedFiles: () => [dependencyConfig.path, dtsPath], // watch deleted file - expectsDts: false, - expectsMap: false - }; - } - verifyScenario({ mainScenario: "rename locations from dependency", verifier: () => [ { ...renameFromDependencyTsProjectInfoVerifier(), - main: renameActionInfo, - change: "main", - dtsChange: "main", - mapChange: () => ({ - ...renameActionInfo(), - freshDocumentMapper: true - }), - noMap: () => ({ - ...renameActionInfo(), - closedInfos: () => [libFile.path, dtsLocation], // No map - otherWatchedFiles: () => [dependencyConfig.path, dtsMapLocation], // watch map - expectsMap: false - }), - mapFileCreated: "main", - mapFileDeleted: "noMap", - noDts: renameNoDtsActionInfo, - dtsFileCreated: "main", - dtsFileDeleted: () => ({ - ...renameNoDtsActionInfo(), - // Map is collected after file open - closedInfos: () => [libFile.path, dtsMapLocation], + main: () => ({ + action: renameFromDependencyTs, + closedInfos: [libFile.path, dtsLocation, dtsMapLocation], + otherWatchedFiles: [dependencyConfig.path], + expectsDts: true, expectsMap: true }), - dependencyChange: () => ({ - ...renameActionInfo(), - action: renameFromDependencyTsWithDependencyChange - }), - noBuild: () => ({ - action: renameFromDependencyTs, - closedInfos: () => [libFile.path], // No dts or map since its not built/present - // Watching for creation of dts so that it can give correct results across projects - otherWatchedFiles: () => [dependencyConfig.path, dtsPath], + change: "main", + dtsChange: "main", + mapChange: ["main", () => ({ + freshDocumentMapper: true + })], + noMap: ["main", main => ({ + // No map + closedInfos: removePath(main.closedInfos, dtsMapPath), + // watch map + otherWatchedFiles: [...main.otherWatchedFiles, dtsMapLocation], + expectsMap: false + })], + mapFileCreated: "main", + mapFileDeleted: "noMap", + noDts: ["main", main => ({ + // no dts or map since dts itself doesnt exist + closedInfos: removePath(main.closedInfos, dtsMapPath, dtsPath), + // watch deleted file + otherWatchedFiles: [...main.otherWatchedFiles, dtsLocation], expectsDts: false, expectsMap: false - }) + })], + dtsFileCreated: "main", + dtsFileDeleted: ["noDts", noDts => ({ + // Map is collected after file open + closedInfos: noDts.closedInfos.concat(dtsMapLocation), + expectsMap: true + })], + dependencyChange: ["main", () => ({ + action: renameFromDependencyTsWithDependencyChange + })], + noBuild: "noDts" } ] }); }); describe("when opening depedency and usage project", () => { - function goToDefActionInfo(withRefs: boolean): ActionInfo { - return { - action: goToDefFromMainTs, - // DependencyTs is open, so omit it from closed infos - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path] : - [libFile.path, dtsPath, dtsMapLocation], - otherWatchedFiles: () => withRefs ? - [mainConfig.path] : // Its in closed info - [mainConfig.path, dependencyConfig.path], - expectsDts: !withRefs, // Dts script info present only if no project reference - expectsMap: !withRefs // Map script info present only if no project reference - }; - } - - function renameActionInfo(withRefs: boolean): ActionInfo { - return { - action: renameFromDependencyTsWithBothProjectsOpen, - // DependencyTs is open, so omit it from closed infos - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path, dtsLocation, dtsMapLocation] : - [libFile.path, dtsPath, dtsMapLocation], - otherWatchedFiles: () => withRefs ? - [mainConfig.path] : // Its in closed info - [mainConfig.path, dependencyConfig.path], - expectsDts: true, - expectsMap: true - }; - } - - function goToDefNoMapActionInfo(withRefs: boolean): ActionInfo { - return { - action: withRefs ? - goToDefFromMainTs : - goToDefFromMainTsWithNoMap, - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path] : - [libFile.path, dtsPath], // No map - otherWatchedFiles: () => withRefs ? - [mainConfig.path] : // Its in closed info - [mainConfig.path, dependencyConfig.path, dtsMapLocation], // Watch map file - expectsDts: !withRefs, // Dts script info present only if no project reference - expectsMap: false - }; - } - - function renameNoMapActionInfo(withRefs: boolean): ActionInfo { - return { - ...renameActionInfo(withRefs), - action: withRefs ? - renameFromDependencyTsWithBothProjectsOpen : - renameFromDependencyTs, - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path, dtsLocation] : - [libFile.path, dtsPath], // No map - otherWatchedFiles: () => withRefs ? - [mainConfig.path, dtsMapLocation] : // Its in closed info - [mainConfig.path, dependencyConfig.path, dtsMapLocation], // Watch map file - expectsMap: false - }; - } - - function goToDefNoDtsActionInfo(withRefs: boolean): ActionInfo { - return { - ...goToDefActionInfo(withRefs), - action: withRefs ? - goToDefFromMainTs : - goToDefFromMainTsWithNoDts, - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path] : - [libFile.path], // No dts or map, - expectsDts: false, - expectsMap: false - }; - } - - function renameNoDtsActionInfo(withRefs: boolean): ActionInfo { - return { - action: withRefs ? - renameFromDependencyTsWithBothProjectsOpen : - renameFromDependencyTs, - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path] : - [libFile.path], // No dts or map, - otherWatchedFiles: () => withRefs ? - [mainConfig.path, dtsLocation] : - [mainConfig.path, dependencyConfig.path, dtsPath], // Watch dts, - expectsDts: false, - expectsMap: false - }; - } - verifyScenario({ mainScenario: "goto Definition in usage and rename locations from defining project", verifier: withRefs => [ { ...goToDefFromMainTsProjectInfoVerifier(withRefs), - main: () => goToDefActionInfo(withRefs), - change: () => ({ - // Because before this rename is done the closed info remains same as rename's main operation - ...goToDefActionInfo(withRefs), - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path, dtsLocation, dtsMapLocation] : + main: () => ({ + action: goToDefFromMainTs, + // DependencyTs is open, so omit it from closed infos + closedInfos: withRefs ? + [dependencyConfig.path, libFile.path] : [libFile.path, dtsPath, dtsMapLocation], - expectsDts: true, - expectsMap: true + otherWatchedFiles: withRefs ? + [mainConfig.path] : // Its in closed info + [mainConfig.path, dependencyConfig.path], + expectsDts: !withRefs, // Dts script info present only if no project reference + expectsMap: !withRefs // Map script info present only if no project reference }), + change: withRefs ? + ["main", main => ({ + // Because before this rename is done the closed info remains same as rename's main operation + closedInfos: main.closedInfos.concat(dtsLocation, dtsMapLocation), + expectsDts: true, + expectsMap: true + })] : + "main", dtsChange: "change", mapChange: "change", - noMap: () => goToDefNoMapActionInfo(withRefs), - mapFileCreated: () => ({ - // Because before this rename is done the closed info remains same as rename's main - ...goToDefActionInfo(withRefs), - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path, dtsLocation] : - [libFile.path, dtsPath, dtsMapLocation], - expectsDts: true, - // This operation doesnt need map so the map info path in dts is not refreshed - skipDtsMapCheck: withRefs - }), - mapFileDeleted: () => ({ - // Because before this rename is done the closed info remains same as rename's noMap operation - ...goToDefNoMapActionInfo(withRefs), - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path, dtsLocation] : - [libFile.path, dtsPath], // No map, - expectsDts: true, - // This operation doesnt need map so the map info path in dts is not refreshed - skipDtsMapCheck: withRefs - }), - noDts: () => goToDefNoDtsActionInfo(withRefs), - dtsFileCreated: () => ({ - ...goToDefActionInfo(withRefs), - // Since the project for dependency is not updated, the watcher from rename for dts still there - otherWatchedFiles: () => withRefs ? - [mainConfig.path, dtsLocation] : - [mainConfig.path, dependencyConfig.path], - }), - dtsFileDeleted: () => ({ - ...goToDefNoDtsActionInfo(withRefs), + noMap: withRefs ? + "main" : + ["main", main => ({ + action: goToDefFromMainTsWithNoMap, + closedInfos: removePath(main.closedInfos, dtsMapPath), + otherWatchedFiles: main.otherWatchedFiles.concat(dtsMapLocation), + expectsMap: false + })], + mapFileCreated: withRefs ? + ["main", main => ({ + // Because before this rename is done the closed info remains same as rename's main + closedInfos: main.closedInfos.concat(dtsLocation), + expectsDts: true, + // This operation doesnt need map so the map info path in dts is not refreshed + skipDtsMapCheck: withRefs + })] : + "main", + mapFileDeleted: withRefs ? + ["noMap", noMap => ({ + // Because before this rename is done the closed info remains same as rename's noMap operation + closedInfos: noMap.closedInfos.concat(dtsLocation), + expectsDts: true, + // This operation doesnt need map so the map info path in dts is not refreshed + skipDtsMapCheck: true + })] : + "noMap", + noDts: withRefs ? + "main" : + ["main", main => ({ + action: goToDefFromMainTsWithNoDts, + closedInfos: removePath(main.closedInfos, dtsMapPath, dtsPath), + expectsDts: false, + expectsMap: false + })], + dtsFileCreated: withRefs ? + ["main", main => ({ + // Since the project for dependency is not updated, the watcher from rename for dts still there + otherWatchedFiles: main.otherWatchedFiles.concat(dtsLocation) + })] : + "main", + dtsFileDeleted: ["noDts", noDts => ({ // Map collection after file open - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path, dtsMapLocation] : - [libFile.path, dtsMapLocation], + closedInfos: noDts.closedInfos.concat(dtsMapLocation), expectsMap: true - }), - dependencyChange: () => ({ - ...goToDefActionInfo(withRefs), + })], + dependencyChange: ["change", () => ({ action: goToDefFromMainTsWithDependencyChange, - // From rename main action - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path, dtsLocation, dtsMapLocation] : - [libFile.path, dtsPath, dtsMapLocation], - expectsDts: withRefs, - expectsMap: withRefs - }), - noBuild: "main" + })], + noBuild: "noDts" }, { ...renameFromDependencyTsProjectInfoVerifier(), main: () => ({ - ...renameActionInfo(withRefs), + action: renameFromDependencyTsWithBothProjectsOpen, + // DependencyTs is open, so omit it from closed infos + closedInfos: withRefs ? + [dependencyConfig.path, libFile.path, dtsLocation, dtsMapLocation] : + [libFile.path, dtsPath, dtsMapLocation], + otherWatchedFiles: withRefs ? + [mainConfig.path] : // Its in closed info + [mainConfig.path, dependencyConfig.path], + expectsDts: true, + expectsMap: true, freshMapInfo: withRefs }), - change: () => renameActionInfo(withRefs), + change: ["main", () => ({ + freshMapInfo: false + })], dtsChange: "change", - mapChange: () => ({ - ...renameActionInfo(withRefs), + mapChange: ["main", () => ({ + freshMapInfo: false, freshDocumentMapper: withRefs - }), - noMap: () => ({ - ...renameNoMapActionInfo(withRefs), - freshMapInfo: withRefs, + })], + noMap: ["main", main => ({ + action: withRefs ? + renameFromDependencyTsWithBothProjectsOpen : + renameFromDependencyTs, + closedInfos: removePath(main.closedInfos, dtsMapPath), + otherWatchedFiles: main.otherWatchedFiles.concat(dtsMapLocation), + expectsMap: false, freshDocumentMapper: withRefs - }), + })], mapFileCreated: "main", mapFileDeleted: "noMap", - noDts: () => renameNoDtsActionInfo(withRefs), - dtsFileCreated: "main", - dtsFileDeleted: () => ({ - ...renameNoDtsActionInfo(withRefs), - // Map collection after file open - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path, dtsMapLocation] : - [libFile.path, dtsMapLocation], - expectsMap: true - }), - dependencyChange: () => ({ - ...renameActionInfo(withRefs), - action: renameFromDependencyTsWithBothProjectsOpenWithDependencyChange - }), - noBuild: () => ({ - action: renameFromDependencyTsWithBothProjectsOpen, - closedInfos: () => withRefs ? - [dependencyConfig.path, libFile.path] : - [libFile.path], - otherWatchedFiles: () => withRefs ? - [mainConfig.path, dtsLocation] : // Its in closed info - [mainConfig.path, dependencyConfig.path], + noDts: ["change", change => ({ + action: withRefs ? + renameFromDependencyTsWithBothProjectsOpen : + renameFromDependencyTs, + closedInfos: removePath(change.closedInfos, dtsPath, dtsMapPath), + otherWatchedFiles: change.otherWatchedFiles.concat(dtsLocation), expectsDts: false, expectsMap: false - }) + })], + dtsFileCreated: "main", + dtsFileDeleted: ["noDts", noDts => ({ + // Map collection after file open + closedInfos: noDts.closedInfos.concat(dtsMapLocation) , + expectsMap: true + })], + dependencyChange: ["change", () => ({ + action: renameFromDependencyTsWithBothProjectsOpenWithDependencyChange + })], + noBuild: "noDts" } ] }); From b1fa2ebff5bfcd8bc69932cbec01d0c1479f091f Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 5 Jul 2019 12:17:01 -0700 Subject: [PATCH 018/159] Errors using DiagnosticsSync commands --- .../tsserver/projectReferenceErrors.ts | 88 ++++++++++++++++--- 1 file changed, 74 insertions(+), 14 deletions(-) diff --git a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts index 8006b916037..303808cb4e4 100644 --- a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts +++ b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts @@ -61,7 +61,7 @@ fnErr(); interface CheckAllErrors { session: TestSession; host: TestServerHost; - expected: ReadonlyArray; + expected: readonly GetErrDiagnostics[]; expectedSequenceId: number; } function checkAllErrors({ session, host, expected, expectedSequenceId }: CheckAllErrors) { @@ -118,6 +118,40 @@ fnErr(); }); } + function verifyErrorsUsingSyncMethods({ openFiles, expectedSyncDiagnostics }: VerifyScenario) { + it("verifies the errors using sync commands", () => { + const host = createServerHost([dependencyTs, dependencyConfig, usageTs, usageConfig, libFile]); + const session = createSession(host); + openFilesForSession(openFiles(), session); + for (const { file, project, syntax, semantic, suggestion } of expectedSyncDiagnostics()) { + const actualSyntax = session.executeCommandSeq({ + command: protocol.CommandTypes.SyntacticDiagnosticsSync, + arguments: { + file: file.path, + projectFileName: project + } + }).response as protocol.Diagnostic[]; + assert.deepEqual(actualSyntax, syntax, `Syntax diagnostics for file: ${file.path}, project: ${project}`); + const actualSemantic = session.executeCommandSeq({ + command: protocol.CommandTypes.SemanticDiagnosticsSync, + arguments: { + file: file.path, + projectFileName: project + } + }).response as protocol.Diagnostic[]; + assert.deepEqual(actualSemantic, semantic, `Semantic diagnostics for file: ${file.path}, project: ${project}`); + const actualSuggestion = session.executeCommandSeq({ + command: protocol.CommandTypes.SuggestionDiagnosticsSync, + arguments: { + file: file.path, + projectFileName: project + } + }).response as protocol.Diagnostic[]; + assert.deepEqual(actualSuggestion, suggestion, `Suggestion diagnostics for file: ${file.path}, project: ${project}`); + } + }); + } + interface GetErrDiagnostics { file: File; syntax: protocol.Diagnostic[]; @@ -126,16 +160,21 @@ fnErr(); } interface GetErrForProjectDiagnostics { project: string; - errors: ReadonlyArray; + errors: readonly GetErrDiagnostics[]; + } + interface SyncDiagnostics extends GetErrDiagnostics { + project?: string; } interface VerifyScenario { - openFiles: () => ReadonlyArray; - expectedGetErr: () => ReadonlyArray; - expectedGetErrForProject: () => ReadonlyArray; + openFiles: () => readonly File[]; + expectedGetErr: () => readonly GetErrDiagnostics[]; + expectedGetErrForProject: () => readonly GetErrForProjectDiagnostics[]; + expectedSyncDiagnostics: () => readonly SyncDiagnostics[]; } function verifyScenario(scenario: VerifyScenario) { verifyErrorsUsingGeterr(scenario); verifyErrorsUsingGeterrForProject(scenario); + verifyErrorsUsingSyncMethods(scenario); } function emptyDiagnostics(file: File): GetErrDiagnostics { @@ -169,13 +208,13 @@ fnErr(); file: dependencyTs, syntax: emptyArray, semantic: [ - createDiagnostic( - { line: 6, offset: 12 }, - { line: 6, offset: 13 }, - Diagnostics.Type_0_is_not_assignable_to_type_1, - ["10", "string"], - "error", - ) + createDiagnostic( + { line: 6, offset: 12 }, + { line: 6, offset: 13 }, + Diagnostics.Type_0_is_not_assignable_to_type_1, + ["10", "string"], + "error", + ) ], suggestion: emptyArray }; @@ -200,6 +239,10 @@ fnErr(); }; } + function syncDiagnostics(diagnostics: GetErrDiagnostics, project: string): SyncDiagnostics { + return { project, ...diagnostics }; + } + describe("when dependency project is not open", () => { verifyScenario({ openFiles: () => [usageTs], @@ -215,7 +258,15 @@ fnErr(); usageDiagnostics() ] } - ] + ], + expectedSyncDiagnostics: () => [ + // Without project + usageDiagnostics(), + emptyDiagnostics(dependencyTs), + // With project + syncDiagnostics(usageDiagnostics(), usageConfig.path), + syncDiagnostics(emptyDiagnostics(dependencyTs), usageConfig.path), + ], }); }); @@ -229,7 +280,16 @@ fnErr(); expectedGetErrForProject: () => [ usageProjectDiagnostics(), dependencyProjectDiagnostics() - ] + ], + expectedSyncDiagnostics: () => [ + // Without project + usageDiagnostics(), + dependencyDiagnostics(), + // With project + syncDiagnostics(usageDiagnostics(), usageConfig.path), + syncDiagnostics(emptyDiagnostics(dependencyTs), usageConfig.path), + syncDiagnostics(dependencyDiagnostics(), dependencyConfig.path), + ], }); }); }); From 824c22c460b9a57b9c67398890449cd6799fb4e0 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 8 Jul 2019 15:55:35 -0700 Subject: [PATCH 019/159] Source of project reference behave as if those files cannot be emitted. --- src/compiler/sys.ts | 47 +- src/harness/virtualFileSystemWithWatch.ts | 15 + src/server/project.ts | 9 +- src/server/session.ts | 4 +- src/testRunner/tsconfig.json | 1 + src/testRunner/unittests/tsbuildWatchMode.ts | 14 +- src/testRunner/unittests/tsserver/helpers.ts | 2 +- .../tsserver/projectReferenceCompileOnSave.ts | 410 ++++++++++++++++++ .../reference/api/tsserverlibrary.d.ts | 1 - 9 files changed, 468 insertions(+), 35 deletions(-) create mode 100644 src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 5abc19cdbc4..b7eca0ee51c 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -472,6 +472,33 @@ namespace ts { } } + function recursiveCreateDirectory(directoryPath: string, sys: System) { + const basePath = getDirectoryPath(directoryPath); + const shouldCreateParent = basePath !== "" && directoryPath !== basePath && !sys.directoryExists(basePath); + if (shouldCreateParent) { + recursiveCreateDirectory(basePath, sys); + } + if (shouldCreateParent || !sys.directoryExists(directoryPath)) { + sys.createDirectory(directoryPath); + } + } + + /** + * patch writefile to create folder before writing the file + */ + /*@internal*/ + export function patchWriteFileEnsuringDirectory(sys: System) { + // patch writefile to create folder before writing the file + const originalWriteFile = sys.writeFile; + sys.writeFile = (path, data, writeBom) => { + const directoryPath = getDirectoryPath(normalizeSlashes(path)); + if (directoryPath && !sys.directoryExists(directoryPath)) { + recursiveCreateDirectory(directoryPath, sys); + } + originalWriteFile.call(sys, path, data, writeBom); + }; + } + /*@internal*/ interface NodeBuffer extends Uint8Array { write(str: string, offset?: number, length?: number, encoding?: string): number; @@ -1259,17 +1286,6 @@ namespace ts { }; } - function recursiveCreateDirectory(directoryPath: string, sys: System) { - const basePath = getDirectoryPath(directoryPath); - const shouldCreateParent = basePath !== "" && directoryPath !== basePath && !sys.directoryExists(basePath); - if (shouldCreateParent) { - recursiveCreateDirectory(basePath, sys); - } - if (shouldCreateParent || !sys.directoryExists(directoryPath)) { - sys.createDirectory(directoryPath); - } - } - let sys: System | undefined; if (typeof ChakraHost !== "undefined") { sys = getChakraSystem(); @@ -1281,14 +1297,7 @@ namespace ts { } if (sys) { // patch writefile to create folder before writing the file - const originalWriteFile = sys.writeFile; - sys.writeFile = (path, data, writeBom) => { - const directoryPath = getDirectoryPath(normalizeSlashes(path)); - if (directoryPath && !sys!.directoryExists(directoryPath)) { - recursiveCreateDirectory(directoryPath, sys!); - } - originalWriteFile.call(sys, path, data, writeBom); - }; + patchWriteFileEnsuringDirectory(sys); } return sys!; })(); diff --git a/src/harness/virtualFileSystemWithWatch.ts b/src/harness/virtualFileSystemWithWatch.ts index 9e615a02638..23127f49aad 100644 --- a/src/harness/virtualFileSystemWithWatch.ts +++ b/src/harness/virtualFileSystemWithWatch.ts @@ -66,6 +66,8 @@ interface Array {}` params.newLine, params.useWindowsStylePaths, params.environmentVariables); + // Just like sys, patch the host to use writeFile + patchWriteFileEnsuringDirectory(host); return host; } @@ -990,6 +992,19 @@ interface Array {}` } } + export type TestServerHostTrackingWrittenFiles = TestServerHost & { writtenFiles: Map; }; + + export function changeToHostTrackingWrittenFiles(inputHost: TestServerHost) { + const host = inputHost as TestServerHostTrackingWrittenFiles; + const originalWriteFile = host.writeFile; + host.writtenFiles = createMap(); + host.writeFile = (fileName, content) => { + originalWriteFile.call(host, fileName, content); + const path = host.toFullPath(fileName); + host.writtenFiles.set(path, true); + }; + return host; + } export const tsbuildProjectsLocation = "/user/username/projects"; export function getTsBuildProjectFilePath(project: string, file: string) { return `${tsbuildProjectsLocation}/${project}/${file}`; diff --git a/src/server/project.ts b/src/server/project.ts index cd5a3fec855..2811b04c413 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -537,8 +537,11 @@ namespace ts.server { return this.projectService.getSourceFileLike(fileName, this); } - private shouldEmitFile(scriptInfo: ScriptInfo) { - return scriptInfo && !scriptInfo.isDynamicOrHasMixedContent(); + /*@internal*/ + shouldEmitFile(scriptInfo: ScriptInfo | undefined) { + return scriptInfo && + !scriptInfo.isDynamicOrHasMixedContent() && + !this.program!.isSourceOfProjectReferenceRedirect(scriptInfo.path); } getCompileOnSaveAffectedFileList(scriptInfo: ScriptInfo): string[] { @@ -548,7 +551,7 @@ namespace ts.server { updateProjectIfDirty(this); this.builderState = BuilderState.create(this.program!, this.projectService.toCanonicalFileName, this.builderState); return mapDefined(BuilderState.getFilesAffectedBy(this.builderState, this.program!, scriptInfo.path, this.cancellationToken, data => this.projectService.host.createHash!(data)), // TODO: GH#18217 - sourceFile => this.shouldEmitFile(this.projectService.getScriptInfoForPath(sourceFile.path)!) ? sourceFile.fileName : undefined); + sourceFile => this.shouldEmitFile(this.projectService.getScriptInfoForPath(sourceFile.path)) ? sourceFile.fileName : undefined); } /** diff --git a/src/server/session.ts b/src/server/session.ts index a5c13574805..ff080998552 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -1030,7 +1030,9 @@ namespace ts.server { private getEmitOutput(args: protocol.FileRequestArgs): EmitOutput { const { file, project } = this.getFileAndProject(args); - return project.getLanguageService().getEmitOutput(file); + return project.shouldEmitFile(project.getScriptInfo(file)) ? + project.getLanguageService().getEmitOutput(file) : + { emitSkipped: true, outputFiles: [] }; } private mapDefinitionInfo(definitions: ReadonlyArray, project: Project): ReadonlyArray { diff --git a/src/testRunner/tsconfig.json b/src/testRunner/tsconfig.json index 9d67215ffd9..ee2aba6275f 100644 --- a/src/testRunner/tsconfig.json +++ b/src/testRunner/tsconfig.json @@ -137,6 +137,7 @@ "unittests/tsserver/occurences.ts", "unittests/tsserver/openFile.ts", "unittests/tsserver/projectErrors.ts", + "unittests/tsserver/projectReferenceCompileOnSave.ts", "unittests/tsserver/projectReferenceErrors.ts", "unittests/tsserver/projectReferences.ts", "unittests/tsserver/projects.ts", diff --git a/src/testRunner/unittests/tsbuildWatchMode.ts b/src/testRunner/unittests/tsbuildWatchMode.ts index 6a577888c7e..dcc2fdbb1ac 100644 --- a/src/testRunner/unittests/tsbuildWatchMode.ts +++ b/src/testRunner/unittests/tsbuildWatchMode.ts @@ -2,18 +2,12 @@ namespace ts.tscWatch { import projectsLocation = TestFSWithWatch.tsbuildProjectsLocation; import getFilePathInProject = TestFSWithWatch.getTsBuildProjectFilePath; import getFileFromProject = TestFSWithWatch.getTsBuildProjectFile; - type TsBuildWatchSystem = WatchedSystem & { writtenFiles: Map; }; + type TsBuildWatchSystem = TestFSWithWatch.TestServerHostTrackingWrittenFiles; function createTsBuildWatchSystem(fileOrFolderList: ReadonlyArray, params?: TestFSWithWatch.TestServerHostCreationParameters) { - const host = createWatchedSystem(fileOrFolderList, params) as TsBuildWatchSystem; - const originalWriteFile = host.writeFile; - host.writtenFiles = createMap(); - host.writeFile = (fileName, content) => { - originalWriteFile.call(host, fileName, content); - const path = host.toFullPath(fileName); - host.writtenFiles.set(path, true); - }; - return host; + return TestFSWithWatch.changeToHostTrackingWrittenFiles( + createWatchedSystem(fileOrFolderList, params) + ); } export function createSolutionBuilder(system: WatchedSystem, rootNames: ReadonlyArray, defaultOptions?: BuildOptions) { diff --git a/src/testRunner/unittests/tsserver/helpers.ts b/src/testRunner/unittests/tsserver/helpers.ts index 1c6bd4e9f59..12611f79266 100644 --- a/src/testRunner/unittests/tsserver/helpers.ts +++ b/src/testRunner/unittests/tsserver/helpers.ts @@ -498,7 +498,7 @@ namespace ts.projectSystem { return protocolToLocation(str)(start); } - function protocolToLocation(text: string): (pos: number) => protocol.Location { + export function protocolToLocation(text: string): (pos: number) => protocol.Location { const lineStarts = computeLineStarts(text); return pos => { const x = computeLineAndCharacterOfPosition(lineStarts, pos); diff --git a/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts b/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts new file mode 100644 index 00000000000..9602ef6360e --- /dev/null +++ b/src/testRunner/unittests/tsserver/projectReferenceCompileOnSave.ts @@ -0,0 +1,410 @@ +namespace ts.projectSystem { + describe("unittests:: tsserver:: with project references and compile on save", () => { + const projectLocation = "/user/username/projects/myproject"; + const dependecyLocation = `${projectLocation}/dependency`; + const usageLocation = `${projectLocation}/usage`; + const dependencyTs: File = { + path: `${dependecyLocation}/fns.ts`, + content: `export function fn1() { } +export function fn2() { } +` + }; + const dependencyConfig: File = { + path: `${dependecyLocation}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { composite: true, declarationDir: "../decls" }, + compileOnSave: true + }) + }; + const usageTs: File = { + path: `${usageLocation}/usage.ts`, + content: `import { + fn1, + fn2, +} from '../decls/fns' +fn1(); +fn2(); +` + }; + const usageConfig: File = { + path: `${usageLocation}/tsconfig.json`, + content: JSON.stringify({ + compileOnSave: true, + references: [{ path: "../dependency" }] + }) + }; + + interface VerifySingleScenarioWorker extends VerifySingleScenario { + withProject: boolean; + } + function verifySingleScenarioWorker({ + withProject, scenario, openFiles, requestArgs, change, expectedResult + }: VerifySingleScenarioWorker) { + it(scenario, () => { + const host = TestFSWithWatch.changeToHostTrackingWrittenFiles( + createServerHost([dependencyTs, dependencyConfig, usageTs, usageConfig, libFile]) + ); + const session = createSession(host); + openFilesForSession(openFiles(), session); + const reqArgs = requestArgs(); + const { + expectedAffected, + expectedEmit: { expectedEmitSuccess, expectedFiles }, + expectedEmitOutput + } = expectedResult(withProject); + + if (change) { + session.executeCommandSeq({ + command: protocol.CommandTypes.CompileOnSaveAffectedFileList, + arguments: { file: dependencyTs.path } + }); + const { file, insertString } = change(); + if (session.getProjectService().openFiles.has(file.path)) { + const toLocation = protocolToLocation(file.content); + const location = toLocation(file.content.length); + session.executeCommandSeq({ + command: protocol.CommandTypes.Change, + arguments: { + file: file.path, + ...location, + endLine: location.line, + endOffset: location.offset, + insertString + } + }); + } + else { + host.writeFile(file.path, `${file.content}${insertString}`); + } + host.writtenFiles.clear(); + } + + const args = withProject ? reqArgs : { file: reqArgs.file }; + // Verify CompileOnSaveAffectedFileList + const actualAffectedFiles = session.executeCommandSeq({ + command: protocol.CommandTypes.CompileOnSaveAffectedFileList, + arguments: args + }).response as protocol.CompileOnSaveAffectedFileListSingleProject[]; + assert.deepEqual(actualAffectedFiles, expectedAffected, "Affected files"); + + // Verify CompileOnSaveEmit + const actualEmit = session.executeCommandSeq({ + command: protocol.CommandTypes.CompileOnSaveEmitFile, + arguments: args + }).response; + assert.deepEqual(actualEmit, expectedEmitSuccess, "Emit files"); + assert.equal(host.writtenFiles.size, expectedFiles.length); + for (const file of expectedFiles) { + assert.equal(host.readFile(file.path), file.content, `Expected to write ${file.path}`); + assert.isTrue(host.writtenFiles.has(file.path), `${file.path} is newly written`); + } + + // Verify EmitOutput + const { exportedModulesFromDeclarationEmit: _1, ...actualEmitOutput } = session.executeCommandSeq({ + command: protocol.CommandTypes.EmitOutput, + arguments: args + }).response as EmitOutput; + assert.deepEqual(actualEmitOutput, expectedEmitOutput, "Emit output"); + }); + } + + interface VerifySingleScenario { + scenario: string; + openFiles: () => readonly File[]; + requestArgs: () => protocol.FileRequestArgs; + skipWithoutProject?: boolean; + change?: () => SingleScenarioChange; + expectedResult: GetSingleScenarioResult; + } + function verifySingleScenario(scenario: VerifySingleScenario) { + if (!scenario.skipWithoutProject) { + describe("without specifying project file", () => { + verifySingleScenarioWorker({ + withProject: false, + ...scenario + }); + }); + } + describe("with specifying project file", () => { + verifySingleScenarioWorker({ + withProject: true, + ...scenario + }); + }); + } + + interface SingleScenarioExpectedEmit { + expectedEmitSuccess: boolean; + expectedFiles: readonly File[]; + } + interface SingleScenarioResult { + expectedAffected: protocol.CompileOnSaveAffectedFileListSingleProject[]; + expectedEmit: SingleScenarioExpectedEmit; + expectedEmitOutput: EmitOutput; + } + type GetSingleScenarioResult = (withProject: boolean) => SingleScenarioResult; + interface SingleScenarioChange { + file: File; + insertString: string; + } + interface ScenarioDetails { + scenarioName: string; + requestArgs: () => protocol.FileRequestArgs; + skipWithoutProject?: boolean; + initial: GetSingleScenarioResult; + localChangeToDependency: GetSingleScenarioResult; + localChangeToUsage: GetSingleScenarioResult; + changeToDependency: GetSingleScenarioResult; + changeToUsage: GetSingleScenarioResult; + } + interface VerifyScenario { + openFiles: () => readonly File[]; + scenarios: readonly ScenarioDetails[]; + } + + const localChange = "function fn3() { }"; + const change = `export ${localChange}`; + const changeJs = `function fn3() { } +exports.fn3 = fn3;`; + const changeDts = "export declare function fn3(): void;"; + function verifyScenario({ openFiles, scenarios }: VerifyScenario) { + for (const { + scenarioName, requestArgs, skipWithoutProject, initial, + localChangeToDependency, localChangeToUsage, + changeToDependency, changeToUsage + } of scenarios) { + describe(scenarioName, () => { + verifySingleScenario({ + scenario: "with initial file open", + openFiles, + requestArgs, + skipWithoutProject, + expectedResult: initial + }); + + verifySingleScenario({ + scenario: "with local change to dependency", + openFiles, + requestArgs, + skipWithoutProject, + change: () => ({ file: dependencyTs, insertString: localChange }), + expectedResult: localChangeToDependency + }); + + verifySingleScenario({ + scenario: "with local change to usage", + openFiles, + requestArgs, + skipWithoutProject, + change: () => ({ file: usageTs, insertString: localChange }), + expectedResult: localChangeToUsage + }); + + verifySingleScenario({ + scenario: "with change to dependency", + openFiles, + requestArgs, + skipWithoutProject, + change: () => ({ file: dependencyTs, insertString: change }), + expectedResult: changeToDependency + }); + + verifySingleScenario({ + scenario: "with change to usage", + openFiles, + requestArgs, + skipWithoutProject, + change: () => ({ file: usageTs, insertString: change }), + expectedResult: changeToUsage + }); + }); + } + } + + function expectedAffectedFiles(config: File, fileNames: File[]): protocol.CompileOnSaveAffectedFileListSingleProject { + return { + projectFileName: config.path, + fileNames: fileNames.map(f => f.path), + projectUsesOutFile: false + }; + } + + function expectedUsageEmit(appendJsText?: string): SingleScenarioExpectedEmit { + const appendJs = appendJsText ? `${appendJsText} +` : ""; + return { + expectedEmitSuccess: true, + expectedFiles: [{ + path: `${usageLocation}/usage.js`, + content: `"use strict"; +exports.__esModule = true; +var fns_1 = require("../decls/fns"); +fns_1.fn1(); +fns_1.fn2(); +${appendJs}` + }] + }; + } + + function expectedEmitOutput({ expectedFiles }: SingleScenarioExpectedEmit): EmitOutput { + return { + outputFiles: expectedFiles.map(({ path, content }) => ({ + name: path, + text: content, + writeByteOrderMark: false + })), + emitSkipped: false + }; + } + + function expectedUsageEmitOutput(appendJsText?: string): EmitOutput { + return expectedEmitOutput(expectedUsageEmit(appendJsText)); + } + + function noEmit(): SingleScenarioExpectedEmit { + return { + expectedEmitSuccess: false, + expectedFiles: emptyArray + }; + } + + function noEmitOutput(): EmitOutput { + return { + emitSkipped: true, + outputFiles: [] + }; + } + + function expectedDependencyEmit(appendJsText?: string, appendDtsText?: string): SingleScenarioExpectedEmit { + const appendJs = appendJsText ? `${appendJsText} +` : ""; + const appendDts = appendDtsText ? `${appendDtsText} +` : ""; + return { + expectedEmitSuccess: true, + expectedFiles: [ + { + path: `${dependecyLocation}/fns.js`, + content: `"use strict"; +exports.__esModule = true; +function fn1() { } +exports.fn1 = fn1; +function fn2() { } +exports.fn2 = fn2; +${appendJs}` + }, + { + path: `${projectLocation}/decls/fns.d.ts`, + content: `export declare function fn1(): void; +export declare function fn2(): void; +${appendDts}` + } + ] + }; + } + + function expectedDependencyEmitOutput(appendJsText?: string, appendDtsText?: string): EmitOutput { + return expectedEmitOutput(expectedDependencyEmit(appendJsText, appendDtsText)); + } + + function scenarioDetailsOfUsage(isDependencyOpen?: boolean): ScenarioDetails[] { + return [ + { + scenarioName: "Of usageTs", + requestArgs: () => ({ file: usageTs.path, projectFileName: usageConfig.path }), + initial: () => initialUsageTs(), + // no change to usage so same as initial only usage file + localChangeToDependency: () => initialUsageTs(), + localChangeToUsage: () => initialUsageTs(localChange), + changeToDependency: () => initialUsageTs(), + changeToUsage: () => initialUsageTs(changeJs) + }, + { + scenarioName: "Of dependencyTs in usage project", + requestArgs: () => ({ file: dependencyTs.path, projectFileName: usageConfig.path }), + skipWithoutProject: !!isDependencyOpen, + initial: () => initialDependencyTs(), + localChangeToDependency: () => initialDependencyTs(/*noUsageFiles*/ true), + localChangeToUsage: () => initialDependencyTs(/*noUsageFiles*/ true), + changeToDependency: () => initialDependencyTs(), + changeToUsage: () => initialDependencyTs(/*noUsageFiles*/ true) + } + ]; + + function initialUsageTs(jsText?: string) { + return { + expectedAffected: [ + expectedAffectedFiles(usageConfig, [usageTs]) + ], + expectedEmit: expectedUsageEmit(jsText), + expectedEmitOutput: expectedUsageEmitOutput(jsText) + }; + } + + function initialDependencyTs(noUsageFiles?: true) { + return { + expectedAffected: [ + expectedAffectedFiles(usageConfig, noUsageFiles ? [] : [usageTs]) + ], + expectedEmit: noEmit(), + expectedEmitOutput: noEmitOutput() + }; + } + } + + function scenarioDetailsOfDependencyWhenOpen(): ScenarioDetails { + return { + scenarioName: "Of dependencyTs", + requestArgs: () => ({ file: dependencyTs.path, projectFileName: dependencyConfig.path }), + initial, + localChangeToDependency: withProject => ({ + expectedAffected: withProject ? + [ + expectedAffectedFiles(dependencyConfig, [dependencyTs]) + ] : + [ + expectedAffectedFiles(usageConfig, []), + expectedAffectedFiles(dependencyConfig, [dependencyTs]) + ], + expectedEmit: expectedDependencyEmit(localChange), + expectedEmitOutput: expectedDependencyEmitOutput(localChange) + }), + localChangeToUsage: withProject => initial(withProject, /*noUsageFiles*/ true), + changeToDependency: withProject => initial(withProject, /*noUsageFiles*/ undefined, changeJs, changeDts), + changeToUsage: withProject => initial(withProject, /*noUsageFiles*/ true) + }; + + function initial(withProject: boolean, noUsageFiles?: true, appendJs?: string, appendDts?: string): SingleScenarioResult { + return { + expectedAffected: withProject ? + [ + expectedAffectedFiles(dependencyConfig, [dependencyTs]) + ] : + [ + expectedAffectedFiles(usageConfig, noUsageFiles ? [] : [usageTs]), + expectedAffectedFiles(dependencyConfig, [dependencyTs]) + ], + expectedEmit: expectedDependencyEmit(appendJs, appendDts), + expectedEmitOutput: expectedDependencyEmitOutput(appendJs, appendDts) + }; + } + } + + describe("when dependency project is not open", () => { + verifyScenario({ + openFiles: () => [usageTs], + scenarios: scenarioDetailsOfUsage() + }); + }); + + describe("when the depedency file is open", () => { + verifyScenario({ + openFiles: () => [usageTs, dependencyTs], + scenarios: [ + ...scenarioDetailsOfUsage(/*isDependencyOpen*/ true), + scenarioDetailsOfDependencyWhenOpen(), + ] + }); + }); + }); +} diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index ea7003e471f..0b728ac95d8 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -8463,7 +8463,6 @@ declare namespace ts.server { getGlobalProjectErrors(): ReadonlyArray; getAllProjectErrors(): ReadonlyArray; getLanguageService(ensureSynchronized?: boolean): LanguageService; - private shouldEmitFile; getCompileOnSaveAffectedFileList(scriptInfo: ScriptInfo): string[]; /** * Returns true if emit was conducted From b63185097889376b4c02094b863af9cf752f34cc Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 10 Jul 2019 15:21:24 -0700 Subject: [PATCH 020/159] Add option disableSourceOfProjectReferenceRedirect to disable using sources of project reference redirect from editor --- src/compiler/commandLineParser.ts | 6 ++ src/compiler/diagnosticMessages.json | 4 + src/compiler/program.ts | 12 +-- src/compiler/types.ts | 3 +- src/server/editorServices.ts | 2 +- src/server/project.ts | 7 +- src/services/services.ts | 4 +- src/services/types.ts | 2 +- .../tsserver/events/projectLoading.ts | 84 ++++++++++++------- .../unittests/tsserver/projectReferences.ts | 30 +++++-- .../reference/api/tsserverlibrary.d.ts | 1 + tests/baselines/reference/api/typescript.d.ts | 1 + .../tsconfig.json | 5 ++ 13 files changed, 110 insertions(+), 51 deletions(-) create mode 100644 tests/baselines/reference/showConfig/Shows tsconfig for single option/disableSourceOfProjectReferenceRedirect/tsconfig.json diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 4747b89f08c..7f67b9c5097 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -751,6 +751,12 @@ namespace ts { category: Diagnostics.Advanced_Options, description: Diagnostics.Disable_size_limitations_on_JavaScript_projects }, + { + name: "disableSourceOfProjectReferenceRedirect", + type: "boolean", + category: Diagnostics.Advanced_Options, + description: Diagnostics.Disable_using_source_of_project_reference_redirect_files + }, { name: "noImplicitUseStrict", type: "boolean", diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 7d178f1d478..edc3903b38e 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -3967,6 +3967,10 @@ "category": "Message", "code": 6220 }, + "Disable using source of project reference redirect files.": { + "category": "Message", + "code": 6221 + }, "Projects to reference": { "category": "Message", diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 2149e175ca2..63f58066174 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -814,7 +814,7 @@ namespace ts { let projectReferenceRedirects: Map | undefined; let mapFromFileToProjectReferenceRedirects: Map | undefined; let mapFromToProjectReferenceRedirectSource: Map | undefined; - const useSourceOfReference = !!host.useSourceInsteadOfReferenceRedirect && host.useSourceInsteadOfReferenceRedirect(); + const useSourceOfProjectReferenceRedirect = !!host.useSourceOfProjectReferenceRedirect && host.useSourceOfProjectReferenceRedirect(); const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options); const structuralIsReused = tryReuseStructureFromOldProgram(); @@ -836,7 +836,7 @@ namespace ts { for (const parsedRef of resolvedProjectReferences) { if (!parsedRef) continue; const out = parsedRef.commandLine.options.outFile || parsedRef.commandLine.options.out; - if (useSourceOfReference) { + if (useSourceOfProjectReferenceRedirect) { if (out || getEmitModuleKind(parsedRef.commandLine.options) === ModuleKind.None) { for (const fileName of parsedRef.commandLine.fileNames) { processSourceFile(fileName, /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, /*packageId*/ undefined); @@ -1418,7 +1418,7 @@ namespace ts { for (const newSourceFile of newSourceFiles) { const filePath = newSourceFile.path; addFileToFilesByName(newSourceFile, filePath, newSourceFile.resolvedPath); - if (useSourceOfReference) { + if (useSourceOfProjectReferenceRedirect) { const redirectProject = getProjectReferenceRedirectProject(newSourceFile.fileName); if (redirectProject && !(redirectProject.commandLine.options.outFile || redirectProject.commandLine.options.out)) { const redirect = getProjectReferenceOutputName(redirectProject, newSourceFile.fileName); @@ -2252,7 +2252,7 @@ namespace ts { // Get source file from normalized fileName function findSourceFile(fileName: string, path: Path, isDefaultLib: boolean, ignoreNoDefaultLib: boolean, refFile: SourceFile, refPos: number, refEnd: number, packageId: PackageId | undefined): SourceFile | undefined { - if (useSourceOfReference) { + if (useSourceOfProjectReferenceRedirect) { const source = getSourceOfProjectReferenceRedirect(fileName); if (source) { const file = isString(source) ? @@ -2309,7 +2309,7 @@ namespace ts { } let redirectedPath: Path | undefined; - if (refFile && !useSourceOfReference) { + if (refFile && !useSourceOfProjectReferenceRedirect) { const redirectProject = getProjectReferenceRedirectProject(fileName); if (redirectProject) { if (redirectProject.commandLine.options.outFile || redirectProject.commandLine.options.out) { @@ -2498,7 +2498,7 @@ namespace ts { } function isSourceOfProjectReferenceRedirect(fileName: string) { - return useSourceOfReference && !!getResolvedProjectReferenceToRedirect(fileName); + return useSourceOfProjectReferenceRedirect && !!getResolvedProjectReferenceToRedirect(fileName); } function forEachProjectReference( diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 16ea47beecc..69ac55e6e1b 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -4645,6 +4645,7 @@ namespace ts { /* @internal */ diagnostics?: boolean; /* @internal */ extendedDiagnostics?: boolean; disableSizeLimit?: boolean; + disableSourceOfProjectReferenceRedirect?: boolean; downlevelIteration?: boolean; emitBOM?: boolean; emitDecoratorMetadata?: boolean; @@ -5169,7 +5170,7 @@ namespace ts { createHash?(data: string): string; getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined; /* @internal */ setResolvedProjectReferenceCallbacks?(callbacks: ResolvedProjectReferenceCallbacks): void; - /* @internal */ useSourceInsteadOfReferenceRedirect?(): boolean; + /* @internal */ useSourceOfProjectReferenceRedirect?(): boolean; // TODO: later handle this in better way in builder host instead once the api for tsbuild finalizes and doesn't use compilerHost as base /*@internal*/createDirectory?(directory: string): void; diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index 6fea0bc4171..ab325d5ed33 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -2583,7 +2583,7 @@ namespace ts.server { if (!configFileName) return undefined; const configuredProject = this.findConfiguredProjectByProjectName(configFileName) || - this.createAndLoadConfiguredProject(configFileName, `Creating project for original file: ${originalFileInfo.fileName}${location !== originalLocation ? " for location " + location.fileName : ""}`); + this.createAndLoadConfiguredProject(configFileName, `Creating project for original file: ${originalFileInfo.fileName}${location !== originalLocation ? " for location: " + location.fileName : ""}`); if (configuredProject === project) return originalLocation; updateProjectIfDirty(configuredProject); // Keep this configured project as referenced from project diff --git a/src/server/project.ts b/src/server/project.ts index 2811b04c413..87ced54de8e 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -1540,11 +1540,12 @@ namespace ts.server { } /* @internal */ - useSourceInsteadOfReferenceRedirect = () => !!this.languageServiceEnabled; + useSourceOfProjectReferenceRedirect = () => !!this.languageServiceEnabled && + !this.getCompilerOptions().disableSourceOfProjectReferenceRedirect; fileExists(file: string): boolean { // Project references go to source file instead of .d.ts file - if (this.useSourceInsteadOfReferenceRedirect() && this.projectReferenceCallbacks) { + if (this.useSourceOfProjectReferenceRedirect() && this.projectReferenceCallbacks) { const source = this.projectReferenceCallbacks.getSourceOfProjectReferenceRedirect(file); if (source) return isString(source) ? super.fileExists(source) : true; } @@ -1553,7 +1554,7 @@ namespace ts.server { directoryExists(path: string): boolean { if (super.directoryExists(path)) return true; - if (!this.useSourceInsteadOfReferenceRedirect() || !this.projectReferenceCallbacks) return false; + if (!this.useSourceOfProjectReferenceRedirect() || !this.projectReferenceCallbacks) return false; if (!this.mapOfDeclarationDirectories) { this.mapOfDeclarationDirectories = createMap(); diff --git a/src/services/services.ts b/src/services/services.ts index 2f9ba6eec94..c4af3c94702 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1248,8 +1248,8 @@ namespace ts { if (host.setResolvedProjectReferenceCallbacks) { compilerHost.setResolvedProjectReferenceCallbacks = callbacks => host.setResolvedProjectReferenceCallbacks!(callbacks); } - if (host.useSourceInsteadOfReferenceRedirect) { - compilerHost.useSourceInsteadOfReferenceRedirect = () => host.useSourceInsteadOfReferenceRedirect!(); + if (host.useSourceOfProjectReferenceRedirect) { + compilerHost.useSourceOfProjectReferenceRedirect = () => host.useSourceOfProjectReferenceRedirect!(); } const documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings); diff --git a/src/services/types.ts b/src/services/types.ts index b4fc25e587f..ec71813e1dc 100644 --- a/src/services/types.ts +++ b/src/services/types.ts @@ -239,7 +239,7 @@ namespace ts { /* @internal */ setResolvedProjectReferenceCallbacks?(callbacks: ResolvedProjectReferenceCallbacks): void; /* @internal */ - useSourceInsteadOfReferenceRedirect?(): boolean; + useSourceOfProjectReferenceRedirect?(): boolean; } /* @internal */ diff --git a/src/testRunner/unittests/tsserver/events/projectLoading.ts b/src/testRunner/unittests/tsserver/events/projectLoading.ts index 53fe28240f8..3cc25232bc2 100644 --- a/src/testRunner/unittests/tsserver/events/projectLoading.ts +++ b/src/testRunner/unittests/tsserver/events/projectLoading.ts @@ -73,44 +73,64 @@ namespace ts.projectSystem { verifyEvent(project, `Change in config file detected`); }); - it("when opening original location project", () => { - const aDTs: File = { - path: `${projectRoot}/a/a.d.ts`, - content: `export declare class A { + describe("when opening original location project", () => { + it("with project references", () => { + verify(); + }); + + it("when disableSourceOfProjectReferenceRedirect is true", () => { + verify(/*disableSourceOfProjectReferenceRedirect*/ true); + }); + + function verify(disableSourceOfProjectReferenceRedirect?: true) { + const aDTs: File = { + path: `${projectRoot}/a/a.d.ts`, + content: `export declare class A { } //# sourceMappingURL=a.d.ts.map ` - }; - const aDTsMap: File = { - path: `${projectRoot}/a/a.d.ts.map`, - content: `{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"}` - }; - const bTs: File = { - path: bTsPath, - content: `import {A} from "../a/a"; new A();` - }; - const configB: File = { - path: configBPath, - content: JSON.stringify({ - references: [{ path: "../a" }] - }) - }; + }; + const aDTsMap: File = { + path: `${projectRoot}/a/a.d.ts.map`, + content: `{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["./a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;CAAI"}` + }; + const bTs: File = { + path: bTsPath, + content: `import {A} from "../a/a"; new A();` + }; + const configB: File = { + path: configBPath, + content: JSON.stringify({ + ...(disableSourceOfProjectReferenceRedirect && { + compilerOptions: { + disableSourceOfProjectReferenceRedirect + } + }), + references: [{ path: "../a" }] + }) + }; - const { service, session, verifyEventWithOpenTs, verifyEvent } = createSessionToVerifyEvent(files.concat(aDTs, aDTsMap, bTs, configB)); - verifyEventWithOpenTs(bTs, configB.path, 1); + const { service, session, verifyEventWithOpenTs, verifyEvent } = createSessionToVerifyEvent(files.concat(aDTs, aDTsMap, bTs, configB)); + verifyEventWithOpenTs(bTs, configB.path, 1); - session.executeCommandSeq({ - command: protocol.CommandTypes.References, - arguments: { - file: bTs.path, - ...protocolLocationFromSubstring(bTs.content, "A()") - } - }); + session.executeCommandSeq({ + command: protocol.CommandTypes.References, + arguments: { + file: bTs.path, + ...protocolLocationFromSubstring(bTs.content, "A()") + } + }); - checkNumberOfProjects(service, { configuredProjects: 2 }); - const project = service.configuredProjects.get(configA.path)!; - assert.isDefined(project); - verifyEvent(project, `Creating project for original file: ${aTs.path}`); + checkNumberOfProjects(service, { configuredProjects: 2 }); + const project = service.configuredProjects.get(configA.path)!; + assert.isDefined(project); + verifyEvent( + project, + disableSourceOfProjectReferenceRedirect ? + `Creating project for original file: ${aTs.path} for location: ${aDTs.path}` : + `Creating project for original file: ${aTs.path}` + ); + } }); describe("with external projects and config files ", () => { diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index f9445dc6d19..fe1ff10aac1 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -417,6 +417,7 @@ fn5(); interface VerifierAndWithRefs { withRefs: boolean; + disableSourceOfProjectReferenceRedirect?: true; verifier: (withRefs: boolean) => readonly DocumentPositionMapperVerifier[]; } @@ -426,7 +427,7 @@ fn5(); interface OpenTsFile extends VerifierAndWithRefs { onHostCreate?: (host: TestServerHost) => void; } - function openTsFile({ withRefs, verifier, onHostCreate }: OpenTsFile) { + function openTsFile({ withRefs, disableSourceOfProjectReferenceRedirect, verifier, onHostCreate }: OpenTsFile) { const host = createHost(files, [mainConfig.path]); if (!withRefs) { // Erase project reference @@ -434,11 +435,22 @@ fn5(); compilerOptions: { composite: true, declarationMap: true } })); } + else if (disableSourceOfProjectReferenceRedirect) { + // Erase project reference + host.writeFile(mainConfig.path, JSON.stringify({ + compilerOptions: { + composite: true, + declarationMap: true, + disableSourceOfProjectReferenceRedirect: !!disableSourceOfProjectReferenceRedirect + }, + references: [{ path: "../dependency" }] + })); + } if (onHostCreate) { onHostCreate(host); } const session = createSession(host); - const verifiers = verifier(withRefs); + const verifiers = verifier(withRefs && !disableSourceOfProjectReferenceRedirect); openFilesForSession([...openFiles(verifiers), randomFile], session); return { host, session, verifiers }; } @@ -786,9 +798,9 @@ fn5(); }); } - function verifyScenarioWorker({ mainScenario, verifier }: VerifyScenario, withRefs: boolean) { + function verifyScenarioWorker({ mainScenario, verifier }: VerifyScenario, withRefs: boolean, disableSourceOfProjectReferenceRedirect?: true) { it(mainScenario, () => { - const { host, session, verifiers } = openTsFile({ withRefs, verifier }); + const { host, session, verifiers } = openTsFile({ withRefs, disableSourceOfProjectReferenceRedirect, verifier }); checkProject(session, verifiers); verifyScenarioAndScriptInfoCollection(session, host, verifiers, "main"); }); @@ -798,6 +810,7 @@ fn5(); scenarioName: "when usage file changes, document position mapper doesnt change", verifier, withRefs, + disableSourceOfProjectReferenceRedirect, change: (_host, session, verifiers) => verifiers.forEach( verifier => session.executeCommandSeq({ command: protocol.CommandTypes.Change, @@ -819,6 +832,7 @@ fn5(); scenarioName: "when dependency .d.ts changes, document position mapper doesnt change", verifier, withRefs, + disableSourceOfProjectReferenceRedirect, change: host => host.writeFile( dtsLocation, host.readFile(dtsLocation)!.replace( @@ -835,6 +849,7 @@ fn5(); scenarioName: "when dependency file's map changes", verifier, withRefs, + disableSourceOfProjectReferenceRedirect, change: host => host.writeFile( dtsMapLocation, `{"version":3,"file":"FnS.d.ts","sourceRoot":"","sources":["../dependency/FnS.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,wBAAgB,GAAG,SAAM;AACzB,eAAO,MAAM,CAAC,KAAK,CAAC"}` @@ -846,6 +861,7 @@ fn5(); scenarioName: "with depedency files map file", verifier, withRefs, + disableSourceOfProjectReferenceRedirect, fileLocation: dtsMapLocation, fileNotPresentKey: "noMap", fileCreatedKey: "mapFileCreated", @@ -856,6 +872,7 @@ fn5(); scenarioName: "with depedency .d.ts file", verifier, withRefs, + disableSourceOfProjectReferenceRedirect, fileLocation: dtsLocation, fileNotPresentKey: "noDts", fileCreatedKey: "dtsFileCreated", @@ -863,7 +880,7 @@ fn5(); noDts: true }); - if (withRefs) { + if (withRefs && !disableSourceOfProjectReferenceRedirect) { verifyScenarioWithChanges({ scenarioName: "when defining project source changes", verifier, @@ -907,6 +924,9 @@ ${dependencyTs.content}`); describe("when main tsconfig has project reference", () => { verifyScenarioWorker(scenario, /*withRefs*/ true); }); + describe("when main tsconfig has but has disableSourceOfProjectReferenceRedirect", () => { + verifyScenarioWorker(scenario, /*withRefs*/ true); + }); } describe("from project that uses dependency", () => { diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 0b728ac95d8..09931908eda 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -2513,6 +2513,7 @@ declare namespace ts { emitDeclarationOnly?: boolean; declarationDir?: string; disableSizeLimit?: boolean; + disableSourceOfProjectReferenceRedirect?: boolean; downlevelIteration?: boolean; emitBOM?: boolean; emitDecoratorMetadata?: boolean; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index be8eea8062b..34f6fd36dad 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -2513,6 +2513,7 @@ declare namespace ts { emitDeclarationOnly?: boolean; declarationDir?: string; disableSizeLimit?: boolean; + disableSourceOfProjectReferenceRedirect?: boolean; downlevelIteration?: boolean; emitBOM?: boolean; emitDecoratorMetadata?: boolean; diff --git a/tests/baselines/reference/showConfig/Shows tsconfig for single option/disableSourceOfProjectReferenceRedirect/tsconfig.json b/tests/baselines/reference/showConfig/Shows tsconfig for single option/disableSourceOfProjectReferenceRedirect/tsconfig.json new file mode 100644 index 00000000000..c8b95e0909d --- /dev/null +++ b/tests/baselines/reference/showConfig/Shows tsconfig for single option/disableSourceOfProjectReferenceRedirect/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "disableSourceOfProjectReferenceRedirect": true + } +} From 232ee608d5482cf0ca8bec9bf7ed8cafcb51fef0 Mon Sep 17 00:00:00 2001 From: Titian Cernicova-Dragomir Date: Thu, 11 Jul 2019 14:38:59 +0300 Subject: [PATCH 021/159] Improved const extraction for function expressions and arrow functions. The behavior applies if the function: - is contextually typed (because otherwise no type annotation for the variable would have been generated anyway) - is not generic - doesn't have parameters inferred as any If these conditions are met, we add missing parameters type and we add this parameter to the function. --- src/services/refactors/extractSymbol.ts | 74 ++++++++++++++++++- .../extractConstant_ContextualType_Lambda.ts | 2 +- ...extract-const-callback-function-generic.ts | 15 ++++ ...act-const-callback-function-no-context1.ts | 15 ++++ ...act-const-callback-function-no-context2.ts | 15 ++++ ...act-const-callback-function-no-context3.ts | 15 ++++ .../extract-const-callback-function-rest.ts | 18 +++++ .../extract-const-callback-function-this1.ts | 15 ++++ .../extract-const-callback-function-this2.ts | 15 ++++ .../extract-const-callback-function-this3.ts | 17 +++++ .../extract-const-callback-function.ts | 13 ++++ .../cases/fourslash/extract-const-callback.ts | 13 ++++ 12 files changed, 224 insertions(+), 3 deletions(-) create mode 100644 tests/cases/fourslash/extract-const-callback-function-generic.ts create mode 100644 tests/cases/fourslash/extract-const-callback-function-no-context1.ts create mode 100644 tests/cases/fourslash/extract-const-callback-function-no-context2.ts create mode 100644 tests/cases/fourslash/extract-const-callback-function-no-context3.ts create mode 100644 tests/cases/fourslash/extract-const-callback-function-rest.ts create mode 100644 tests/cases/fourslash/extract-const-callback-function-this1.ts create mode 100644 tests/cases/fourslash/extract-const-callback-function-this2.ts create mode 100644 tests/cases/fourslash/extract-const-callback-function-this3.ts create mode 100644 tests/cases/fourslash/extract-const-callback-function.ts create mode 100644 tests/cases/fourslash/extract-const-callback.ts diff --git a/src/services/refactors/extractSymbol.ts b/src/services/refactors/extractSymbol.ts index 823bd640a59..df8be2808ff 100644 --- a/src/services/refactors/extractSymbol.ts +++ b/src/services/refactors/extractSymbol.ts @@ -1006,11 +1006,14 @@ namespace ts.refactor.extractSymbol { const localNameText = getUniqueName(isClassLike(scope) ? "newProperty" : "newLocal", file); const isJS = isInJSFile(scope); - const variableType = isJS || !checker.isContextSensitive(node) + let variableType = isJS || !checker.isContextSensitive(node) ? undefined : checker.typeToTypeNode(checker.getContextualType(node)!, scope, NodeBuilderFlags.NoTruncation); // TODO: GH#18217 - const initializer = transformConstantInitializer(node, substitutions); + let initializer = transformConstantInitializer(node, substitutions); + + ({ variableType, initializer } = transformFunctionInitializerAndType(variableType, initializer)); + suppressLeadingAndTrailingTrivia(initializer); const changeTracker = textChanges.ChangeTracker.fromContext(context); @@ -1102,6 +1105,73 @@ namespace ts.refactor.extractSymbol { const renameFilename = node.getSourceFile().fileName; const renameLocation = getRenameLocation(edits, renameFilename, localNameText, /*isDeclaredBeforeUse*/ true); return { renameFilename, renameLocation, edits }; + + function transformFunctionInitializerAndType(variableType: TypeNode | undefined, initializer: Expression): { variableType: TypeNode | undefined, initializer: Expression } { + // If no contextual type exists there is noting to transfer to the function signature + if (variableType === undefined) return { variableType, initializer }; + // Only do this for function expressions and arrow functions that are not generic + if (!isFunctionExpression(initializer) && !isArrowFunction(initializer) || !!initializer.typeParameters) return { variableType, initializer }; + const functionType = checker.getTypeAtLocation(node); + const functionSignature = singleOrUndefined(checker.getSignaturesOfType(functionType, SignatureKind.Call)); + + // If no function signature, maybe there was an error, do nothing + if (!functionSignature) return { variableType, initializer }; + // If the function signature has generic type parameters we don't attempt to move the parameters + if (!!functionSignature.getTypeParameters()) return { variableType, initializer }; + + // We add parameter types if needed + const parameters: ParameterDeclaration[] = []; + let hasAny = false; + for (const p of initializer.parameters) { + if (p.type) { + parameters.push(p); + } + else { + const paramType = checker.getTypeAtLocation(p); + if (paramType === checker.getAnyType()) hasAny = true; + + parameters.push(updateParameter(p, + p.decorators, p.modifiers, p.dotDotDotToken, + p.name, p.questionToken, p.type || checker.typeToTypeNode(paramType, scope, NodeBuilderFlags.NoTruncation), p.initializer)); + } + } + // If a parameter was inferred as any we skip adding function parameters at all. + // Turning an implicit any (which under common settings is a error) to an explicit + // is probably actually a worse refactor outcome. + if (hasAny) return { variableType, initializer }; + variableType = undefined; + if (isArrowFunction(initializer)) { + initializer = updateArrowFunction(initializer, node.modifiers, initializer.typeParameters, + parameters, + initializer.type || checker.typeToTypeNode(functionSignature.getReturnType(), scope, NodeBuilderFlags.NoTruncation), + initializer.equalsGreaterThanToken, + initializer.body); + } + else { + if (functionSignature && !!functionSignature.thisParameter) { + const firstParameter = firstOrUndefined(parameters); + // If the function signature has a this parameter and if the first defined parameter is not the this parameter, we must add it + // Note: If this parameter was already there, it would have been previously updated with the type if not type was present + if ((!firstParameter || (isIdentifier(firstParameter.name) && firstParameter.name.escapedText !== "this"))) { + const thisType = checker.getTypeOfSymbolAtLocation(functionSignature.thisParameter, node); + parameters.splice(0, 0, createParameter( + /* decorators */ undefined, + /* modifiers */ undefined, + /* dotDotDotToken */ undefined, + "this", + /* questionToken */ undefined, + checker.typeToTypeNode(thisType, scope, NodeBuilderFlags.NoTruncation) + )); + } + } + initializer = updateFunctionExpression(initializer, node.modifiers, initializer.asteriskToken, + initializer.name, initializer.typeParameters, + parameters, + initializer.type || checker.typeToTypeNode(functionSignature.getReturnType(), scope, NodeBuilderFlags.NoTruncation), + initializer.body); + } + return { variableType, initializer }; + } } function getContainingVariableDeclarationIfInList(node: Node, scope: Scope) { diff --git a/tests/baselines/reference/extractConstant/extractConstant_ContextualType_Lambda.ts b/tests/baselines/reference/extractConstant/extractConstant_ContextualType_Lambda.ts index d5a5a55bc27..fae0a6812cd 100644 --- a/tests/baselines/reference/extractConstant/extractConstant_ContextualType_Lambda.ts +++ b/tests/baselines/reference/extractConstant/extractConstant_ContextualType_Lambda.ts @@ -5,7 +5,7 @@ const myObj: { member(x: number, y: string): void } = { } // ==SCOPE::Extract to constant in enclosing scope== -const newLocal: (x: number, y: string) => void = (x, y) => x + y; +const newLocal = (x: number, y: string): string => x + y; const myObj: { member(x: number, y: string): void } = { member: /*RENAME*/newLocal, } diff --git a/tests/cases/fourslash/extract-const-callback-function-generic.ts b/tests/cases/fourslash/extract-const-callback-function-generic.ts new file mode 100644 index 00000000000..cafba8f8245 --- /dev/null +++ b/tests/cases/fourslash/extract-const-callback-function-generic.ts @@ -0,0 +1,15 @@ +/// + +////declare function fnUnion(fn: (a: T) => T): void +////fnUnion(/*a*/a => a/*b*/); + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "constant_scope_0", + actionDescription: "Extract to constant in enclosing scope", + newContent: +`declare function fnUnion(fn: (a: T) => T): void +const newLocal: (a: T) => T = a => a; +fnUnion(/*RENAME*/newLocal);` +}); \ No newline at end of file diff --git a/tests/cases/fourslash/extract-const-callback-function-no-context1.ts b/tests/cases/fourslash/extract-const-callback-function-no-context1.ts new file mode 100644 index 00000000000..4bd09076868 --- /dev/null +++ b/tests/cases/fourslash/extract-const-callback-function-no-context1.ts @@ -0,0 +1,15 @@ +/// + +////declare function fnUnion(fn: ((a: number) => number) | ((a: string) => string)): void +////fnUnion(/*a*/(a: any) => a/*b*/); + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "constant_scope_0", + actionDescription: "Extract to constant in enclosing scope", + newContent: +`declare function fnUnion(fn: ((a: number) => number) | ((a: string) => string)): void +const newLocal = (a: any) => a; +fnUnion(/*RENAME*/newLocal);` +}); diff --git a/tests/cases/fourslash/extract-const-callback-function-no-context2.ts b/tests/cases/fourslash/extract-const-callback-function-no-context2.ts new file mode 100644 index 00000000000..eb392bcb445 --- /dev/null +++ b/tests/cases/fourslash/extract-const-callback-function-no-context2.ts @@ -0,0 +1,15 @@ +/// + +////declare function fnUnion(fn: ((a: number) => number) | ((a: string) => string)): void +////fnUnion(/*a*/(a) => a/*b*/); + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "constant_scope_0", + actionDescription: "Extract to constant in enclosing scope", + newContent: +`declare function fnUnion(fn: ((a: number) => number) | ((a: string) => string)): void +const newLocal: ((a: number) => number) | ((a: string) => string) = (a) => a; +fnUnion(/*RENAME*/newLocal);` +}); diff --git a/tests/cases/fourslash/extract-const-callback-function-no-context3.ts b/tests/cases/fourslash/extract-const-callback-function-no-context3.ts new file mode 100644 index 00000000000..92835d0d38c --- /dev/null +++ b/tests/cases/fourslash/extract-const-callback-function-no-context3.ts @@ -0,0 +1,15 @@ +/// + +////declare function fnUnion(fn: ((a: number) => number) | ((a: string) => string)): void +////fnUnion(/*a*/(a: string) => a/*b*/); + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "constant_scope_0", + actionDescription: "Extract to constant in enclosing scope", + newContent: +`declare function fnUnion(fn: ((a: number) => number) | ((a: string) => string)): void +const newLocal = (a: string) => a; +fnUnion(/*RENAME*/newLocal);` +}); diff --git a/tests/cases/fourslash/extract-const-callback-function-rest.ts b/tests/cases/fourslash/extract-const-callback-function-rest.ts new file mode 100644 index 00000000000..50feb63dd20 --- /dev/null +++ b/tests/cases/fourslash/extract-const-callback-function-rest.ts @@ -0,0 +1,18 @@ +/// + + +////function fWithRest(fn: (...a: number[]) => number) { } +////fWithRest(/*a*/(a, b, c) => a + b + c/*b*/); + + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "constant_scope_0", + actionDescription: "Extract to constant in enclosing scope", + newContent: +`function fWithRest(fn: (...a: number[]) => number) { } +const newLocal = (a: number, b: number, c: number): number => a + b + c; +fWithRest(/*RENAME*/newLocal);` +}); + diff --git a/tests/cases/fourslash/extract-const-callback-function-this1.ts b/tests/cases/fourslash/extract-const-callback-function-this1.ts new file mode 100644 index 00000000000..b0d269400bb --- /dev/null +++ b/tests/cases/fourslash/extract-const-callback-function-this1.ts @@ -0,0 +1,15 @@ +/// + +////declare function fWithThis(fn: (this: { a: string }, a: string) => string): void; +////fWithThis(/*a*/function (a: string): string { return this.a; }/*b*/); + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "constant_scope_0", + actionDescription: "Extract to constant in enclosing scope", + newContent: +`declare function fWithThis(fn: (this: { a: string }, a: string) => string): void; +const newLocal = function(this: { a: string; }, a: string): string { return this.a; }; +fWithThis(/*RENAME*/newLocal);` +}); diff --git a/tests/cases/fourslash/extract-const-callback-function-this2.ts b/tests/cases/fourslash/extract-const-callback-function-this2.ts new file mode 100644 index 00000000000..518c39e26e5 --- /dev/null +++ b/tests/cases/fourslash/extract-const-callback-function-this2.ts @@ -0,0 +1,15 @@ +/// + +////declare function fWithThis(fn: (this: { a: string }, a: string) => string): void; +////fWithThis(/*a*/function (a) { return this.a; }/*b*/); + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "constant_scope_0", + actionDescription: "Extract to constant in enclosing scope", + newContent: +`declare function fWithThis(fn: (this: { a: string }, a: string) => string): void; +const newLocal = function(this: { a: string; }, a: string): string { return this.a; }; +fWithThis(/*RENAME*/newLocal);` +}); diff --git a/tests/cases/fourslash/extract-const-callback-function-this3.ts b/tests/cases/fourslash/extract-const-callback-function-this3.ts new file mode 100644 index 00000000000..1d9d8ba59e7 --- /dev/null +++ b/tests/cases/fourslash/extract-const-callback-function-this3.ts @@ -0,0 +1,17 @@ +/// + +////declare function fWithThis(fn: (this: { a: string }, a: string) => string): void; +////fWithThis(/*a*/function (this: { a: string }, a) { return this.a; }/*b*/); + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "constant_scope_0", + actionDescription: "Extract to constant in enclosing scope", + newContent: +`declare function fWithThis(fn: (this: { a: string }, a: string) => string): void; +const newLocal = function(this: { + a: string; +}, a: string): string { return this.a; }; +fWithThis(/*RENAME*/newLocal);` +}); diff --git a/tests/cases/fourslash/extract-const-callback-function.ts b/tests/cases/fourslash/extract-const-callback-function.ts new file mode 100644 index 00000000000..ccf05c6c1ad --- /dev/null +++ b/tests/cases/fourslash/extract-const-callback-function.ts @@ -0,0 +1,13 @@ +/// + +////const x = [1,2,3].map(/*a*/function (x) { return x + 1 }/*b*/); + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "constant_scope_0", + actionDescription: "Extract to constant in enclosing scope", + newContent: +`const newLocal = function(x: number): number { return x + 1; }; +const x = [1,2,3].map(/*RENAME*/newLocal);` +}); diff --git a/tests/cases/fourslash/extract-const-callback.ts b/tests/cases/fourslash/extract-const-callback.ts new file mode 100644 index 00000000000..4bd71ba16b1 --- /dev/null +++ b/tests/cases/fourslash/extract-const-callback.ts @@ -0,0 +1,13 @@ +/// + +////const x = [1,2,3].map(/*a*/x => x + 1/*b*/); + +goTo.select("a", "b"); +edit.applyRefactor({ + refactorName: "Extract Symbol", + actionName: "constant_scope_0", + actionDescription: "Extract to constant in enclosing scope", + newContent: +`const newLocal = (x: number): number => x + 1; +const x = [1,2,3].map(/*RENAME*/newLocal);` +}); From e89acb6358845b310753e132f5ae692c72d5bb6a Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 31 Jul 2019 16:30:54 -0700 Subject: [PATCH 022/159] Reflect effects of assertion calls in control flow analysis --- src/compiler/binder.ts | 22 +++++++++++++ src/compiler/checker.ts | 71 +++++++++++++++++++++++++++++++++++++++++ src/compiler/types.ts | 19 +++++++---- 3 files changed, 106 insertions(+), 6 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index d18ab45a347..16dffe46aad 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -706,6 +706,9 @@ namespace ts { case SyntaxKind.CaseClause: bindCaseClause(node); break; + case SyntaxKind.ExpressionStatement: + bindExpressionStatement(node); + break; case SyntaxKind.LabeledStatement: bindLabeledStatement(node); break; @@ -896,6 +899,11 @@ namespace ts { return flowNodeCreated({ flags: FlowFlags.Assignment, antecedent, node }); } + function createFlowCall(antecedent: FlowNode, node: CallExpression): FlowNode { + setFlowNodeReferenced(antecedent); + return flowNodeCreated({ flags: FlowFlags.Call, antecedent, node }); + } + function createFlowArrayMutation(antecedent: FlowNode, node: CallExpression | BinaryExpression): FlowNode { setFlowNodeReferenced(antecedent); const res: FlowArrayMutation = flowNodeCreated({ flags: FlowFlags.ArrayMutation, antecedent, node }); @@ -1276,6 +1284,20 @@ namespace ts { activeLabels!.pop(); } + function isDottedName(node: Expression) { + return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.PropertyAccessExpression && isQualifiedName((node).expression); + } + + function bindExpressionStatement(node: ExpressionStatement): void { + bind(node.expression); + if (node.expression.kind === SyntaxKind.CallExpression) { + const call = node.expression; + if (isDottedName(call.expression) && call.arguments.length >= 1) { + currentFlow = createFlowCall(currentFlow, call); + } + } + } + function bindLabeledStatement(node: LabeledStatement): void { const preStatementLabel = createLoopLabel(); const postStatementLabel = createBranchLabel(); diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 3fa9c2da66e..2ed815e8978 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -16864,6 +16864,44 @@ namespace ts { return false; } + function getTypeOfDottedName(node: Expression) { + if (node.kind === SyntaxKind.Identifier) { + const symbol = getResolvedSymbol(node); + const nonAliasSymbol = symbol.flags & SymbolFlags.Alias ? resolveAlias(symbol) : symbol; + return nonAliasSymbol.flags & (SymbolFlags.Function | SymbolFlags.Class | SymbolFlags.ValueModule) ? getTypeOfSymbol(nonAliasSymbol) : undefined; + } + if (node.kind === SyntaxKind.PropertyAccessExpression) { + const type = getTypeOfDottedName((node).expression); + if (type) { + const prop = getPropertyOfType(type, (node).name.escapedText); + return prop && prop.flags & (SymbolFlags.Function | SymbolFlags.Method | SymbolFlags.Class | SymbolFlags.ValueModule) ? getTypeOfSymbol(prop) : undefined; + } + } + } + + function getIsAssertCall(node: CallExpression) { + const type = getTypeOfDottedName(node.expression); + if (type) { + const signature = getSingleCallSignature(type); + if (signature && signature.declaration) { + const typeNode = getEffectiveReturnTypeNode(signature.declaration); + if (typeNode && typeNode.kind === SyntaxKind.UnionType) { + const types = (typeNode).types; + return types.length === 2 && types[0].kind === SyntaxKind.VoidKeyword && types[1].kind === SyntaxKind.NeverKeyword; + } + } + } + return false; + } + + function isAssertCall(node: CallExpression) { + const links = getNodeLinks(node); + if (links.isAssertCall === undefined) { + links.isAssertCall = getIsAssertCall(node); + } + return links.isAssertCall; + } + function reportFlowControlError(node: Node) { const block = findAncestor(node, isFunctionOrModuleBlock); const sourceFile = getSourceFileOfNode(node); @@ -16962,6 +17000,13 @@ namespace ts { } } } + else if (flags & FlowFlags.Call) { + type = getTypeAtFlowCall(flow); + if (!type) { + flow = (flow).antecedent; + continue; + } + } else if (flags & FlowFlags.Condition) { type = getTypeAtFlowCondition(flow); } @@ -17057,6 +17102,32 @@ namespace ts { return undefined; } + function narrowTypeByAssertion(type: Type, expr: Expression): Type { + const node = skipParentheses(expr); + if (node.kind === SyntaxKind.BinaryExpression) { + if ((node).operatorToken.kind === SyntaxKind.AmpersandAmpersandToken) { + return narrowTypeByAssertion(narrowTypeByAssertion(type, (node).left), (node).right); + } + if ((node).operatorToken.kind === SyntaxKind.BarBarToken) { + return getUnionType([narrowTypeByAssertion(type, (node).left), narrowTypeByAssertion(type, (node).right)]); + } + } + return narrowType(type, node, /*assumeTrue*/ true); + } + + function getTypeAtFlowCall(flow: FlowCall): FlowType | undefined { + if (isAssertCall(flow.node)) { + const flowType = getTypeAtFlowNode(flow.antecedent); + const type = getTypeFromFlowType(flowType); + const narrowedType = narrowTypeByAssertion(type, flow.node.arguments[0]); + if (narrowedType === type) { + return flowType; + } + return createFlowType(narrowedType, isIncomplete(flowType)); + } + return undefined; + } + function getTypeAtFlowArrayMutation(flow: FlowArrayMutation): FlowType | undefined { if (declaredType === autoType || declaredType === autoArrayType) { const node = flow.node; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 099f7705f84..aec65b03367 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2550,12 +2550,13 @@ namespace ts { FalseCondition = 1 << 6, // Condition known to be false SwitchClause = 1 << 7, // Switch statement clause ArrayMutation = 1 << 8, // Potential array mutation - Referenced = 1 << 9, // Referenced as antecedent once - Shared = 1 << 10, // Referenced as antecedent more than once - PreFinally = 1 << 11, // Injected edge that links pre-finally label and pre-try flow - AfterFinally = 1 << 12, // Injected edge that links post-finally flow with the rest of the graph + Call = 1 << 9, // Potential assertion call + Referenced = 1 << 10, // Referenced as antecedent once + Shared = 1 << 11, // Referenced as antecedent more than once + PreFinally = 1 << 12, // Injected edge that links pre-finally label and pre-try flow + AfterFinally = 1 << 13, // Injected edge that links post-finally flow with the rest of the graph /** @internal */ - Cached = 1 << 13, // Indicates that at least one cross-call cache entry exists for this node, even if not a loop participant + Cached = 1 << 14, // Indicates that at least one cross-call cache entry exists for this node, even if not a loop participant Label = BranchLabel | LoopLabel, Condition = TrueCondition | FalseCondition } @@ -2574,7 +2575,7 @@ namespace ts { } export type FlowNode = - | AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCondition | FlowSwitchClause | FlowArrayMutation; + | AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCall | FlowCondition | FlowSwitchClause | FlowArrayMutation; export interface FlowNodeBase { flags: FlowFlags; id?: number; // Node id used by flow type cache in checker @@ -2599,6 +2600,11 @@ namespace ts { antecedent: FlowNode; } + export interface FlowCall extends FlowNodeBase { + node: CallExpression; + antecedent: FlowNode; + } + // FlowCondition represents a condition that is known to be true or false at the // node's location in the control flow. export interface FlowCondition extends FlowNodeBase { @@ -3902,6 +3908,7 @@ namespace ts { resolvedSymbol?: Symbol; // Cached name resolution result resolvedIndexInfo?: IndexInfo; // Cached indexing info resolution result maybeTypePredicate?: boolean; // Cached check whether call expression might reference a type predicate + isAssertCall?: boolean; enumMemberValue?: string | number; // Constant value of enum member isVisible?: boolean; // Is this node visible containsArgumentsReference?: boolean; // Whether a function-like declaration contains an 'arguments' reference From 77f2a412e15a3f3ac2a01d648a64e75670d47204 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 2 Aug 2019 17:57:26 -0700 Subject: [PATCH 023/159] Support 'asserts' type predicates in control flow analysis --- src/compiler/binder.ts | 6 +- src/compiler/checker.ts | 230 +++++++++++++++++++--------------------- src/compiler/emitter.ts | 14 ++- src/compiler/factory.ts | 7 +- src/compiler/parser.ts | 13 +++ src/compiler/scanner.ts | 1 + src/compiler/types.ts | 36 ++++--- src/compiler/visitor.ts | 1 + 8 files changed, 166 insertions(+), 142 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 16dffe46aad..2b917bc577c 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -1284,12 +1284,14 @@ namespace ts { activeLabels!.pop(); } - function isDottedName(node: Expression) { - return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.PropertyAccessExpression && isQualifiedName((node).expression); + function isDottedName(node: Expression): boolean { + return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.PropertyAccessExpression && isDottedName((node).expression); } function bindExpressionStatement(node: ExpressionStatement): void { bind(node.expression); + // A top level call expression with a dotted function name and at least one argument + // is potentially an assertion and is therefore included in the control flow. if (node.expression.kind === SyntaxKind.CallExpression) { const call = node.expression; if (isDottedName(call.expression) && call.arguments.length >= 1) { diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 2ed815e8978..c8ad1f66064 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -522,7 +522,7 @@ namespace ts { markerSubType.constraint = markerSuperType; const markerOtherType = createTypeParameter(); - const noTypePredicate = createIdentifierTypePredicate("<>", 0, anyType); + const noTypePredicate = createTypePredicate(TypePredicateKind.Identifier, "<>", 0, anyType); const anySignature = createSignature(undefined, undefined, undefined, emptyArray, anyType, /*resolvedTypePredicate*/ undefined, 0, /*hasRestParameter*/ false, /*hasLiteralTypes*/ false); const unknownSignature = createSignature(undefined, undefined, undefined, emptyArray, errorType, /*resolvedTypePredicate*/ undefined, 0, /*hasRestParameter*/ false, /*hasLiteralTypes*/ false); @@ -4212,11 +4212,12 @@ namespace ts { let returnTypeNode: TypeNode | undefined; const typePredicate = getTypePredicateOfSignature(signature); if (typePredicate) { - const parameterName = typePredicate.kind === TypePredicateKind.Identifier ? + const assertsModifier = typePredicate.kind === TypePredicateKind.Assertion ? createToken(SyntaxKind.AssertsKeyword) : undefined; + const parameterName = typePredicate.kind !== TypePredicateKind.This ? setEmitFlags(createIdentifier(typePredicate.parameterName), EmitFlags.NoAsciiEscaping) : createThisTypeNode(); - const typeNode = typeToTypeNodeHelper(typePredicate.type, context); - returnTypeNode = createTypePredicateNode(parameterName, typeNode); + const typeNode = typePredicate.type && typeToTypeNodeHelper(typePredicate.type, context); + returnTypeNode = createTypePredicateNode(assertsModifier, parameterName, typeNode); } else { const returnType = getReturnTypeOfSignature(signature); @@ -4685,8 +4686,9 @@ namespace ts { function typePredicateToStringWorker(writer: EmitTextWriter) { const predicate = createTypePredicateNode( - typePredicate.kind === TypePredicateKind.Identifier ? createIdentifier(typePredicate.parameterName) : createThisTypeNode(), - nodeBuilder.typeToTypeNode(typePredicate.type, enclosingDeclaration, toNodeBuilderFlags(flags) | NodeBuilderFlags.IgnoreErrors | NodeBuilderFlags.WriteTypeParametersInQualifiedName)!, // TODO: GH#18217 + typePredicate.kind === TypePredicateKind.Assertion ? createToken(SyntaxKind.AssertsKeyword) : undefined, + typePredicate.kind !== TypePredicateKind.This ? createIdentifier(typePredicate.parameterName) : createThisTypeNode(), + typePredicate.type && nodeBuilder.typeToTypeNode(typePredicate.type, enclosingDeclaration, toNodeBuilderFlags(flags) | NodeBuilderFlags.IgnoreErrors | NodeBuilderFlags.WriteTypeParametersInQualifiedName)! // TODO: GH#18217 ); const printer = createPrinter({ removeComments: true }); const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); @@ -8432,12 +8434,8 @@ namespace ts { return isBracketed || !!typeExpression && typeExpression.type.kind === SyntaxKind.JSDocOptionalType; } - function createIdentifierTypePredicate(parameterName: string, parameterIndex: number, type: Type): IdentifierTypePredicate { - return { kind: TypePredicateKind.Identifier, parameterName, parameterIndex, type }; - } - - function createThisTypePredicate(type: Type): ThisTypePredicate { - return { kind: TypePredicateKind.This, type }; + function createTypePredicate(kind: TypePredicateKind, parameterName: string | undefined, parameterIndex: number | undefined, type: Type | undefined): TypePredicate { + return { kind, parameterName, parameterIndex, type } as TypePredicate; } /** @@ -8672,9 +8670,15 @@ namespace ts { } } - function signatureHasTypePredicate(signature: Signature): boolean { - return getTypePredicateOfSignature(signature) !== undefined; - } + // function hasAssertionTypePredicate(signature: Signature): boolean { + // const predicate = getTypePredicateOfSignature(signature); + // return !!predicate && predicate.kind === TypePredicateKind.Assertion; + // } + + // function hasBooleanTypePredicate(signature: Signature): boolean { + // const predicate = getTypePredicateOfSignature(signature); + // return !!predicate && (predicate.kind === TypePredicateKind.This || predicate.kind === TypePredicateKind.Identifier); + // } function getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined { if (!signature.resolvedTypePredicate) { @@ -8703,18 +8707,13 @@ namespace ts { return signature.resolvedTypePredicate === noTypePredicate ? undefined : signature.resolvedTypePredicate; } - function createTypePredicateFromTypePredicateNode(node: TypePredicateNode, signature: Signature): IdentifierTypePredicate | ThisTypePredicate { - const { parameterName } = node; - const type = getTypeFromTypeNode(node.type); - if (parameterName.kind === SyntaxKind.Identifier) { - return createIdentifierTypePredicate( - parameterName.escapedText as string, - findIndex(signature.parameters, p => p.escapedName === parameterName.escapedText), - type); - } - else { - return createThisTypePredicate(type); - } + function createTypePredicateFromTypePredicateNode(node: TypePredicateNode, signature: Signature): TypePredicate { + const parameterName = node.parameterName; + const type = node.type && getTypeFromTypeNode(node.type); + return parameterName.kind === SyntaxKind.ThisType ? + createTypePredicate(TypePredicateKind.This, /*parameterName*/ undefined, /*parameterIndex*/ undefined, type) : + createTypePredicate(node.assertsModifier ? TypePredicateKind.Assertion : TypePredicateKind.Identifier, parameterName.escapedText as string, + findIndex(signature.parameters, p => p.escapedName === parameterName.escapedText), type); } function getReturnTypeOfSignature(signature: Signature): Type { @@ -9820,7 +9819,7 @@ namespace ts { const types: Type[] = []; for (const sig of signatures) { const pred = getTypePredicateOfSignature(sig); - if (!pred) { + if (!pred || pred.kind === TypePredicateKind.Assertion) { continue; } @@ -9840,15 +9839,11 @@ namespace ts { return undefined; } const unionType = getUnionType(types); - return isIdentifierTypePredicate(first) - ? createIdentifierTypePredicate(first.parameterName, first.parameterIndex, unionType) - : createThisTypePredicate(unionType); + return createTypePredicate(first.kind, first.parameterName, first.parameterIndex, unionType); } function typePredicateKindsMatch(a: TypePredicate, b: TypePredicate): boolean { - return isIdentifierTypePredicate(a) - ? isIdentifierTypePredicate(b) && a.parameterIndex === b.parameterIndex - : !isIdentifierTypePredicate(b); + return a.kind === b.kind && a.parameterIndex === b.parameterIndex; } // This function assumes the constituent type list is sorted and deduplicated. @@ -11114,7 +11109,7 @@ namespace ts { case SyntaxKind.TypeReference: return getTypeFromTypeReference(node); case SyntaxKind.TypePredicate: - return booleanType; + return (node).assertsModifier ? voidType : booleanType; case SyntaxKind.ExpressionWithTypeArguments: return getTypeFromTypeReference(node); case SyntaxKind.TypeQuery: @@ -11272,21 +11267,8 @@ namespace ts { return result; } - function instantiateTypePredicate(predicate: TypePredicate, mapper: TypeMapper): ThisTypePredicate | IdentifierTypePredicate { - if (isIdentifierTypePredicate(predicate)) { - return { - kind: TypePredicateKind.Identifier, - parameterName: predicate.parameterName, - parameterIndex: predicate.parameterIndex, - type: instantiateType(predicate.type, mapper) - }; - } - else { - return { - kind: TypePredicateKind.This, - type: instantiateType(predicate.type, mapper) - }; - } + function instantiateTypePredicate(predicate: TypePredicate, mapper: TypeMapper): TypePredicate { + return createTypePredicate(predicate.kind, predicate.parameterName, predicate.parameterIndex, instantiateType(predicate.type, mapper)); } function instantiateSignature(signature: Signature, mapper: TypeMapper, eraseTypeParameters?: boolean): Signature { @@ -12338,7 +12320,7 @@ namespace ts { // with respect to T. const sourceSig = callbackCheck ? undefined : getSingleCallSignature(getNonNullableType(sourceType)); const targetSig = callbackCheck ? undefined : getSingleCallSignature(getNonNullableType(targetType)); - const callbacks = sourceSig && targetSig && !signatureHasTypePredicate(sourceSig) && !signatureHasTypePredicate(targetSig) && + const callbacks = sourceSig && targetSig && !getTypePredicateOfSignature(sourceSig) && !getTypePredicateOfSignature(targetSig) && (getFalsyFlags(sourceType) & TypeFlags.Nullable) === (getFalsyFlags(targetType) & TypeFlags.Nullable); const related = callbacks ? // TODO: GH#18217 It will work if they're both `undefined`, but not if only one is @@ -12407,7 +12389,7 @@ namespace ts { return Ternary.False; } - if (source.kind === TypePredicateKind.Identifier) { + if (source.kind !== TypePredicateKind.This) { if (source.parameterIndex !== (target as IdentifierTypePredicate).parameterIndex) { if (reportErrors) { errorReporter!(Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1, source.parameterName, (target as IdentifierTypePredicate).parameterName); @@ -12417,7 +12399,9 @@ namespace ts { } } - const related = compareTypes(source.type, target.type, reportErrors); + const related = source.type === target.type ? Ternary.True : + source.type && target.type ? compareTypes(source.type, target.type, reportErrors) : + Ternary.False; if (related === Ternary.False && reportErrors) { errorReporter!(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target)); } @@ -14602,16 +14586,18 @@ namespace ts { if (!ignoreReturnTypes) { const sourceTypePredicate = getTypePredicateOfSignature(source); const targetTypePredicate = getTypePredicateOfSignature(target); - result &= sourceTypePredicate !== undefined || targetTypePredicate !== undefined - ? compareTypePredicatesIdentical(sourceTypePredicate, targetTypePredicate, compareTypes) - // If they're both type predicates their return types will both be `boolean`, so no need to compare those. - : compareTypes(getReturnTypeOfSignature(source), getReturnTypeOfSignature(target)); + result &= sourceTypePredicate || targetTypePredicate ? + compareTypePredicatesIdentical(sourceTypePredicate, targetTypePredicate, compareTypes) : + compareTypes(getReturnTypeOfSignature(source), getReturnTypeOfSignature(target)); } return result; } function compareTypePredicatesIdentical(source: TypePredicate | undefined, target: TypePredicate | undefined, compareTypes: (s: Type, t: Type) => Ternary): Ternary { - return source === undefined || target === undefined || !typePredicateKindsMatch(source, target) ? Ternary.False : compareTypes(source.type, target.type); + return !(source && target && typePredicateKindsMatch(source, target)) ? Ternary.False : + source.type === target.type ? Ternary.True : + source.type && target.type ? compareTypes(source.type, target.type) : + Ternary.False; } function literalTypesWithSameBaseType(types: Type[]): boolean { @@ -15219,8 +15205,7 @@ namespace ts { function applyToReturnTypes(source: Signature, target: Signature, callback: (s: Type, t: Type) => void) { const sourceTypePredicate = getTypePredicateOfSignature(source); const targetTypePredicate = getTypePredicateOfSignature(target); - if (sourceTypePredicate && targetTypePredicate && sourceTypePredicate.kind === targetTypePredicate.kind && - (sourceTypePredicate.kind === TypePredicateKind.This || sourceTypePredicate.parameterIndex === (targetTypePredicate).parameterIndex)) { + if (sourceTypePredicate && targetTypePredicate && typePredicateKindsMatch(sourceTypePredicate, targetTypePredicate) && sourceTypePredicate.type && targetTypePredicate.type) { callback(sourceTypePredicate.type, targetTypePredicate.type); } else { @@ -16845,61 +16830,62 @@ namespace ts { return isLengthPushOrUnshift || isElementAssignment; } - function maybeTypePredicateCall(node: CallExpression) { - const links = getNodeLinks(node); - if (links.maybeTypePredicate === undefined) { - links.maybeTypePredicate = getMaybeTypePredicate(node); - } - return links.maybeTypePredicate; + function isDeclarationWithExplicitTypeAnnotation(declaration: Declaration | undefined) { + return !!(declaration && ( + declaration.kind === SyntaxKind.VariableDeclaration || declaration.kind === SyntaxKind.Parameter || + declaration.kind === SyntaxKind.PropertyDeclaration || declaration.kind === SyntaxKind.PropertySignature) && + (declaration as VariableDeclaration | ParameterDeclaration | PropertyDeclaration | PropertySignature).type); } - function getMaybeTypePredicate(node: CallExpression) { - if (node.expression.kind !== SyntaxKind.SuperKeyword) { - const funcType = checkNonNullExpression(node.expression); - if (funcType !== silentNeverType) { - const apparentType = getApparentType(funcType); - return apparentType !== errorType && some(getSignaturesOfType(apparentType, SignatureKind.Call), signatureHasTypePredicate); - } - } - return false; + function getExplicitTypeOfSymbol(symbol: Symbol) { + return symbol.flags & (SymbolFlags.Function | SymbolFlags.Method | SymbolFlags.Class | SymbolFlags.ValueModule) || + symbol.flags & (SymbolFlags.Variable | SymbolFlags.Property) && isDeclarationWithExplicitTypeAnnotation(symbol.valueDeclaration) ? + getTypeOfSymbol(symbol) : undefined; } function getTypeOfDottedName(node: Expression) { + // We require the dotted function name in an assertion expression to be comprised of identifiers + // that reference function, method, class or value module symbols; or variable, property or + // parameter symbols with declarations that have explicit type annotations. Such references are + // resolvable with no possibility of triggering circularities in control flow analysis. if (node.kind === SyntaxKind.Identifier) { const symbol = getResolvedSymbol(node); - const nonAliasSymbol = symbol.flags & SymbolFlags.Alias ? resolveAlias(symbol) : symbol; - return nonAliasSymbol.flags & (SymbolFlags.Function | SymbolFlags.Class | SymbolFlags.ValueModule) ? getTypeOfSymbol(nonAliasSymbol) : undefined; + return getExplicitTypeOfSymbol(symbol.flags & SymbolFlags.Alias ? resolveAlias(symbol) : symbol); } if (node.kind === SyntaxKind.PropertyAccessExpression) { const type = getTypeOfDottedName((node).expression); if (type) { const prop = getPropertyOfType(type, (node).name.escapedText); - return prop && prop.flags & (SymbolFlags.Function | SymbolFlags.Method | SymbolFlags.Class | SymbolFlags.ValueModule) ? getTypeOfSymbol(prop) : undefined; + return prop && getExplicitTypeOfSymbol(prop); } } } - function getIsAssertCall(node: CallExpression) { - const type = getTypeOfDottedName(node.expression); - if (type) { - const signature = getSingleCallSignature(type); - if (signature && signature.declaration) { - const typeNode = getEffectiveReturnTypeNode(signature.declaration); - if (typeNode && typeNode.kind === SyntaxKind.UnionType) { - const types = (typeNode).types; - return types.length === 2 && types[0].kind === SyntaxKind.VoidKeyword && types[1].kind === SyntaxKind.NeverKeyword; - } - } - } - return false; - } - - function isAssertCall(node: CallExpression) { + function getTypePredicateForCall(node: CallExpression) { const links = getNodeLinks(node); - if (links.isAssertCall === undefined) { - links.isAssertCall = getIsAssertCall(node); + if (links.resolvedTypePredicate === undefined) { + links.resolvedTypePredicate = computeTypePredicateForCall(node) || noTypePredicate; } - return links.isAssertCall; + return links.resolvedTypePredicate === noTypePredicate ? undefined : links.resolvedTypePredicate; + } + + function computeTypePredicateForCall(node: CallExpression) { + // A call expression parented by an expression statement is a potential assertion. Other call + // expressions are potential type predicate function calls. + const funcType = node.parent.kind === SyntaxKind.ExpressionStatement ? getTypeOfDottedName(node.expression) : + node.expression.kind !== SyntaxKind.SuperKeyword ? checkNonNullExpression(node.expression) : + undefined; + if (funcType && funcType !== silentNeverType) { + const apparentType = getApparentType(funcType); + if (some(getSignaturesOfType(apparentType, SignatureKind.Call), hasTypePredicate)) { + return getTypePredicateOfSignature(getResolvedSignature(node)); + } + } + return undefined; + } + + function hasTypePredicate(signature: Signature) { + return !!getTypePredicateOfSignature(signature); } function reportFlowControlError(node: Node) { @@ -17116,14 +17102,14 @@ namespace ts { } function getTypeAtFlowCall(flow: FlowCall): FlowType | undefined { - if (isAssertCall(flow.node)) { + const predicate = getTypePredicateForCall(flow.node); + if (predicate && predicate.kind === TypePredicateKind.Assertion) { const flowType = getTypeAtFlowNode(flow.antecedent); const type = getTypeFromFlowType(flowType); - const narrowedType = narrowTypeByAssertion(type, flow.node.arguments[0]); - if (narrowedType === type) { - return flowType; - } - return createFlowType(narrowedType, isIncomplete(flowType)); + const narrowedType = predicate.type ? + narrowTypeByTypePredicate(type, predicate, flow.node, /*assumeTrue*/ true) : + narrowTypeByAssertion(type, flow.node.arguments[predicate.parameterIndex]); + return narrowedType === type ? flowType : createFlowType(narrowedType, isIncomplete(flowType)); } return undefined; } @@ -17711,24 +17697,24 @@ namespace ts { getIntersectionType([type, candidate]); } - function narrowTypeByTypePredicate(type: Type, callExpression: CallExpression, assumeTrue: boolean): Type { - if (!hasMatchingArgument(callExpression, reference) || !maybeTypePredicateCall(callExpression)) { - return type; - } - const signature = getResolvedSignature(callExpression); - const predicate = getTypePredicateOfSignature(signature); - if (!predicate) { - return type; + function narrowTypeByCallExpression(type: Type, callExpression: CallExpression, assumeTrue: boolean): Type { + if (hasMatchingArgument(callExpression, reference)) { + const predicate = getTypePredicateForCall(callExpression); + if (predicate && predicate.kind !== TypePredicateKind.Assertion) { + return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue); + } } + return type; + } + function narrowTypeByTypePredicate(type: Type, predicate: TypePredicate, callExpression: CallExpression, assumeTrue: boolean): Type { // Don't narrow from 'any' if the predicate type is exactly 'Object' or 'Function' if (isTypeAny(type) && (predicate.type === globalObjectType || predicate.type === globalFunctionType)) { return type; } - - if (isIdentifierTypePredicate(predicate)) { + if (predicate.kind !== TypePredicateKind.This) { const predicateArgument = callExpression.arguments[predicate.parameterIndex]; - if (predicateArgument) { + if (predicateArgument && predicate.type) { if (isMatchingReference(reference, predicateArgument)) { return getNarrowedType(type, predicate.type, assumeTrue, isTypeSubtypeOf); } @@ -17763,7 +17749,7 @@ namespace ts { case SyntaxKind.ElementAccessExpression: return narrowTypeByTruthiness(type, expr, assumeTrue); case SyntaxKind.CallExpression: - return narrowTypeByTypePredicate(type, expr, assumeTrue); + return narrowTypeByCallExpression(type, expr, assumeTrue); case SyntaxKind.ParenthesizedExpression: return narrowType(type, (expr).expression, assumeTrue); case SyntaxKind.BinaryExpression: @@ -25485,12 +25471,14 @@ namespace ts { error(parameterName, Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter); } else { - const leadingError = () => chainDiagnosticMessages(/*details*/ undefined, Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type); - checkTypeAssignableTo(typePredicate.type, - getTypeOfSymbol(signature.parameters[typePredicate.parameterIndex]), - node.type, - /*headMessage*/ undefined, - leadingError); + if (typePredicate.type) { + const leadingError = () => chainDiagnosticMessages(/*details*/ undefined, Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type); + checkTypeAssignableTo(typePredicate.type, + getTypeOfSymbol(signature.parameters[typePredicate.parameterIndex]), + node.type, + /*headMessage*/ undefined, + leadingError); + } } } else if (parameterName) { diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 8681a452e2a..415f8f9680c 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -1906,11 +1906,17 @@ namespace ts { // function emitTypePredicate(node: TypePredicateNode) { + if (node.assertsModifier) { + emit(node.assertsModifier); + writeSpace(); + } emit(node.parameterName); - writeSpace(); - writeKeyword("is"); - writeSpace(); - emit(node.type); + if (node.type) { + writeSpace(); + writeKeyword("is"); + writeSpace(); + emit(node.type); + } } function emitTypeReference(node: TypeReferenceNode) { diff --git a/src/compiler/factory.ts b/src/compiler/factory.ts index 1f0294423a5..166999a7059 100644 --- a/src/compiler/factory.ts +++ b/src/compiler/factory.ts @@ -667,17 +667,18 @@ namespace ts { return createSynthesizedNode(kind); } - export function createTypePredicateNode(parameterName: Identifier | ThisTypeNode | string, type: TypeNode) { + export function createTypePredicateNode(assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined) { const node = createSynthesizedNode(SyntaxKind.TypePredicate) as TypePredicateNode; + node.assertsModifier = assertsModifier; node.parameterName = asName(parameterName); node.type = type; return node; } - export function updateTypePredicateNode(node: TypePredicateNode, parameterName: Identifier | ThisTypeNode, type: TypeNode) { + export function updateTypePredicateNode(node: TypePredicateNode, assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined) { return node.parameterName !== parameterName || node.type !== type - ? updateNode(createTypePredicateNode(parameterName, type), node) + ? updateNode(createTypePredicateNode(assertsModifier, parameterName, type), node) : node; } diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 254be93000b..3e0ea65476a 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -2992,6 +2992,8 @@ namespace ts { return parseParenthesizedType(); case SyntaxKind.ImportKeyword: return parseImportType(); + case SyntaxKind.AssertsKeyword: + return lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine) ? parseAssertsTypePredicate() : parseTypeReference(); default: return parseTypeReference(); } @@ -3032,6 +3034,7 @@ namespace ts { case SyntaxKind.DotDotDotToken: case SyntaxKind.InferKeyword: case SyntaxKind.ImportKeyword: + case SyntaxKind.AssertsKeyword: return true; case SyntaxKind.FunctionKeyword: return !inStartOfParameter; @@ -3225,6 +3228,16 @@ namespace ts { } } + function parseAssertsTypePredicate(): TypeNode { + const node = createNode(SyntaxKind.TypePredicate); + node.assertsModifier = parseExpectedToken(SyntaxKind.AssertsKeyword); + node.parameterName = parseIdentifier(); + if (parseOptional(SyntaxKind.IsKeyword)) { + node.type = parseType(); + } + return finishNode(node); + } + function parseType(): TypeNode { // The rules about 'yield' only apply to actual code/expression contexts. They don't // apply to 'type' contexts. So we disable these parameters here before moving on. diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index f949893171a..31e54e283fe 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -65,6 +65,7 @@ namespace ts { abstract: SyntaxKind.AbstractKeyword, any: SyntaxKind.AnyKeyword, as: SyntaxKind.AsKeyword, + asserts: SyntaxKind.AssertsKeyword, bigint: SyntaxKind.BigIntKeyword, boolean: SyntaxKind.BooleanKeyword, break: SyntaxKind.BreakKeyword, diff --git a/src/compiler/types.ts b/src/compiler/types.ts index aec65b03367..ba1ad79a8c2 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -32,6 +32,7 @@ namespace ts { | SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword + | SyntaxKind.AssertsKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword @@ -250,6 +251,7 @@ namespace ts { // Contextual keywords AbstractKeyword, AsKeyword, + AssertsKeyword, AnyKeyword, AsyncKeyword, AwaitKeyword, @@ -734,6 +736,7 @@ namespace ts { export type AwaitKeywordToken = Token; export type PlusToken = Token; export type MinusToken = Token; + export type AssertsToken = Token; export type Modifier = Token @@ -1177,8 +1180,9 @@ namespace ts { export interface TypePredicateNode extends TypeNode { kind: SyntaxKind.TypePredicate; parent: SignatureDeclaration | JSDocTypeExpression; + assertsModifier?: AssertsToken; parameterName: Identifier | ThisTypeNode; - type: TypeNode; + type?: TypeNode; } export interface TypeQueryNode extends TypeNode { @@ -3493,25 +3497,32 @@ namespace ts { export const enum TypePredicateKind { This, - Identifier + Identifier, + Assertion } - export interface TypePredicateBase { - kind: TypePredicateKind; + export interface ThisTypePredicate { + kind: TypePredicateKind.This; + parameterName: undefined; + parameterIndex: undefined; type: Type; } - export interface ThisTypePredicate extends TypePredicateBase { - kind: TypePredicateKind.This; - } - - export interface IdentifierTypePredicate extends TypePredicateBase { + export interface IdentifierTypePredicate { kind: TypePredicateKind.Identifier; parameterName: string; parameterIndex: number; + type: Type; } - export type TypePredicate = IdentifierTypePredicate | ThisTypePredicate; + export interface AssertionTypePredicate { + kind: TypePredicateKind.Assertion; + parameterName: string; + parameterIndex: number; + type: Type | undefined; + } + + export type TypePredicate = ThisTypePredicate | IdentifierTypePredicate | AssertionTypePredicate; /* @internal */ export type AnyImportSyntax = ImportDeclaration | ImportEqualsDeclaration; @@ -3907,8 +3918,9 @@ namespace ts { resolvedSignature?: Signature; // Cached signature of signature node or call expression resolvedSymbol?: Symbol; // Cached name resolution result resolvedIndexInfo?: IndexInfo; // Cached indexing info resolution result - maybeTypePredicate?: boolean; // Cached check whether call expression might reference a type predicate - isAssertCall?: boolean; + //maybeTypePredicate?: boolean; // Cached check whether call expression might reference a type predicate + //isAssertCall?: boolean; + resolvedTypePredicate?: TypePredicate; // Cached type predicate for call expression enumMemberValue?: string | number; // Constant value of enum member isVisible?: boolean; // Is this node visible containsArgumentsReference?: boolean; // Whether a function-like declaration contains an 'arguments' reference diff --git a/src/compiler/visitor.ts b/src/compiler/visitor.ts index 53ccd81f7a6..aa497511f78 100644 --- a/src/compiler/visitor.ts +++ b/src/compiler/visitor.ts @@ -340,6 +340,7 @@ namespace ts { case SyntaxKind.TypePredicate: return updateTypePredicateNode(node, + visitNode((node).assertsModifier, visitor), visitNode((node).parameterName, visitor), visitNode((node).type, visitor, isTypeNode)); From 1f5bb970d987a7387a3531e1cea00f51b08fe20a Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sat, 3 Aug 2019 08:28:53 -0700 Subject: [PATCH 024/159] Remove unused code --- src/compiler/checker.ts | 10 ---------- src/compiler/types.ts | 2 -- 2 files changed, 12 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c8ad1f66064..7dfb0cd2757 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -8670,16 +8670,6 @@ namespace ts { } } - // function hasAssertionTypePredicate(signature: Signature): boolean { - // const predicate = getTypePredicateOfSignature(signature); - // return !!predicate && predicate.kind === TypePredicateKind.Assertion; - // } - - // function hasBooleanTypePredicate(signature: Signature): boolean { - // const predicate = getTypePredicateOfSignature(signature); - // return !!predicate && (predicate.kind === TypePredicateKind.This || predicate.kind === TypePredicateKind.Identifier); - // } - function getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined { if (!signature.resolvedTypePredicate) { if (signature.target) { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index ba1ad79a8c2..3cdfba2aafb 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3918,8 +3918,6 @@ namespace ts { resolvedSignature?: Signature; // Cached signature of signature node or call expression resolvedSymbol?: Symbol; // Cached name resolution result resolvedIndexInfo?: IndexInfo; // Cached indexing info resolution result - //maybeTypePredicate?: boolean; // Cached check whether call expression might reference a type predicate - //isAssertCall?: boolean; resolvedTypePredicate?: TypePredicate; // Cached type predicate for call expression enumMemberValue?: string | number; // Constant value of enum member isVisible?: boolean; // Is this node visible From fe70a62ef1ef87d20a860c6bdea999cdfab76592 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sat, 3 Aug 2019 08:55:55 -0700 Subject: [PATCH 025/159] Accept new API baselines --- .../reference/api/tsserverlibrary.d.ts | 465 +++++++++--------- tests/baselines/reference/api/typescript.d.ts | 465 +++++++++--------- 2 files changed, 480 insertions(+), 450 deletions(-) diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index d73cbab6b5f..00c88fc4963 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -73,7 +73,7 @@ declare namespace ts { end: number; } export type JSDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind.AtToken | SyntaxKind.NewLineTrivia | SyntaxKind.AsteriskToken | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.LessThanToken | SyntaxKind.GreaterThanToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.EqualsToken | SyntaxKind.CommaToken | SyntaxKind.DotToken | SyntaxKind.Identifier | SyntaxKind.BacktickToken | SyntaxKind.Unknown | KeywordSyntaxKind; - export type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InferKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.OfKeyword; + export type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InferKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.OfKeyword; export type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken; export enum SyntaxKind { Unknown = 0, @@ -198,205 +198,206 @@ declare namespace ts { YieldKeyword = 118, AbstractKeyword = 119, AsKeyword = 120, - AnyKeyword = 121, - AsyncKeyword = 122, - AwaitKeyword = 123, - BooleanKeyword = 124, - ConstructorKeyword = 125, - DeclareKeyword = 126, - GetKeyword = 127, - InferKeyword = 128, - IsKeyword = 129, - KeyOfKeyword = 130, - ModuleKeyword = 131, - NamespaceKeyword = 132, - NeverKeyword = 133, - ReadonlyKeyword = 134, - RequireKeyword = 135, - NumberKeyword = 136, - ObjectKeyword = 137, - SetKeyword = 138, - StringKeyword = 139, - SymbolKeyword = 140, - TypeKeyword = 141, - UndefinedKeyword = 142, - UniqueKeyword = 143, - UnknownKeyword = 144, - FromKeyword = 145, - GlobalKeyword = 146, - BigIntKeyword = 147, - OfKeyword = 148, - QualifiedName = 149, - ComputedPropertyName = 150, - TypeParameter = 151, - Parameter = 152, - Decorator = 153, - PropertySignature = 154, - PropertyDeclaration = 155, - MethodSignature = 156, - MethodDeclaration = 157, - Constructor = 158, - GetAccessor = 159, - SetAccessor = 160, - CallSignature = 161, - ConstructSignature = 162, - IndexSignature = 163, - TypePredicate = 164, - TypeReference = 165, - FunctionType = 166, - ConstructorType = 167, - TypeQuery = 168, - TypeLiteral = 169, - ArrayType = 170, - TupleType = 171, - OptionalType = 172, - RestType = 173, - UnionType = 174, - IntersectionType = 175, - ConditionalType = 176, - InferType = 177, - ParenthesizedType = 178, - ThisType = 179, - TypeOperator = 180, - IndexedAccessType = 181, - MappedType = 182, - LiteralType = 183, - ImportType = 184, - ObjectBindingPattern = 185, - ArrayBindingPattern = 186, - BindingElement = 187, - ArrayLiteralExpression = 188, - ObjectLiteralExpression = 189, - PropertyAccessExpression = 190, - ElementAccessExpression = 191, - CallExpression = 192, - NewExpression = 193, - TaggedTemplateExpression = 194, - TypeAssertionExpression = 195, - ParenthesizedExpression = 196, - FunctionExpression = 197, - ArrowFunction = 198, - DeleteExpression = 199, - TypeOfExpression = 200, - VoidExpression = 201, - AwaitExpression = 202, - PrefixUnaryExpression = 203, - PostfixUnaryExpression = 204, - BinaryExpression = 205, - ConditionalExpression = 206, - TemplateExpression = 207, - YieldExpression = 208, - SpreadElement = 209, - ClassExpression = 210, - OmittedExpression = 211, - ExpressionWithTypeArguments = 212, - AsExpression = 213, - NonNullExpression = 214, - MetaProperty = 215, - SyntheticExpression = 216, - TemplateSpan = 217, - SemicolonClassElement = 218, - Block = 219, - VariableStatement = 220, - EmptyStatement = 221, - ExpressionStatement = 222, - IfStatement = 223, - DoStatement = 224, - WhileStatement = 225, - ForStatement = 226, - ForInStatement = 227, - ForOfStatement = 228, - ContinueStatement = 229, - BreakStatement = 230, - ReturnStatement = 231, - WithStatement = 232, - SwitchStatement = 233, - LabeledStatement = 234, - ThrowStatement = 235, - TryStatement = 236, - DebuggerStatement = 237, - VariableDeclaration = 238, - VariableDeclarationList = 239, - FunctionDeclaration = 240, - ClassDeclaration = 241, - InterfaceDeclaration = 242, - TypeAliasDeclaration = 243, - EnumDeclaration = 244, - ModuleDeclaration = 245, - ModuleBlock = 246, - CaseBlock = 247, - NamespaceExportDeclaration = 248, - ImportEqualsDeclaration = 249, - ImportDeclaration = 250, - ImportClause = 251, - NamespaceImport = 252, - NamedImports = 253, - ImportSpecifier = 254, - ExportAssignment = 255, - ExportDeclaration = 256, - NamedExports = 257, - ExportSpecifier = 258, - MissingDeclaration = 259, - ExternalModuleReference = 260, - JsxElement = 261, - JsxSelfClosingElement = 262, - JsxOpeningElement = 263, - JsxClosingElement = 264, - JsxFragment = 265, - JsxOpeningFragment = 266, - JsxClosingFragment = 267, - JsxAttribute = 268, - JsxAttributes = 269, - JsxSpreadAttribute = 270, - JsxExpression = 271, - CaseClause = 272, - DefaultClause = 273, - HeritageClause = 274, - CatchClause = 275, - PropertyAssignment = 276, - ShorthandPropertyAssignment = 277, - SpreadAssignment = 278, - EnumMember = 279, - UnparsedPrologue = 280, - UnparsedPrepend = 281, - UnparsedText = 282, - UnparsedInternalText = 283, - UnparsedSyntheticReference = 284, - SourceFile = 285, - Bundle = 286, - UnparsedSource = 287, - InputFiles = 288, - JSDocTypeExpression = 289, - JSDocAllType = 290, - JSDocUnknownType = 291, - JSDocNullableType = 292, - JSDocNonNullableType = 293, - JSDocOptionalType = 294, - JSDocFunctionType = 295, - JSDocVariadicType = 296, - JSDocComment = 297, - JSDocTypeLiteral = 298, - JSDocSignature = 299, - JSDocTag = 300, - JSDocAugmentsTag = 301, - JSDocAuthorTag = 302, - JSDocClassTag = 303, - JSDocCallbackTag = 304, - JSDocEnumTag = 305, - JSDocParameterTag = 306, - JSDocReturnTag = 307, - JSDocThisTag = 308, - JSDocTypeTag = 309, - JSDocTemplateTag = 310, - JSDocTypedefTag = 311, - JSDocPropertyTag = 312, - SyntaxList = 313, - NotEmittedStatement = 314, - PartiallyEmittedExpression = 315, - CommaListExpression = 316, - MergeDeclarationMarker = 317, - EndOfDeclarationMarker = 318, - Count = 319, + AssertsKeyword = 121, + AnyKeyword = 122, + AsyncKeyword = 123, + AwaitKeyword = 124, + BooleanKeyword = 125, + ConstructorKeyword = 126, + DeclareKeyword = 127, + GetKeyword = 128, + InferKeyword = 129, + IsKeyword = 130, + KeyOfKeyword = 131, + ModuleKeyword = 132, + NamespaceKeyword = 133, + NeverKeyword = 134, + ReadonlyKeyword = 135, + RequireKeyword = 136, + NumberKeyword = 137, + ObjectKeyword = 138, + SetKeyword = 139, + StringKeyword = 140, + SymbolKeyword = 141, + TypeKeyword = 142, + UndefinedKeyword = 143, + UniqueKeyword = 144, + UnknownKeyword = 145, + FromKeyword = 146, + GlobalKeyword = 147, + BigIntKeyword = 148, + OfKeyword = 149, + QualifiedName = 150, + ComputedPropertyName = 151, + TypeParameter = 152, + Parameter = 153, + Decorator = 154, + PropertySignature = 155, + PropertyDeclaration = 156, + MethodSignature = 157, + MethodDeclaration = 158, + Constructor = 159, + GetAccessor = 160, + SetAccessor = 161, + CallSignature = 162, + ConstructSignature = 163, + IndexSignature = 164, + TypePredicate = 165, + TypeReference = 166, + FunctionType = 167, + ConstructorType = 168, + TypeQuery = 169, + TypeLiteral = 170, + ArrayType = 171, + TupleType = 172, + OptionalType = 173, + RestType = 174, + UnionType = 175, + IntersectionType = 176, + ConditionalType = 177, + InferType = 178, + ParenthesizedType = 179, + ThisType = 180, + TypeOperator = 181, + IndexedAccessType = 182, + MappedType = 183, + LiteralType = 184, + ImportType = 185, + ObjectBindingPattern = 186, + ArrayBindingPattern = 187, + BindingElement = 188, + ArrayLiteralExpression = 189, + ObjectLiteralExpression = 190, + PropertyAccessExpression = 191, + ElementAccessExpression = 192, + CallExpression = 193, + NewExpression = 194, + TaggedTemplateExpression = 195, + TypeAssertionExpression = 196, + ParenthesizedExpression = 197, + FunctionExpression = 198, + ArrowFunction = 199, + DeleteExpression = 200, + TypeOfExpression = 201, + VoidExpression = 202, + AwaitExpression = 203, + PrefixUnaryExpression = 204, + PostfixUnaryExpression = 205, + BinaryExpression = 206, + ConditionalExpression = 207, + TemplateExpression = 208, + YieldExpression = 209, + SpreadElement = 210, + ClassExpression = 211, + OmittedExpression = 212, + ExpressionWithTypeArguments = 213, + AsExpression = 214, + NonNullExpression = 215, + MetaProperty = 216, + SyntheticExpression = 217, + TemplateSpan = 218, + SemicolonClassElement = 219, + Block = 220, + VariableStatement = 221, + EmptyStatement = 222, + ExpressionStatement = 223, + IfStatement = 224, + DoStatement = 225, + WhileStatement = 226, + ForStatement = 227, + ForInStatement = 228, + ForOfStatement = 229, + ContinueStatement = 230, + BreakStatement = 231, + ReturnStatement = 232, + WithStatement = 233, + SwitchStatement = 234, + LabeledStatement = 235, + ThrowStatement = 236, + TryStatement = 237, + DebuggerStatement = 238, + VariableDeclaration = 239, + VariableDeclarationList = 240, + FunctionDeclaration = 241, + ClassDeclaration = 242, + InterfaceDeclaration = 243, + TypeAliasDeclaration = 244, + EnumDeclaration = 245, + ModuleDeclaration = 246, + ModuleBlock = 247, + CaseBlock = 248, + NamespaceExportDeclaration = 249, + ImportEqualsDeclaration = 250, + ImportDeclaration = 251, + ImportClause = 252, + NamespaceImport = 253, + NamedImports = 254, + ImportSpecifier = 255, + ExportAssignment = 256, + ExportDeclaration = 257, + NamedExports = 258, + ExportSpecifier = 259, + MissingDeclaration = 260, + ExternalModuleReference = 261, + JsxElement = 262, + JsxSelfClosingElement = 263, + JsxOpeningElement = 264, + JsxClosingElement = 265, + JsxFragment = 266, + JsxOpeningFragment = 267, + JsxClosingFragment = 268, + JsxAttribute = 269, + JsxAttributes = 270, + JsxSpreadAttribute = 271, + JsxExpression = 272, + CaseClause = 273, + DefaultClause = 274, + HeritageClause = 275, + CatchClause = 276, + PropertyAssignment = 277, + ShorthandPropertyAssignment = 278, + SpreadAssignment = 279, + EnumMember = 280, + UnparsedPrologue = 281, + UnparsedPrepend = 282, + UnparsedText = 283, + UnparsedInternalText = 284, + UnparsedSyntheticReference = 285, + SourceFile = 286, + Bundle = 287, + UnparsedSource = 288, + InputFiles = 289, + JSDocTypeExpression = 290, + JSDocAllType = 291, + JSDocUnknownType = 292, + JSDocNullableType = 293, + JSDocNonNullableType = 294, + JSDocOptionalType = 295, + JSDocFunctionType = 296, + JSDocVariadicType = 297, + JSDocComment = 298, + JSDocTypeLiteral = 299, + JSDocSignature = 300, + JSDocTag = 301, + JSDocAugmentsTag = 302, + JSDocAuthorTag = 303, + JSDocClassTag = 304, + JSDocCallbackTag = 305, + JSDocEnumTag = 306, + JSDocParameterTag = 307, + JSDocReturnTag = 308, + JSDocThisTag = 309, + JSDocTypeTag = 310, + JSDocTemplateTag = 311, + JSDocTypedefTag = 312, + JSDocPropertyTag = 313, + SyntaxList = 314, + NotEmittedStatement = 315, + PartiallyEmittedExpression = 316, + CommaListExpression = 317, + MergeDeclarationMarker = 318, + EndOfDeclarationMarker = 319, + Count = 320, FirstAssignment = 60, LastAssignment = 72, FirstCompoundAssignment = 61, @@ -404,15 +405,15 @@ declare namespace ts { FirstReservedWord = 74, LastReservedWord = 109, FirstKeyword = 74, - LastKeyword = 148, + LastKeyword = 149, FirstFutureReservedWord = 110, LastFutureReservedWord = 118, - FirstTypeNode = 164, - LastTypeNode = 184, + FirstTypeNode = 165, + LastTypeNode = 185, FirstPunctuation = 18, LastPunctuation = 72, FirstToken = 0, - LastToken = 148, + LastToken = 149, FirstTriviaToken = 2, LastTriviaToken = 7, FirstLiteralToken = 8, @@ -421,11 +422,11 @@ declare namespace ts { LastTemplateToken = 17, FirstBinaryOperator = 28, LastBinaryOperator = 72, - FirstNode = 149, - FirstJSDocNode = 289, - LastJSDocNode = 312, - FirstJSDocTagNode = 300, - LastJSDocTagNode = 312, + FirstNode = 150, + FirstJSDocNode = 290, + LastJSDocNode = 313, + FirstJSDocTagNode = 301, + LastJSDocTagNode = 313, } export enum NodeFlags { None = 0, @@ -516,6 +517,7 @@ declare namespace ts { export type AwaitKeywordToken = Token; export type PlusToken = Token; export type MinusToken = Token; + export type AssertsToken = Token; export type Modifier = Token | Token | Token | Token | Token | Token | Token | Token | Token | Token | Token; export type ModifiersArray = NodeArray; export interface Identifier extends PrimaryExpression, Declaration { @@ -769,8 +771,9 @@ declare namespace ts { export interface TypePredicateNode extends TypeNode { kind: SyntaxKind.TypePredicate; parent: SignatureDeclaration | JSDocTypeExpression; + assertsModifier?: AssertsToken; parameterName: Identifier | ThisTypeNode; - type: TypeNode; + type?: TypeNode; } export interface TypeQueryNode extends TypeNode { kind: SyntaxKind.TypeQuery; @@ -1661,10 +1664,11 @@ declare namespace ts { FalseCondition = 64, SwitchClause = 128, ArrayMutation = 256, - Referenced = 512, - Shared = 1024, - PreFinally = 2048, - AfterFinally = 4096, + Call = 512, + Referenced = 1024, + Shared = 2048, + PreFinally = 4096, + AfterFinally = 8192, Label = 12, Condition = 96 } @@ -1678,7 +1682,7 @@ declare namespace ts { antecedent: FlowNode; lock: FlowLock; } - export type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCondition | FlowSwitchClause | FlowArrayMutation; + export type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCall | FlowCondition | FlowSwitchClause | FlowArrayMutation; export interface FlowNodeBase { flags: FlowFlags; id?: number; @@ -1693,6 +1697,10 @@ declare namespace ts { node: Expression | VariableDeclaration | BindingElement; antecedent: FlowNode; } + export interface FlowCall extends FlowNodeBase { + node: CallExpression; + antecedent: FlowNode; + } export interface FlowCondition extends FlowNodeBase { expression: Expression; antecedent: FlowNode; @@ -2080,21 +2088,28 @@ declare namespace ts { } export enum TypePredicateKind { This = 0, - Identifier = 1 + Identifier = 1, + Assertion = 2 } - export interface TypePredicateBase { - kind: TypePredicateKind; + export interface ThisTypePredicate { + kind: TypePredicateKind.This; + parameterName: undefined; + parameterIndex: undefined; type: Type; } - export interface ThisTypePredicate extends TypePredicateBase { - kind: TypePredicateKind.This; - } - export interface IdentifierTypePredicate extends TypePredicateBase { + export interface IdentifierTypePredicate { kind: TypePredicateKind.Identifier; parameterName: string; parameterIndex: number; + type: Type; } - export type TypePredicate = IdentifierTypePredicate | ThisTypePredicate; + export interface AssertionTypePredicate { + kind: TypePredicateKind.Assertion; + parameterName: string; + parameterIndex: number; + type: Type | undefined; + } + export type TypePredicate = ThisTypePredicate | IdentifierTypePredicate | AssertionTypePredicate; export enum SymbolFlags { None = 0, FunctionScopedVariable = 1, @@ -3823,8 +3838,8 @@ declare namespace ts { function createIndexSignature(decorators: ReadonlyArray | undefined, modifiers: ReadonlyArray | undefined, parameters: ReadonlyArray, type: TypeNode): IndexSignatureDeclaration; function updateIndexSignature(node: IndexSignatureDeclaration, decorators: ReadonlyArray | undefined, modifiers: ReadonlyArray | undefined, parameters: ReadonlyArray, type: TypeNode): IndexSignatureDeclaration; function createKeywordTypeNode(kind: KeywordTypeNode["kind"]): KeywordTypeNode; - function createTypePredicateNode(parameterName: Identifier | ThisTypeNode | string, type: TypeNode): TypePredicateNode; - function updateTypePredicateNode(node: TypePredicateNode, parameterName: Identifier | ThisTypeNode, type: TypeNode): TypePredicateNode; + function createTypePredicateNode(assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined): TypePredicateNode; + function updateTypePredicateNode(node: TypePredicateNode, assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined): TypePredicateNode; function createTypeReferenceNode(typeName: string | EntityName, typeArguments: ReadonlyArray | undefined): TypeReferenceNode; function updateTypeReferenceNode(node: TypeReferenceNode, typeName: EntityName, typeArguments: NodeArray | undefined): TypeReferenceNode; function createFunctionTypeNode(typeParameters: ReadonlyArray | undefined, parameters: ReadonlyArray, type: TypeNode | undefined): FunctionTypeNode; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 1bb693c0845..df8d0e1ee79 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -73,7 +73,7 @@ declare namespace ts { end: number; } export type JSDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind.AtToken | SyntaxKind.NewLineTrivia | SyntaxKind.AsteriskToken | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.LessThanToken | SyntaxKind.GreaterThanToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.EqualsToken | SyntaxKind.CommaToken | SyntaxKind.DotToken | SyntaxKind.Identifier | SyntaxKind.BacktickToken | SyntaxKind.Unknown | KeywordSyntaxKind; - export type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InferKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.OfKeyword; + export type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InKeyword | SyntaxKind.InferKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.RequireKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.OfKeyword; export type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken; export enum SyntaxKind { Unknown = 0, @@ -198,205 +198,206 @@ declare namespace ts { YieldKeyword = 118, AbstractKeyword = 119, AsKeyword = 120, - AnyKeyword = 121, - AsyncKeyword = 122, - AwaitKeyword = 123, - BooleanKeyword = 124, - ConstructorKeyword = 125, - DeclareKeyword = 126, - GetKeyword = 127, - InferKeyword = 128, - IsKeyword = 129, - KeyOfKeyword = 130, - ModuleKeyword = 131, - NamespaceKeyword = 132, - NeverKeyword = 133, - ReadonlyKeyword = 134, - RequireKeyword = 135, - NumberKeyword = 136, - ObjectKeyword = 137, - SetKeyword = 138, - StringKeyword = 139, - SymbolKeyword = 140, - TypeKeyword = 141, - UndefinedKeyword = 142, - UniqueKeyword = 143, - UnknownKeyword = 144, - FromKeyword = 145, - GlobalKeyword = 146, - BigIntKeyword = 147, - OfKeyword = 148, - QualifiedName = 149, - ComputedPropertyName = 150, - TypeParameter = 151, - Parameter = 152, - Decorator = 153, - PropertySignature = 154, - PropertyDeclaration = 155, - MethodSignature = 156, - MethodDeclaration = 157, - Constructor = 158, - GetAccessor = 159, - SetAccessor = 160, - CallSignature = 161, - ConstructSignature = 162, - IndexSignature = 163, - TypePredicate = 164, - TypeReference = 165, - FunctionType = 166, - ConstructorType = 167, - TypeQuery = 168, - TypeLiteral = 169, - ArrayType = 170, - TupleType = 171, - OptionalType = 172, - RestType = 173, - UnionType = 174, - IntersectionType = 175, - ConditionalType = 176, - InferType = 177, - ParenthesizedType = 178, - ThisType = 179, - TypeOperator = 180, - IndexedAccessType = 181, - MappedType = 182, - LiteralType = 183, - ImportType = 184, - ObjectBindingPattern = 185, - ArrayBindingPattern = 186, - BindingElement = 187, - ArrayLiteralExpression = 188, - ObjectLiteralExpression = 189, - PropertyAccessExpression = 190, - ElementAccessExpression = 191, - CallExpression = 192, - NewExpression = 193, - TaggedTemplateExpression = 194, - TypeAssertionExpression = 195, - ParenthesizedExpression = 196, - FunctionExpression = 197, - ArrowFunction = 198, - DeleteExpression = 199, - TypeOfExpression = 200, - VoidExpression = 201, - AwaitExpression = 202, - PrefixUnaryExpression = 203, - PostfixUnaryExpression = 204, - BinaryExpression = 205, - ConditionalExpression = 206, - TemplateExpression = 207, - YieldExpression = 208, - SpreadElement = 209, - ClassExpression = 210, - OmittedExpression = 211, - ExpressionWithTypeArguments = 212, - AsExpression = 213, - NonNullExpression = 214, - MetaProperty = 215, - SyntheticExpression = 216, - TemplateSpan = 217, - SemicolonClassElement = 218, - Block = 219, - VariableStatement = 220, - EmptyStatement = 221, - ExpressionStatement = 222, - IfStatement = 223, - DoStatement = 224, - WhileStatement = 225, - ForStatement = 226, - ForInStatement = 227, - ForOfStatement = 228, - ContinueStatement = 229, - BreakStatement = 230, - ReturnStatement = 231, - WithStatement = 232, - SwitchStatement = 233, - LabeledStatement = 234, - ThrowStatement = 235, - TryStatement = 236, - DebuggerStatement = 237, - VariableDeclaration = 238, - VariableDeclarationList = 239, - FunctionDeclaration = 240, - ClassDeclaration = 241, - InterfaceDeclaration = 242, - TypeAliasDeclaration = 243, - EnumDeclaration = 244, - ModuleDeclaration = 245, - ModuleBlock = 246, - CaseBlock = 247, - NamespaceExportDeclaration = 248, - ImportEqualsDeclaration = 249, - ImportDeclaration = 250, - ImportClause = 251, - NamespaceImport = 252, - NamedImports = 253, - ImportSpecifier = 254, - ExportAssignment = 255, - ExportDeclaration = 256, - NamedExports = 257, - ExportSpecifier = 258, - MissingDeclaration = 259, - ExternalModuleReference = 260, - JsxElement = 261, - JsxSelfClosingElement = 262, - JsxOpeningElement = 263, - JsxClosingElement = 264, - JsxFragment = 265, - JsxOpeningFragment = 266, - JsxClosingFragment = 267, - JsxAttribute = 268, - JsxAttributes = 269, - JsxSpreadAttribute = 270, - JsxExpression = 271, - CaseClause = 272, - DefaultClause = 273, - HeritageClause = 274, - CatchClause = 275, - PropertyAssignment = 276, - ShorthandPropertyAssignment = 277, - SpreadAssignment = 278, - EnumMember = 279, - UnparsedPrologue = 280, - UnparsedPrepend = 281, - UnparsedText = 282, - UnparsedInternalText = 283, - UnparsedSyntheticReference = 284, - SourceFile = 285, - Bundle = 286, - UnparsedSource = 287, - InputFiles = 288, - JSDocTypeExpression = 289, - JSDocAllType = 290, - JSDocUnknownType = 291, - JSDocNullableType = 292, - JSDocNonNullableType = 293, - JSDocOptionalType = 294, - JSDocFunctionType = 295, - JSDocVariadicType = 296, - JSDocComment = 297, - JSDocTypeLiteral = 298, - JSDocSignature = 299, - JSDocTag = 300, - JSDocAugmentsTag = 301, - JSDocAuthorTag = 302, - JSDocClassTag = 303, - JSDocCallbackTag = 304, - JSDocEnumTag = 305, - JSDocParameterTag = 306, - JSDocReturnTag = 307, - JSDocThisTag = 308, - JSDocTypeTag = 309, - JSDocTemplateTag = 310, - JSDocTypedefTag = 311, - JSDocPropertyTag = 312, - SyntaxList = 313, - NotEmittedStatement = 314, - PartiallyEmittedExpression = 315, - CommaListExpression = 316, - MergeDeclarationMarker = 317, - EndOfDeclarationMarker = 318, - Count = 319, + AssertsKeyword = 121, + AnyKeyword = 122, + AsyncKeyword = 123, + AwaitKeyword = 124, + BooleanKeyword = 125, + ConstructorKeyword = 126, + DeclareKeyword = 127, + GetKeyword = 128, + InferKeyword = 129, + IsKeyword = 130, + KeyOfKeyword = 131, + ModuleKeyword = 132, + NamespaceKeyword = 133, + NeverKeyword = 134, + ReadonlyKeyword = 135, + RequireKeyword = 136, + NumberKeyword = 137, + ObjectKeyword = 138, + SetKeyword = 139, + StringKeyword = 140, + SymbolKeyword = 141, + TypeKeyword = 142, + UndefinedKeyword = 143, + UniqueKeyword = 144, + UnknownKeyword = 145, + FromKeyword = 146, + GlobalKeyword = 147, + BigIntKeyword = 148, + OfKeyword = 149, + QualifiedName = 150, + ComputedPropertyName = 151, + TypeParameter = 152, + Parameter = 153, + Decorator = 154, + PropertySignature = 155, + PropertyDeclaration = 156, + MethodSignature = 157, + MethodDeclaration = 158, + Constructor = 159, + GetAccessor = 160, + SetAccessor = 161, + CallSignature = 162, + ConstructSignature = 163, + IndexSignature = 164, + TypePredicate = 165, + TypeReference = 166, + FunctionType = 167, + ConstructorType = 168, + TypeQuery = 169, + TypeLiteral = 170, + ArrayType = 171, + TupleType = 172, + OptionalType = 173, + RestType = 174, + UnionType = 175, + IntersectionType = 176, + ConditionalType = 177, + InferType = 178, + ParenthesizedType = 179, + ThisType = 180, + TypeOperator = 181, + IndexedAccessType = 182, + MappedType = 183, + LiteralType = 184, + ImportType = 185, + ObjectBindingPattern = 186, + ArrayBindingPattern = 187, + BindingElement = 188, + ArrayLiteralExpression = 189, + ObjectLiteralExpression = 190, + PropertyAccessExpression = 191, + ElementAccessExpression = 192, + CallExpression = 193, + NewExpression = 194, + TaggedTemplateExpression = 195, + TypeAssertionExpression = 196, + ParenthesizedExpression = 197, + FunctionExpression = 198, + ArrowFunction = 199, + DeleteExpression = 200, + TypeOfExpression = 201, + VoidExpression = 202, + AwaitExpression = 203, + PrefixUnaryExpression = 204, + PostfixUnaryExpression = 205, + BinaryExpression = 206, + ConditionalExpression = 207, + TemplateExpression = 208, + YieldExpression = 209, + SpreadElement = 210, + ClassExpression = 211, + OmittedExpression = 212, + ExpressionWithTypeArguments = 213, + AsExpression = 214, + NonNullExpression = 215, + MetaProperty = 216, + SyntheticExpression = 217, + TemplateSpan = 218, + SemicolonClassElement = 219, + Block = 220, + VariableStatement = 221, + EmptyStatement = 222, + ExpressionStatement = 223, + IfStatement = 224, + DoStatement = 225, + WhileStatement = 226, + ForStatement = 227, + ForInStatement = 228, + ForOfStatement = 229, + ContinueStatement = 230, + BreakStatement = 231, + ReturnStatement = 232, + WithStatement = 233, + SwitchStatement = 234, + LabeledStatement = 235, + ThrowStatement = 236, + TryStatement = 237, + DebuggerStatement = 238, + VariableDeclaration = 239, + VariableDeclarationList = 240, + FunctionDeclaration = 241, + ClassDeclaration = 242, + InterfaceDeclaration = 243, + TypeAliasDeclaration = 244, + EnumDeclaration = 245, + ModuleDeclaration = 246, + ModuleBlock = 247, + CaseBlock = 248, + NamespaceExportDeclaration = 249, + ImportEqualsDeclaration = 250, + ImportDeclaration = 251, + ImportClause = 252, + NamespaceImport = 253, + NamedImports = 254, + ImportSpecifier = 255, + ExportAssignment = 256, + ExportDeclaration = 257, + NamedExports = 258, + ExportSpecifier = 259, + MissingDeclaration = 260, + ExternalModuleReference = 261, + JsxElement = 262, + JsxSelfClosingElement = 263, + JsxOpeningElement = 264, + JsxClosingElement = 265, + JsxFragment = 266, + JsxOpeningFragment = 267, + JsxClosingFragment = 268, + JsxAttribute = 269, + JsxAttributes = 270, + JsxSpreadAttribute = 271, + JsxExpression = 272, + CaseClause = 273, + DefaultClause = 274, + HeritageClause = 275, + CatchClause = 276, + PropertyAssignment = 277, + ShorthandPropertyAssignment = 278, + SpreadAssignment = 279, + EnumMember = 280, + UnparsedPrologue = 281, + UnparsedPrepend = 282, + UnparsedText = 283, + UnparsedInternalText = 284, + UnparsedSyntheticReference = 285, + SourceFile = 286, + Bundle = 287, + UnparsedSource = 288, + InputFiles = 289, + JSDocTypeExpression = 290, + JSDocAllType = 291, + JSDocUnknownType = 292, + JSDocNullableType = 293, + JSDocNonNullableType = 294, + JSDocOptionalType = 295, + JSDocFunctionType = 296, + JSDocVariadicType = 297, + JSDocComment = 298, + JSDocTypeLiteral = 299, + JSDocSignature = 300, + JSDocTag = 301, + JSDocAugmentsTag = 302, + JSDocAuthorTag = 303, + JSDocClassTag = 304, + JSDocCallbackTag = 305, + JSDocEnumTag = 306, + JSDocParameterTag = 307, + JSDocReturnTag = 308, + JSDocThisTag = 309, + JSDocTypeTag = 310, + JSDocTemplateTag = 311, + JSDocTypedefTag = 312, + JSDocPropertyTag = 313, + SyntaxList = 314, + NotEmittedStatement = 315, + PartiallyEmittedExpression = 316, + CommaListExpression = 317, + MergeDeclarationMarker = 318, + EndOfDeclarationMarker = 319, + Count = 320, FirstAssignment = 60, LastAssignment = 72, FirstCompoundAssignment = 61, @@ -404,15 +405,15 @@ declare namespace ts { FirstReservedWord = 74, LastReservedWord = 109, FirstKeyword = 74, - LastKeyword = 148, + LastKeyword = 149, FirstFutureReservedWord = 110, LastFutureReservedWord = 118, - FirstTypeNode = 164, - LastTypeNode = 184, + FirstTypeNode = 165, + LastTypeNode = 185, FirstPunctuation = 18, LastPunctuation = 72, FirstToken = 0, - LastToken = 148, + LastToken = 149, FirstTriviaToken = 2, LastTriviaToken = 7, FirstLiteralToken = 8, @@ -421,11 +422,11 @@ declare namespace ts { LastTemplateToken = 17, FirstBinaryOperator = 28, LastBinaryOperator = 72, - FirstNode = 149, - FirstJSDocNode = 289, - LastJSDocNode = 312, - FirstJSDocTagNode = 300, - LastJSDocTagNode = 312, + FirstNode = 150, + FirstJSDocNode = 290, + LastJSDocNode = 313, + FirstJSDocTagNode = 301, + LastJSDocTagNode = 313, } export enum NodeFlags { None = 0, @@ -516,6 +517,7 @@ declare namespace ts { export type AwaitKeywordToken = Token; export type PlusToken = Token; export type MinusToken = Token; + export type AssertsToken = Token; export type Modifier = Token | Token | Token | Token | Token | Token | Token | Token | Token | Token | Token; export type ModifiersArray = NodeArray; export interface Identifier extends PrimaryExpression, Declaration { @@ -769,8 +771,9 @@ declare namespace ts { export interface TypePredicateNode extends TypeNode { kind: SyntaxKind.TypePredicate; parent: SignatureDeclaration | JSDocTypeExpression; + assertsModifier?: AssertsToken; parameterName: Identifier | ThisTypeNode; - type: TypeNode; + type?: TypeNode; } export interface TypeQueryNode extends TypeNode { kind: SyntaxKind.TypeQuery; @@ -1661,10 +1664,11 @@ declare namespace ts { FalseCondition = 64, SwitchClause = 128, ArrayMutation = 256, - Referenced = 512, - Shared = 1024, - PreFinally = 2048, - AfterFinally = 4096, + Call = 512, + Referenced = 1024, + Shared = 2048, + PreFinally = 4096, + AfterFinally = 8192, Label = 12, Condition = 96 } @@ -1678,7 +1682,7 @@ declare namespace ts { antecedent: FlowNode; lock: FlowLock; } - export type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCondition | FlowSwitchClause | FlowArrayMutation; + export type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCall | FlowCondition | FlowSwitchClause | FlowArrayMutation; export interface FlowNodeBase { flags: FlowFlags; id?: number; @@ -1693,6 +1697,10 @@ declare namespace ts { node: Expression | VariableDeclaration | BindingElement; antecedent: FlowNode; } + export interface FlowCall extends FlowNodeBase { + node: CallExpression; + antecedent: FlowNode; + } export interface FlowCondition extends FlowNodeBase { expression: Expression; antecedent: FlowNode; @@ -2080,21 +2088,28 @@ declare namespace ts { } export enum TypePredicateKind { This = 0, - Identifier = 1 + Identifier = 1, + Assertion = 2 } - export interface TypePredicateBase { - kind: TypePredicateKind; + export interface ThisTypePredicate { + kind: TypePredicateKind.This; + parameterName: undefined; + parameterIndex: undefined; type: Type; } - export interface ThisTypePredicate extends TypePredicateBase { - kind: TypePredicateKind.This; - } - export interface IdentifierTypePredicate extends TypePredicateBase { + export interface IdentifierTypePredicate { kind: TypePredicateKind.Identifier; parameterName: string; parameterIndex: number; + type: Type; } - export type TypePredicate = IdentifierTypePredicate | ThisTypePredicate; + export interface AssertionTypePredicate { + kind: TypePredicateKind.Assertion; + parameterName: string; + parameterIndex: number; + type: Type | undefined; + } + export type TypePredicate = ThisTypePredicate | IdentifierTypePredicate | AssertionTypePredicate; export enum SymbolFlags { None = 0, FunctionScopedVariable = 1, @@ -3823,8 +3838,8 @@ declare namespace ts { function createIndexSignature(decorators: ReadonlyArray | undefined, modifiers: ReadonlyArray | undefined, parameters: ReadonlyArray, type: TypeNode): IndexSignatureDeclaration; function updateIndexSignature(node: IndexSignatureDeclaration, decorators: ReadonlyArray | undefined, modifiers: ReadonlyArray | undefined, parameters: ReadonlyArray, type: TypeNode): IndexSignatureDeclaration; function createKeywordTypeNode(kind: KeywordTypeNode["kind"]): KeywordTypeNode; - function createTypePredicateNode(parameterName: Identifier | ThisTypeNode | string, type: TypeNode): TypePredicateNode; - function updateTypePredicateNode(node: TypePredicateNode, parameterName: Identifier | ThisTypeNode, type: TypeNode): TypePredicateNode; + function createTypePredicateNode(assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined): TypePredicateNode; + function updateTypePredicateNode(node: TypePredicateNode, assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined): TypePredicateNode; function createTypeReferenceNode(typeName: string | EntityName, typeArguments: ReadonlyArray | undefined): TypeReferenceNode; function updateTypeReferenceNode(node: TypeReferenceNode, typeName: EntityName, typeArguments: NodeArray | undefined): TypeReferenceNode; function createFunctionTypeNode(typeParameters: ReadonlyArray | undefined, parameters: ReadonlyArray, type: TypeNode | undefined): FunctionTypeNode; From 1c55e5de69c581da19184c1b9bfa08c800d1bb7c Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Mon, 5 Aug 2019 08:27:54 +0200 Subject: [PATCH 026/159] Address code review feedback --- src/compiler/binder.ts | 3 ++- src/compiler/checker.ts | 22 ++++++++++++---------- src/compiler/parser.ts | 5 ++--- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 2b917bc577c..e48943d3c83 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -1285,7 +1285,8 @@ namespace ts { } function isDottedName(node: Expression): boolean { - return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.PropertyAccessExpression && isDottedName((node).expression); + return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.ThisKeyword || + node.kind === SyntaxKind.PropertyAccessExpression && isDottedName((node).expression); } function bindExpressionStatement(node: ExpressionStatement): void { diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 7dfb0cd2757..66aa107c561 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -16838,16 +16838,18 @@ namespace ts { // that reference function, method, class or value module symbols; or variable, property or // parameter symbols with declarations that have explicit type annotations. Such references are // resolvable with no possibility of triggering circularities in control flow analysis. - if (node.kind === SyntaxKind.Identifier) { - const symbol = getResolvedSymbol(node); - return getExplicitTypeOfSymbol(symbol.flags & SymbolFlags.Alias ? resolveAlias(symbol) : symbol); - } - if (node.kind === SyntaxKind.PropertyAccessExpression) { - const type = getTypeOfDottedName((node).expression); - if (type) { - const prop = getPropertyOfType(type, (node).name.escapedText); - return prop && getExplicitTypeOfSymbol(prop); - } + switch (node.kind) { + case SyntaxKind.Identifier: + const symbol = getResolvedSymbol(node); + return getExplicitTypeOfSymbol(symbol.flags & SymbolFlags.Alias ? resolveAlias(symbol) : symbol); + case SyntaxKind.ThisKeyword: + return checkThisExpression(node); + case SyntaxKind.PropertyAccessExpression: + const type = getTypeOfDottedName((node).expression); + if (type) { + const prop = getPropertyOfType(type, (node).name.escapedText); + return prop && getExplicitTypeOfSymbol(prop); + } } } diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 3e0ea65476a..6dc0235a7d0 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -3211,6 +3211,7 @@ namespace ts { const type = parseType(); if (typePredicateVariable) { const node = createNode(SyntaxKind.TypePredicate, typePredicateVariable.pos); + node.assertsModifier = undefined; node.parameterName = typePredicateVariable; node.type = type; return finishNode(node); @@ -3232,9 +3233,7 @@ namespace ts { const node = createNode(SyntaxKind.TypePredicate); node.assertsModifier = parseExpectedToken(SyntaxKind.AssertsKeyword); node.parameterName = parseIdentifier(); - if (parseOptional(SyntaxKind.IsKeyword)) { - node.type = parseType(); - } + node.type = parseOptional(SyntaxKind.IsKeyword) ? parseType() : undefined; return finishNode(node); } From df02ad6e59b0f3388f6644688303b4419f6e771a Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Thu, 8 Aug 2019 10:48:45 +0200 Subject: [PATCH 027/159] Reflect control flow effects of calls to never-returning functions --- src/compiler/binder.ts | 2 +- src/compiler/checker.ts | 76 ++++++++++++++++++++--------------------- src/compiler/types.ts | 2 +- 3 files changed, 39 insertions(+), 41 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index e48943d3c83..8e004b125ab 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -1295,7 +1295,7 @@ namespace ts { // is potentially an assertion and is therefore included in the control flow. if (node.expression.kind === SyntaxKind.CallExpression) { const call = node.expression; - if (isDottedName(call.expression) && call.arguments.length >= 1) { + if (isDottedName(call.expression)) { currentFlow = createFlowCall(currentFlow, call); } } diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 66aa107c561..01de800c7c8 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -16853,31 +16853,23 @@ namespace ts { } } - function getTypePredicateForCall(node: CallExpression) { + function isCallWithEffects(node: CallExpression) { const links = getNodeLinks(node); - if (links.resolvedTypePredicate === undefined) { - links.resolvedTypePredicate = computeTypePredicateForCall(node) || noTypePredicate; + if (links.isCallWithEffects === undefined) { + // A call expression parented by an expression statement is a potential assertion. Other call + // expressions are potential type predicate function calls. + const funcType = node.parent.kind === SyntaxKind.ExpressionStatement ? getTypeOfDottedName(node.expression) : + node.expression.kind !== SyntaxKind.SuperKeyword ? checkNonNullExpression(node.expression) : + undefined; + const apparentType = funcType && getApparentType(funcType) || unknownType; + links.isCallWithEffects = some(getSignaturesOfType(apparentType, SignatureKind.Call), hasTypePredicateOrNeverReturnType); } - return links.resolvedTypePredicate === noTypePredicate ? undefined : links.resolvedTypePredicate; + return links.isCallWithEffects; } - function computeTypePredicateForCall(node: CallExpression) { - // A call expression parented by an expression statement is a potential assertion. Other call - // expressions are potential type predicate function calls. - const funcType = node.parent.kind === SyntaxKind.ExpressionStatement ? getTypeOfDottedName(node.expression) : - node.expression.kind !== SyntaxKind.SuperKeyword ? checkNonNullExpression(node.expression) : - undefined; - if (funcType && funcType !== silentNeverType) { - const apparentType = getApparentType(funcType); - if (some(getSignaturesOfType(apparentType, SignatureKind.Call), hasTypePredicate)) { - return getTypePredicateOfSignature(getResolvedSignature(node)); - } - } - return undefined; - } - - function hasTypePredicate(signature: Signature) { - return !!getTypePredicateOfSignature(signature); + function hasTypePredicateOrNeverReturnType(signature: Signature) { + return !!(getTypePredicateOfSignature(signature) || + signature.declaration && (getReturnTypeFromAnnotation(signature.declaration) || unknownType).flags & TypeFlags.Never); } function reportFlowControlError(node: Node) { @@ -17094,14 +17086,20 @@ namespace ts { } function getTypeAtFlowCall(flow: FlowCall): FlowType | undefined { - const predicate = getTypePredicateForCall(flow.node); - if (predicate && predicate.kind === TypePredicateKind.Assertion) { - const flowType = getTypeAtFlowNode(flow.antecedent); - const type = getTypeFromFlowType(flowType); - const narrowedType = predicate.type ? - narrowTypeByTypePredicate(type, predicate, flow.node, /*assumeTrue*/ true) : - narrowTypeByAssertion(type, flow.node.arguments[predicate.parameterIndex]); - return narrowedType === type ? flowType : createFlowType(narrowedType, isIncomplete(flowType)); + if (isCallWithEffects(flow.node)) { + const signature = getResolvedSignature(flow.node); + const predicate = getTypePredicateOfSignature(signature); + if (predicate && predicate.kind === TypePredicateKind.Assertion) { + const flowType = getTypeAtFlowNode(flow.antecedent); + const type = getTypeFromFlowType(flowType); + const narrowedType = predicate.type ? + narrowTypeByTypePredicate(type, predicate, flow.node, /*assumeTrue*/ true) : + narrowTypeByAssertion(type, flow.node.arguments[predicate.parameterIndex]); + return narrowedType === type ? flowType : createFlowType(narrowedType, isIncomplete(flowType)); + } + if (getReturnTypeOfSignature(signature).flags & TypeFlags.Never) { + return neverType; + } } return undefined; } @@ -17690,8 +17688,9 @@ namespace ts { } function narrowTypeByCallExpression(type: Type, callExpression: CallExpression, assumeTrue: boolean): Type { - if (hasMatchingArgument(callExpression, reference)) { - const predicate = getTypePredicateForCall(callExpression); + if (hasMatchingArgument(callExpression, reference) && isCallWithEffects(callExpression)) { + const signature = getResolvedSignature(callExpression); + const predicate = getTypePredicateOfSignature(signature); if (predicate && predicate.kind !== TypePredicateKind.Assertion) { return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue); } @@ -23652,15 +23651,14 @@ namespace ts { return eachTypeContainedIn(mapType(type, getRegularTypeOfLiteralType), switchTypes); } - function functionHasImplicitReturn(func: FunctionLikeDeclaration) { - if (!(func.flags & NodeFlags.HasImplicitReturn)) { - return false; - } + function isNeverFunctionCall(expr: Expression) { + return expr.kind === SyntaxKind.CallExpression && isCallWithEffects(expr) && !!(getTypeOfExpression(expr).flags & TypeFlags.Never); + } - if (some((func.body).statements, statement => statement.kind === SyntaxKind.SwitchStatement && isExhaustiveSwitchStatement(statement))) { - return false; - } - return true; + function functionHasImplicitReturn(func: FunctionLikeDeclaration) { + return !!(func.flags & NodeFlags.HasImplicitReturn) && !some((func.body).statements, statement => + statement.kind === SyntaxKind.SwitchStatement && isExhaustiveSwitchStatement(statement) || + statement.kind === SyntaxKind.ExpressionStatement && isNeverFunctionCall((statement).expression)); } /** NOTE: Return value of `[]` means a different thing than `undefined`. `[]` means func returns `void`, `undefined` means it returns `never`. */ diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 3cdfba2aafb..6b757736cc5 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3918,7 +3918,7 @@ namespace ts { resolvedSignature?: Signature; // Cached signature of signature node or call expression resolvedSymbol?: Symbol; // Cached name resolution result resolvedIndexInfo?: IndexInfo; // Cached indexing info resolution result - resolvedTypePredicate?: TypePredicate; // Cached type predicate for call expression + isCallWithEffects?: boolean; // Is call expression with possible control flow effects? enumMemberValue?: string | number; // Constant value of enum member isVisible?: boolean; // Is this node visible containsArgumentsReference?: boolean; // Whether a function-like declaration contains an 'arguments' reference From 99ab53edcd01fd217f575e805fd16ecf6c0ba7f9 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 9 Aug 2019 10:15:47 +0200 Subject: [PATCH 028/159] Make flow nodes more monomorphic --- src/compiler/binder.ts | 50 ++++++++++++++++++++++++----------------- src/compiler/checker.ts | 4 ++-- src/compiler/types.ts | 29 +++++++++++++++--------- 3 files changed, 50 insertions(+), 33 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 8e004b125ab..b4ccdf488b1 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -148,8 +148,8 @@ namespace ts { let Symbol: new (flags: SymbolFlags, name: __String) => Symbol; // tslint:disable-line variable-name let classifiableNames: UnderscoreEscapedMap; - const unreachableFlow: FlowNode = { flags: FlowFlags.Unreachable }; - const reportedUnreachableFlow: FlowNode = { flags: FlowFlags.Unreachable }; + const unreachableFlow = createFlowNode(FlowFlags.Unreachable, /*antecedent*/ undefined, /*node*/ undefined); + const reportedUnreachableFlow: FlowNode = createFlowNode(FlowFlags.Unreachable, /*antecedent*/ undefined, /*node*/ undefined); // state used to aggregate transform flags during bind. let subtreeTransformFlags: TransformFlags = TransformFlags.None; @@ -560,9 +560,9 @@ namespace ts { // A non-async, non-generator IIFE is considered part of the containing control flow. Return statements behave // similarly to break statements that exit to a label just past the statement body. if (!isIIFE) { - currentFlow = { flags: FlowFlags.Start }; + currentFlow = createFlowNode(FlowFlags.Start, /*antecedent*/ undefined, /*node*/ undefined) as FlowStart; if (containerFlags & (ContainerFlags.IsFunctionExpression | ContainerFlags.IsObjectLiteralOrClassExpressionMethod)) { - currentFlow.container = node; + currentFlow.node = node; } } // We create a return control flow graph for IIFEs and constructors. For constructors @@ -842,18 +842,22 @@ namespace ts { return isNarrowableReference(expr); } - function createBranchLabel(): FlowLabel { + function createFlowNode(flags: FlowFlags, antecedent: FlowNode | undefined, node: Node | undefined) { return { - flags: FlowFlags.BranchLabel, - antecedents: undefined - }; + flags, + antecedent, + node, + id: undefined, + antecedents: undefined, + } as FlowNode; + } + + function createBranchLabel(): FlowLabel { + return createFlowNode(FlowFlags.BranchLabel, /*antecedent*/ undefined, /*node*/ undefined) as FlowLabel; } function createLoopLabel(): FlowLabel { - return { - flags: FlowFlags.LoopLabel, - antecedents: undefined - }; + return createFlowNode(FlowFlags.LoopLabel, /*antecedent*/ undefined, /*node*/ undefined) as FlowLabel; } function setFlowNodeReferenced(flow: FlowNode) { @@ -883,7 +887,7 @@ namespace ts { return antecedent; } setFlowNodeReferenced(antecedent); - return flowNodeCreated({ flags, expression, antecedent }); + return flowNodeCreated(createFlowNode(flags, antecedent, expression)); } function createFlowSwitchClause(antecedent: FlowNode, switchStatement: SwitchStatement, clauseStart: number, clauseEnd: number): FlowNode { @@ -891,23 +895,26 @@ namespace ts { return antecedent; } setFlowNodeReferenced(antecedent); - return flowNodeCreated({ flags: FlowFlags.SwitchClause, switchStatement, clauseStart, clauseEnd, antecedent }); + const result = createFlowNode(FlowFlags.SwitchClause, antecedent, /*node*/ undefined) as FlowSwitchClause; + result.switchStatement = switchStatement; + result.clauseStart = clauseStart; + result.clauseEnd = clauseEnd; + return flowNodeCreated(result); } function createFlowAssignment(antecedent: FlowNode, node: Expression | VariableDeclaration | BindingElement): FlowNode { setFlowNodeReferenced(antecedent); - return flowNodeCreated({ flags: FlowFlags.Assignment, antecedent, node }); + return flowNodeCreated(createFlowNode(FlowFlags.Assignment, antecedent, node)); } function createFlowCall(antecedent: FlowNode, node: CallExpression): FlowNode { setFlowNodeReferenced(antecedent); - return flowNodeCreated({ flags: FlowFlags.Call, antecedent, node }); + return flowNodeCreated(createFlowNode(FlowFlags.Call, antecedent, node)); } function createFlowArrayMutation(antecedent: FlowNode, node: CallExpression | BinaryExpression): FlowNode { setFlowNodeReferenced(antecedent); - const res: FlowArrayMutation = flowNodeCreated({ flags: FlowFlags.ArrayMutation, antecedent, node }); - return res; + return flowNodeCreated(createFlowNode(FlowFlags.ArrayMutation, antecedent, node)); } function finishFlowLabel(flow: FlowLabel): FlowNode { @@ -1185,7 +1192,8 @@ namespace ts { // // extra edges that we inject allows to control this behavior // if when walking the flow we step on post-finally edge - we can mark matching pre-finally edge as locked so it will be skipped. - const preFinallyFlow: PreFinallyFlow = { flags: FlowFlags.PreFinally, antecedent: preFinallyPrior, lock: {} }; + const preFinallyFlow = createFlowNode(FlowFlags.PreFinally, preFinallyPrior, /*node*/ undefined) as PreFinallyFlow; + preFinallyFlow.lock = {}; addAntecedent(preFinallyLabel, preFinallyFlow); currentFlow = finishFlowLabel(preFinallyLabel); @@ -1204,7 +1212,7 @@ namespace ts { } } if (!(currentFlow.flags & FlowFlags.Unreachable)) { - const afterFinallyFlow: AfterFinallyFlow = flowNodeCreated({ flags: FlowFlags.AfterFinally, antecedent: currentFlow }); + const afterFinallyFlow = flowNodeCreated(createFlowNode(FlowFlags.AfterFinally, currentFlow, /*node*/ undefined) as AfterFinallyFlow); preFinallyFlow.lock = afterFinallyFlow; currentFlow = afterFinallyFlow; } @@ -1828,7 +1836,7 @@ namespace ts { const host = getJSDocHost(typeAlias); container = findAncestor(host.parent, n => !!(getContainerFlags(n) & ContainerFlags.IsContainer)) || file; blockScopeContainer = getEnclosingBlockScopeContainer(host) || file; - currentFlow = { flags: FlowFlags.Start }; + currentFlow = createFlowNode(FlowFlags.Start, /*antecedent*/ undefined, /*node*/ undefined); parent = typeAlias; bind(typeAlias.typeExpression); if (isJSDocEnumTag(typeAlias) || !typeAlias.fullName || typeAlias.fullName.kind === SyntaxKind.Identifier) { diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 01de800c7c8..491dc35a2b2 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -17001,7 +17001,7 @@ namespace ts { } else if (flags & FlowFlags.Start) { // Check if we should continue with the control flow of the containing function. - const container = (flow).container; + const container = (flow).node; if (container && container !== flowContainer && reference.kind !== SyntaxKind.PropertyAccessExpression && reference.kind !== SyntaxKind.ElementAccessExpression && @@ -17150,7 +17150,7 @@ namespace ts { // *only* place a silent never type is ever generated. const assumeTrue = (flow.flags & FlowFlags.TrueCondition) !== 0; const nonEvolvingType = finalizeEvolvingArrayType(type); - const narrowedType = narrowType(nonEvolvingType, flow.expression, assumeTrue); + const narrowedType = narrowType(nonEvolvingType, flow.node, assumeTrue); if (narrowedType === nonEvolvingType) { return flowType; } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 6b757736cc5..96a054e841b 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2565,6 +2565,22 @@ namespace ts { Condition = TrueCondition | FalseCondition } + export type FlowNode = + | AfterFinallyFlow + | PreFinallyFlow + | FlowStart + | FlowLabel + | FlowAssignment + | FlowCall + | FlowCondition + | FlowSwitchClause + | FlowArrayMutation; + + export interface FlowNodeBase { + flags: FlowFlags; + id: number | undefined; // Node id used by flow type cache in checker + } + export interface FlowLock { locked?: boolean; } @@ -2578,18 +2594,11 @@ namespace ts { lock: FlowLock; } - export type FlowNode = - | AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCall | FlowCondition | FlowSwitchClause | FlowArrayMutation; - export interface FlowNodeBase { - flags: FlowFlags; - id?: number; // Node id used by flow type cache in checker - } - // FlowStart represents the start of a control flow. For a function expression or arrow - // function, the container property references the function (which in turn has a flowNode + // function, the node property references the function (which in turn has a flowNode // property for the containing control flow). export interface FlowStart extends FlowNodeBase { - container?: FunctionExpression | ArrowFunction | MethodDeclaration; + node?: FunctionExpression | ArrowFunction | MethodDeclaration; } // FlowLabel represents a junction with multiple possible preceding control flows. @@ -2612,7 +2621,7 @@ namespace ts { // FlowCondition represents a condition that is known to be true or false at the // node's location in the control flow. export interface FlowCondition extends FlowNodeBase { - expression: Expression; + node: Expression; antecedent: FlowNode; } From d5e08d485d783537c4bbdc5d72425763656cba5d Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 9 Aug 2019 10:16:16 +0200 Subject: [PATCH 029/159] Accept baseline API changes --- tests/baselines/reference/api/tsserverlibrary.d.ts | 14 +++++++------- tests/baselines/reference/api/typescript.d.ts | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 00c88fc4963..c1a271bb0af 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -1672,6 +1672,11 @@ declare namespace ts { Label = 12, Condition = 96 } + export type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCall | FlowCondition | FlowSwitchClause | FlowArrayMutation; + export interface FlowNodeBase { + flags: FlowFlags; + id: number | undefined; + } export interface FlowLock { locked?: boolean; } @@ -1682,13 +1687,8 @@ declare namespace ts { antecedent: FlowNode; lock: FlowLock; } - export type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCall | FlowCondition | FlowSwitchClause | FlowArrayMutation; - export interface FlowNodeBase { - flags: FlowFlags; - id?: number; - } export interface FlowStart extends FlowNodeBase { - container?: FunctionExpression | ArrowFunction | MethodDeclaration; + node?: FunctionExpression | ArrowFunction | MethodDeclaration; } export interface FlowLabel extends FlowNodeBase { antecedents: FlowNode[] | undefined; @@ -1702,7 +1702,7 @@ declare namespace ts { antecedent: FlowNode; } export interface FlowCondition extends FlowNodeBase { - expression: Expression; + node: Expression; antecedent: FlowNode; } export interface FlowSwitchClause extends FlowNodeBase { diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index df8d0e1ee79..0bb7d724ee0 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -1672,6 +1672,11 @@ declare namespace ts { Label = 12, Condition = 96 } + export type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCall | FlowCondition | FlowSwitchClause | FlowArrayMutation; + export interface FlowNodeBase { + flags: FlowFlags; + id: number | undefined; + } export interface FlowLock { locked?: boolean; } @@ -1682,13 +1687,8 @@ declare namespace ts { antecedent: FlowNode; lock: FlowLock; } - export type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCall | FlowCondition | FlowSwitchClause | FlowArrayMutation; - export interface FlowNodeBase { - flags: FlowFlags; - id?: number; - } export interface FlowStart extends FlowNodeBase { - container?: FunctionExpression | ArrowFunction | MethodDeclaration; + node?: FunctionExpression | ArrowFunction | MethodDeclaration; } export interface FlowLabel extends FlowNodeBase { antecedents: FlowNode[] | undefined; @@ -1702,7 +1702,7 @@ declare namespace ts { antecedent: FlowNode; } export interface FlowCondition extends FlowNodeBase { - expression: Expression; + node: Expression; antecedent: FlowNode; } export interface FlowSwitchClause extends FlowNodeBase { From 19f1d3ba0a8c0f85a99a770d3a344161b911d934 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 9 Aug 2019 12:35:28 +0200 Subject: [PATCH 030/159] Less aggressive monomorphism for flow nodes --- src/compiler/binder.ts | 41 +++++++++++++---------------------------- src/compiler/types.ts | 2 +- 2 files changed, 14 insertions(+), 29 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index b4ccdf488b1..19dd6bee232 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -148,8 +148,8 @@ namespace ts { let Symbol: new (flags: SymbolFlags, name: __String) => Symbol; // tslint:disable-line variable-name let classifiableNames: UnderscoreEscapedMap; - const unreachableFlow = createFlowNode(FlowFlags.Unreachable, /*antecedent*/ undefined, /*node*/ undefined); - const reportedUnreachableFlow: FlowNode = createFlowNode(FlowFlags.Unreachable, /*antecedent*/ undefined, /*node*/ undefined); + const unreachableFlow: FlowNode = { flags: FlowFlags.Unreachable }; + const reportedUnreachableFlow: FlowNode = { flags: FlowFlags.Unreachable }; // state used to aggregate transform flags during bind. let subtreeTransformFlags: TransformFlags = TransformFlags.None; @@ -560,7 +560,7 @@ namespace ts { // A non-async, non-generator IIFE is considered part of the containing control flow. Return statements behave // similarly to break statements that exit to a label just past the statement body. if (!isIIFE) { - currentFlow = createFlowNode(FlowFlags.Start, /*antecedent*/ undefined, /*node*/ undefined) as FlowStart; + currentFlow = { flags: FlowFlags.Start }; if (containerFlags & (ContainerFlags.IsFunctionExpression | ContainerFlags.IsObjectLiteralOrClassExpressionMethod)) { currentFlow.node = node; } @@ -842,22 +842,12 @@ namespace ts { return isNarrowableReference(expr); } - function createFlowNode(flags: FlowFlags, antecedent: FlowNode | undefined, node: Node | undefined) { - return { - flags, - antecedent, - node, - id: undefined, - antecedents: undefined, - } as FlowNode; - } - function createBranchLabel(): FlowLabel { - return createFlowNode(FlowFlags.BranchLabel, /*antecedent*/ undefined, /*node*/ undefined) as FlowLabel; + return { flags: FlowFlags.BranchLabel, antecedents: undefined }; } function createLoopLabel(): FlowLabel { - return createFlowNode(FlowFlags.LoopLabel, /*antecedent*/ undefined, /*node*/ undefined) as FlowLabel; + return { flags: FlowFlags.LoopLabel, antecedents: undefined }; } function setFlowNodeReferenced(flow: FlowNode) { @@ -887,7 +877,7 @@ namespace ts { return antecedent; } setFlowNodeReferenced(antecedent); - return flowNodeCreated(createFlowNode(flags, antecedent, expression)); + return flowNodeCreated({ flags, antecedent, node: expression }); } function createFlowSwitchClause(antecedent: FlowNode, switchStatement: SwitchStatement, clauseStart: number, clauseEnd: number): FlowNode { @@ -895,26 +885,22 @@ namespace ts { return antecedent; } setFlowNodeReferenced(antecedent); - const result = createFlowNode(FlowFlags.SwitchClause, antecedent, /*node*/ undefined) as FlowSwitchClause; - result.switchStatement = switchStatement; - result.clauseStart = clauseStart; - result.clauseEnd = clauseEnd; - return flowNodeCreated(result); + return flowNodeCreated({ flags: FlowFlags.SwitchClause, antecedent, switchStatement, clauseStart, clauseEnd }); } function createFlowAssignment(antecedent: FlowNode, node: Expression | VariableDeclaration | BindingElement): FlowNode { setFlowNodeReferenced(antecedent); - return flowNodeCreated(createFlowNode(FlowFlags.Assignment, antecedent, node)); + return flowNodeCreated({ flags: FlowFlags.Assignment, antecedent, node }); } function createFlowCall(antecedent: FlowNode, node: CallExpression): FlowNode { setFlowNodeReferenced(antecedent); - return flowNodeCreated(createFlowNode(FlowFlags.Call, antecedent, node)); + return flowNodeCreated({ flags: FlowFlags.Call, antecedent, node }); } function createFlowArrayMutation(antecedent: FlowNode, node: CallExpression | BinaryExpression): FlowNode { setFlowNodeReferenced(antecedent); - return flowNodeCreated(createFlowNode(FlowFlags.ArrayMutation, antecedent, node)); + return flowNodeCreated({ flags: FlowFlags.ArrayMutation, antecedent, node }); } function finishFlowLabel(flow: FlowLabel): FlowNode { @@ -1192,8 +1178,7 @@ namespace ts { // // extra edges that we inject allows to control this behavior // if when walking the flow we step on post-finally edge - we can mark matching pre-finally edge as locked so it will be skipped. - const preFinallyFlow = createFlowNode(FlowFlags.PreFinally, preFinallyPrior, /*node*/ undefined) as PreFinallyFlow; - preFinallyFlow.lock = {}; + const preFinallyFlow: PreFinallyFlow = { flags: FlowFlags.PreFinally, antecedent: preFinallyPrior, lock: {} }; addAntecedent(preFinallyLabel, preFinallyFlow); currentFlow = finishFlowLabel(preFinallyLabel); @@ -1212,7 +1197,7 @@ namespace ts { } } if (!(currentFlow.flags & FlowFlags.Unreachable)) { - const afterFinallyFlow = flowNodeCreated(createFlowNode(FlowFlags.AfterFinally, currentFlow, /*node*/ undefined) as AfterFinallyFlow); + const afterFinallyFlow: AfterFinallyFlow = flowNodeCreated({ flags: FlowFlags.AfterFinally, antecedent: currentFlow }); preFinallyFlow.lock = afterFinallyFlow; currentFlow = afterFinallyFlow; } @@ -1836,7 +1821,7 @@ namespace ts { const host = getJSDocHost(typeAlias); container = findAncestor(host.parent, n => !!(getContainerFlags(n) & ContainerFlags.IsContainer)) || file; blockScopeContainer = getEnclosingBlockScopeContainer(host) || file; - currentFlow = createFlowNode(FlowFlags.Start, /*antecedent*/ undefined, /*node*/ undefined); + currentFlow = { flags: FlowFlags.Start }; parent = typeAlias; bind(typeAlias.typeExpression); if (isJSDocEnumTag(typeAlias) || !typeAlias.fullName || typeAlias.fullName.kind === SyntaxKind.Identifier) { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 96a054e841b..2702f2c5249 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2578,7 +2578,7 @@ namespace ts { export interface FlowNodeBase { flags: FlowFlags; - id: number | undefined; // Node id used by flow type cache in checker + id?: number; // Node id used by flow type cache in checker } export interface FlowLock { From 83212e72407967c194762e2a2e097e2dc2076007 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 9 Aug 2019 12:35:48 +0200 Subject: [PATCH 031/159] Accept API baseline changes --- tests/baselines/reference/api/tsserverlibrary.d.ts | 2 +- tests/baselines/reference/api/typescript.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index c1a271bb0af..2579518fe17 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -1675,7 +1675,7 @@ declare namespace ts { export type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCall | FlowCondition | FlowSwitchClause | FlowArrayMutation; export interface FlowNodeBase { flags: FlowFlags; - id: number | undefined; + id?: number; } export interface FlowLock { locked?: boolean; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 0bb7d724ee0..4417b52af36 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -1675,7 +1675,7 @@ declare namespace ts { export type FlowNode = AfterFinallyFlow | PreFinallyFlow | FlowStart | FlowLabel | FlowAssignment | FlowCall | FlowCondition | FlowSwitchClause | FlowArrayMutation; export interface FlowNodeBase { flags: FlowFlags; - id: number | undefined; + id?: number; } export interface FlowLock { locked?: boolean; From cdeddf14e9a112e64403eecb09257ac51023467f Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sat, 10 Aug 2019 08:38:18 +0200 Subject: [PATCH 032/159] Call getResolvedSignature only when needed for generics or overloads --- src/compiler/checker.ts | 27 ++++++++++++++++----------- src/compiler/types.ts | 2 +- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 71493cbe634..b2bc96fa9cd 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -16877,18 +16877,22 @@ namespace ts { } } - function isCallWithEffects(node: CallExpression) { + function getEffectsSignature(node: CallExpression) { const links = getNodeLinks(node); - if (links.isCallWithEffects === undefined) { + let signature = links.effectsSignature; + if (signature === undefined) { // A call expression parented by an expression statement is a potential assertion. Other call // expressions are potential type predicate function calls. const funcType = node.parent.kind === SyntaxKind.ExpressionStatement ? getTypeOfDottedName(node.expression) : node.expression.kind !== SyntaxKind.SuperKeyword ? checkNonNullExpression(node.expression) : undefined; - const apparentType = funcType && getApparentType(funcType) || unknownType; - links.isCallWithEffects = some(getSignaturesOfType(apparentType, SignatureKind.Call), hasTypePredicateOrNeverReturnType); + const signatures = getSignaturesOfType(funcType && getApparentType(funcType) || unknownType, SignatureKind.Call); + const candidate = signatures.length === 1 && !signatures[0].typeParameters ? signatures[0] : + some(signatures, hasTypePredicateOrNeverReturnType) ? getResolvedSignature(node) : + undefined; + signature = links.effectsSignature = candidate && hasTypePredicateOrNeverReturnType(candidate) ? candidate : unknownSignature; } - return links.isCallWithEffects; + return signature === unknownSignature ? undefined : signature; } function hasTypePredicateOrNeverReturnType(signature: Signature) { @@ -17110,8 +17114,8 @@ namespace ts { } function getTypeAtFlowCall(flow: FlowCall): FlowType | undefined { - if (isCallWithEffects(flow.node)) { - const signature = getResolvedSignature(flow.node); + const signature = getEffectsSignature(flow.node); + if (signature) { const predicate = getTypePredicateOfSignature(signature); if (predicate && predicate.kind === TypePredicateKind.Assertion) { const flowType = getTypeAtFlowNode(flow.antecedent); @@ -17712,9 +17716,9 @@ namespace ts { } function narrowTypeByCallExpression(type: Type, callExpression: CallExpression, assumeTrue: boolean): Type { - if (hasMatchingArgument(callExpression, reference) && isCallWithEffects(callExpression)) { - const signature = getResolvedSignature(callExpression); - const predicate = getTypePredicateOfSignature(signature); + if (hasMatchingArgument(callExpression, reference)) { + const signature = getEffectsSignature(callExpression); + const predicate = signature && getTypePredicateOfSignature(signature); if (predicate && predicate.kind !== TypePredicateKind.Assertion) { return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue); } @@ -23695,7 +23699,8 @@ namespace ts { } function isNeverFunctionCall(expr: Expression) { - return expr.kind === SyntaxKind.CallExpression && isCallWithEffects(expr) && !!(getTypeOfExpression(expr).flags & TypeFlags.Never); + const signature = expr.kind === SyntaxKind.CallExpression && getEffectsSignature(expr); + return !!(signature && getReturnTypeOfSignature(signature).flags & TypeFlags.Never); } function functionHasImplicitReturn(func: FunctionLikeDeclaration) { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 7038b45e24a..9be0bf42db9 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3927,7 +3927,7 @@ namespace ts { resolvedSignature?: Signature; // Cached signature of signature node or call expression resolvedSymbol?: Symbol; // Cached name resolution result resolvedIndexInfo?: IndexInfo; // Cached indexing info resolution result - isCallWithEffects?: boolean; // Is call expression with possible control flow effects? + effectsSignature?: Signature; // Signature with possible control flow effects enumMemberValue?: string | number; // Constant value of enum member isVisible?: boolean; // Is this node visible containsArgumentsReference?: boolean; // Whether a function-like declaration contains an 'arguments' reference From 0599f848575dcfbda5730c446003f4e59411446d Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sat, 17 Aug 2019 06:23:07 -0700 Subject: [PATCH 033/159] Support 'asserts this' and 'asserts this is T' type predicates --- src/compiler/checker.ts | 34 ++++++++++++++++++---------------- src/compiler/parser.ts | 2 +- src/compiler/types.ts | 16 ++++++++++++---- 3 files changed, 31 insertions(+), 21 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 58af0a7134a..c919bb986e4 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -4228,8 +4228,10 @@ namespace ts { let returnTypeNode: TypeNode | undefined; const typePredicate = getTypePredicateOfSignature(signature); if (typePredicate) { - const assertsModifier = typePredicate.kind === TypePredicateKind.Assertion ? createToken(SyntaxKind.AssertsKeyword) : undefined; - const parameterName = typePredicate.kind !== TypePredicateKind.This ? + const assertsModifier = typePredicate.kind === TypePredicateKind.AssertsThis || typePredicate.kind === TypePredicateKind.AssertsIdentifier ? + createToken(SyntaxKind.AssertsKeyword) : + undefined; + const parameterName = typePredicate.kind === TypePredicateKind.Identifier || typePredicate.kind === TypePredicateKind.AssertsIdentifier ? setEmitFlags(createIdentifier(typePredicate.parameterName), EmitFlags.NoAsciiEscaping) : createThisTypeNode(); const typeNode = typePredicate.type && typeToTypeNodeHelper(typePredicate.type, context); @@ -4702,8 +4704,8 @@ namespace ts { function typePredicateToStringWorker(writer: EmitTextWriter) { const predicate = createTypePredicateNode( - typePredicate.kind === TypePredicateKind.Assertion ? createToken(SyntaxKind.AssertsKeyword) : undefined, - typePredicate.kind !== TypePredicateKind.This ? createIdentifier(typePredicate.parameterName) : createThisTypeNode(), + typePredicate.kind === TypePredicateKind.AssertsThis || typePredicate.kind === TypePredicateKind.AssertsIdentifier ? createToken(SyntaxKind.AssertsKeyword) : undefined, + typePredicate.kind === TypePredicateKind.Identifier || typePredicate.kind === TypePredicateKind.AssertsIdentifier ? createIdentifier(typePredicate.parameterName) : createThisTypeNode(), typePredicate.type && nodeBuilder.typeToTypeNode(typePredicate.type, enclosingDeclaration, toNodeBuilderFlags(flags) | NodeBuilderFlags.IgnoreErrors | NodeBuilderFlags.WriteTypeParametersInQualifiedName)! // TODO: GH#18217 ); const printer = createPrinter({ removeComments: true }); @@ -8721,8 +8723,8 @@ namespace ts { const parameterName = node.parameterName; const type = node.type && getTypeFromTypeNode(node.type); return parameterName.kind === SyntaxKind.ThisType ? - createTypePredicate(TypePredicateKind.This, /*parameterName*/ undefined, /*parameterIndex*/ undefined, type) : - createTypePredicate(node.assertsModifier ? TypePredicateKind.Assertion : TypePredicateKind.Identifier, parameterName.escapedText as string, + createTypePredicate(node.assertsModifier ? TypePredicateKind.AssertsThis : TypePredicateKind.This, /*parameterName*/ undefined, /*parameterIndex*/ undefined, type) : + createTypePredicate(node.assertsModifier ? TypePredicateKind.AssertsIdentifier : TypePredicateKind.Identifier, parameterName.escapedText as string, findIndex(signature.parameters, p => p.escapedName === parameterName.escapedText), type); } @@ -9829,7 +9831,7 @@ namespace ts { const types: Type[] = []; for (const sig of signatures) { const pred = getTypePredicateOfSignature(sig); - if (!pred || pred.kind === TypePredicateKind.Assertion) { + if (!pred || pred.kind === TypePredicateKind.AssertsThis || pred.kind === TypePredicateKind.AssertsIdentifier) { continue; } @@ -12400,7 +12402,7 @@ namespace ts { return Ternary.False; } - if (source.kind !== TypePredicateKind.This) { + if (source.kind === TypePredicateKind.Identifier || source.kind === TypePredicateKind.AssertsIdentifier) { if (source.parameterIndex !== (target as IdentifierTypePredicate).parameterIndex) { if (reportErrors) { errorReporter!(Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1, source.parameterName, (target as IdentifierTypePredicate).parameterName); @@ -17119,12 +17121,12 @@ namespace ts { const signature = getEffectsSignature(flow.node); if (signature) { const predicate = getTypePredicateOfSignature(signature); - if (predicate && predicate.kind === TypePredicateKind.Assertion) { + if (predicate && (predicate.kind === TypePredicateKind.AssertsThis || predicate.kind === TypePredicateKind.AssertsIdentifier)) { const flowType = getTypeAtFlowNode(flow.antecedent); const type = getTypeFromFlowType(flowType); - const narrowedType = predicate.type ? - narrowTypeByTypePredicate(type, predicate, flow.node, /*assumeTrue*/ true) : - narrowTypeByAssertion(type, flow.node.arguments[predicate.parameterIndex]); + const narrowedType = predicate.type ? narrowTypeByTypePredicate(type, predicate, flow.node, /*assumeTrue*/ true) : + predicate.kind === TypePredicateKind.AssertsIdentifier ? narrowTypeByAssertion(type, flow.node.arguments[predicate.parameterIndex]) : + type; return narrowedType === type ? flowType : createFlowType(narrowedType, isIncomplete(flowType)); } if (getReturnTypeOfSignature(signature).flags & TypeFlags.Never) { @@ -17721,7 +17723,7 @@ namespace ts { if (hasMatchingArgument(callExpression, reference)) { const signature = getEffectsSignature(callExpression); const predicate = signature && getTypePredicateOfSignature(signature); - if (predicate && predicate.kind !== TypePredicateKind.Assertion) { + if (predicate && (predicate.kind === TypePredicateKind.This || predicate.kind === TypePredicateKind.Identifier)) { return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue); } } @@ -17733,7 +17735,7 @@ namespace ts { if (isTypeAny(type) && (predicate.type === globalObjectType || predicate.type === globalFunctionType)) { return type; } - if (predicate.kind !== TypePredicateKind.This) { + if (predicate.kind === TypePredicateKind.Identifier || predicate.kind === TypePredicateKind.AssertsIdentifier) { const predicateArgument = callExpression.arguments[predicate.parameterIndex]; if (predicateArgument && predicate.type) { if (isMatchingReference(reference, predicateArgument)) { @@ -17746,7 +17748,7 @@ namespace ts { } else { const invokedExpression = skipParentheses(callExpression.expression); - if (isAccessExpression(invokedExpression)) { + if (isAccessExpression(invokedExpression) && predicate.type) { const possibleReference = skipParentheses(invokedExpression.expression); if (isMatchingReference(reference, possibleReference)) { return getNarrowedType(type, predicate.type, assumeTrue, isTypeSubtypeOf); @@ -25501,7 +25503,7 @@ namespace ts { checkSourceElement(node.type); const { parameterName } = node; - if (isThisTypePredicate(typePredicate)) { + if (typePredicate.kind === TypePredicateKind.This || typePredicate.kind === TypePredicateKind.AssertsThis) { getTypeFromThisTypeNode(parameterName as ThisTypeNode); } else { diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 3c2b7bd42cc..c1331165327 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -3258,7 +3258,7 @@ namespace ts { function parseAssertsTypePredicate(): TypeNode { const node = createNode(SyntaxKind.TypePredicate); node.assertsModifier = parseExpectedToken(SyntaxKind.AssertsKeyword); - node.parameterName = parseIdentifier(); + node.parameterName = token() === SyntaxKind.ThisKeyword ? parseThisTypeNode() : parseIdentifier(); node.type = parseOptional(SyntaxKind.IsKeyword) ? parseType() : undefined; return finishNode(node); } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 3b121c76e20..b27de58134a 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3514,7 +3514,8 @@ namespace ts { export const enum TypePredicateKind { This, Identifier, - Assertion + AssertsThis, + AssertsIdentifier } export interface ThisTypePredicate { @@ -3531,14 +3532,21 @@ namespace ts { type: Type; } - export interface AssertionTypePredicate { - kind: TypePredicateKind.Assertion; + export interface AssertsThisTypePredicate { + kind: TypePredicateKind.AssertsThis; + parameterName: undefined; + parameterIndex: undefined; + type: Type | undefined; + } + + export interface AssertsIdentifierTypePredicate { + kind: TypePredicateKind.AssertsIdentifier; parameterName: string; parameterIndex: number; type: Type | undefined; } - export type TypePredicate = ThisTypePredicate | IdentifierTypePredicate | AssertionTypePredicate; + export type TypePredicate = ThisTypePredicate | IdentifierTypePredicate | AssertsThisTypePredicate | AssertsIdentifierTypePredicate; /* @internal */ export type AnyImportSyntax = ImportDeclaration | ImportEqualsDeclaration; From e7cbfc41e5afbaa68bdc30e2865acd3a7b0b44e8 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sat, 17 Aug 2019 07:05:49 -0700 Subject: [PATCH 034/159] Update API to be backwards compatible --- src/compiler/checker.ts | 4 ++-- src/compiler/factory.ts | 17 +++++++++++++---- src/compiler/visitor.ts | 2 +- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c919bb986e4..0af56d7f172 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -4235,7 +4235,7 @@ namespace ts { setEmitFlags(createIdentifier(typePredicate.parameterName), EmitFlags.NoAsciiEscaping) : createThisTypeNode(); const typeNode = typePredicate.type && typeToTypeNodeHelper(typePredicate.type, context); - returnTypeNode = createTypePredicateNode(assertsModifier, parameterName, typeNode); + returnTypeNode = createTypePredicateNodeWithModifier(assertsModifier, parameterName, typeNode); } else { const returnType = getReturnTypeOfSignature(signature); @@ -4703,7 +4703,7 @@ namespace ts { return writer ? typePredicateToStringWorker(writer).getText() : usingSingleLineStringWriter(typePredicateToStringWorker); function typePredicateToStringWorker(writer: EmitTextWriter) { - const predicate = createTypePredicateNode( + const predicate = createTypePredicateNodeWithModifier( typePredicate.kind === TypePredicateKind.AssertsThis || typePredicate.kind === TypePredicateKind.AssertsIdentifier ? createToken(SyntaxKind.AssertsKeyword) : undefined, typePredicate.kind === TypePredicateKind.Identifier || typePredicate.kind === TypePredicateKind.AssertsIdentifier ? createIdentifier(typePredicate.parameterName) : createThisTypeNode(), typePredicate.type && nodeBuilder.typeToTypeNode(typePredicate.type, enclosingDeclaration, toNodeBuilderFlags(flags) | NodeBuilderFlags.IgnoreErrors | NodeBuilderFlags.WriteTypeParametersInQualifiedName)! // TODO: GH#18217 diff --git a/src/compiler/factory.ts b/src/compiler/factory.ts index 9a484681acf..3118b9a2efe 100644 --- a/src/compiler/factory.ts +++ b/src/compiler/factory.ts @@ -667,7 +667,11 @@ namespace ts { return createSynthesizedNode(kind); } - export function createTypePredicateNode(assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined) { + export function createTypePredicateNode(parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined) { + return createTypePredicateNodeWithModifier(/*assertsModifier*/ undefined, parameterName, type); + } + + export function createTypePredicateNodeWithModifier(assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined) { const node = createSynthesizedNode(SyntaxKind.TypePredicate) as TypePredicateNode; node.assertsModifier = assertsModifier; node.parameterName = asName(parameterName); @@ -675,10 +679,15 @@ namespace ts { return node; } - export function updateTypePredicateNode(node: TypePredicateNode, assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined) { - return node.parameterName !== parameterName + export function updateTypePredicateNode(node: TypePredicateNode, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined) { + return updateTypePredicateNodeWithModifier(node, node.assertsModifier, parameterName, type); + } + + export function updateTypePredicateNodeWithModifier(node: TypePredicateNode, assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined) { + return node.assertsModifier !== assertsModifier + || node.parameterName !== parameterName || node.type !== type - ? updateNode(createTypePredicateNode(assertsModifier, parameterName, type), node) + ? updateNode(createTypePredicateNodeWithModifier(assertsModifier, parameterName, type), node) : node; } diff --git a/src/compiler/visitor.ts b/src/compiler/visitor.ts index aa497511f78..266b794438b 100644 --- a/src/compiler/visitor.ts +++ b/src/compiler/visitor.ts @@ -339,7 +339,7 @@ namespace ts { // Types case SyntaxKind.TypePredicate: - return updateTypePredicateNode(node, + return updateTypePredicateNodeWithModifier(node, visitNode((node).assertsModifier, visitor), visitNode((node).parameterName, visitor), visitNode((node).type, visitor, isTypeNode)); From 2c36249ed6bd63f4fd66813985ae2dff681349a5 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sat, 17 Aug 2019 07:07:27 -0700 Subject: [PATCH 035/159] Accept new API baselines --- .../reference/api/tsserverlibrary.d.ts | 21 +++++++++++++------ tests/baselines/reference/api/typescript.d.ts | 21 +++++++++++++------ 2 files changed, 30 insertions(+), 12 deletions(-) diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 60222fc8bd3..c458e88300b 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -2094,7 +2094,8 @@ declare namespace ts { export enum TypePredicateKind { This = 0, Identifier = 1, - Assertion = 2 + AssertsThis = 2, + AssertsIdentifier = 3 } export interface ThisTypePredicate { kind: TypePredicateKind.This; @@ -2108,13 +2109,19 @@ declare namespace ts { parameterIndex: number; type: Type; } - export interface AssertionTypePredicate { - kind: TypePredicateKind.Assertion; + export interface AssertsThisTypePredicate { + kind: TypePredicateKind.AssertsThis; + parameterName: undefined; + parameterIndex: undefined; + type: Type | undefined; + } + export interface AssertsIdentifierTypePredicate { + kind: TypePredicateKind.AssertsIdentifier; parameterName: string; parameterIndex: number; type: Type | undefined; } - export type TypePredicate = ThisTypePredicate | IdentifierTypePredicate | AssertionTypePredicate; + export type TypePredicate = ThisTypePredicate | IdentifierTypePredicate | AssertsThisTypePredicate | AssertsIdentifierTypePredicate; export enum SymbolFlags { None = 0, FunctionScopedVariable = 1, @@ -3843,8 +3850,10 @@ declare namespace ts { function createIndexSignature(decorators: ReadonlyArray | undefined, modifiers: ReadonlyArray | undefined, parameters: ReadonlyArray, type: TypeNode): IndexSignatureDeclaration; function updateIndexSignature(node: IndexSignatureDeclaration, decorators: ReadonlyArray | undefined, modifiers: ReadonlyArray | undefined, parameters: ReadonlyArray, type: TypeNode): IndexSignatureDeclaration; function createKeywordTypeNode(kind: KeywordTypeNode["kind"]): KeywordTypeNode; - function createTypePredicateNode(assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined): TypePredicateNode; - function updateTypePredicateNode(node: TypePredicateNode, assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined): TypePredicateNode; + function createTypePredicateNode(parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined): TypePredicateNode; + function createTypePredicateNodeWithModifier(assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined): TypePredicateNode; + function updateTypePredicateNode(node: TypePredicateNode, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined): TypePredicateNode; + function updateTypePredicateNodeWithModifier(node: TypePredicateNode, assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined): TypePredicateNode; function createTypeReferenceNode(typeName: string | EntityName, typeArguments: ReadonlyArray | undefined): TypeReferenceNode; function updateTypeReferenceNode(node: TypeReferenceNode, typeName: EntityName, typeArguments: NodeArray | undefined): TypeReferenceNode; function createFunctionTypeNode(typeParameters: ReadonlyArray | undefined, parameters: ReadonlyArray, type: TypeNode | undefined): FunctionTypeNode; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index dbb9ac16f83..d8df06e936f 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -2094,7 +2094,8 @@ declare namespace ts { export enum TypePredicateKind { This = 0, Identifier = 1, - Assertion = 2 + AssertsThis = 2, + AssertsIdentifier = 3 } export interface ThisTypePredicate { kind: TypePredicateKind.This; @@ -2108,13 +2109,19 @@ declare namespace ts { parameterIndex: number; type: Type; } - export interface AssertionTypePredicate { - kind: TypePredicateKind.Assertion; + export interface AssertsThisTypePredicate { + kind: TypePredicateKind.AssertsThis; + parameterName: undefined; + parameterIndex: undefined; + type: Type | undefined; + } + export interface AssertsIdentifierTypePredicate { + kind: TypePredicateKind.AssertsIdentifier; parameterName: string; parameterIndex: number; type: Type | undefined; } - export type TypePredicate = ThisTypePredicate | IdentifierTypePredicate | AssertionTypePredicate; + export type TypePredicate = ThisTypePredicate | IdentifierTypePredicate | AssertsThisTypePredicate | AssertsIdentifierTypePredicate; export enum SymbolFlags { None = 0, FunctionScopedVariable = 1, @@ -3843,8 +3850,10 @@ declare namespace ts { function createIndexSignature(decorators: ReadonlyArray | undefined, modifiers: ReadonlyArray | undefined, parameters: ReadonlyArray, type: TypeNode): IndexSignatureDeclaration; function updateIndexSignature(node: IndexSignatureDeclaration, decorators: ReadonlyArray | undefined, modifiers: ReadonlyArray | undefined, parameters: ReadonlyArray, type: TypeNode): IndexSignatureDeclaration; function createKeywordTypeNode(kind: KeywordTypeNode["kind"]): KeywordTypeNode; - function createTypePredicateNode(assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined): TypePredicateNode; - function updateTypePredicateNode(node: TypePredicateNode, assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined): TypePredicateNode; + function createTypePredicateNode(parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined): TypePredicateNode; + function createTypePredicateNodeWithModifier(assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode | string, type: TypeNode | undefined): TypePredicateNode; + function updateTypePredicateNode(node: TypePredicateNode, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined): TypePredicateNode; + function updateTypePredicateNodeWithModifier(node: TypePredicateNode, assertsModifier: AssertsToken | undefined, parameterName: Identifier | ThisTypeNode, type: TypeNode | undefined): TypePredicateNode; function createTypeReferenceNode(typeName: string | EntityName, typeArguments: ReadonlyArray | undefined): TypeReferenceNode; function updateTypeReferenceNode(node: TypeReferenceNode, typeName: EntityName, typeArguments: NodeArray | undefined): TypeReferenceNode; function createFunctionTypeNode(typeParameters: ReadonlyArray | undefined, parameters: ReadonlyArray, type: TypeNode | undefined): FunctionTypeNode; From 1d942f4ddc96a8f23491d1cd7de0379b99377947 Mon Sep 17 00:00:00 2001 From: Klaus Meinhardt Date: Sun, 18 Aug 2019 21:46:53 +0200 Subject: [PATCH 036/159] Detect more TS syntax in JS files * optional class methods * type arguments on tagged template expressions --- src/compiler/program.ts | 15 +++++++------- ...tionalClassElementSyntaxOfClass.errors.txt | 18 +++++++++++++++++ ...ilationTypeArgumentSyntaxOfCall.errors.txt | 20 +++++++++++++------ ...FileCompilationTypeArgumentSyntaxOfCall.js | 15 ++++++++++++++ ...lationOptionalClassElementSyntaxOfClass.ts | 8 ++++++++ ...FileCompilationTypeArgumentSyntaxOfCall.ts | 8 ++++++-- 6 files changed, 68 insertions(+), 16 deletions(-) create mode 100644 tests/baselines/reference/jsFileCompilationOptionalClassElementSyntaxOfClass.errors.txt create mode 100644 tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.js create mode 100644 tests/cases/compiler/jsFileCompilationOptionalClassElementSyntaxOfClass.ts diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 76c92ad74bb..cbe1fbd7845 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1760,13 +1760,12 @@ namespace ts { switch (parent.kind) { case SyntaxKind.Parameter: case SyntaxKind.PropertyDeclaration: - if ((parent).questionToken === node) { + case SyntaxKind.MethodDeclaration: + if ((parent).questionToken === node) { diagnostics.push(createDiagnosticForNode(node, Diagnostics._0_can_only_be_used_in_a_ts_file, "?")); return; } // falls through - case SyntaxKind.MethodDeclaration: - case SyntaxKind.MethodSignature: case SyntaxKind.Constructor: case SyntaxKind.GetAccessor: case SyntaxKind.SetAccessor: @@ -1835,7 +1834,6 @@ namespace ts { case SyntaxKind.ClassDeclaration: case SyntaxKind.ClassExpression: case SyntaxKind.MethodDeclaration: - case SyntaxKind.MethodSignature: case SyntaxKind.Constructor: case SyntaxKind.GetAccessor: case SyntaxKind.SetAccessor: @@ -1843,15 +1841,15 @@ namespace ts { case SyntaxKind.FunctionDeclaration: case SyntaxKind.ArrowFunction: // Check type parameters - if (nodes === (parent).typeParameters) { + if (nodes === (parent).typeParameters) { diagnostics.push(createDiagnosticForNodeArray(nodes, Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file)); return; } // falls through case SyntaxKind.VariableStatement: // Check modifiers - if (nodes === (parent).modifiers) { - return checkModifiers(>nodes, parent.kind === SyntaxKind.VariableStatement); + if (nodes === parent.modifiers) { + return checkModifiers(parent.modifiers, parent.kind === SyntaxKind.VariableStatement); } break; case SyntaxKind.PropertyDeclaration: @@ -1877,8 +1875,9 @@ namespace ts { case SyntaxKind.ExpressionWithTypeArguments: case SyntaxKind.JsxSelfClosingElement: case SyntaxKind.JsxOpeningElement: + case SyntaxKind.TaggedTemplateExpression: // Check type arguments - if (nodes === (parent).typeArguments) { + if (nodes === (parent).typeArguments) { diagnostics.push(createDiagnosticForNodeArray(nodes, Diagnostics.type_arguments_can_only_be_used_in_a_ts_file)); return; } diff --git a/tests/baselines/reference/jsFileCompilationOptionalClassElementSyntaxOfClass.errors.txt b/tests/baselines/reference/jsFileCompilationOptionalClassElementSyntaxOfClass.errors.txt new file mode 100644 index 00000000000..b4ebcf41983 --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationOptionalClassElementSyntaxOfClass.errors.txt @@ -0,0 +1,18 @@ +error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file. + Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. +tests/cases/compiler/a.js(2,8): error TS8009: '?' can only be used in a .ts file. +tests/cases/compiler/a.js(4,8): error TS8009: '?' can only be used in a .ts file. + + +!!! error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file. +!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. +==== tests/cases/compiler/a.js (2 errors) ==== + class C { + foo?() { + ~ +!!! error TS8009: '?' can only be used in a .ts file. + } + bar? = 1; + ~ +!!! error TS8009: '?' can only be used in a .ts file. + } \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.errors.txt b/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.errors.txt index 8d8a1a1a83e..5b47b12c534 100644 --- a/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.errors.txt +++ b/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.errors.txt @@ -1,11 +1,19 @@ -error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file. - Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -tests/cases/compiler/a.js(1,5): error TS8011: 'type arguments' can only be used in a .ts file. +tests/cases/compiler/a.jsx(1,5): error TS8011: 'type arguments' can only be used in a .ts file. +tests/cases/compiler/a.jsx(2,5): error TS8011: 'type arguments' can only be used in a .ts file. +tests/cases/compiler/a.jsx(3,6): error TS8011: 'type arguments' can only be used in a .ts file. +tests/cases/compiler/a.jsx(4,6): error TS8011: 'type arguments' can only be used in a .ts file. -!!! error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file. -!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig. -==== tests/cases/compiler/a.js (1 errors) ==== +==== tests/cases/compiler/a.jsx (4 errors) ==== Foo(); ~~~~~~ +!!! error TS8011: 'type arguments' can only be used in a .ts file. + Foo``; + ~~~~~~ +!!! error TS8011: 'type arguments' can only be used in a .ts file. + >; + ~~~~~~ +!!! error TS8011: 'type arguments' can only be used in a .ts file. + />; + ~~~~~~ !!! error TS8011: 'type arguments' can only be used in a .ts file. \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.js b/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.js new file mode 100644 index 00000000000..f51afa0a6db --- /dev/null +++ b/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.js @@ -0,0 +1,15 @@ +//// [a.jsx] +Foo(); +Foo``; +>; +/>; + +//// [a.js] +var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; +}; +Foo(); +Foo(__makeTemplateObject([""], [""])); +; +; diff --git a/tests/cases/compiler/jsFileCompilationOptionalClassElementSyntaxOfClass.ts b/tests/cases/compiler/jsFileCompilationOptionalClassElementSyntaxOfClass.ts new file mode 100644 index 00000000000..27739f58d6c --- /dev/null +++ b/tests/cases/compiler/jsFileCompilationOptionalClassElementSyntaxOfClass.ts @@ -0,0 +1,8 @@ +// @allowJs: true +// @noTypesAndSymbols: true +// @filename: a.js +class C { + foo?() { + } + bar? = 1; +} \ No newline at end of file diff --git a/tests/cases/compiler/jsFileCompilationTypeArgumentSyntaxOfCall.ts b/tests/cases/compiler/jsFileCompilationTypeArgumentSyntaxOfCall.ts index a5bcdae904b..008714f0df7 100644 --- a/tests/cases/compiler/jsFileCompilationTypeArgumentSyntaxOfCall.ts +++ b/tests/cases/compiler/jsFileCompilationTypeArgumentSyntaxOfCall.ts @@ -1,3 +1,7 @@ // @allowJs: true -// @filename: a.js -Foo(); \ No newline at end of file +// @noTypesAndSymbols: true +// @filename: a.jsx +Foo(); +Foo``; +>; +/>; \ No newline at end of file From 27697551e262e299c699f51768dcb5ddb942c843 Mon Sep 17 00:00:00 2001 From: Klaus Meinhardt Date: Sun, 18 Aug 2019 21:48:55 +0200 Subject: [PATCH 037/159] remove useless baselines --- .../jsFileCompilationTypeArgumentSyntaxOfCall.symbols | 3 --- .../jsFileCompilationTypeArgumentSyntaxOfCall.types | 5 ----- 2 files changed, 8 deletions(-) delete mode 100644 tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.symbols delete mode 100644 tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.types diff --git a/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.symbols b/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.symbols deleted file mode 100644 index e0926bb6748..00000000000 --- a/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.symbols +++ /dev/null @@ -1,3 +0,0 @@ -=== tests/cases/compiler/a.js === -Foo(); -No type information for this code. \ No newline at end of file diff --git a/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.types b/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.types deleted file mode 100644 index ac42dd32d4c..00000000000 --- a/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.types +++ /dev/null @@ -1,5 +0,0 @@ -=== tests/cases/compiler/a.js === -Foo(); ->Foo() : any ->Foo : any - From c6e502be7d4682250b7ad8d88eb77f8187a719dc Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 22 Aug 2019 11:26:26 -0700 Subject: [PATCH 038/159] Verify config file errors --- .../tsserver/projectReferenceErrors.ts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts index 303808cb4e4..62468fcc6f7 100644 --- a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts +++ b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts @@ -152,6 +152,25 @@ fnErr(); }); } + function verifyConfigFileErrors({ openFiles, expectedConfigFileDiagEvents }: VerifyScenario) { + it("verify config file errors", () => { + const host = createServerHost([dependencyTs, dependencyConfig, usageTs, usageConfig, libFile]); + const { session, events } = createSessionWithEventTracking(host, server.ConfigFileDiagEvent); + + for (const file of openFiles()) { + session.executeCommandSeq({ + command: protocol.CommandTypes.Open, + arguments: { file: file.path } + }); + } + + assert.deepEqual(events, expectedConfigFileDiagEvents().map(data => ({ + eventName: server.ConfigFileDiagEvent, + data + }))); + }); + } + interface GetErrDiagnostics { file: File; syntax: protocol.Diagnostic[]; @@ -170,11 +189,13 @@ fnErr(); expectedGetErr: () => readonly GetErrDiagnostics[]; expectedGetErrForProject: () => readonly GetErrForProjectDiagnostics[]; expectedSyncDiagnostics: () => readonly SyncDiagnostics[]; + expectedConfigFileDiagEvents: () => readonly server.ConfigFileDiagEvent["data"][]; } function verifyScenario(scenario: VerifyScenario) { verifyErrorsUsingGeterr(scenario); verifyErrorsUsingGeterrForProject(scenario); verifyErrorsUsingSyncMethods(scenario); + verifyConfigFileErrors(scenario); } function emptyDiagnostics(file: File): GetErrDiagnostics { @@ -243,6 +264,22 @@ fnErr(); return { project, ...diagnostics }; } + function usageConfigDiag(): server.ConfigFileDiagEvent["data"] { + return { + triggerFile: usageTs.path, + configFileName: usageConfig.path, + diagnostics: emptyArray + }; + } + + function dependencyConfigDiag(): server.ConfigFileDiagEvent["data"] { + return { + triggerFile: dependencyTs.path, + configFileName: dependencyConfig.path, + diagnostics: emptyArray + }; + } + describe("when dependency project is not open", () => { verifyScenario({ openFiles: () => [usageTs], @@ -267,6 +304,9 @@ fnErr(); syncDiagnostics(usageDiagnostics(), usageConfig.path), syncDiagnostics(emptyDiagnostics(dependencyTs), usageConfig.path), ], + expectedConfigFileDiagEvents: () => [ + usageConfigDiag() + ], }); }); @@ -290,6 +330,10 @@ fnErr(); syncDiagnostics(emptyDiagnostics(dependencyTs), usageConfig.path), syncDiagnostics(dependencyDiagnostics(), dependencyConfig.path), ], + expectedConfigFileDiagEvents: () => [ + usageConfigDiag(), + dependencyConfigDiag() + ], }); }); }); From 076dde482045de6ff7189d75459a5aab756b4336 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 22 Aug 2019 12:59:08 -0700 Subject: [PATCH 039/159] Test with --out as well --- .../tsserver/projectReferenceErrors.ts | 399 +++++++++++------- 1 file changed, 244 insertions(+), 155 deletions(-) diff --git a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts index 62468fcc6f7..ac023743da3 100644 --- a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts +++ b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts @@ -3,37 +3,6 @@ namespace ts.projectSystem { const projectLocation = "/user/username/projects/myproject"; const dependecyLocation = `${projectLocation}/dependency`; const usageLocation = `${projectLocation}/usage`; - const dependencyTs: File = { - path: `${dependecyLocation}/fns.ts`, - content: `export function fn1() { } -export function fn2() { } -// Introduce error for fnErr import in main -// export function fnErr() { } -// Error in dependency ts file -export let x: string = 10;` - }; - const dependencyConfig: File = { - path: `${dependecyLocation}/tsconfig.json`, - content: JSON.stringify({ compilerOptions: { composite: true, declarationDir: "../decls" } }) - }; - const usageTs: File = { - path: `${usageLocation}/usage.ts`, - content: `import { - fn1, - fn2, - fnErr -} from '../decls/fns' -fn1(); -fn2(); -fnErr(); -` - }; - const usageConfig: File = { - path: `${usageLocation}/tsconfig.json`, - content: JSON.stringify({ - references: [{ path: "../dependency" }] - }) - }; interface CheckErrorsInFile { session: TestSession; @@ -75,9 +44,9 @@ fnErr(); } } - function verifyErrorsUsingGeterr({ openFiles, expectedGetErr }: VerifyScenario) { + function verifyErrorsUsingGeterr({ allFiles, openFiles, expectedGetErr }: VerifyScenario) { it("verifies the errors in open file", () => { - const host = createServerHost([dependencyTs, dependencyConfig, usageTs, usageConfig, libFile]); + const host = createServerHost([...allFiles(), libFile]); const session = createSession(host, { canUseEvents: true, }); openFilesForSession(openFiles(), session); @@ -96,9 +65,9 @@ fnErr(); }); } - function verifyErrorsUsingGeterrForProject({ openFiles, expectedGetErrForProject }: VerifyScenario) { + function verifyErrorsUsingGeterrForProject({ allFiles, openFiles, expectedGetErrForProject }: VerifyScenario) { it("verifies the errors in projects", () => { - const host = createServerHost([dependencyTs, dependencyConfig, usageTs, usageConfig, libFile]); + const host = createServerHost([...allFiles(), libFile]); const session = createSession(host, { canUseEvents: true, }); openFilesForSession(openFiles(), session); @@ -118,9 +87,9 @@ fnErr(); }); } - function verifyErrorsUsingSyncMethods({ openFiles, expectedSyncDiagnostics }: VerifyScenario) { + function verifyErrorsUsingSyncMethods({ allFiles, openFiles, expectedSyncDiagnostics }: VerifyScenario) { it("verifies the errors using sync commands", () => { - const host = createServerHost([dependencyTs, dependencyConfig, usageTs, usageConfig, libFile]); + const host = createServerHost([...allFiles(), libFile]); const session = createSession(host); openFilesForSession(openFiles(), session); for (const { file, project, syntax, semantic, suggestion } of expectedSyncDiagnostics()) { @@ -152,9 +121,9 @@ fnErr(); }); } - function verifyConfigFileErrors({ openFiles, expectedConfigFileDiagEvents }: VerifyScenario) { + function verifyConfigFileErrors({ allFiles, openFiles, expectedConfigFileDiagEvents }: VerifyScenario) { it("verify config file errors", () => { - const host = createServerHost([dependencyTs, dependencyConfig, usageTs, usageConfig, libFile]); + const host = createServerHost([...allFiles(), libFile]); const { session, events } = createSessionWithEventTracking(host, server.ConfigFileDiagEvent); for (const file of openFiles()) { @@ -185,6 +154,7 @@ fnErr(); project?: string; } interface VerifyScenario { + allFiles: () => readonly File[]; openFiles: () => readonly File[]; expectedGetErr: () => readonly GetErrDiagnostics[]; expectedGetErrForProject: () => readonly GetErrForProjectDiagnostics[]; @@ -207,133 +177,252 @@ fnErr(); }; } - function usageDiagnostics(): GetErrDiagnostics { - return { - file: usageTs, - syntax: emptyArray, - semantic: [ - createDiagnostic( - { line: 4, offset: 5 }, - { line: 4, offset: 10 }, - Diagnostics.Module_0_has_no_exported_member_1, - [`"../dependency/fns"`, "fnErr"], - "error", - ) - ], - suggestion: emptyArray - }; - } - - function dependencyDiagnostics(): GetErrDiagnostics { - return { - file: dependencyTs, - syntax: emptyArray, - semantic: [ - createDiagnostic( - { line: 6, offset: 12 }, - { line: 6, offset: 13 }, - Diagnostics.Type_0_is_not_assignable_to_type_1, - ["10", "string"], - "error", - ) - ], - suggestion: emptyArray - }; - } - - function usageProjectDiagnostics(): GetErrForProjectDiagnostics { - return { - project: usageTs.path, - errors: [ - usageDiagnostics(), - emptyDiagnostics(dependencyTs) - ] - }; - } - - function dependencyProjectDiagnostics(): GetErrForProjectDiagnostics { - return { - project: dependencyTs.path, - errors: [ - dependencyDiagnostics() - ] - }; - } - function syncDiagnostics(diagnostics: GetErrDiagnostics, project: string): SyncDiagnostics { return { project, ...diagnostics }; } - function usageConfigDiag(): server.ConfigFileDiagEvent["data"] { - return { - triggerFile: usageTs.path, - configFileName: usageConfig.path, - diagnostics: emptyArray - }; + interface VerifyUsageAndDependency { + allFiles: readonly [File, File, File, File]; // dependencyTs, dependencyConfig, usageTs, usageConfig + usageDiagnostics(): GetErrDiagnostics; + dependencyDiagnostics(): GetErrDiagnostics; + + } + function verifyUsageAndDependency({ allFiles, usageDiagnostics, dependencyDiagnostics }: VerifyUsageAndDependency) { + const [dependencyTs, dependencyConfig, usageTs, usageConfig] = allFiles; + function usageProjectDiagnostics(): GetErrForProjectDiagnostics { + return { + project: usageTs.path, + errors: [ + usageDiagnostics(), + emptyDiagnostics(dependencyTs) + ] + }; + } + + function dependencyProjectDiagnostics(): GetErrForProjectDiagnostics { + return { + project: dependencyTs.path, + errors: [ + dependencyDiagnostics() + ] + }; + } + + function usageConfigDiag(): server.ConfigFileDiagEvent["data"] { + return { + triggerFile: usageTs.path, + configFileName: usageConfig.path, + diagnostics: emptyArray + }; + } + + function dependencyConfigDiag(): server.ConfigFileDiagEvent["data"] { + return { + triggerFile: dependencyTs.path, + configFileName: dependencyConfig.path, + diagnostics: emptyArray + }; + } + + describe("when dependency project is not open", () => { + verifyScenario({ + allFiles: () => allFiles, + openFiles: () => [usageTs], + expectedGetErr: () => [ + usageDiagnostics() + ], + expectedGetErrForProject: () => [ + usageProjectDiagnostics(), + { + project: dependencyTs.path, + errors: [ + emptyDiagnostics(dependencyTs), + usageDiagnostics() + ] + } + ], + expectedSyncDiagnostics: () => [ + // Without project + usageDiagnostics(), + emptyDiagnostics(dependencyTs), + // With project + syncDiagnostics(usageDiagnostics(), usageConfig.path), + syncDiagnostics(emptyDiagnostics(dependencyTs), usageConfig.path), + ], + expectedConfigFileDiagEvents: () => [ + usageConfigDiag() + ], + }); + }); + + describe("when the depedency file is open", () => { + verifyScenario({ + allFiles: () => allFiles, + openFiles: () => [usageTs, dependencyTs], + expectedGetErr: () => [ + usageDiagnostics(), + dependencyDiagnostics(), + ], + expectedGetErrForProject: () => [ + usageProjectDiagnostics(), + dependencyProjectDiagnostics() + ], + expectedSyncDiagnostics: () => [ + // Without project + usageDiagnostics(), + dependencyDiagnostics(), + // With project + syncDiagnostics(usageDiagnostics(), usageConfig.path), + syncDiagnostics(emptyDiagnostics(dependencyTs), usageConfig.path), + syncDiagnostics(dependencyDiagnostics(), dependencyConfig.path), + ], + expectedConfigFileDiagEvents: () => [ + usageConfigDiag(), + dependencyConfigDiag() + ], + }); + }); } - function dependencyConfigDiag(): server.ConfigFileDiagEvent["data"] { - return { - triggerFile: dependencyTs.path, - configFileName: dependencyConfig.path, - diagnostics: emptyArray + describe("with module scenario", () => { + const dependencyTs: File = { + path: `${dependecyLocation}/fns.ts`, + content: `export function fn1() { } +export function fn2() { } +// Introduce error for fnErr import in main +// export function fnErr() { } +// Error in dependency ts file +export let x: string = 10;` }; - } + const dependencyConfig: File = { + path: `${dependecyLocation}/tsconfig.json`, + content: JSON.stringify({ compilerOptions: { composite: true, declarationDir: "../decls" } }) + }; + const usageTs: File = { + path: `${usageLocation}/usage.ts`, + content: `import { + fn1, + fn2, + fnErr +} from '../decls/fns' +fn1(); +fn2(); +fnErr(); +` + }; + const usageConfig: File = { + path: `${usageLocation}/tsconfig.json`, + content: JSON.stringify({ + references: [{ path: "../dependency" }] + }) + }; + function usageDiagnostics(): GetErrDiagnostics { + return { + file: usageTs, + syntax: emptyArray, + semantic: [ + createDiagnostic( + { line: 4, offset: 5 }, + { line: 4, offset: 10 }, + Diagnostics.Module_0_has_no_exported_member_1, + [`"../dependency/fns"`, "fnErr"], + "error", + ) + ], + suggestion: emptyArray + }; + } - describe("when dependency project is not open", () => { - verifyScenario({ - openFiles: () => [usageTs], - expectedGetErr: () => [ - usageDiagnostics() - ], - expectedGetErrForProject: () => [ - usageProjectDiagnostics(), - { - project: dependencyTs.path, - errors: [ - emptyDiagnostics(dependencyTs), - usageDiagnostics() - ] - } - ], - expectedSyncDiagnostics: () => [ - // Without project - usageDiagnostics(), - emptyDiagnostics(dependencyTs), - // With project - syncDiagnostics(usageDiagnostics(), usageConfig.path), - syncDiagnostics(emptyDiagnostics(dependencyTs), usageConfig.path), - ], - expectedConfigFileDiagEvents: () => [ - usageConfigDiag() - ], + function dependencyDiagnostics(): GetErrDiagnostics { + return { + file: dependencyTs, + syntax: emptyArray, + semantic: [ + createDiagnostic( + { line: 6, offset: 12 }, + { line: 6, offset: 13 }, + Diagnostics.Type_0_is_not_assignable_to_type_1, + ["10", "string"], + "error", + ) + ], + suggestion: emptyArray + }; + } + + verifyUsageAndDependency({ + allFiles: [dependencyTs, dependencyConfig, usageTs, usageConfig], + usageDiagnostics, + dependencyDiagnostics }); }); - describe("when the depedency file is open", () => { - verifyScenario({ - openFiles: () => [usageTs, dependencyTs], - expectedGetErr: () => [ - usageDiagnostics(), - dependencyDiagnostics(), - ], - expectedGetErrForProject: () => [ - usageProjectDiagnostics(), - dependencyProjectDiagnostics() - ], - expectedSyncDiagnostics: () => [ - // Without project - usageDiagnostics(), - dependencyDiagnostics(), - // With project - syncDiagnostics(usageDiagnostics(), usageConfig.path), - syncDiagnostics(emptyDiagnostics(dependencyTs), usageConfig.path), - syncDiagnostics(dependencyDiagnostics(), dependencyConfig.path), - ], - expectedConfigFileDiagEvents: () => [ - usageConfigDiag(), - dependencyConfigDiag() - ], + describe("with non module --out", () => { + const dependencyTs: File = { + path: `${dependecyLocation}/fns.ts`, + content: `function fn1() { } +function fn2() { } +// Introduce error for fnErr import in main +// function fnErr() { } +// Error in dependency ts file +let x: string = 10;` + }; + const dependencyConfig: File = { + path: `${dependecyLocation}/tsconfig.json`, + content: JSON.stringify({ compilerOptions: { composite: true, outFile: "../dependency.js" } }) + }; + const usageTs: File = { + path: `${usageLocation}/usage.ts`, + content: `fn1(); +fn2(); +fnErr(); +` + }; + const usageConfig: File = { + path: `${usageLocation}/tsconfig.json`, + content: JSON.stringify({ + compilerOptions: { outFile: "../usage.js" }, + references: [{ path: "../dependency" }] + }) + }; + function usageDiagnostics(): GetErrDiagnostics { + return { + file: usageTs, + syntax: emptyArray, + semantic: [ + createDiagnostic( + { line: 3, offset: 1 }, + { line: 3, offset: 6 }, + Diagnostics.Cannot_find_name_0, + ["fnErr"], + "error", + ) + ], + suggestion: emptyArray + }; + } + + function dependencyDiagnostics(): GetErrDiagnostics { + return { + file: dependencyTs, + syntax: emptyArray, + semantic: [ + createDiagnostic( + { line: 6, offset: 5 }, + { line: 6, offset: 6 }, + Diagnostics.Type_0_is_not_assignable_to_type_1, + ["10", "string"], + "error", + ) + ], + suggestion: emptyArray + }; + } + + verifyUsageAndDependency({ + allFiles: [dependencyTs, dependencyConfig, usageTs, usageConfig], + usageDiagnostics, + dependencyDiagnostics }); }); }); From a469fd82b9f33071841da9c2a38237915c105c11 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 22 Aug 2019 13:14:50 -0700 Subject: [PATCH 040/159] Should not report that files are not part of config for files that are not going to be emitted --- src/compiler/program.ts | 11 ++++++++--- .../unittests/tsserver/projectReferenceErrors.ts | 3 ++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 62f003910ad..45918e26e36 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1008,9 +1008,15 @@ namespace ts { return ts.toPath(fileName, currentDirectory, getCanonicalFileName); } + function isValidSourceFileForEmit(file: SourceFile) { + // source file is allowed to be emitted and its not source of project reference redirect + return sourceFileMayBeEmitted(file, options, isSourceFileFromExternalLibrary, getResolvedProjectReferenceToRedirect) && + !isSourceOfProjectReferenceRedirect(file.fileName); + } + function getCommonSourceDirectory() { if (commonSourceDirectory === undefined) { - const emittedFiles = filter(files, file => sourceFileMayBeEmitted(file, options, isSourceFileFromExternalLibrary, getResolvedProjectReferenceToRedirect)); + const emittedFiles = filter(files, file => isValidSourceFileForEmit(file)); if (options.rootDir && checkSourceFilesBelongToPath(emittedFiles, options.rootDir)) { // If a rootDir is specified use it as the commonSourceDirectory commonSourceDirectory = getNormalizedAbsolutePath(options.rootDir, currentDirectory); @@ -2933,8 +2939,7 @@ namespace ts { const rootPaths = arrayToSet(rootNames, toPath); for (const file of files) { // Ignore file that is not emitted - if (!sourceFileMayBeEmitted(file, options, isSourceFileFromExternalLibrary, getResolvedProjectReferenceToRedirect)) continue; - if (!rootPaths.has(file.path)) { + if (isValidSourceFileForEmit(file) && !rootPaths.has(file.path)) { addProgramDiagnosticAtRefPath( file, rootPaths, diff --git a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts index ac023743da3..a3ec4848615 100644 --- a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts +++ b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts @@ -313,6 +313,7 @@ fnErr(); const usageConfig: File = { path: `${usageLocation}/tsconfig.json`, content: JSON.stringify({ + compilerOptions: { composite: true }, references: [{ path: "../dependency" }] }) }; @@ -381,7 +382,7 @@ fnErr(); const usageConfig: File = { path: `${usageLocation}/tsconfig.json`, content: JSON.stringify({ - compilerOptions: { outFile: "../usage.js" }, + compilerOptions: { composite: true, outFile: "../usage.js" }, references: [{ path: "../dependency" }] }) }; From 3be6e75d6aee0c2a0a3be1b42ab84aa8c5c2e8ac Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Mon, 26 Aug 2019 11:13:17 -0700 Subject: [PATCH 041/159] Improve names in infer-from-usage Basically, drop "Context" from all names, because it just indicates that it's an implementation of the State monad. --- src/services/codefixes/inferFromUsage.ts | 238 +++++++++++------------ 1 file changed, 119 insertions(+), 119 deletions(-) diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index 396d7f44fa8..417ed5c625c 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -359,7 +359,7 @@ namespace ts.codefix { const references = getReferences(token, program, cancellationToken); const checker = program.getTypeChecker(); const types = InferFromReference.inferTypesFromReferences(references, checker, cancellationToken); - return InferFromReference.unifyFromContext(types, checker); + return InferFromReference.unifyFromUsage(types, checker); } function inferFunctionReferencesFromUsage(containingFunction: FunctionLike, sourceFile: SourceFile, program: Program, cancellationToken: CancellationToken): ReadonlyArray | undefined { @@ -395,33 +395,33 @@ namespace ts.codefix { } namespace InferFromReference { - interface CallContext { + interface CallUsage { argumentTypes: Type[]; - returnType: UsageContext; + returnType: Usage; } - interface UsageContext { + interface Usage { isNumber?: boolean; isString?: boolean; /** Used ambiguously, eg x + ___ or object[___]; results in string | number if no other evidence exists */ isNumberOrString?: boolean; candidateTypes?: Type[]; - properties?: UnderscoreEscapedMap; - callContexts?: CallContext[]; - constructContexts?: CallContext[]; - numberIndexContext?: UsageContext; - stringIndexContext?: UsageContext; + properties?: UnderscoreEscapedMap; + calls?: CallUsage[]; + constructs?: CallUsage[]; + numberIndex?: Usage; + stringIndex?: Usage; candidateThisTypes?: Type[]; } export function inferTypesFromReferences(references: ReadonlyArray, checker: TypeChecker, cancellationToken: CancellationToken): Type[] { - const usageContext: UsageContext = {}; + const usage: Usage = {}; for (const reference of references) { cancellationToken.throwIfCancellationRequested(); - inferTypeFromContext(reference, checker, usageContext); + calculateUsageOfNode(reference, checker, usage); } - return inferFromContext(usageContext, checker); + return inferFromUsage(usage, checker); } export function inferTypeForParametersFromReferences(references: ReadonlyArray | undefined, declaration: FunctionLike, program: Program, cancellationToken: CancellationToken): ParameterInference[] | undefined { @@ -430,35 +430,35 @@ namespace ts.codefix { } const checker = program.getTypeChecker(); - const usageContext: UsageContext = {}; + const usage: Usage = {}; for (const reference of references) { cancellationToken.throwIfCancellationRequested(); - inferTypeFromContext(reference, checker, usageContext); + calculateUsageOfNode(reference, checker, usage); } - const callContexts = [...usageContext.constructContexts || [], ...usageContext.callContexts || []]; + const calls = [...usage.constructs || [], ...usage.calls || []]; return declaration.parameters.map((parameter, parameterIndex): ParameterInference => { const types = []; const isRest = isRestParameter(parameter); let isOptional = false; - for (const callContext of callContexts) { - if (callContext.argumentTypes.length <= parameterIndex) { + for (const call of calls) { + if (call.argumentTypes.length <= parameterIndex) { isOptional = isInJSFile(declaration); types.push(checker.getUndefinedType()); } else if (isRest) { - for (let i = parameterIndex; i < callContext.argumentTypes.length; i++) { - types.push(checker.getBaseTypeOfLiteralType(callContext.argumentTypes[i])); + for (let i = parameterIndex; i < call.argumentTypes.length; i++) { + types.push(checker.getBaseTypeOfLiteralType(call.argumentTypes[i])); } } else { - types.push(checker.getBaseTypeOfLiteralType(callContext.argumentTypes[parameterIndex])); + types.push(checker.getBaseTypeOfLiteralType(call.argumentTypes[parameterIndex])); } } if (isIdentifier(parameter.name)) { const inferred = inferTypesFromReferences(getReferences(parameter.name, program, cancellationToken), checker, cancellationToken); types.push(...(isRest ? mapDefined(inferred, checker.getElementTypeOfArrayType) : inferred)); } - const type = unifyFromContext(types, checker); + const type = unifyFromUsage(types, checker); return { type: isRest ? checker.createArrayType(type) : type, isOptional: isOptional && !isRest, @@ -473,89 +473,89 @@ namespace ts.codefix { } const checker = program.getTypeChecker(); - const usageContext: UsageContext = {}; + const usage: Usage = {}; for (const reference of references) { cancellationToken.throwIfCancellationRequested(); - inferTypeFromContext(reference, checker, usageContext); + calculateUsageOfNode(reference, checker, usage); } - return unifyFromContext(usageContext.candidateThisTypes || emptyArray, checker); + return unifyFromUsage(usage.candidateThisTypes || emptyArray, checker); } - function inferTypeFromContext(node: Expression, checker: TypeChecker, usageContext: UsageContext): void { + function calculateUsageOfNode(node: Expression, checker: TypeChecker, usage: Usage): void { while (isRightSideOfQualifiedNameOrPropertyAccess(node)) { node = node.parent; } switch (node.parent.kind) { case SyntaxKind.PostfixUnaryExpression: - usageContext.isNumber = true; + usage.isNumber = true; break; case SyntaxKind.PrefixUnaryExpression: - inferTypeFromPrefixUnaryExpressionContext(node.parent, usageContext); + inferTypeFromPrefixUnaryExpression(node.parent, usage); break; case SyntaxKind.BinaryExpression: - inferTypeFromBinaryExpressionContext(node, node.parent, checker, usageContext); + inferTypeFromBinaryExpression(node, node.parent, checker, usage); break; case SyntaxKind.CaseClause: case SyntaxKind.DefaultClause: - inferTypeFromSwitchStatementLabelContext(node.parent, checker, usageContext); + inferTypeFromSwitchStatementLabel(node.parent, checker, usage); break; case SyntaxKind.CallExpression: case SyntaxKind.NewExpression: if ((node.parent).expression === node) { - inferTypeFromCallExpressionContext(node.parent, checker, usageContext); + inferTypeFromCallExpression(node.parent, checker, usage); } else { - inferTypeFromContextualType(node, checker, usageContext); + inferTypeFromContextualType(node, checker, usage); } break; case SyntaxKind.PropertyAccessExpression: - inferTypeFromPropertyAccessExpressionContext(node.parent, checker, usageContext); + inferTypeFromPropertyAccessExpression(node.parent, checker, usage); break; case SyntaxKind.ElementAccessExpression: - inferTypeFromPropertyElementExpressionContext(node.parent, node, checker, usageContext); + inferTypeFromPropertyElementExpression(node.parent, node, checker, usage); break; case SyntaxKind.PropertyAssignment: case SyntaxKind.ShorthandPropertyAssignment: - inferTypeFromPropertyAssignment(node.parent, checker, usageContext); + inferTypeFromPropertyAssignment(node.parent, checker, usage); break; case SyntaxKind.PropertyDeclaration: - inferTypeFromPropertyDeclaration(node.parent, checker, usageContext); + inferTypeFromPropertyDeclaration(node.parent, checker, usage); break; case SyntaxKind.VariableDeclaration: { const { name, initializer } = node.parent as VariableDeclaration; if (node === name) { if (initializer) { // This can happen for `let x = null;` which still has an implicit-any error. - addCandidateType(usageContext, checker.getTypeAtLocation(initializer)); + addCandidateType(usage, checker.getTypeAtLocation(initializer)); } break; } } // falls through default: - return inferTypeFromContextualType(node, checker, usageContext); + return inferTypeFromContextualType(node, checker, usage); } } - function inferTypeFromContextualType(node: Expression, checker: TypeChecker, usageContext: UsageContext): void { + function inferTypeFromContextualType(node: Expression, checker: TypeChecker, usage: Usage): void { if (isExpressionNode(node)) { - addCandidateType(usageContext, checker.getContextualType(node)); + addCandidateType(usage, checker.getContextualType(node)); } } - function inferTypeFromPrefixUnaryExpressionContext(node: PrefixUnaryExpression, usageContext: UsageContext): void { + function inferTypeFromPrefixUnaryExpression(node: PrefixUnaryExpression, usage: Usage): void { switch (node.operator) { case SyntaxKind.PlusPlusToken: case SyntaxKind.MinusMinusToken: case SyntaxKind.MinusToken: case SyntaxKind.TildeToken: - usageContext.isNumber = true; + usage.isNumber = true; break; case SyntaxKind.PlusToken: - usageContext.isNumberOrString = true; + usage.isNumberOrString = true; break; // case SyntaxKind.ExclamationToken: @@ -563,7 +563,7 @@ namespace ts.codefix { } } - function inferTypeFromBinaryExpressionContext(node: Expression, parent: BinaryExpression, checker: TypeChecker, usageContext: UsageContext): void { + function inferTypeFromBinaryExpression(node: Expression, parent: BinaryExpression, checker: TypeChecker, usage: Usage): void { switch (parent.operatorToken.kind) { // ExponentiationOperator case SyntaxKind.AsteriskAsteriskToken: @@ -606,10 +606,10 @@ namespace ts.codefix { case SyntaxKind.GreaterThanEqualsToken: const operandType = checker.getTypeAtLocation(parent.left === node ? parent.right : parent.left); if (operandType.flags & TypeFlags.EnumLike) { - addCandidateType(usageContext, operandType); + addCandidateType(usage, operandType); } else { - usageContext.isNumber = true; + usage.isNumber = true; } break; @@ -617,16 +617,16 @@ namespace ts.codefix { case SyntaxKind.PlusToken: const otherOperandType = checker.getTypeAtLocation(parent.left === node ? parent.right : parent.left); if (otherOperandType.flags & TypeFlags.EnumLike) { - addCandidateType(usageContext, otherOperandType); + addCandidateType(usage, otherOperandType); } else if (otherOperandType.flags & TypeFlags.NumberLike) { - usageContext.isNumber = true; + usage.isNumber = true; } else if (otherOperandType.flags & TypeFlags.StringLike) { - usageContext.isString = true; + usage.isString = true; } else { - usageContext.isNumberOrString = true; + usage.isNumberOrString = true; } break; @@ -636,12 +636,12 @@ namespace ts.codefix { case SyntaxKind.EqualsEqualsEqualsToken: case SyntaxKind.ExclamationEqualsEqualsToken: case SyntaxKind.ExclamationEqualsToken: - addCandidateType(usageContext, checker.getTypeAtLocation(parent.left === node ? parent.right : parent.left)); + addCandidateType(usage, checker.getTypeAtLocation(parent.left === node ? parent.right : parent.left)); break; case SyntaxKind.InKeyword: if (node === parent.left) { - usageContext.isString = true; + usage.isString = true; } break; @@ -651,7 +651,7 @@ namespace ts.codefix { (node.parent.parent.kind === SyntaxKind.VariableDeclaration || isAssignmentExpression(node.parent.parent, /*excludeCompoundAssignment*/ true))) { // var x = x || {}; // TODO: use getFalsyflagsOfType - addCandidateType(usageContext, checker.getTypeAtLocation(parent.right)); + addCandidateType(usage, checker.getTypeAtLocation(parent.right)); } break; @@ -663,68 +663,68 @@ namespace ts.codefix { } } - function inferTypeFromSwitchStatementLabelContext(parent: CaseOrDefaultClause, checker: TypeChecker, usageContext: UsageContext): void { - addCandidateType(usageContext, checker.getTypeAtLocation(parent.parent.parent.expression)); + function inferTypeFromSwitchStatementLabel(parent: CaseOrDefaultClause, checker: TypeChecker, usage: Usage): void { + addCandidateType(usage, checker.getTypeAtLocation(parent.parent.parent.expression)); } - function inferTypeFromCallExpressionContext(parent: CallExpression | NewExpression, checker: TypeChecker, usageContext: UsageContext): void { - const callContext: CallContext = { + function inferTypeFromCallExpression(parent: CallExpression | NewExpression, checker: TypeChecker, usage: Usage): void { + const call: CallUsage = { argumentTypes: [], returnType: {} }; if (parent.arguments) { for (const argument of parent.arguments) { - callContext.argumentTypes.push(checker.getTypeAtLocation(argument)); + call.argumentTypes.push(checker.getTypeAtLocation(argument)); } } - inferTypeFromContext(parent, checker, callContext.returnType); + calculateUsageOfNode(parent, checker, call.returnType); if (parent.kind === SyntaxKind.CallExpression) { - (usageContext.callContexts || (usageContext.callContexts = [])).push(callContext); + (usage.calls || (usage.calls = [])).push(call); } else { - (usageContext.constructContexts || (usageContext.constructContexts = [])).push(callContext); + (usage.constructs || (usage.constructs = [])).push(call); } } - function inferTypeFromPropertyAccessExpressionContext(parent: PropertyAccessExpression, checker: TypeChecker, usageContext: UsageContext): void { + function inferTypeFromPropertyAccessExpression(parent: PropertyAccessExpression, checker: TypeChecker, usage: Usage): void { const name = escapeLeadingUnderscores(parent.name.text); - if (!usageContext.properties) { - usageContext.properties = createUnderscoreEscapedMap(); + if (!usage.properties) { + usage.properties = createUnderscoreEscapedMap(); } - const propertyUsageContext = usageContext.properties.get(name) || { }; - inferTypeFromContext(parent, checker, propertyUsageContext); - usageContext.properties.set(name, propertyUsageContext); + const propertyUsage = usage.properties.get(name) || { }; + calculateUsageOfNode(parent, checker, propertyUsage); + usage.properties.set(name, propertyUsage); } - function inferTypeFromPropertyElementExpressionContext(parent: ElementAccessExpression, node: Expression, checker: TypeChecker, usageContext: UsageContext): void { + function inferTypeFromPropertyElementExpression(parent: ElementAccessExpression, node: Expression, checker: TypeChecker, usage: Usage): void { if (node === parent.argumentExpression) { - usageContext.isNumberOrString = true; + usage.isNumberOrString = true; return; } else { const indexType = checker.getTypeAtLocation(parent.argumentExpression); - const indexUsageContext = {}; - inferTypeFromContext(parent, checker, indexUsageContext); + const indexUsage = {}; + calculateUsageOfNode(parent, checker, indexUsage); if (indexType.flags & TypeFlags.NumberLike) { - usageContext.numberIndexContext = indexUsageContext; + usage.numberIndex = indexUsage; } else { - usageContext.stringIndexContext = indexUsageContext; + usage.stringIndex = indexUsage; } } } - function inferTypeFromPropertyAssignment(assignment: PropertyAssignment | ShorthandPropertyAssignment, checker: TypeChecker, usageContext: UsageContext) { + function inferTypeFromPropertyAssignment(assignment: PropertyAssignment | ShorthandPropertyAssignment, checker: TypeChecker, usage: Usage) { const nodeWithRealType = isVariableDeclaration(assignment.parent.parent) ? assignment.parent.parent : assignment.parent; - addCandidateThisType(usageContext, checker.getTypeAtLocation(nodeWithRealType)); + addCandidateThisType(usage, checker.getTypeAtLocation(nodeWithRealType)); } - function inferTypeFromPropertyDeclaration(declaration: PropertyDeclaration, checker: TypeChecker, usageContext: UsageContext) { - addCandidateThisType(usageContext, checker.getTypeAtLocation(declaration.parent)); + function inferTypeFromPropertyDeclaration(declaration: PropertyDeclaration, checker: TypeChecker, usage: Usage) { + addCandidateThisType(usage, checker.getTypeAtLocation(declaration.parent)); } interface Priority { @@ -745,7 +745,7 @@ namespace ts.codefix { return inferences.filter(i => toRemove.every(f => !f(i))); } - export function unifyFromContext(inferences: ReadonlyArray, checker: TypeChecker, fallback = checker.getAnyType()): Type { + export function unifyFromUsage(inferences: ReadonlyArray, checker: TypeChecker, fallback = checker.getAnyType()): Type { if (!inferences.length) return fallback; // 1. string or number individually override string | number @@ -815,82 +815,82 @@ namespace ts.codefix { numberIndices.length ? checker.createIndexInfo(checker.getUnionType(numberIndices), numberIndexReadonly) : undefined); } - function inferFromContext(usageContext: UsageContext, checker: TypeChecker) { + function inferFromUsage(usage: Usage, checker: TypeChecker) { const types = []; - if (usageContext.isNumber) { + if (usage.isNumber) { types.push(checker.getNumberType()); } - if (usageContext.isString) { + if (usage.isString) { types.push(checker.getStringType()); } - if (usageContext.isNumberOrString) { + if (usage.isNumberOrString) { types.push(checker.getUnionType([checker.getStringType(), checker.getNumberType()])); } - types.push(...(usageContext.candidateTypes || []).map(t => checker.getBaseTypeOfLiteralType(t))); + types.push(...(usage.candidateTypes || []).map(t => checker.getBaseTypeOfLiteralType(t))); - if (usageContext.properties && hasCallContext(usageContext.properties.get("then" as __String))) { - const paramType = getParameterTypeFromCallContexts(0, usageContext.properties.get("then" as __String)!.callContexts!, /*isRestParameter*/ false, checker)!; // TODO: GH#18217 + if (usage.properties && hasCalls(usage.properties.get("then" as __String))) { + const paramType = getParameterTypeFromCalls(0, usage.properties.get("then" as __String)!.calls!, /*isRestParameter*/ false, checker)!; // TODO: GH#18217 const types = paramType.getCallSignatures().map(c => c.getReturnType()); types.push(checker.createPromiseType(types.length ? checker.getUnionType(types, UnionReduction.Subtype) : checker.getAnyType())); } - else if (usageContext.properties && hasCallContext(usageContext.properties.get("push" as __String))) { - types.push(checker.createArrayType(getParameterTypeFromCallContexts(0, usageContext.properties.get("push" as __String)!.callContexts!, /*isRestParameter*/ false, checker)!)); + else if (usage.properties && hasCalls(usage.properties.get("push" as __String))) { + types.push(checker.createArrayType(getParameterTypeFromCalls(0, usage.properties.get("push" as __String)!.calls!, /*isRestParameter*/ false, checker)!)); } - if (usageContext.numberIndexContext) { - types.push(checker.createArrayType(recur(usageContext.numberIndexContext))); + if (usage.numberIndex) { + types.push(checker.createArrayType(recur(usage.numberIndex))); } - else if (usageContext.properties || usageContext.callContexts || usageContext.constructContexts || usageContext.stringIndexContext) { + else if (usage.properties || usage.calls || usage.constructs || usage.stringIndex) { const members = createUnderscoreEscapedMap(); const callSignatures: Signature[] = []; const constructSignatures: Signature[] = []; let stringIndexInfo: IndexInfo | undefined; - if (usageContext.properties) { - usageContext.properties.forEach((context, name) => { + if (usage.properties) { + usage.properties.forEach((u, name) => { const symbol = checker.createSymbol(SymbolFlags.Property, name); - symbol.type = recur(context); + symbol.type = recur(u); members.set(name, symbol); }); } - if (usageContext.callContexts) { - for (const callContext of usageContext.callContexts) { - callSignatures.push(getSignatureFromCallContext(callContext, checker)); + if (usage.calls) { + for (const call of usage.calls) { + callSignatures.push(getSignatureFromCall(call, checker)); } } - if (usageContext.constructContexts) { - for (const constructContext of usageContext.constructContexts) { - constructSignatures.push(getSignatureFromCallContext(constructContext, checker)); + if (usage.constructs) { + for (const construct of usage.constructs) { + constructSignatures.push(getSignatureFromCall(construct, checker)); } } - if (usageContext.stringIndexContext) { - stringIndexInfo = checker.createIndexInfo(recur(usageContext.stringIndexContext), /*isReadonly*/ false); + if (usage.stringIndex) { + stringIndexInfo = checker.createIndexInfo(recur(usage.stringIndex), /*isReadonly*/ false); } types.push(checker.createAnonymousType(/*symbol*/ undefined!, members, callSignatures, constructSignatures, stringIndexInfo, /*numberIndexInfo*/ undefined)); // TODO: GH#18217 } return types; - function recur(innerContext: UsageContext): Type { - return unifyFromContext(inferFromContext(innerContext, checker), checker); + function recur(innerUsage: Usage): Type { + return unifyFromUsage(inferFromUsage(innerUsage, checker), checker); } } - function getParameterTypeFromCallContexts(parameterIndex: number, callContexts: CallContext[], isRestParameter: boolean, checker: TypeChecker) { + function getParameterTypeFromCalls(parameterIndex: number, calls: CallUsage[], isRestParameter: boolean, checker: TypeChecker) { let types: Type[] = []; - if (callContexts) { - for (const callContext of callContexts) { - if (callContext.argumentTypes.length > parameterIndex) { + if (calls) { + for (const call of calls) { + if (call.argumentTypes.length > parameterIndex) { if (isRestParameter) { - types = concatenate(types, map(callContext.argumentTypes.slice(parameterIndex), a => checker.getBaseTypeOfLiteralType(a))); + types = concatenate(types, map(call.argumentTypes.slice(parameterIndex), a => checker.getBaseTypeOfLiteralType(a))); } else { - types.push(checker.getBaseTypeOfLiteralType(callContext.argumentTypes[parameterIndex])); + types.push(checker.getBaseTypeOfLiteralType(call.argumentTypes[parameterIndex])); } } } @@ -903,32 +903,32 @@ namespace ts.codefix { return undefined; } - function getSignatureFromCallContext(callContext: CallContext, checker: TypeChecker): Signature { + function getSignatureFromCall(call: CallUsage, checker: TypeChecker): Signature { const parameters: Symbol[] = []; - for (let i = 0; i < callContext.argumentTypes.length; i++) { + for (let i = 0; i < call.argumentTypes.length; i++) { const symbol = checker.createSymbol(SymbolFlags.FunctionScopedVariable, escapeLeadingUnderscores(`arg${i}`)); - symbol.type = checker.getWidenedType(checker.getBaseTypeOfLiteralType(callContext.argumentTypes[i])); + symbol.type = checker.getWidenedType(checker.getBaseTypeOfLiteralType(call.argumentTypes[i])); parameters.push(symbol); } - const returnType = unifyFromContext(inferFromContext(callContext.returnType, checker), checker, checker.getVoidType()); + const returnType = unifyFromUsage(inferFromUsage(call.returnType, checker), checker, checker.getVoidType()); // TODO: GH#18217 - return checker.createSignature(/*declaration*/ undefined!, /*typeParameters*/ undefined, /*thisParameter*/ undefined, parameters, returnType, /*typePredicate*/ undefined, callContext.argumentTypes.length, /*hasRestParameter*/ false, /*hasLiteralTypes*/ false); + return checker.createSignature(/*declaration*/ undefined!, /*typeParameters*/ undefined, /*thisParameter*/ undefined, parameters, returnType, /*typePredicate*/ undefined, call.argumentTypes.length, /*hasRestParameter*/ false, /*hasLiteralTypes*/ false); } - function addCandidateType(context: UsageContext, type: Type | undefined) { + function addCandidateType(usage: Usage, type: Type | undefined) { if (type && !(type.flags & TypeFlags.Any) && !(type.flags & TypeFlags.Never)) { - (context.candidateTypes || (context.candidateTypes = [])).push(type); + (usage.candidateTypes || (usage.candidateTypes = [])).push(type); } } - function addCandidateThisType(context: UsageContext, type: Type | undefined) { + function addCandidateThisType(usage: Usage, type: Type | undefined) { if (type && !(type.flags & TypeFlags.Any) && !(type.flags & TypeFlags.Never)) { - (context.candidateThisTypes || (context.candidateThisTypes = [])).push(type); + (usage.candidateThisTypes || (usage.candidateThisTypes = [])).push(type); } } - function hasCallContext(usageContext: UsageContext | undefined): boolean { - return !!usageContext && !!usageContext.callContexts; + function hasCalls(usage: Usage | undefined): boolean { + return !!usage && !!usage.calls; } } } From d347b08a42bb705415fe8b859a69697c1d155a59 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Tue, 27 Aug 2019 13:13:58 -0700 Subject: [PATCH 042/159] Copied from old branch 1. Everything explodes! Out of stack space! 2. Results aren't used yet. 3. But call and construct use the new getSignatureFromCalls, so I expect some baseline changes after I get the infinite recursion fixed. --- src/compiler/checker.ts | 3 + src/compiler/types.ts | 1 + src/services/codefixes/inferFromUsage.ts | 85 ++++++++++++++++++++---- 3 files changed, 75 insertions(+), 14 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index cfd83efeb31..1b6fee6f0de 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -524,6 +524,9 @@ namespace ts { }, getApparentType, getUnionType, + isTypeAssignableTo: (source, target) => { + return isTypeAssignableTo(source, target); + }, createAnonymousType, createSignature, createSymbol, diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 2c8a882c164..6e92eba8ded 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3286,6 +3286,7 @@ namespace ts { /* @internal */ getElementTypeOfArrayType(arrayType: Type): Type | undefined; /* @internal */ createPromiseType(type: Type): Type; + /* @internal */ isTypeAssignableTo(source: Type, target: Type): boolean; /* @internal */ createAnonymousType(symbol: Symbol, members: SymbolTable, callSignatures: Signature[], constructSignatures: Signature[], stringIndexInfo: IndexInfo | undefined, numberIndexInfo: IndexInfo | undefined): Type; /* @internal */ createSignature( declaration: SignatureDeclaration, diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index 2eb9eaca7b7..4b111dae25b 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -401,7 +401,7 @@ namespace ts.codefix { interface CallUsage { argumentTypes: Type[]; - returnType: Usage; + return_: Usage; } interface Usage { @@ -671,16 +671,17 @@ namespace ts.codefix { function inferTypeFromCallExpression(parent: CallExpression | NewExpression, usage: Usage): void { const call: CallUsage = { argumentTypes: [], - returnType: {} + return_: {} }; if (parent.arguments) { for (const argument of parent.arguments) { + // TODO: should recursively infer a usage here, right? call.argumentTypes.push(checker.getTypeAtLocation(argument)); } } - calculateUsageOfNode(parent, call.returnType); + calculateUsageOfNode(parent, call.return_); if (parent.kind === SyntaxKind.CallExpression) { (usage.calls || (usage.calls = [])).push(call); } @@ -830,6 +831,7 @@ namespace ts.codefix { } types.push(...(usage.candidateTypes || []).map(t => checker.getBaseTypeOfLiteralType(t))); + types.push(...findBuiltinType(usage)); if (usage.properties && hasCalls(usage.properties.get("then" as __String))) { const paramType = getParameterTypeFromCalls(0, usage.properties.get("then" as __String)!.calls!, /*isRestParameter*/ false)!; // TODO: GH#18217 @@ -858,15 +860,11 @@ namespace ts.codefix { } if (usage.calls) { - for (const call of usage.calls) { - callSignatures.push(getSignatureFromCall(call)); - } + callSignatures.push(getSignatureFromCalls(usage.calls)); } if (usage.constructs) { - for (const construct of usage.constructs) { - constructSignatures.push(getSignatureFromCall(construct)); - } + constructSignatures.push(getSignatureFromCalls(usage.constructs)); } if (usage.stringIndex) { @@ -882,6 +880,61 @@ namespace ts.codefix { } } + function combineUsages(usages: Usage[]): Usage { + return { + isNumber: usages.some(u => u.isNumber), + isString: usages.some(u => u.isString), + isNumberOrString: usages.some(u => u.isNumberOrString), + candidateTypes: flatMap(usages, u => u.candidateTypes) as Type[], + properties: undefined, // TODO + calls: flatMap(usages, u => u.calls) as CallUsage[], + constructs: flatMap(usages, u => u.constructs) as CallUsage[], + numberIndex: forEach(usages, u => u.numberIndex), + stringIndex: forEach(usages, u => u.stringIndex), + candidateThisTypes: flatMap(usages, u => u.candidateThisTypes) as Type[], + } + } + + function findBuiltinType(usage: Usage): Type[] { + const builtins = [ + checker.getStringType(), + checker.getNumberType(), + checker.createArrayType(checker.getAnyType()), + checker.createPromiseType(checker.getAnyType()), + // checker.getFunctionType() // not sure what this was supposed to be good for. + ]; + const matches = builtins.filter(t => matchesAllPropertiesOf(t, usage)); + if (false && 0 < matches.length && matches.length < 3) { + return matches; + } + return []; + } + + function matchesAllPropertiesOf(type: Type, usage: Usage) { + if (!usage.properties) return false; + let result = true; + usage.properties.forEach((prop, name) => { + const source = checker.getUnionType(inferFromUsage(prop)); + const target = checker.getTypeOfPropertyOfType(type, name as string); + if (target && prop.calls) { + const sigs = checker.getSignaturesOfType(target, ts.SignatureKind.Call); + result = result && !!sigs.length && sigs.some( + sig => checker.isTypeAssignableTo( + getFunctionFromCalls(prop.calls!), + checker.createAnonymousType(undefined!, createSymbolTable(), [sig], emptyArray, undefined, undefined))); + } + else { + result = result && !!source && !!target && checker.isTypeAssignableTo(source, target); + } + }); + return result; + } + + + function getFunctionFromCalls(calls: CallUsage[]) { + return checker.createAnonymousType(undefined!, createSymbolTable(), [getSignatureFromCalls(calls)], emptyArray, undefined, undefined); + } + function getParameterTypeFromCalls(parameterIndex: number, calls: CallUsage[], isRestParameter: boolean) { let types: Type[] = []; if (calls) { @@ -904,16 +957,20 @@ namespace ts.codefix { return undefined; } - function getSignatureFromCall(call: CallUsage): Signature { + function getSignatureFromCalls(calls: CallUsage[]): Signature { const parameters: Symbol[] = []; - for (let i = 0; i < call.argumentTypes.length; i++) { + const length = Math.max(...calls.map(c => c.argumentTypes.length)); + for (let i = 0; i < length; i++) { const symbol = checker.createSymbol(SymbolFlags.FunctionScopedVariable, escapeLeadingUnderscores(`arg${i}`)); - symbol.type = checker.getWidenedType(checker.getBaseTypeOfLiteralType(call.argumentTypes[i])); + symbol.type = unifyFromUsage(calls.map(call => call.argumentTypes[i] || checker.getUndefinedType())); + if (calls.some(call => call.argumentTypes[i] === undefined)) { + symbol.flags |= SymbolFlags.Optional; + } parameters.push(symbol); } - const returnType = unifyFromUsage(inferFromUsage(call.returnType), checker.getVoidType()); + const returnType = unifyFromUsage(inferFromUsage(combineUsages(calls.map(call => call.return_))), checker.getVoidType()); // TODO: GH#18217 - return checker.createSignature(/*declaration*/ undefined!, /*typeParameters*/ undefined, /*thisParameter*/ undefined, parameters, returnType, /*typePredicate*/ undefined, call.argumentTypes.length, /*hasRestParameter*/ false, /*hasLiteralTypes*/ false); + return checker.createSignature(/*declaration*/ undefined!, /*typeParameters*/ undefined, /*thisParameter*/ undefined, parameters, returnType, /*typePredicate*/ undefined, length, /*hasRestParameter*/ false, /*hasLiteralTypes*/ false); } function addCandidateType(usage: Usage, type: Type | undefined) { From 945d423ef5b511ae157b15849b2b822de4b48953 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Wed, 28 Aug 2019 14:12:21 -0700 Subject: [PATCH 043/159] Fix bugs in combineUsages/getSignatureFromCalls --- src/services/codefixes/inferFromUsage.ts | 76 +++++++++++++++++------- 1 file changed, 56 insertions(+), 20 deletions(-) diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index 4b111dae25b..92382c462fa 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -405,18 +405,19 @@ namespace ts.codefix { } interface Usage { - isNumber?: boolean; - isString?: boolean; + isNumber: boolean | undefined; + isString: boolean | undefined; /** Used ambiguously, eg x + ___ or object[___]; results in string | number if no other evidence exists */ - isNumberOrString?: boolean; + isNumberOrString: boolean | undefined; - candidateTypes?: Type[]; - properties?: UnderscoreEscapedMap; - calls?: CallUsage[]; - constructs?: CallUsage[]; - numberIndex?: Usage; - stringIndex?: Usage; - candidateThisTypes?: Type[]; + candidateTypes: Type[] | undefined; + properties: UnderscoreEscapedMap | undefined; + calls: CallUsage[] | undefined; + constructs: CallUsage[] | undefined; + numberIndex: Usage | undefined; + stringIndex: Usage | undefined; + candidateThisTypes: Type[] | undefined; + inferredTypes: Type[] | undefined; } function single(): Type { @@ -428,7 +429,7 @@ namespace ts.codefix { return undefined; } - const usage: Usage = {}; + const usage = createEmptyUsage(); for (const reference of references) { cancellationToken.throwIfCancellationRequested(); calculateUsageOfNode(reference, usage); @@ -466,7 +467,7 @@ namespace ts.codefix { } function thisParameter() { - const usage: Usage = {}; + const usage = createEmptyUsage(); for (const reference of references) { cancellationToken.throwIfCancellationRequested(); calculateUsageOfNode(reference, usage); @@ -476,7 +477,7 @@ namespace ts.codefix { } function inferTypesFromReferencesSingle(references: readonly Identifier[]): Type[] { - const usage: Usage = {}; + const usage: Usage = createEmptyUsage(); for (const reference of references) { cancellationToken.throwIfCancellationRequested(); calculateUsageOfNode(reference, usage); @@ -671,7 +672,7 @@ namespace ts.codefix { function inferTypeFromCallExpression(parent: CallExpression | NewExpression, usage: Usage): void { const call: CallUsage = { argumentTypes: [], - return_: {} + return_: createEmptyUsage() }; if (parent.arguments) { @@ -695,7 +696,7 @@ namespace ts.codefix { if (!usage.properties) { usage.properties = createUnderscoreEscapedMap(); } - const propertyUsage = usage.properties.get(name) || { }; + const propertyUsage = usage.properties.get(name) || createEmptyUsage(); calculateUsageOfNode(parent, propertyUsage); usage.properties.set(name, propertyUsage); } @@ -707,7 +708,7 @@ namespace ts.codefix { } else { const indexType = checker.getTypeAtLocation(parent.argumentExpression); - const indexUsage = {}; + const indexUsage = createEmptyUsage(); calculateUsageOfNode(parent, indexUsage); if (indexType.flags & TypeFlags.NumberLike) { usage.numberIndex = indexUsage; @@ -845,7 +846,10 @@ namespace ts.codefix { if (usage.numberIndex) { types.push(checker.createArrayType(recur(usage.numberIndex))); } - else if (usage.properties || usage.calls || usage.constructs || usage.stringIndex) { + else if (usage.properties && usage.properties.size + || usage.calls && usage.calls.length + || usage.constructs && usage.constructs.length + || usage.stringIndex) { const members = createUnderscoreEscapedMap(); const callSignatures: Signature[] = []; const constructSignatures: Signature[] = []; @@ -873,25 +877,57 @@ namespace ts.codefix { types.push(checker.createAnonymousType(/*symbol*/ undefined!, members, callSignatures, constructSignatures, stringIndexInfo, /*numberIndexInfo*/ undefined)); // TODO: GH#18217 } - return types; + return types; // TODO: Should cache this since I HOPE it doesn't change function recur(innerUsage: Usage): Type { return unifyFromUsage(inferFromUsage(innerUsage)); } } + function createEmptyUsage(): Usage { + return { + isNumber: undefined, + isString: undefined, + isNumberOrString: undefined, + candidateTypes: undefined, + properties: undefined, + calls: undefined, + constructs: undefined, + numberIndex: undefined, + stringIndex: undefined, + candidateThisTypes: undefined, + inferredTypes: undefined, + } + } + function combineUsages(usages: Usage[]): Usage { + const combinedProperties = createUnderscoreEscapedMap() + for (const u of usages) { + if (u.properties) { + u.properties.forEach((p,name) => { + if (!combinedProperties.has(name)) { + combinedProperties.set(name, []); + } + combinedProperties.get(name)!.push(p); + }); + } + } + const properties = createUnderscoreEscapedMap() + combinedProperties.forEach((ps,name) => { + properties.set(name, combineUsages(ps)); + }); return { isNumber: usages.some(u => u.isNumber), isString: usages.some(u => u.isString), isNumberOrString: usages.some(u => u.isNumberOrString), candidateTypes: flatMap(usages, u => u.candidateTypes) as Type[], - properties: undefined, // TODO + properties, calls: flatMap(usages, u => u.calls) as CallUsage[], constructs: flatMap(usages, u => u.constructs) as CallUsage[], numberIndex: forEach(usages, u => u.numberIndex), stringIndex: forEach(usages, u => u.stringIndex), candidateThisTypes: flatMap(usages, u => u.candidateThisTypes) as Type[], + inferredTypes: undefined, // clear type cache } } @@ -901,7 +937,7 @@ namespace ts.codefix { checker.getNumberType(), checker.createArrayType(checker.getAnyType()), checker.createPromiseType(checker.getAnyType()), - // checker.getFunctionType() // not sure what this was supposed to be good for. + // checker.getFunctionType() // TODO: not sure what this was supposed to be good for. ]; const matches = builtins.filter(t => matchesAllPropertiesOf(t, usage)); if (false && 0 < matches.length && matches.length < 3) { From 37150d9cb548e6e7802b731e8c03a298434e18d7 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 29 Aug 2019 12:40:33 -0700 Subject: [PATCH 044/159] Turn on findBuiltinTypes Type parameter inference is special-cased, just moved from its previous place with no improvement. --- src/services/codefixes/inferFromUsage.ts | 103 +++++++++--------- .../codeFixInferFromFunctionUsage.ts | 4 +- .../codeFixInferFromPrimitiveUsage.ts | 9 ++ .../codeFixInferFromUsageCallBodyBoth.ts | 2 +- 4 files changed, 65 insertions(+), 53 deletions(-) create mode 100644 tests/cases/fourslash/codeFixInferFromPrimitiveUsage.ts diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index 92382c462fa..ab1c2a4a52d 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -421,7 +421,7 @@ namespace ts.codefix { } function single(): Type { - return unifyFromUsage(inferTypesFromReferencesSingle(references)); + return unifyTypes(inferTypesFromReferencesSingle(references)); } function parameters(declaration: FunctionLike): ParameterInference[] | undefined { @@ -457,7 +457,7 @@ namespace ts.codefix { const inferred = inferTypesFromReferencesSingle(getReferences(parameter.name, program, cancellationToken)); types.push(...(isRest ? mapDefined(inferred, checker.getElementTypeOfArrayType) : inferred)); } - const type = unifyFromUsage(types); + const type = unifyTypes(types); return { type: isRest ? checker.createArrayType(type) : type, isOptional: isOptional && !isRest, @@ -473,7 +473,7 @@ namespace ts.codefix { calculateUsageOfNode(reference, usage); } - return unifyFromUsage(usage.candidateThisTypes || emptyArray); + return unifyTypes(usage.candidateThisTypes || emptyArray); } function inferTypesFromReferencesSingle(references: readonly Identifier[]): Type[] { @@ -627,6 +627,9 @@ namespace ts.codefix { else if (otherOperandType.flags & TypeFlags.StringLike) { usage.isString = true; } + else if (otherOperandType.flags & TypeFlags.Any) { + // do nothing, maybe we'll learn something elsewhere + } else { usage.isNumberOrString = true; } @@ -748,7 +751,7 @@ namespace ts.codefix { return inferences.filter(i => toRemove.every(f => !f(i))); } - function unifyFromUsage(inferences: ReadonlyArray, fallback = checker.getAnyType()): Type { + function unifyTypes(inferences: ReadonlyArray, fallback = checker.getAnyType()): Type { if (!inferences.length) return fallback; // 1. string or number individually override string | number @@ -774,7 +777,7 @@ namespace ts.codefix { good = good.filter(i => !(checker.getObjectFlags(i) & ObjectFlags.Anonymous)); good.push(unifyAnonymousTypes(anons)); } - return checker.getWidenedType(checker.getUnionType(good)); + return checker.getWidenedType(checker.getUnionType(good, UnionReduction.Subtype)); } function unifyAnonymousTypes(anons: AnonymousType[]) { @@ -832,16 +835,7 @@ namespace ts.codefix { } types.push(...(usage.candidateTypes || []).map(t => checker.getBaseTypeOfLiteralType(t))); - types.push(...findBuiltinType(usage)); - - if (usage.properties && hasCalls(usage.properties.get("then" as __String))) { - const paramType = getParameterTypeFromCalls(0, usage.properties.get("then" as __String)!.calls!, /*isRestParameter*/ false)!; // TODO: GH#18217 - const types = paramType.getCallSignatures().map(sig => sig.getReturnType()); - types.push(checker.createPromiseType(types.length ? checker.getUnionType(types, UnionReduction.Subtype) : checker.getAnyType())); - } - else if (usage.properties && hasCalls(usage.properties.get("push" as __String))) { - types.push(checker.createArrayType(getParameterTypeFromCalls(0, usage.properties.get("push" as __String)!.calls!, /*isRestParameter*/ false)!)); - } + types.push(...findBuiltinTypes(usage)); if (usage.numberIndex) { types.push(checker.createArrayType(recur(usage.numberIndex))); @@ -864,11 +858,12 @@ namespace ts.codefix { } if (usage.calls) { - callSignatures.push(getSignatureFromCalls(usage.calls)); + callSignatures.push(getSignatureFromCalls(usage.calls, checker.getVoidType())); } if (usage.constructs) { - constructSignatures.push(getSignatureFromCalls(usage.constructs)); + // TODO: fallback return should maybe be {}? + constructSignatures.push(getSignatureFromCalls(usage.constructs, checker.getVoidType())); } if (usage.stringIndex) { @@ -880,7 +875,7 @@ namespace ts.codefix { return types; // TODO: Should cache this since I HOPE it doesn't change function recur(innerUsage: Usage): Type { - return unifyFromUsage(inferFromUsage(innerUsage)); + return unifyTypes(inferFromUsage(innerUsage)); } } @@ -931,7 +926,8 @@ namespace ts.codefix { } } - function findBuiltinType(usage: Usage): Type[] { + function findBuiltinTypes(usage: Usage): Type[] { + if (!usage.properties || !usage.properties.size) return []; const builtins = [ checker.getStringType(), checker.getNumberType(), @@ -939,9 +935,21 @@ namespace ts.codefix { checker.createPromiseType(checker.getAnyType()), // checker.getFunctionType() // TODO: not sure what this was supposed to be good for. ]; + // TODO: Still need to infer type parameters const matches = builtins.filter(t => matchesAllPropertiesOf(t, usage)); - if (false && 0 < matches.length && matches.length < 3) { - return matches; + if (0 < matches.length && matches.length < 3) { + return matches.map(m => { + // special-case array and promise for now + if (m === builtins[3] && hasCalls(usage.properties!.get("then" as __String))) { + const paramType = getParameterTypeFromCalls(0, usage.properties!.get("then" as __String)!.calls!, /*isRestParameter*/ false)!; // TODO: GH#18217 + const returns = paramType.getCallSignatures().map(sig => sig.getReturnType()); + return checker.createPromiseType(returns.length ? checker.getUnionType(returns, UnionReduction.Subtype) : checker.getAnyType()); + } + else if (m === builtins[2] && hasCalls(usage.properties!.get("push" as __String))) { + return checker.createArrayType(getParameterTypeFromCalls(0, usage.properties!.get("push" as __String)!.calls!, /*isRestParameter*/ false)!); + } + return m; + }); } return []; } @@ -949,18 +957,18 @@ namespace ts.codefix { function matchesAllPropertiesOf(type: Type, usage: Usage) { if (!usage.properties) return false; let result = true; - usage.properties.forEach((prop, name) => { - const source = checker.getUnionType(inferFromUsage(prop)); - const target = checker.getTypeOfPropertyOfType(type, name as string); - if (target && prop.calls) { - const sigs = checker.getSignaturesOfType(target, ts.SignatureKind.Call); - result = result && !!sigs.length && sigs.some( - sig => checker.isTypeAssignableTo( - getFunctionFromCalls(prop.calls!), - checker.createAnonymousType(undefined!, createSymbolTable(), [sig], emptyArray, undefined, undefined))); + usage.properties.forEach((propUsage, name) => { + const source = checker.getTypeOfPropertyOfType(type, name as string); + if (!source) { + result = false; + return; + } + if (propUsage.calls) { + const sigs = checker.getSignaturesOfType(source, ts.SignatureKind.Call); + result = result && !!sigs.length && checker.isTypeAssignableTo(source, getFunctionFromCalls(propUsage.calls)); } else { - result = result && !!source && !!target && checker.isTypeAssignableTo(source, target); + result = result && checker.isTypeAssignableTo(source, unifyTypes(inferFromUsage(propUsage))); } }); return result; @@ -968,43 +976,38 @@ namespace ts.codefix { function getFunctionFromCalls(calls: CallUsage[]) { - return checker.createAnonymousType(undefined!, createSymbolTable(), [getSignatureFromCalls(calls)], emptyArray, undefined, undefined); + return checker.createAnonymousType(undefined!, createSymbolTable(), [getSignatureFromCalls(calls, checker.getAnyType())], emptyArray, undefined, undefined); } function getParameterTypeFromCalls(parameterIndex: number, calls: CallUsage[], isRestParameter: boolean) { + // TODO: This is largely redundant with getSignatureFromCalls, I think. (though it handles rest parameters correctly, so that needs to be integrated there) let types: Type[] = []; - if (calls) { - for (const call of calls) { - if (call.argumentTypes.length > parameterIndex) { - if (isRestParameter) { - types = concatenate(types, map(call.argumentTypes.slice(parameterIndex), a => checker.getBaseTypeOfLiteralType(a))); - } - else { - types.push(checker.getBaseTypeOfLiteralType(call.argumentTypes[parameterIndex])); - } + for (const call of calls) { + if (call.argumentTypes.length > parameterIndex) { + if (isRestParameter) { + types = concatenate(types, map(call.argumentTypes.slice(parameterIndex), a => checker.getBaseTypeOfLiteralType(a))); + } + else { + types.push(checker.getBaseTypeOfLiteralType(call.argumentTypes[parameterIndex])); } } } - - if (types.length) { - const type = checker.getWidenedType(checker.getUnionType(types, UnionReduction.Subtype)); - return isRestParameter ? checker.createArrayType(type) : type; - } - return undefined; + const type = unifyTypes(types); + return isRestParameter ? checker.createArrayType(type) : type; } - function getSignatureFromCalls(calls: CallUsage[]): Signature { + function getSignatureFromCalls(calls: CallUsage[], fallbackReturn: Type): Signature { const parameters: Symbol[] = []; const length = Math.max(...calls.map(c => c.argumentTypes.length)); for (let i = 0; i < length; i++) { const symbol = checker.createSymbol(SymbolFlags.FunctionScopedVariable, escapeLeadingUnderscores(`arg${i}`)); - symbol.type = unifyFromUsage(calls.map(call => call.argumentTypes[i] || checker.getUndefinedType())); + symbol.type = unifyTypes(calls.map(call => call.argumentTypes[i] || checker.getUndefinedType())); if (calls.some(call => call.argumentTypes[i] === undefined)) { symbol.flags |= SymbolFlags.Optional; } parameters.push(symbol); } - const returnType = unifyFromUsage(inferFromUsage(combineUsages(calls.map(call => call.return_))), checker.getVoidType()); + const returnType = unifyTypes(inferFromUsage(combineUsages(calls.map(call => call.return_))), fallbackReturn); // TODO: GH#18217 return checker.createSignature(/*declaration*/ undefined!, /*typeParameters*/ undefined, /*thisParameter*/ undefined, parameters, returnType, /*typePredicate*/ undefined, length, /*hasRestParameter*/ false, /*hasLiteralTypes*/ false); } diff --git a/tests/cases/fourslash/codeFixInferFromFunctionUsage.ts b/tests/cases/fourslash/codeFixInferFromFunctionUsage.ts index 27a039878ba..f2dbad67b4b 100644 --- a/tests/cases/fourslash/codeFixInferFromFunctionUsage.ts +++ b/tests/cases/fourslash/codeFixInferFromFunctionUsage.ts @@ -2,8 +2,8 @@ // @noImplicitAny: true ////function wrap( [| arr |] ) { -//// arr.sort(function (a: number, b: number) { return a < b ? -1 : 1 }) +//// arr.other(function (a: number, b: number) { return a < b ? -1 : 1 }) //// } // https://github.com/Microsoft/TypeScript/issues/29330 -verify.rangeAfterCodeFix("arr: { sort: (arg0: (a: number, b: number) => 1 | -1) => void; }"); +verify.rangeAfterCodeFix("arr: { other: (arg0: (a: number, b: number) => 1 | -1) => void; }"); diff --git a/tests/cases/fourslash/codeFixInferFromPrimitiveUsage.ts b/tests/cases/fourslash/codeFixInferFromPrimitiveUsage.ts new file mode 100644 index 00000000000..81c25770085 --- /dev/null +++ b/tests/cases/fourslash/codeFixInferFromPrimitiveUsage.ts @@ -0,0 +1,9 @@ +/// + +// @noImplicitAny: true +////function wrap( [| s |] ) { +//// return s.length + s.toUpperCase() +//// } + +// https://github.com/Microsoft/TypeScript/issues/29330 +verify.rangeAfterCodeFix("s: string"); diff --git a/tests/cases/fourslash/codeFixInferFromUsageCallBodyBoth.ts b/tests/cases/fourslash/codeFixInferFromUsageCallBodyBoth.ts index 859d5ea2ce7..f59d1bc1907 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageCallBodyBoth.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageCallBodyBoth.ts @@ -1,7 +1,7 @@ /// ////class C { -//// +//// p = 2 ////} ////var c = new C() ////function f([|x, y |]) { From 909bc61f01253dcb9bc944463434d4117ad910a9 Mon Sep 17 00:00:00 2001 From: xiaofa Date: Fri, 30 Aug 2019 17:37:27 +0800 Subject: [PATCH 045/159] Add convert const to let --- src/compiler/diagnosticMessages.json | 4 +++ src/services/codefixes/convertConstToLet.ts | 32 +++++++++++++++++++++ src/services/tsconfig.json | 1 + tests/cases/fourslash/codeFixConstToLet.ts | 12 ++++++++ 4 files changed, 49 insertions(+) create mode 100644 src/services/codefixes/convertConstToLet.ts create mode 100644 tests/cases/fourslash/codeFixConstToLet.ts diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index b296c224d08..bf08c95f10c 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -5124,6 +5124,10 @@ "category": "Message", "code": 95090 }, + "Convert 'const' to 'let'": { + "category": "Message", + "code": 95091 + }, "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer.": { "category": "Error", diff --git a/src/services/codefixes/convertConstToLet.ts b/src/services/codefixes/convertConstToLet.ts new file mode 100644 index 00000000000..df027f7d8c8 --- /dev/null +++ b/src/services/codefixes/convertConstToLet.ts @@ -0,0 +1,32 @@ +/* @internal */ +namespace ts.codefix { + const fixId = "fixConvertConstToLet"; + const errorCodes = [Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code]; + + registerCodeFix({ + errorCodes, + getCodeActions: context => { + const { sourceFile, span, program } = context; + const variableStatement = getVaribleStatement(sourceFile, span.start, program); + const changes = textChanges.ChangeTracker.with(context, t => doChange(t, sourceFile, variableStatement)); + return [createCodeFixAction(fixId, changes, Diagnostics.Convert_const_to_let, fixId, Diagnostics.Convert_const_to_let)]; + }, + fixIds: [fixId] + }); + + function getVaribleStatement(sourceFile: SourceFile, pos: number, program: Program) { + const token = getTokenAtPosition(sourceFile, pos); + const checker = program.getTypeChecker(); + const symbol = checker.getSymbolAtLocation(token); + if (symbol) { + return symbol.valueDeclaration.parent.parent as VariableStatement; + } + } + function doChange(changes: textChanges.ChangeTracker, sourceFile: SourceFile, variableStatement?: VariableStatement) { + if (!variableStatement) { + return; + } + const start = variableStatement.getStart(); + changes.replaceRangeWithText(sourceFile, { pos: start, end: start + 5 }, "let"); + } +} diff --git a/src/services/tsconfig.json b/src/services/tsconfig.json index 6b52393422c..965ea4d5ac4 100644 --- a/src/services/tsconfig.json +++ b/src/services/tsconfig.json @@ -82,6 +82,7 @@ "codefixes/fixAddModuleReferTypeMissingTypeof.ts", "codefixes/convertToMappedObjectType.ts", "codefixes/removeUnnecessaryAwait.ts", + "codefixes/convertConstToLet.ts", "refactors/convertExport.ts", "refactors/convertImport.ts", "refactors/extractSymbol.ts", diff --git a/tests/cases/fourslash/codeFixConstToLet.ts b/tests/cases/fourslash/codeFixConstToLet.ts new file mode 100644 index 00000000000..949c45104a2 --- /dev/null +++ b/tests/cases/fourslash/codeFixConstToLet.ts @@ -0,0 +1,12 @@ +/// + +//// const x = 42; +//// x = 75; + +verify.codeFix({ + description: "Convert 'const' to 'let'", + index: 0, + newFileContent: +`let x = 42; +x = 75;` +}); \ No newline at end of file From 383286ff533aad1e9fe3bfa907ef84689eff920e Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Fri, 30 Aug 2019 13:44:06 -0700 Subject: [PATCH 046/159] Add type parameter inference It's a smeary copy of the checker's type parameter, so I feel bad about duplicating that code. Not sure what the solution is, architecturally. --- src/services/codefixes/inferFromUsage.ts | 132 ++++++++++++------ .../codeFixInferFromPrimitiveUsage.ts | 7 +- 2 files changed, 94 insertions(+), 45 deletions(-) diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index ab1c2a4a52d..0a190e7b379 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -393,6 +393,19 @@ namespace ts.codefix { function inferTypeFromReferences(program: Program, references: ReadonlyArray, cancellationToken: CancellationToken) { const checker = program.getTypeChecker(); + const builtinConstructors: { [s: string]: (t: Type) => Type } = { + string: () => checker.getStringType(), + number: () => checker.getNumberType(), + Array: t => checker.createArrayType(t), + Promise: t => checker.createPromiseType(t), + }; + const builtins = [ + checker.getStringType(), + checker.getNumberType(), + checker.createArrayType(checker.getAnyType()), + checker.createPromiseType(checker.getAnyType()), + ]; + return { single, parameters, @@ -777,7 +790,7 @@ namespace ts.codefix { good = good.filter(i => !(checker.getObjectFlags(i) & ObjectFlags.Anonymous)); good.push(unifyAnonymousTypes(anons)); } - return checker.getWidenedType(checker.getUnionType(good, UnionReduction.Subtype)); + return checker.getWidenedType(checker.getUnionType(good.map(checker.getBaseTypeOfLiteralType), UnionReduction.Subtype)); } function unifyAnonymousTypes(anons: AnonymousType[]) { @@ -928,28 +941,9 @@ namespace ts.codefix { function findBuiltinTypes(usage: Usage): Type[] { if (!usage.properties || !usage.properties.size) return []; - const builtins = [ - checker.getStringType(), - checker.getNumberType(), - checker.createArrayType(checker.getAnyType()), - checker.createPromiseType(checker.getAnyType()), - // checker.getFunctionType() // TODO: not sure what this was supposed to be good for. - ]; - // TODO: Still need to infer type parameters const matches = builtins.filter(t => matchesAllPropertiesOf(t, usage)); if (0 < matches.length && matches.length < 3) { - return matches.map(m => { - // special-case array and promise for now - if (m === builtins[3] && hasCalls(usage.properties!.get("then" as __String))) { - const paramType = getParameterTypeFromCalls(0, usage.properties!.get("then" as __String)!.calls!, /*isRestParameter*/ false)!; // TODO: GH#18217 - const returns = paramType.getCallSignatures().map(sig => sig.getReturnType()); - return checker.createPromiseType(returns.length ? checker.getUnionType(returns, UnionReduction.Subtype) : checker.getAnyType()); - } - else if (m === builtins[2] && hasCalls(usage.properties!.get("push" as __String))) { - return checker.createArrayType(getParameterTypeFromCalls(0, usage.properties!.get("push" as __String)!.calls!, /*isRestParameter*/ false)!); - } - return m; - }); + return matches.map(m => inferTypeParameterFromUsage(m, usage)); } return []; } @@ -974,28 +968,86 @@ namespace ts.codefix { return result; } + // inference is limited to + // 1. generic types with a single parameter + // 2. inference to/from calls with a single signature + function inferTypeParameterFromUsage(type: Type, usage: Usage) { + if (!usage.properties || !(getObjectFlags(type) & ObjectFlags.Reference)) return type; + const generic = (type as TypeReference).target; + const singleTypeParameter = singleOrUndefined(generic.typeParameters); + if (!singleTypeParameter) return type; + + const types: Type[] = []; + usage.properties.forEach((propUsage, name) => { + const source = checker.getTypeOfPropertyOfType(generic, name as string); + if (!source) { + return Debug.fail("generic should have all the properties of its reference."); + } + if (!propUsage.calls) return; + + types.push(...infer(source, getFunctionFromCalls(propUsage.calls), singleTypeParameter)); + }); + return builtinConstructors[type.symbol.escapedName as string](unifyTypes(types)); + } + + // TODO: Source and target are bad names. Should be builtinType and usageType...or something + // and search is a bad name + function infer(source: Type, target: Type, search: Type): readonly Type[] { + if (source === search) { + return [target]; + } + else if (source.flags & TypeFlags.UnionOrIntersection) { + return flatMap((source as UnionOrIntersectionType).types, t => infer(t, target, search)); + } + else if (getObjectFlags(source) & ObjectFlags.Reference && getObjectFlags(target) & ObjectFlags.Reference) { + // this is wrong because we need a reference to the targetType to, so we can check that it's also a reference + const sourceArgs = (source as TypeReference).typeArguments; + const targetArgs = (target as TypeReference).typeArguments; + const types = []; + if (sourceArgs && targetArgs) { + for (let i = 0; i < sourceArgs.length; i++) { + if (targetArgs[i]) { + types.push(...infer(sourceArgs[i], targetArgs[i], search)); + } + } + } + return types; + } + const sourceSigs = checker.getSignaturesOfType(source, SignatureKind.Call); + const targetSigs = checker.getSignaturesOfType(target, SignatureKind.Call); + if (sourceSigs.length === 1 && targetSigs.length === 1) { + return inferFromSignatures(sourceSigs[0], targetSigs[0], search); + } + return []; + } + + function inferFromSignatures(sourceSig: Signature, targetSig: Signature, search: Type) { + const types = []; + for (let i = 0; i < sourceSig.parameters.length; i++) { + const sourceParam = sourceSig.parameters[i]; + const targetParam = targetSig.parameters[i]; + const isRest = sourceSig.declaration && isRestParameter(sourceSig.declaration.parameters[i]); + if (!targetParam) { + break; + } + let sourceType = checker.getTypeOfSymbolAtLocation(sourceParam, sourceParam.valueDeclaration); + let elementType = isRest && checker.getElementTypeOfArrayType(sourceType); + if (elementType) { + sourceType = elementType; + } + const targetType = (targetParam as SymbolLinks).type || checker.getTypeOfSymbolAtLocation(targetParam, targetParam.valueDeclaration); + types.push(...infer(sourceType, targetType, search)); + } + const sourceReturn = checker.getReturnTypeOfSignature(sourceSig); + const targetReturn = checker.getReturnTypeOfSignature(targetSig); + types.push(...infer(sourceReturn, targetReturn, search)); + return types; + } function getFunctionFromCalls(calls: CallUsage[]) { return checker.createAnonymousType(undefined!, createSymbolTable(), [getSignatureFromCalls(calls, checker.getAnyType())], emptyArray, undefined, undefined); } - function getParameterTypeFromCalls(parameterIndex: number, calls: CallUsage[], isRestParameter: boolean) { - // TODO: This is largely redundant with getSignatureFromCalls, I think. (though it handles rest parameters correctly, so that needs to be integrated there) - let types: Type[] = []; - for (const call of calls) { - if (call.argumentTypes.length > parameterIndex) { - if (isRestParameter) { - types = concatenate(types, map(call.argumentTypes.slice(parameterIndex), a => checker.getBaseTypeOfLiteralType(a))); - } - else { - types.push(checker.getBaseTypeOfLiteralType(call.argumentTypes[parameterIndex])); - } - } - } - const type = unifyTypes(types); - return isRestParameter ? checker.createArrayType(type) : type; - } - function getSignatureFromCalls(calls: CallUsage[], fallbackReturn: Type): Signature { const parameters: Symbol[] = []; const length = Math.max(...calls.map(c => c.argumentTypes.length)); @@ -1023,9 +1075,5 @@ namespace ts.codefix { (usage.candidateThisTypes || (usage.candidateThisTypes = [])).push(type); } } - - function hasCalls(usage: Usage | undefined): boolean { - return !!usage && !!usage.calls; - } } } diff --git a/tests/cases/fourslash/codeFixInferFromPrimitiveUsage.ts b/tests/cases/fourslash/codeFixInferFromPrimitiveUsage.ts index 81c25770085..b74e49b4d39 100644 --- a/tests/cases/fourslash/codeFixInferFromPrimitiveUsage.ts +++ b/tests/cases/fourslash/codeFixInferFromPrimitiveUsage.ts @@ -1,9 +1,10 @@ /// // @noImplicitAny: true -////function wrap( [| s |] ) { -//// return s.length + s.toUpperCase() +//// function wrap( [| s |] ) { +//// return s.length + s.indexOf('hi') //// } // https://github.com/Microsoft/TypeScript/issues/29330 -verify.rangeAfterCodeFix("s: string"); +verify.rangeAfterCodeFix("s: string | string[]"); + From 006a327320cd2118fc548c2d1464b0abccc5797e Mon Sep 17 00:00:00 2001 From: Justin Bay Date: Sat, 10 Aug 2019 13:50:14 -0400 Subject: [PATCH 047/159] Flag non-nullable values with call expressions in `if` statements as errors --- src/compiler/checker.ts | 20 +++- src/compiler/diagnosticMessages.json | 5 +- ...ruthinessCallExpressionCoercion.errors.txt | 69 ++++++++++++ .../truthinessCallExpressionCoercion.js | 94 ++++++++++++++++ .../truthinessCallExpressionCoercion.symbols | 97 ++++++++++++++++ .../truthinessCallExpressionCoercion.types | 105 ++++++++++++++++++ .../truthinessCallExpressionCoercion.ts | 52 +++++++++ 7 files changed, 440 insertions(+), 2 deletions(-) create mode 100644 tests/baselines/reference/truthinessCallExpressionCoercion.errors.txt create mode 100644 tests/baselines/reference/truthinessCallExpressionCoercion.js create mode 100644 tests/baselines/reference/truthinessCallExpressionCoercion.symbols create mode 100644 tests/baselines/reference/truthinessCallExpressionCoercion.types create mode 100644 tests/cases/compiler/truthinessCallExpressionCoercion.ts diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index cfad47b6533..f639db8b971 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -27930,7 +27930,25 @@ namespace ts { // Grammar checking checkGrammarStatementInAmbientContext(node); - checkTruthinessExpression(node.expression); + const type = checkTruthinessExpression(node.expression); + + if (strictNullChecks && + (node.expression.kind === SyntaxKind.Identifier || + node.expression.kind === SyntaxKind.PropertyAccessExpression || + node.expression.kind === SyntaxKind.ElementAccessExpression)) { + const possiblyFalsy = !!getFalsyFlags(type); + if (!possiblyFalsy) { + // While it technically should be invalid for any known-truthy value + // to be tested, we de-scope to functions as a heuristic to identify + // the most common bugs. There are too many false positives for values + // sourced from type definitions without strictNullChecks otherwise. + const callSignatures = getSignaturesOfType(type, SignatureKind.Call); + if (callSignatures.length > 0) { + error(node.expression, Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead); + } + } + } + checkSourceElement(node.thenStatement); if (node.thenStatement.kind === SyntaxKind.EmptyStatement) { diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index b296c224d08..4d310225465 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -2689,7 +2689,10 @@ "category": "Error", "code": 2773 }, - + "This condition will always return true since the function is always defined. Did you mean to call it instead?": { + "category": "Error", + "code": 2774 + }, "Import declaration '{0}' is using private name '{1}'.": { "category": "Error", "code": 4000 diff --git a/tests/baselines/reference/truthinessCallExpressionCoercion.errors.txt b/tests/baselines/reference/truthinessCallExpressionCoercion.errors.txt new file mode 100644 index 00000000000..0bd5a0cbb96 --- /dev/null +++ b/tests/baselines/reference/truthinessCallExpressionCoercion.errors.txt @@ -0,0 +1,69 @@ +tests/cases/compiler/truthinessCallExpressionCoercion.ts(3,5): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? +tests/cases/compiler/truthinessCallExpressionCoercion.ts(7,9): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? +tests/cases/compiler/truthinessCallExpressionCoercion.ts(24,9): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? +tests/cases/compiler/truthinessCallExpressionCoercion.ts(27,9): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? +tests/cases/compiler/truthinessCallExpressionCoercion.ts(44,13): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? + + +==== tests/cases/compiler/truthinessCallExpressionCoercion.ts (5 errors) ==== + function func() { return Math.random() > 0.5; } + + if (func) { // error + ~~~~ +!!! error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? + } + + function onlyErrorsWhenNonNullable(required: () => boolean, optional?: () => boolean) { + if (required) { // error + ~~~~~~~~ +!!! error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? + } + + if (required()) { // ok + } + + if (optional) { // ok + } + } + + function checksPropertyAndElementAccess() { + const x = { + foo: { + bar() { } + } + } + + if (x.foo.bar) { // error + ~~~~~~~~~ +!!! error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? + } + + if (x.foo['bar']) { // error + ~~~~~~~~~~~~ +!!! error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? + } + } + + function maybeBoolean(param: boolean | (() => boolean)) { + if (param) { // ok + } + } + + class Foo { + maybeIsUser?: () => boolean; + + isUser() { + return true; + } + + test() { + if (this.isUser) { // error + ~~~~~~~~~~~ +!!! error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? + } + + if (this.maybeIsUser) { // ok + } + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/truthinessCallExpressionCoercion.js b/tests/baselines/reference/truthinessCallExpressionCoercion.js new file mode 100644 index 00000000000..87c010f3502 --- /dev/null +++ b/tests/baselines/reference/truthinessCallExpressionCoercion.js @@ -0,0 +1,94 @@ +//// [truthinessCallExpressionCoercion.ts] +function func() { return Math.random() > 0.5; } + +if (func) { // error +} + +function onlyErrorsWhenNonNullable(required: () => boolean, optional?: () => boolean) { + if (required) { // error + } + + if (required()) { // ok + } + + if (optional) { // ok + } +} + +function checksPropertyAndElementAccess() { + const x = { + foo: { + bar() { } + } + } + + if (x.foo.bar) { // error + } + + if (x.foo['bar']) { // error + } +} + +function maybeBoolean(param: boolean | (() => boolean)) { + if (param) { // ok + } +} + +class Foo { + maybeIsUser?: () => boolean; + + isUser() { + return true; + } + + test() { + if (this.isUser) { // error + } + + if (this.maybeIsUser) { // ok + } + } +} + + +//// [truthinessCallExpressionCoercion.js] +function func() { return Math.random() > 0.5; } +if (func) { // error +} +function onlyErrorsWhenNonNullable(required, optional) { + if (required) { // error + } + if (required()) { // ok + } + if (optional) { // ok + } +} +function checksPropertyAndElementAccess() { + var x = { + foo: { + bar: function () { } + } + }; + if (x.foo.bar) { // error + } + if (x.foo['bar']) { // error + } +} +function maybeBoolean(param) { + if (param) { // ok + } +} +var Foo = /** @class */ (function () { + function Foo() { + } + Foo.prototype.isUser = function () { + return true; + }; + Foo.prototype.test = function () { + if (this.isUser) { // error + } + if (this.maybeIsUser) { // ok + } + }; + return Foo; +}()); diff --git a/tests/baselines/reference/truthinessCallExpressionCoercion.symbols b/tests/baselines/reference/truthinessCallExpressionCoercion.symbols new file mode 100644 index 00000000000..d6141c43941 --- /dev/null +++ b/tests/baselines/reference/truthinessCallExpressionCoercion.symbols @@ -0,0 +1,97 @@ +=== tests/cases/compiler/truthinessCallExpressionCoercion.ts === +function func() { return Math.random() > 0.5; } +>func : Symbol(func, Decl(truthinessCallExpressionCoercion.ts, 0, 0)) +>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) + +if (func) { // error +>func : Symbol(func, Decl(truthinessCallExpressionCoercion.ts, 0, 0)) +} + +function onlyErrorsWhenNonNullable(required: () => boolean, optional?: () => boolean) { +>onlyErrorsWhenNonNullable : Symbol(onlyErrorsWhenNonNullable, Decl(truthinessCallExpressionCoercion.ts, 3, 1)) +>required : Symbol(required, Decl(truthinessCallExpressionCoercion.ts, 5, 35)) +>optional : Symbol(optional, Decl(truthinessCallExpressionCoercion.ts, 5, 59)) + + if (required) { // error +>required : Symbol(required, Decl(truthinessCallExpressionCoercion.ts, 5, 35)) + } + + if (required()) { // ok +>required : Symbol(required, Decl(truthinessCallExpressionCoercion.ts, 5, 35)) + } + + if (optional) { // ok +>optional : Symbol(optional, Decl(truthinessCallExpressionCoercion.ts, 5, 59)) + } +} + +function checksPropertyAndElementAccess() { +>checksPropertyAndElementAccess : Symbol(checksPropertyAndElementAccess, Decl(truthinessCallExpressionCoercion.ts, 14, 1)) + + const x = { +>x : Symbol(x, Decl(truthinessCallExpressionCoercion.ts, 17, 9)) + + foo: { +>foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 17, 15)) + + bar() { } +>bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 18, 14)) + } + } + + if (x.foo.bar) { // error +>x.foo.bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 18, 14)) +>x.foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 17, 15)) +>x : Symbol(x, Decl(truthinessCallExpressionCoercion.ts, 17, 9)) +>foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 17, 15)) +>bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 18, 14)) + } + + if (x.foo['bar']) { // error +>x.foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 17, 15)) +>x : Symbol(x, Decl(truthinessCallExpressionCoercion.ts, 17, 9)) +>foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 17, 15)) +>'bar' : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 18, 14)) + } +} + +function maybeBoolean(param: boolean | (() => boolean)) { +>maybeBoolean : Symbol(maybeBoolean, Decl(truthinessCallExpressionCoercion.ts, 28, 1)) +>param : Symbol(param, Decl(truthinessCallExpressionCoercion.ts, 30, 22)) + + if (param) { // ok +>param : Symbol(param, Decl(truthinessCallExpressionCoercion.ts, 30, 22)) + } +} + +class Foo { +>Foo : Symbol(Foo, Decl(truthinessCallExpressionCoercion.ts, 33, 1)) + + maybeIsUser?: () => boolean; +>maybeIsUser : Symbol(Foo.maybeIsUser, Decl(truthinessCallExpressionCoercion.ts, 35, 11)) + + isUser() { +>isUser : Symbol(Foo.isUser, Decl(truthinessCallExpressionCoercion.ts, 36, 32)) + + return true; + } + + test() { +>test : Symbol(Foo.test, Decl(truthinessCallExpressionCoercion.ts, 40, 5)) + + if (this.isUser) { // error +>this.isUser : Symbol(Foo.isUser, Decl(truthinessCallExpressionCoercion.ts, 36, 32)) +>this : Symbol(Foo, Decl(truthinessCallExpressionCoercion.ts, 33, 1)) +>isUser : Symbol(Foo.isUser, Decl(truthinessCallExpressionCoercion.ts, 36, 32)) + } + + if (this.maybeIsUser) { // ok +>this.maybeIsUser : Symbol(Foo.maybeIsUser, Decl(truthinessCallExpressionCoercion.ts, 35, 11)) +>this : Symbol(Foo, Decl(truthinessCallExpressionCoercion.ts, 33, 1)) +>maybeIsUser : Symbol(Foo.maybeIsUser, Decl(truthinessCallExpressionCoercion.ts, 35, 11)) + } + } +} + diff --git a/tests/baselines/reference/truthinessCallExpressionCoercion.types b/tests/baselines/reference/truthinessCallExpressionCoercion.types new file mode 100644 index 00000000000..478c3984066 --- /dev/null +++ b/tests/baselines/reference/truthinessCallExpressionCoercion.types @@ -0,0 +1,105 @@ +=== tests/cases/compiler/truthinessCallExpressionCoercion.ts === +function func() { return Math.random() > 0.5; } +>func : () => boolean +>Math.random() > 0.5 : boolean +>Math.random() : number +>Math.random : () => number +>Math : Math +>random : () => number +>0.5 : 0.5 + +if (func) { // error +>func : () => boolean +} + +function onlyErrorsWhenNonNullable(required: () => boolean, optional?: () => boolean) { +>onlyErrorsWhenNonNullable : (required: () => boolean, optional?: (() => boolean) | undefined) => void +>required : () => boolean +>optional : (() => boolean) | undefined + + if (required) { // error +>required : () => boolean + } + + if (required()) { // ok +>required() : boolean +>required : () => boolean + } + + if (optional) { // ok +>optional : (() => boolean) | undefined + } +} + +function checksPropertyAndElementAccess() { +>checksPropertyAndElementAccess : () => void + + const x = { +>x : { foo: { bar(): void; }; } +>{ foo: { bar() { } } } : { foo: { bar(): void; }; } + + foo: { +>foo : { bar(): void; } +>{ bar() { } } : { bar(): void; } + + bar() { } +>bar : () => void + } + } + + if (x.foo.bar) { // error +>x.foo.bar : () => void +>x.foo : { bar(): void; } +>x : { foo: { bar(): void; }; } +>foo : { bar(): void; } +>bar : () => void + } + + if (x.foo['bar']) { // error +>x.foo['bar'] : () => void +>x.foo : { bar(): void; } +>x : { foo: { bar(): void; }; } +>foo : { bar(): void; } +>'bar' : "bar" + } +} + +function maybeBoolean(param: boolean | (() => boolean)) { +>maybeBoolean : (param: boolean | (() => boolean)) => void +>param : boolean | (() => boolean) + + if (param) { // ok +>param : boolean | (() => boolean) + } +} + +class Foo { +>Foo : Foo + + maybeIsUser?: () => boolean; +>maybeIsUser : (() => boolean) | undefined + + isUser() { +>isUser : () => boolean + + return true; +>true : true + } + + test() { +>test : () => void + + if (this.isUser) { // error +>this.isUser : () => boolean +>this : this +>isUser : () => boolean + } + + if (this.maybeIsUser) { // ok +>this.maybeIsUser : (() => boolean) | undefined +>this : this +>maybeIsUser : (() => boolean) | undefined + } + } +} + diff --git a/tests/cases/compiler/truthinessCallExpressionCoercion.ts b/tests/cases/compiler/truthinessCallExpressionCoercion.ts new file mode 100644 index 00000000000..1fa3105b9ed --- /dev/null +++ b/tests/cases/compiler/truthinessCallExpressionCoercion.ts @@ -0,0 +1,52 @@ +// @strictNullChecks:true + +function func() { return Math.random() > 0.5; } + +if (func) { // error +} + +function onlyErrorsWhenNonNullable(required: () => boolean, optional?: () => boolean) { + if (required) { // error + } + + if (required()) { // ok + } + + if (optional) { // ok + } +} + +function checksPropertyAndElementAccess() { + const x = { + foo: { + bar() { } + } + } + + if (x.foo.bar) { // error + } + + if (x.foo['bar']) { // error + } +} + +function maybeBoolean(param: boolean | (() => boolean)) { + if (param) { // ok + } +} + +class Foo { + maybeIsUser?: () => boolean; + + isUser() { + return true; + } + + test() { + if (this.isUser) { // error + } + + if (this.maybeIsUser) { // ok + } + } +} From 3c9e3383962255870450b02aa98c599743fa8cd5 Mon Sep 17 00:00:00 2001 From: Justin Bay Date: Sun, 18 Aug 2019 12:48:05 -0400 Subject: [PATCH 048/159] Only error when testing functions that are not used in the following block --- src/compiler/checker.ts | 70 ++++++-- src/compiler/core.ts | 2 +- src/compiler/program.ts | 22 ++- ...ruthinessCallExpressionCoercion.errors.txt | 72 +++++--- .../truthinessCallExpressionCoercion.js | 100 +++++++---- .../truthinessCallExpressionCoercion.symbols | 156 +++++++++++------ .../truthinessCallExpressionCoercion.types | 162 +++++++++++++----- .../truthinessCallExpressionCoercion.ts | 56 ++++-- 8 files changed, 443 insertions(+), 197 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index f639db8b971..32fa7e14c95 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -27931,24 +27931,7 @@ namespace ts { checkGrammarStatementInAmbientContext(node); const type = checkTruthinessExpression(node.expression); - - if (strictNullChecks && - (node.expression.kind === SyntaxKind.Identifier || - node.expression.kind === SyntaxKind.PropertyAccessExpression || - node.expression.kind === SyntaxKind.ElementAccessExpression)) { - const possiblyFalsy = !!getFalsyFlags(type); - if (!possiblyFalsy) { - // While it technically should be invalid for any known-truthy value - // to be tested, we de-scope to functions as a heuristic to identify - // the most common bugs. There are too many false positives for values - // sourced from type definitions without strictNullChecks otherwise. - const callSignatures = getSignaturesOfType(type, SignatureKind.Call); - if (callSignatures.length > 0) { - error(node.expression, Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead); - } - } - } - + checkTestingKnownTruthyCallableType(node, type); checkSourceElement(node.thenStatement); if (node.thenStatement.kind === SyntaxKind.EmptyStatement) { @@ -27958,6 +27941,57 @@ namespace ts { checkSourceElement(node.elseStatement); } + function checkTestingKnownTruthyCallableType(ifStatement: IfStatement, type: Type) { + if (!strictNullChecks) { + return; + } + + const testedNode = isIdentifier(ifStatement.expression) + ? ifStatement.expression + : isPropertyAccessExpression(ifStatement.expression) + ? ifStatement.expression.name + : undefined; + + if (!testedNode) { + return; + } + + const possiblyFalsy = getFalsyFlags(type); + if (possiblyFalsy) { + return; + } + + // While it technically should be invalid for any known-truthy value + // to be tested, we de-scope to functions unrefenced in the block as a + // heuristic to identify the most common bugs. There are too many + // false positives for values sourced from type definitions without + // strictNullChecks otherwise. + const callSignatures = getSignaturesOfType(type, SignatureKind.Call); + if (callSignatures.length === 0) { + return; + } + + const testedFunctionSymbol = getSymbolAtLocation(testedNode); + if (!testedFunctionSymbol) { + return; + } + + const functionIsUsedInBody = forEachChild(ifStatement.thenStatement, function check(childNode): boolean | undefined { + if (isIdentifier(childNode)) { + const childSymbol = getSymbolAtLocation(childNode); + if (childSymbol && childSymbol.id === testedFunctionSymbol.id) { + return true; + } + } + + return forEachChild(childNode, check); + }); + + if (!functionIsUsedInBody) { + error(ifStatement.expression, Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead); + } + } + function checkDoStatement(node: DoStatement) { // Grammar checking checkGrammarStatementInAmbientContext(node); diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 12fbd6fb4ff..96273122b99 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -1653,7 +1653,7 @@ namespace ts { */ export function compose(...args: ((t: T) => T)[]): (t: T) => T; export function compose(a: (t: T) => T, b: (t: T) => T, c: (t: T) => T, d: (t: T) => T, e: (t: T) => T): (t: T) => T { - if (e) { + if (!!e) { const args: ((t: T) => T)[] = []; for (let i = 0; i < arguments.length; i++) { args[i] = arguments[i]; diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 76c92ad74bb..0c3338ae312 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1362,18 +1362,16 @@ namespace ts { // try to verify results of module resolution for (const { oldFile: oldSourceFile, newFile: newSourceFile } of modifiedSourceFiles) { const newSourceFilePath = getNormalizedAbsolutePath(newSourceFile.originalFileName, currentDirectory); - if (resolveModuleNamesWorker) { - const moduleNames = getModuleNames(newSourceFile); - const resolutions = resolveModuleNamesReusingOldState(moduleNames, newSourceFilePath, newSourceFile); - // ensure that module resolution results are still correct - const resolutionsChanged = hasChangesInResolutions(moduleNames, resolutions, oldSourceFile.resolvedModules, moduleResolutionIsEqualTo); - if (resolutionsChanged) { - oldProgram.structureIsReused = StructureIsReused.SafeModules; - newSourceFile.resolvedModules = zipToMap(moduleNames, resolutions); - } - else { - newSourceFile.resolvedModules = oldSourceFile.resolvedModules; - } + const moduleNames = getModuleNames(newSourceFile); + const resolutions = resolveModuleNamesReusingOldState(moduleNames, newSourceFilePath, newSourceFile); + // ensure that module resolution results are still correct + const resolutionsChanged = hasChangesInResolutions(moduleNames, resolutions, oldSourceFile.resolvedModules, moduleResolutionIsEqualTo); + if (resolutionsChanged) { + oldProgram.structureIsReused = StructureIsReused.SafeModules; + newSourceFile.resolvedModules = zipToMap(moduleNames, resolutions); + } + else { + newSourceFile.resolvedModules = oldSourceFile.resolvedModules; } if (resolveTypeReferenceDirectiveNamesWorker) { // We lower-case all type references because npm automatically lowercases all packages. See GH#9824. diff --git a/tests/baselines/reference/truthinessCallExpressionCoercion.errors.txt b/tests/baselines/reference/truthinessCallExpressionCoercion.errors.txt index 0bd5a0cbb96..1599a70db4e 100644 --- a/tests/baselines/reference/truthinessCallExpressionCoercion.errors.txt +++ b/tests/baselines/reference/truthinessCallExpressionCoercion.errors.txt @@ -1,35 +1,63 @@ -tests/cases/compiler/truthinessCallExpressionCoercion.ts(3,5): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? -tests/cases/compiler/truthinessCallExpressionCoercion.ts(7,9): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? -tests/cases/compiler/truthinessCallExpressionCoercion.ts(24,9): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? -tests/cases/compiler/truthinessCallExpressionCoercion.ts(27,9): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? -tests/cases/compiler/truthinessCallExpressionCoercion.ts(44,13): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? +tests/cases/compiler/truthinessCallExpressionCoercion.ts(2,9): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? +tests/cases/compiler/truthinessCallExpressionCoercion.ts(18,9): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? +tests/cases/compiler/truthinessCallExpressionCoercion.ts(36,9): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? +tests/cases/compiler/truthinessCallExpressionCoercion.ts(50,9): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? +tests/cases/compiler/truthinessCallExpressionCoercion.ts(66,13): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? ==== tests/cases/compiler/truthinessCallExpressionCoercion.ts (5 errors) ==== - function func() { return Math.random() > 0.5; } - - if (func) { // error - ~~~~ -!!! error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? - } - - function onlyErrorsWhenNonNullable(required: () => boolean, optional?: () => boolean) { + function onlyErrorsWhenTestingNonNullableFunctionType(required: () => boolean, optional?: () => boolean) { if (required) { // error ~~~~~~~~ !!! error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? } - if (required()) { // ok + if (optional) { // ok } - if (optional) { // ok + if (!!required) { // ok + } + + if (required()) { // ok } } - function checksPropertyAndElementAccess() { + function onlyErrorsWhenUnusedInBody() { + function test() { return Math.random() > 0.5; } + + if (test) { // error + ~~~~ +!!! error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? + console.log('test'); + } + + if (test) { // ok + console.log(test); + } + + if (test) { // ok + test(); + } + + if (test) { // ok + [() => null].forEach(() => { + test(); + }); + } + + if (test) { // error + ~~~~ +!!! error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? + [() => null].forEach(test => { + test(); + }); + } + } + + function checksPropertyAccess() { const x = { foo: { - bar() { } + bar() { return true; } } } @@ -37,15 +65,9 @@ tests/cases/compiler/truthinessCallExpressionCoercion.ts(44,13): error TS2774: T ~~~~~~~~~ !!! error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? } - - if (x.foo['bar']) { // error - ~~~~~~~~~~~~ -!!! error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? - } - } - function maybeBoolean(param: boolean | (() => boolean)) { - if (param) { // ok + if (x.foo.bar) { // ok + x.foo.bar; } } diff --git a/tests/baselines/reference/truthinessCallExpressionCoercion.js b/tests/baselines/reference/truthinessCallExpressionCoercion.js index 87c010f3502..19ab1722c81 100644 --- a/tests/baselines/reference/truthinessCallExpressionCoercion.js +++ b/tests/baselines/reference/truthinessCallExpressionCoercion.js @@ -1,36 +1,58 @@ //// [truthinessCallExpressionCoercion.ts] -function func() { return Math.random() > 0.5; } - -if (func) { // error -} - -function onlyErrorsWhenNonNullable(required: () => boolean, optional?: () => boolean) { +function onlyErrorsWhenTestingNonNullableFunctionType(required: () => boolean, optional?: () => boolean) { if (required) { // error } - if (required()) { // ok - } - if (optional) { // ok } + + if (!!required) { // ok + } + + if (required()) { // ok + } } -function checksPropertyAndElementAccess() { +function onlyErrorsWhenUnusedInBody() { + function test() { return Math.random() > 0.5; } + + if (test) { // error + console.log('test'); + } + + if (test) { // ok + console.log(test); + } + + if (test) { // ok + test(); + } + + if (test) { // ok + [() => null].forEach(() => { + test(); + }); + } + + if (test) { // error + [() => null].forEach(test => { + test(); + }); + } +} + +function checksPropertyAccess() { const x = { foo: { - bar() { } + bar() { return true; } } } if (x.foo.bar) { // error } - - if (x.foo['bar']) { // error - } -} -function maybeBoolean(param: boolean | (() => boolean)) { - if (param) { // ok + if (x.foo.bar) { // ok + x.foo.bar; } } @@ -52,30 +74,48 @@ class Foo { //// [truthinessCallExpressionCoercion.js] -function func() { return Math.random() > 0.5; } -if (func) { // error -} -function onlyErrorsWhenNonNullable(required, optional) { +function onlyErrorsWhenTestingNonNullableFunctionType(required, optional) { if (required) { // error } - if (required()) { // ok - } if (optional) { // ok } + if (!!required) { // ok + } + if (required()) { // ok + } } -function checksPropertyAndElementAccess() { +function onlyErrorsWhenUnusedInBody() { + function test() { return Math.random() > 0.5; } + if (test) { // error + console.log('test'); + } + if (test) { // ok + console.log(test); + } + if (test) { // ok + test(); + } + if (test) { // ok + [function () { return null; }].forEach(function () { + test(); + }); + } + if (test) { // error + [function () { return null; }].forEach(function (test) { + test(); + }); + } +} +function checksPropertyAccess() { var x = { foo: { - bar: function () { } + bar: function () { return true; } } }; if (x.foo.bar) { // error } - if (x.foo['bar']) { // error - } -} -function maybeBoolean(param) { - if (param) { // ok + if (x.foo.bar) { // ok + x.foo.bar; } } var Foo = /** @class */ (function () { diff --git a/tests/baselines/reference/truthinessCallExpressionCoercion.symbols b/tests/baselines/reference/truthinessCallExpressionCoercion.symbols index d6141c43941..cbfe456a82c 100644 --- a/tests/baselines/reference/truthinessCallExpressionCoercion.symbols +++ b/tests/baselines/reference/truthinessCallExpressionCoercion.symbols @@ -1,96 +1,152 @@ === tests/cases/compiler/truthinessCallExpressionCoercion.ts === -function func() { return Math.random() > 0.5; } ->func : Symbol(func, Decl(truthinessCallExpressionCoercion.ts, 0, 0)) +function onlyErrorsWhenTestingNonNullableFunctionType(required: () => boolean, optional?: () => boolean) { +>onlyErrorsWhenTestingNonNullableFunctionType : Symbol(onlyErrorsWhenTestingNonNullableFunctionType, Decl(truthinessCallExpressionCoercion.ts, 0, 0)) +>required : Symbol(required, Decl(truthinessCallExpressionCoercion.ts, 0, 54)) +>optional : Symbol(optional, Decl(truthinessCallExpressionCoercion.ts, 0, 78)) + + if (required) { // error +>required : Symbol(required, Decl(truthinessCallExpressionCoercion.ts, 0, 54)) + } + + if (optional) { // ok +>optional : Symbol(optional, Decl(truthinessCallExpressionCoercion.ts, 0, 78)) + } + + if (!!required) { // ok +>required : Symbol(required, Decl(truthinessCallExpressionCoercion.ts, 0, 54)) + } + + if (required()) { // ok +>required : Symbol(required, Decl(truthinessCallExpressionCoercion.ts, 0, 54)) + } +} + +function onlyErrorsWhenUnusedInBody() { +>onlyErrorsWhenUnusedInBody : Symbol(onlyErrorsWhenUnusedInBody, Decl(truthinessCallExpressionCoercion.ts, 12, 1)) + + function test() { return Math.random() > 0.5; } +>test : Symbol(test, Decl(truthinessCallExpressionCoercion.ts, 14, 39)) >Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) >Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --)) -if (func) { // error ->func : Symbol(func, Decl(truthinessCallExpressionCoercion.ts, 0, 0)) -} + if (test) { // error +>test : Symbol(test, Decl(truthinessCallExpressionCoercion.ts, 14, 39)) -function onlyErrorsWhenNonNullable(required: () => boolean, optional?: () => boolean) { ->onlyErrorsWhenNonNullable : Symbol(onlyErrorsWhenNonNullable, Decl(truthinessCallExpressionCoercion.ts, 3, 1)) ->required : Symbol(required, Decl(truthinessCallExpressionCoercion.ts, 5, 35)) ->optional : Symbol(optional, Decl(truthinessCallExpressionCoercion.ts, 5, 59)) + console.log('test'); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) + } + + if (test) { // ok +>test : Symbol(test, Decl(truthinessCallExpressionCoercion.ts, 14, 39)) - if (required) { // error ->required : Symbol(required, Decl(truthinessCallExpressionCoercion.ts, 5, 35)) + console.log(test); +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) +>test : Symbol(test, Decl(truthinessCallExpressionCoercion.ts, 14, 39)) } - if (required()) { // ok ->required : Symbol(required, Decl(truthinessCallExpressionCoercion.ts, 5, 35)) - } + if (test) { // ok +>test : Symbol(test, Decl(truthinessCallExpressionCoercion.ts, 14, 39)) - if (optional) { // ok ->optional : Symbol(optional, Decl(truthinessCallExpressionCoercion.ts, 5, 59)) + test(); +>test : Symbol(test, Decl(truthinessCallExpressionCoercion.ts, 14, 39)) + } + + if (test) { // ok +>test : Symbol(test, Decl(truthinessCallExpressionCoercion.ts, 14, 39)) + + [() => null].forEach(() => { +>[() => null].forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --)) +>forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --)) + + test(); +>test : Symbol(test, Decl(truthinessCallExpressionCoercion.ts, 14, 39)) + + }); + } + + if (test) { // error +>test : Symbol(test, Decl(truthinessCallExpressionCoercion.ts, 14, 39)) + + [() => null].forEach(test => { +>[() => null].forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --)) +>forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --)) +>test : Symbol(test, Decl(truthinessCallExpressionCoercion.ts, 36, 29)) + + test(); +>test : Symbol(test, Decl(truthinessCallExpressionCoercion.ts, 36, 29)) + + }); } } -function checksPropertyAndElementAccess() { ->checksPropertyAndElementAccess : Symbol(checksPropertyAndElementAccess, Decl(truthinessCallExpressionCoercion.ts, 14, 1)) +function checksPropertyAccess() { +>checksPropertyAccess : Symbol(checksPropertyAccess, Decl(truthinessCallExpressionCoercion.ts, 40, 1)) const x = { ->x : Symbol(x, Decl(truthinessCallExpressionCoercion.ts, 17, 9)) +>x : Symbol(x, Decl(truthinessCallExpressionCoercion.ts, 43, 9)) foo: { ->foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 17, 15)) +>foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 43, 15)) - bar() { } ->bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 18, 14)) + bar() { return true; } +>bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 44, 14)) } } if (x.foo.bar) { // error ->x.foo.bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 18, 14)) ->x.foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 17, 15)) ->x : Symbol(x, Decl(truthinessCallExpressionCoercion.ts, 17, 9)) ->foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 17, 15)) ->bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 18, 14)) +>x.foo.bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 44, 14)) +>x.foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 43, 15)) +>x : Symbol(x, Decl(truthinessCallExpressionCoercion.ts, 43, 9)) +>foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 43, 15)) +>bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 44, 14)) } - - if (x.foo['bar']) { // error ->x.foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 17, 15)) ->x : Symbol(x, Decl(truthinessCallExpressionCoercion.ts, 17, 9)) ->foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 17, 15)) ->'bar' : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 18, 14)) - } -} -function maybeBoolean(param: boolean | (() => boolean)) { ->maybeBoolean : Symbol(maybeBoolean, Decl(truthinessCallExpressionCoercion.ts, 28, 1)) ->param : Symbol(param, Decl(truthinessCallExpressionCoercion.ts, 30, 22)) + if (x.foo.bar) { // ok +>x.foo.bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 44, 14)) +>x.foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 43, 15)) +>x : Symbol(x, Decl(truthinessCallExpressionCoercion.ts, 43, 9)) +>foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 43, 15)) +>bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 44, 14)) - if (param) { // ok ->param : Symbol(param, Decl(truthinessCallExpressionCoercion.ts, 30, 22)) + x.foo.bar; +>x.foo.bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 44, 14)) +>x.foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 43, 15)) +>x : Symbol(x, Decl(truthinessCallExpressionCoercion.ts, 43, 9)) +>foo : Symbol(foo, Decl(truthinessCallExpressionCoercion.ts, 43, 15)) +>bar : Symbol(bar, Decl(truthinessCallExpressionCoercion.ts, 44, 14)) } } class Foo { ->Foo : Symbol(Foo, Decl(truthinessCallExpressionCoercion.ts, 33, 1)) +>Foo : Symbol(Foo, Decl(truthinessCallExpressionCoercion.ts, 55, 1)) maybeIsUser?: () => boolean; ->maybeIsUser : Symbol(Foo.maybeIsUser, Decl(truthinessCallExpressionCoercion.ts, 35, 11)) +>maybeIsUser : Symbol(Foo.maybeIsUser, Decl(truthinessCallExpressionCoercion.ts, 57, 11)) isUser() { ->isUser : Symbol(Foo.isUser, Decl(truthinessCallExpressionCoercion.ts, 36, 32)) +>isUser : Symbol(Foo.isUser, Decl(truthinessCallExpressionCoercion.ts, 58, 32)) return true; } test() { ->test : Symbol(Foo.test, Decl(truthinessCallExpressionCoercion.ts, 40, 5)) +>test : Symbol(Foo.test, Decl(truthinessCallExpressionCoercion.ts, 62, 5)) if (this.isUser) { // error ->this.isUser : Symbol(Foo.isUser, Decl(truthinessCallExpressionCoercion.ts, 36, 32)) ->this : Symbol(Foo, Decl(truthinessCallExpressionCoercion.ts, 33, 1)) ->isUser : Symbol(Foo.isUser, Decl(truthinessCallExpressionCoercion.ts, 36, 32)) +>this.isUser : Symbol(Foo.isUser, Decl(truthinessCallExpressionCoercion.ts, 58, 32)) +>this : Symbol(Foo, Decl(truthinessCallExpressionCoercion.ts, 55, 1)) +>isUser : Symbol(Foo.isUser, Decl(truthinessCallExpressionCoercion.ts, 58, 32)) } if (this.maybeIsUser) { // ok ->this.maybeIsUser : Symbol(Foo.maybeIsUser, Decl(truthinessCallExpressionCoercion.ts, 35, 11)) ->this : Symbol(Foo, Decl(truthinessCallExpressionCoercion.ts, 33, 1)) ->maybeIsUser : Symbol(Foo.maybeIsUser, Decl(truthinessCallExpressionCoercion.ts, 35, 11)) +>this.maybeIsUser : Symbol(Foo.maybeIsUser, Decl(truthinessCallExpressionCoercion.ts, 57, 11)) +>this : Symbol(Foo, Decl(truthinessCallExpressionCoercion.ts, 55, 1)) +>maybeIsUser : Symbol(Foo.maybeIsUser, Decl(truthinessCallExpressionCoercion.ts, 57, 11)) } } } diff --git a/tests/baselines/reference/truthinessCallExpressionCoercion.types b/tests/baselines/reference/truthinessCallExpressionCoercion.types index 478c3984066..1cbb89c14a3 100644 --- a/tests/baselines/reference/truthinessCallExpressionCoercion.types +++ b/tests/baselines/reference/truthinessCallExpressionCoercion.types @@ -1,19 +1,6 @@ === tests/cases/compiler/truthinessCallExpressionCoercion.ts === -function func() { return Math.random() > 0.5; } ->func : () => boolean ->Math.random() > 0.5 : boolean ->Math.random() : number ->Math.random : () => number ->Math : Math ->random : () => number ->0.5 : 0.5 - -if (func) { // error ->func : () => boolean -} - -function onlyErrorsWhenNonNullable(required: () => boolean, optional?: () => boolean) { ->onlyErrorsWhenNonNullable : (required: () => boolean, optional?: (() => boolean) | undefined) => void +function onlyErrorsWhenTestingNonNullableFunctionType(required: () => boolean, optional?: () => boolean) { +>onlyErrorsWhenTestingNonNullableFunctionType : (required: () => boolean, optional?: (() => boolean) | undefined) => void >required : () => boolean >optional : (() => boolean) | undefined @@ -21,55 +8,142 @@ function onlyErrorsWhenNonNullable(required: () => boolean, optional?: () => boo >required : () => boolean } + if (optional) { // ok +>optional : (() => boolean) | undefined + } + + if (!!required) { // ok +>!!required : true +>!required : false +>required : () => boolean + } + if (required()) { // ok >required() : boolean >required : () => boolean } +} - if (optional) { // ok ->optional : (() => boolean) | undefined +function onlyErrorsWhenUnusedInBody() { +>onlyErrorsWhenUnusedInBody : () => void + + function test() { return Math.random() > 0.5; } +>test : () => boolean +>Math.random() > 0.5 : boolean +>Math.random() : number +>Math.random : () => number +>Math : Math +>random : () => number +>0.5 : 0.5 + + if (test) { // error +>test : () => boolean + + console.log('test'); +>console.log('test') : void +>console.log : (message?: any, ...optionalParams: any[]) => void +>console : Console +>log : (message?: any, ...optionalParams: any[]) => void +>'test' : "test" + } + + if (test) { // ok +>test : () => boolean + + console.log(test); +>console.log(test) : void +>console.log : (message?: any, ...optionalParams: any[]) => void +>console : Console +>log : (message?: any, ...optionalParams: any[]) => void +>test : () => boolean + } + + if (test) { // ok +>test : () => boolean + + test(); +>test() : boolean +>test : () => boolean + } + + if (test) { // ok +>test : () => boolean + + [() => null].forEach(() => { +>[() => null].forEach(() => { test(); }) : void +>[() => null].forEach : (callbackfn: (value: () => null, index: number, array: (() => null)[]) => void, thisArg?: any) => void +>[() => null] : (() => null)[] +>() => null : () => null +>null : null +>forEach : (callbackfn: (value: () => null, index: number, array: (() => null)[]) => void, thisArg?: any) => void +>() => { test(); } : () => void + + test(); +>test() : boolean +>test : () => boolean + + }); + } + + if (test) { // error +>test : () => boolean + + [() => null].forEach(test => { +>[() => null].forEach(test => { test(); }) : void +>[() => null].forEach : (callbackfn: (value: () => null, index: number, array: (() => null)[]) => void, thisArg?: any) => void +>[() => null] : (() => null)[] +>() => null : () => null +>null : null +>forEach : (callbackfn: (value: () => null, index: number, array: (() => null)[]) => void, thisArg?: any) => void +>test => { test(); } : (test: () => null) => void +>test : () => null + + test(); +>test() : null +>test : () => null + + }); } } -function checksPropertyAndElementAccess() { ->checksPropertyAndElementAccess : () => void +function checksPropertyAccess() { +>checksPropertyAccess : () => void const x = { ->x : { foo: { bar(): void; }; } ->{ foo: { bar() { } } } : { foo: { bar(): void; }; } +>x : { foo: { bar(): boolean; }; } +>{ foo: { bar() { return true; } } } : { foo: { bar(): boolean; }; } foo: { ->foo : { bar(): void; } ->{ bar() { } } : { bar(): void; } +>foo : { bar(): boolean; } +>{ bar() { return true; } } : { bar(): boolean; } - bar() { } ->bar : () => void + bar() { return true; } +>bar : () => boolean +>true : true } } if (x.foo.bar) { // error ->x.foo.bar : () => void ->x.foo : { bar(): void; } ->x : { foo: { bar(): void; }; } ->foo : { bar(): void; } ->bar : () => void +>x.foo.bar : () => boolean +>x.foo : { bar(): boolean; } +>x : { foo: { bar(): boolean; }; } +>foo : { bar(): boolean; } +>bar : () => boolean } - - if (x.foo['bar']) { // error ->x.foo['bar'] : () => void ->x.foo : { bar(): void; } ->x : { foo: { bar(): void; }; } ->foo : { bar(): void; } ->'bar' : "bar" - } -} -function maybeBoolean(param: boolean | (() => boolean)) { ->maybeBoolean : (param: boolean | (() => boolean)) => void ->param : boolean | (() => boolean) + if (x.foo.bar) { // ok +>x.foo.bar : () => boolean +>x.foo : { bar(): boolean; } +>x : { foo: { bar(): boolean; }; } +>foo : { bar(): boolean; } +>bar : () => boolean - if (param) { // ok ->param : boolean | (() => boolean) + x.foo.bar; +>x.foo.bar : () => boolean +>x.foo : { bar(): boolean; } +>x : { foo: { bar(): boolean; }; } +>foo : { bar(): boolean; } +>bar : () => boolean } } diff --git a/tests/cases/compiler/truthinessCallExpressionCoercion.ts b/tests/cases/compiler/truthinessCallExpressionCoercion.ts index 1fa3105b9ed..431a0b0463c 100644 --- a/tests/cases/compiler/truthinessCallExpressionCoercion.ts +++ b/tests/cases/compiler/truthinessCallExpressionCoercion.ts @@ -1,37 +1,59 @@ // @strictNullChecks:true -function func() { return Math.random() > 0.5; } - -if (func) { // error -} - -function onlyErrorsWhenNonNullable(required: () => boolean, optional?: () => boolean) { +function onlyErrorsWhenTestingNonNullableFunctionType(required: () => boolean, optional?: () => boolean) { if (required) { // error } - if (required()) { // ok - } - if (optional) { // ok } + + if (!!required) { // ok + } + + if (required()) { // ok + } } -function checksPropertyAndElementAccess() { +function onlyErrorsWhenUnusedInBody() { + function test() { return Math.random() > 0.5; } + + if (test) { // error + console.log('test'); + } + + if (test) { // ok + console.log(test); + } + + if (test) { // ok + test(); + } + + if (test) { // ok + [() => null].forEach(() => { + test(); + }); + } + + if (test) { // error + [() => null].forEach(test => { + test(); + }); + } +} + +function checksPropertyAccess() { const x = { foo: { - bar() { } + bar() { return true; } } } if (x.foo.bar) { // error } - - if (x.foo['bar']) { // error - } -} -function maybeBoolean(param: boolean | (() => boolean)) { - if (param) { // ok + if (x.foo.bar) { // ok + x.foo.bar; } } From 8ffc42f5a6739f257ecf52a24fee0c45c1c282a3 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 3 Sep 2019 15:24:49 -0700 Subject: [PATCH 049/159] Don't instantiate-in-context-of when inferring to type variable --- src/compiler/checker.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index cfad47b6533..f51aee47a1a 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -177,6 +177,7 @@ namespace ts { const enum ContextFlags { None = 0, Signature = 1 << 0, // Obtaining contextual signature + NoConstraints = 1 << 1, // Don't obtain type variable constraints } const enum AccessFlags { @@ -19193,7 +19194,7 @@ namespace ts { getContextualTypeForObjectLiteralMethod(node, contextFlags) : getContextualType(node, contextFlags); const instantiatedType = instantiateContextualType(contextualType, node, contextFlags); - if (instantiatedType) { + if (instantiatedType && !(contextFlags && contextFlags & ContextFlags.NoConstraints && instantiatedType.flags & TypeFlags.TypeVariable)) { const apparentType = mapType(instantiatedType, getApparentType, /*noReductions*/ true); if (apparentType.flags & TypeFlags.Union) { if (isObjectLiteralExpression(node)) { @@ -25098,8 +25099,8 @@ namespace ts { const constructSignature = getSingleSignature(type, SignatureKind.Construct, /*allowMembers*/ true); const signature = callSignature || constructSignature; if (signature && signature.typeParameters) { - const contextualType = getApparentTypeOfContextualType(node); - if (contextualType && !isMixinConstructorType(contextualType)) { + const contextualType = getApparentTypeOfContextualType(node, ContextFlags.NoConstraints); + if (contextualType) { const contextualSignature = getSingleSignature(getNonNullableType(contextualType), callSignature ? SignatureKind.Call : SignatureKind.Construct, /*allowMembers*/ false); if (contextualSignature && !contextualSignature.typeParameters) { if (checkMode & CheckMode.SkipGenericFunctions) { From c02fdaa590ecea073894d0d05b3cadd60270d5ff Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 3 Sep 2019 16:36:41 -0700 Subject: [PATCH 050/159] Accept new baselines --- .../reference/functionConstraintSatisfaction2.types | 4 ++-- .../reference/functionConstraintSatisfaction3.types | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/baselines/reference/functionConstraintSatisfaction2.types b/tests/baselines/reference/functionConstraintSatisfaction2.types index f5a7eb0fd65..f0a0f3b61f2 100644 --- a/tests/baselines/reference/functionConstraintSatisfaction2.types +++ b/tests/baselines/reference/functionConstraintSatisfaction2.types @@ -79,8 +79,8 @@ var r7 = foo2(b); >b : new (x: string) => string var r8 = foo2((x: U) => x); // no error expected ->r8 : (x: string) => string ->foo2((x: U) => x) : (x: string) => string +>r8 : (x: U) => U +>foo2((x: U) => x) : (x: U) => U >foo2 : string>(x: T) => T >(x: U) => x : (x: U) => U >x : U diff --git a/tests/baselines/reference/functionConstraintSatisfaction3.types b/tests/baselines/reference/functionConstraintSatisfaction3.types index 499f73b1664..dc760608c73 100644 --- a/tests/baselines/reference/functionConstraintSatisfaction3.types +++ b/tests/baselines/reference/functionConstraintSatisfaction3.types @@ -103,16 +103,16 @@ var c2: { (x: T): T; (x: T, y: T): T }; >y : T var r9 = foo(function (x: U) { return x; }); ->r9 : (x: string) => string ->foo(function (x: U) { return x; }) : (x: string) => string +>r9 : (x: U) => U +>foo(function (x: U) { return x; }) : (x: U) => U >foo : string>(x: T) => T >function (x: U) { return x; } : (x: U) => U >x : U >x : U var r10 = foo((x: U) => x); ->r10 : (x: string) => string ->foo((x: U) => x) : (x: string) => string +>r10 : (x: U) => U +>foo((x: U) => x) : (x: U) => U >foo : string>(x: T) => T >(x: U) => x : (x: U) => U >x : U From 4bd9b62fa6e02cc72eb511a23cc42ea1dc153f86 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 3 Sep 2019 17:23:43 -0700 Subject: [PATCH 051/159] Add regression tests --- .../contextualSignatureInstantiation4.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/cases/compiler/contextualSignatureInstantiation4.ts diff --git a/tests/cases/compiler/contextualSignatureInstantiation4.ts b/tests/cases/compiler/contextualSignatureInstantiation4.ts new file mode 100644 index 00000000000..6c29ca3d40a --- /dev/null +++ b/tests/cases/compiler/contextualSignatureInstantiation4.ts @@ -0,0 +1,20 @@ +// @strict: true + +// Repros from #32976 + +declare class Banana { constructor(a: string, property: T) } + +declare function fruitFactory1(Fruit: new (...args: any[]) => TFruit): TFruit +const banana1 = fruitFactory1(Banana) // Banana + +declare function fruitFactory2(Fruit: new (a: string, ...args: any[]) => TFruit): TFruit +const banana2 = fruitFactory2(Banana) // Banana + +declare function fruitFactory3(Fruit: new (a: string, s: "foo", ...args: any[]) => TFruit): TFruit +const banana3 = fruitFactory3(Banana) // Banana<"foo"> + +declare function fruitFactory4(Fruit: new (a: string, ...args: "foo"[]) => TFruit): TFruit +const banana4 = fruitFactory4(Banana) // Banana<"foo"> + +declare function fruitFactory5(Fruit: new (...args: "foo"[]) => TFruit): TFruit +const banana5 = fruitFactory5(Banana) // Banana<"foo"> From bbec8b36ef346e497a90bc99c00556dc97939976 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 3 Sep 2019 17:23:52 -0700 Subject: [PATCH 052/159] Accept new baselines --- .../contextualSignatureInstantiation4.js | 29 +++++++ .../contextualSignatureInstantiation4.symbols | 79 +++++++++++++++++++ .../contextualSignatureInstantiation4.types | 67 ++++++++++++++++ 3 files changed, 175 insertions(+) create mode 100644 tests/baselines/reference/contextualSignatureInstantiation4.js create mode 100644 tests/baselines/reference/contextualSignatureInstantiation4.symbols create mode 100644 tests/baselines/reference/contextualSignatureInstantiation4.types diff --git a/tests/baselines/reference/contextualSignatureInstantiation4.js b/tests/baselines/reference/contextualSignatureInstantiation4.js new file mode 100644 index 00000000000..8db041b29b5 --- /dev/null +++ b/tests/baselines/reference/contextualSignatureInstantiation4.js @@ -0,0 +1,29 @@ +//// [contextualSignatureInstantiation4.ts] +// Repros from #32976 + +declare class Banana { constructor(a: string, property: T) } + +declare function fruitFactory1(Fruit: new (...args: any[]) => TFruit): TFruit +const banana1 = fruitFactory1(Banana) // Banana + +declare function fruitFactory2(Fruit: new (a: string, ...args: any[]) => TFruit): TFruit +const banana2 = fruitFactory2(Banana) // Banana + +declare function fruitFactory3(Fruit: new (a: string, s: "foo", ...args: any[]) => TFruit): TFruit +const banana3 = fruitFactory3(Banana) // Banana<"foo"> + +declare function fruitFactory4(Fruit: new (a: string, ...args: "foo"[]) => TFruit): TFruit +const banana4 = fruitFactory4(Banana) // Banana<"foo"> + +declare function fruitFactory5(Fruit: new (...args: "foo"[]) => TFruit): TFruit +const banana5 = fruitFactory5(Banana) // Banana<"foo"> + + +//// [contextualSignatureInstantiation4.js] +"use strict"; +// Repros from #32976 +var banana1 = fruitFactory1(Banana); // Banana +var banana2 = fruitFactory2(Banana); // Banana +var banana3 = fruitFactory3(Banana); // Banana<"foo"> +var banana4 = fruitFactory4(Banana); // Banana<"foo"> +var banana5 = fruitFactory5(Banana); // Banana<"foo"> diff --git a/tests/baselines/reference/contextualSignatureInstantiation4.symbols b/tests/baselines/reference/contextualSignatureInstantiation4.symbols new file mode 100644 index 00000000000..a08486b43d8 --- /dev/null +++ b/tests/baselines/reference/contextualSignatureInstantiation4.symbols @@ -0,0 +1,79 @@ +=== tests/cases/compiler/contextualSignatureInstantiation4.ts === +// Repros from #32976 + +declare class Banana { constructor(a: string, property: T) } +>Banana : Symbol(Banana, Decl(contextualSignatureInstantiation4.ts, 0, 0)) +>T : Symbol(T, Decl(contextualSignatureInstantiation4.ts, 2, 21)) +>a : Symbol(a, Decl(contextualSignatureInstantiation4.ts, 2, 53)) +>property : Symbol(property, Decl(contextualSignatureInstantiation4.ts, 2, 63)) +>T : Symbol(T, Decl(contextualSignatureInstantiation4.ts, 2, 21)) + +declare function fruitFactory1(Fruit: new (...args: any[]) => TFruit): TFruit +>fruitFactory1 : Symbol(fruitFactory1, Decl(contextualSignatureInstantiation4.ts, 2, 78)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 4, 31)) +>Fruit : Symbol(Fruit, Decl(contextualSignatureInstantiation4.ts, 4, 39)) +>args : Symbol(args, Decl(contextualSignatureInstantiation4.ts, 4, 51)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 4, 31)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 4, 31)) + +const banana1 = fruitFactory1(Banana) // Banana +>banana1 : Symbol(banana1, Decl(contextualSignatureInstantiation4.ts, 5, 5)) +>fruitFactory1 : Symbol(fruitFactory1, Decl(contextualSignatureInstantiation4.ts, 2, 78)) +>Banana : Symbol(Banana, Decl(contextualSignatureInstantiation4.ts, 0, 0)) + +declare function fruitFactory2(Fruit: new (a: string, ...args: any[]) => TFruit): TFruit +>fruitFactory2 : Symbol(fruitFactory2, Decl(contextualSignatureInstantiation4.ts, 5, 37)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 7, 31)) +>Fruit : Symbol(Fruit, Decl(contextualSignatureInstantiation4.ts, 7, 39)) +>a : Symbol(a, Decl(contextualSignatureInstantiation4.ts, 7, 51)) +>args : Symbol(args, Decl(contextualSignatureInstantiation4.ts, 7, 61)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 7, 31)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 7, 31)) + +const banana2 = fruitFactory2(Banana) // Banana +>banana2 : Symbol(banana2, Decl(contextualSignatureInstantiation4.ts, 8, 5)) +>fruitFactory2 : Symbol(fruitFactory2, Decl(contextualSignatureInstantiation4.ts, 5, 37)) +>Banana : Symbol(Banana, Decl(contextualSignatureInstantiation4.ts, 0, 0)) + +declare function fruitFactory3(Fruit: new (a: string, s: "foo", ...args: any[]) => TFruit): TFruit +>fruitFactory3 : Symbol(fruitFactory3, Decl(contextualSignatureInstantiation4.ts, 8, 37)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 10, 31)) +>Fruit : Symbol(Fruit, Decl(contextualSignatureInstantiation4.ts, 10, 39)) +>a : Symbol(a, Decl(contextualSignatureInstantiation4.ts, 10, 51)) +>s : Symbol(s, Decl(contextualSignatureInstantiation4.ts, 10, 61)) +>args : Symbol(args, Decl(contextualSignatureInstantiation4.ts, 10, 71)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 10, 31)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 10, 31)) + +const banana3 = fruitFactory3(Banana) // Banana<"foo"> +>banana3 : Symbol(banana3, Decl(contextualSignatureInstantiation4.ts, 11, 5)) +>fruitFactory3 : Symbol(fruitFactory3, Decl(contextualSignatureInstantiation4.ts, 8, 37)) +>Banana : Symbol(Banana, Decl(contextualSignatureInstantiation4.ts, 0, 0)) + +declare function fruitFactory4(Fruit: new (a: string, ...args: "foo"[]) => TFruit): TFruit +>fruitFactory4 : Symbol(fruitFactory4, Decl(contextualSignatureInstantiation4.ts, 11, 37)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 13, 31)) +>Fruit : Symbol(Fruit, Decl(contextualSignatureInstantiation4.ts, 13, 39)) +>a : Symbol(a, Decl(contextualSignatureInstantiation4.ts, 13, 51)) +>args : Symbol(args, Decl(contextualSignatureInstantiation4.ts, 13, 61)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 13, 31)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 13, 31)) + +const banana4 = fruitFactory4(Banana) // Banana<"foo"> +>banana4 : Symbol(banana4, Decl(contextualSignatureInstantiation4.ts, 14, 5)) +>fruitFactory4 : Symbol(fruitFactory4, Decl(contextualSignatureInstantiation4.ts, 11, 37)) +>Banana : Symbol(Banana, Decl(contextualSignatureInstantiation4.ts, 0, 0)) + +declare function fruitFactory5(Fruit: new (...args: "foo"[]) => TFruit): TFruit +>fruitFactory5 : Symbol(fruitFactory5, Decl(contextualSignatureInstantiation4.ts, 14, 37)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 16, 31)) +>Fruit : Symbol(Fruit, Decl(contextualSignatureInstantiation4.ts, 16, 39)) +>args : Symbol(args, Decl(contextualSignatureInstantiation4.ts, 16, 51)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 16, 31)) +>TFruit : Symbol(TFruit, Decl(contextualSignatureInstantiation4.ts, 16, 31)) + +const banana5 = fruitFactory5(Banana) // Banana<"foo"> +>banana5 : Symbol(banana5, Decl(contextualSignatureInstantiation4.ts, 17, 5)) +>fruitFactory5 : Symbol(fruitFactory5, Decl(contextualSignatureInstantiation4.ts, 14, 37)) +>Banana : Symbol(Banana, Decl(contextualSignatureInstantiation4.ts, 0, 0)) + diff --git a/tests/baselines/reference/contextualSignatureInstantiation4.types b/tests/baselines/reference/contextualSignatureInstantiation4.types new file mode 100644 index 00000000000..1c27df7ff69 --- /dev/null +++ b/tests/baselines/reference/contextualSignatureInstantiation4.types @@ -0,0 +1,67 @@ +=== tests/cases/compiler/contextualSignatureInstantiation4.ts === +// Repros from #32976 + +declare class Banana { constructor(a: string, property: T) } +>Banana : Banana +>a : string +>property : T + +declare function fruitFactory1(Fruit: new (...args: any[]) => TFruit): TFruit +>fruitFactory1 : (Fruit: new (...args: any[]) => TFruit) => TFruit +>Fruit : new (...args: any[]) => TFruit +>args : any[] + +const banana1 = fruitFactory1(Banana) // Banana +>banana1 : Banana +>fruitFactory1(Banana) : Banana +>fruitFactory1 : (Fruit: new (...args: any[]) => TFruit) => TFruit +>Banana : typeof Banana + +declare function fruitFactory2(Fruit: new (a: string, ...args: any[]) => TFruit): TFruit +>fruitFactory2 : (Fruit: new (a: string, ...args: any[]) => TFruit) => TFruit +>Fruit : new (a: string, ...args: any[]) => TFruit +>a : string +>args : any[] + +const banana2 = fruitFactory2(Banana) // Banana +>banana2 : Banana +>fruitFactory2(Banana) : Banana +>fruitFactory2 : (Fruit: new (a: string, ...args: any[]) => TFruit) => TFruit +>Banana : typeof Banana + +declare function fruitFactory3(Fruit: new (a: string, s: "foo", ...args: any[]) => TFruit): TFruit +>fruitFactory3 : (Fruit: new (a: string, s: "foo", ...args: any[]) => TFruit) => TFruit +>Fruit : new (a: string, s: "foo", ...args: any[]) => TFruit +>a : string +>s : "foo" +>args : any[] + +const banana3 = fruitFactory3(Banana) // Banana<"foo"> +>banana3 : Banana<"foo"> +>fruitFactory3(Banana) : Banana<"foo"> +>fruitFactory3 : (Fruit: new (a: string, s: "foo", ...args: any[]) => TFruit) => TFruit +>Banana : typeof Banana + +declare function fruitFactory4(Fruit: new (a: string, ...args: "foo"[]) => TFruit): TFruit +>fruitFactory4 : (Fruit: new (a: string, ...args: "foo"[]) => TFruit) => TFruit +>Fruit : new (a: string, ...args: "foo"[]) => TFruit +>a : string +>args : "foo"[] + +const banana4 = fruitFactory4(Banana) // Banana<"foo"> +>banana4 : Banana<"foo"> +>fruitFactory4(Banana) : Banana<"foo"> +>fruitFactory4 : (Fruit: new (a: string, ...args: "foo"[]) => TFruit) => TFruit +>Banana : typeof Banana + +declare function fruitFactory5(Fruit: new (...args: "foo"[]) => TFruit): TFruit +>fruitFactory5 : (Fruit: new (...args: "foo"[]) => TFruit) => TFruit +>Fruit : new (...args: "foo"[]) => TFruit +>args : "foo"[] + +const banana5 = fruitFactory5(Banana) // Banana<"foo"> +>banana5 : Banana<"foo"> +>fruitFactory5(Banana) : Banana<"foo"> +>fruitFactory5 : (Fruit: new (...args: "foo"[]) => TFruit) => TFruit +>Banana : typeof Banana + From 052a3d9d73a009e11f26fa8ba99f6e72c63b5e6d Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 5 Sep 2019 16:16:35 -0700 Subject: [PATCH 053/159] Infer void from expr statement usage, not calls This makes inferences a lot better. --- src/services/codefixes/inferFromUsage.ts | 8 +++++--- .../cases/fourslash/codeFixInferFromCallInAssignment.ts | 9 +++++++++ .../fourslash/codeFixInferFromExpressionStatement.ts | 8 ++++++++ .../codeFixInferFromUsageCommentAfterParameter.ts | 2 +- tests/cases/fourslash/codeFixInferFromUsageJSXElement.ts | 2 +- .../fourslash/codeFixInferFromUsagePropertyAccess.ts | 2 +- .../fourslash/codeFixInferFromUsagePropertyAccessJS.ts | 2 +- 7 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 tests/cases/fourslash/codeFixInferFromCallInAssignment.ts create mode 100644 tests/cases/fourslash/codeFixInferFromExpressionStatement.ts diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index 0a190e7b379..daa2166103a 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -504,6 +504,9 @@ namespace ts.codefix { } switch (node.parent.kind) { + case SyntaxKind.ExpressionStatement: + addCandidateType(usage, checker.getVoidType()); + break; case SyntaxKind.PostfixUnaryExpression: usage.isNumber = true; break; @@ -871,12 +874,11 @@ namespace ts.codefix { } if (usage.calls) { - callSignatures.push(getSignatureFromCalls(usage.calls, checker.getVoidType())); + callSignatures.push(getSignatureFromCalls(usage.calls, checker.getAnyType())); } if (usage.constructs) { - // TODO: fallback return should maybe be {}? - constructSignatures.push(getSignatureFromCalls(usage.constructs, checker.getVoidType())); + constructSignatures.push(getSignatureFromCalls(usage.constructs, checker.getAnyType())); } if (usage.stringIndex) { diff --git a/tests/cases/fourslash/codeFixInferFromCallInAssignment.ts b/tests/cases/fourslash/codeFixInferFromCallInAssignment.ts new file mode 100644 index 00000000000..85e1d3bc509 --- /dev/null +++ b/tests/cases/fourslash/codeFixInferFromCallInAssignment.ts @@ -0,0 +1,9 @@ +/// + +// @noImplicitAny: true +//// function inferAny( [| app |] ) { +//// const result = app.use('hi') +//// return result +//// } + +verify.rangeAfterCodeFix("app: { use: (arg0: string) => any; }"); diff --git a/tests/cases/fourslash/codeFixInferFromExpressionStatement.ts b/tests/cases/fourslash/codeFixInferFromExpressionStatement.ts new file mode 100644 index 00000000000..b5969c79378 --- /dev/null +++ b/tests/cases/fourslash/codeFixInferFromExpressionStatement.ts @@ -0,0 +1,8 @@ +/// + +// @noImplicitAny: true +//// function inferVoid( [| app |] ) { +//// app.use('hi') +//// } + +verify.rangeAfterCodeFix("app: { use: (arg0: string) => void; }"); diff --git a/tests/cases/fourslash/codeFixInferFromUsageCommentAfterParameter.ts b/tests/cases/fourslash/codeFixInferFromUsageCommentAfterParameter.ts index bdefd2b5dea..866bfe04c13 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageCommentAfterParameter.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageCommentAfterParameter.ts @@ -16,7 +16,7 @@ verify.codeFix({ index: 0, newFileContent: `/** - * @param {(arg0: any) => void} callback + * @param {(arg0: any) => any} callback */ function coll(callback /*, name1, name2, ... */) { return callback(this); diff --git a/tests/cases/fourslash/codeFixInferFromUsageJSXElement.ts b/tests/cases/fourslash/codeFixInferFromUsageJSXElement.ts index 3200fffafb8..abe35fe46c8 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageJSXElement.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageJSXElement.ts @@ -30,4 +30,4 @@ //// } -verify.rangeAfterCodeFix("props: { isLoading: any; update: (arg0: any) => void; }",/*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, 0); +verify.rangeAfterCodeFix("props: { isLoading: any; update: (arg0: any) => any; }",/*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, 0); diff --git a/tests/cases/fourslash/codeFixInferFromUsagePropertyAccess.ts b/tests/cases/fourslash/codeFixInferFromUsagePropertyAccess.ts index c8b85ee11e8..44d2e2d7b1c 100644 --- a/tests/cases/fourslash/codeFixInferFromUsagePropertyAccess.ts +++ b/tests/cases/fourslash/codeFixInferFromUsagePropertyAccess.ts @@ -12,4 +12,4 @@ //// return x.y.z ////} -verify.rangeAfterCodeFix("a: { b: { c: any; }; }, m: { n: () => number; }, x: { y: { z: number[]; }; }", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0); \ No newline at end of file +verify.rangeAfterCodeFix("a: { b: { c: void; }; }, m: { n: () => number; }, x: { y: { z: number[]; }; }", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0); diff --git a/tests/cases/fourslash/codeFixInferFromUsagePropertyAccessJS.ts b/tests/cases/fourslash/codeFixInferFromUsagePropertyAccessJS.ts index ed9d4b33b37..357b1a991ba 100644 --- a/tests/cases/fourslash/codeFixInferFromUsagePropertyAccessJS.ts +++ b/tests/cases/fourslash/codeFixInferFromUsagePropertyAccessJS.ts @@ -21,7 +21,7 @@ verify.codeFix({ index: 0, newFileContent: `/** - * @param {{ b: { c: any; }; }} a + * @param {{ b: { c: void; }; }} a * @param {{ n: () => number; }} m * @param {{ y: { z: number[]; }; }} x */ From d32c6b2df1e1988c9565b4a7d08e422337540c2a Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 5 Sep 2019 16:21:08 -0700 Subject: [PATCH 054/159] Fallback type is always any now void is explicitly inferred now, never used as a fallback. --- src/services/codefixes/inferFromUsage.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index daa2166103a..b453535b462 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -767,8 +767,8 @@ namespace ts.codefix { return inferences.filter(i => toRemove.every(f => !f(i))); } - function unifyTypes(inferences: ReadonlyArray, fallback = checker.getAnyType()): Type { - if (!inferences.length) return fallback; + function unifyTypes(inferences: ReadonlyArray): Type { + if (!inferences.length) return checker.getAnyType(); // 1. string or number individually override string | number // 2. non-any, non-void overrides any or void @@ -874,11 +874,11 @@ namespace ts.codefix { } if (usage.calls) { - callSignatures.push(getSignatureFromCalls(usage.calls, checker.getAnyType())); + callSignatures.push(getSignatureFromCalls(usage.calls)); } if (usage.constructs) { - constructSignatures.push(getSignatureFromCalls(usage.constructs, checker.getAnyType())); + constructSignatures.push(getSignatureFromCalls(usage.constructs)); } if (usage.stringIndex) { @@ -1047,10 +1047,10 @@ namespace ts.codefix { } function getFunctionFromCalls(calls: CallUsage[]) { - return checker.createAnonymousType(undefined!, createSymbolTable(), [getSignatureFromCalls(calls, checker.getAnyType())], emptyArray, undefined, undefined); + return checker.createAnonymousType(undefined!, createSymbolTable(), [getSignatureFromCalls(calls)], emptyArray, undefined, undefined); } - function getSignatureFromCalls(calls: CallUsage[], fallbackReturn: Type): Signature { + function getSignatureFromCalls(calls: CallUsage[]): Signature { const parameters: Symbol[] = []; const length = Math.max(...calls.map(c => c.argumentTypes.length)); for (let i = 0; i < length; i++) { @@ -1061,7 +1061,7 @@ namespace ts.codefix { } parameters.push(symbol); } - const returnType = unifyTypes(inferFromUsage(combineUsages(calls.map(call => call.return_))), fallbackReturn); + const returnType = unifyTypes(inferFromUsage(combineUsages(calls.map(call => call.return_)))); // TODO: GH#18217 return checker.createSignature(/*declaration*/ undefined!, /*typeParameters*/ undefined, /*thisParameter*/ undefined, parameters, returnType, /*typePredicate*/ undefined, length, /*hasRestParameter*/ false, /*hasLiteralTypes*/ false); } From f394190572fb76b194df5f093f1af51abc1ffb98 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Fri, 6 Sep 2019 11:18:50 -0700 Subject: [PATCH 055/159] Tonnes of cleanup --- src/services/codefixes/inferFromUsage.ts | 167 ++++++++++++----------- 1 file changed, 87 insertions(+), 80 deletions(-) diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index b453535b462..2e9fb0dfc72 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -433,6 +433,53 @@ namespace ts.codefix { inferredTypes: Type[] | undefined; } + function createEmptyUsage(): Usage { + return { + isNumber: undefined, + isString: undefined, + isNumberOrString: undefined, + candidateTypes: undefined, + properties: undefined, + calls: undefined, + constructs: undefined, + numberIndex: undefined, + stringIndex: undefined, + candidateThisTypes: undefined, + inferredTypes: undefined, + }; + } + + function combineUsages(usages: Usage[]): Usage { + const combinedProperties = createUnderscoreEscapedMap(); + for (const u of usages) { + if (u.properties) { + u.properties.forEach((p, name) => { + if (!combinedProperties.has(name)) { + combinedProperties.set(name, []); + } + combinedProperties.get(name)!.push(p); + }); + } + } + const properties = createUnderscoreEscapedMap(); + combinedProperties.forEach((ps, name) => { + properties.set(name, combineUsages(ps)); + }); + return { + isNumber: usages.some(u => u.isNumber), + isString: usages.some(u => u.isString), + isNumberOrString: usages.some(u => u.isNumberOrString), + candidateTypes: flatMap(usages, u => u.candidateTypes) as Type[], + properties, + calls: flatMap(usages, u => u.calls) as CallUsage[], + constructs: flatMap(usages, u => u.constructs) as CallUsage[], + numberIndex: forEach(usages, u => u.numberIndex), + stringIndex: forEach(usages, u => u.stringIndex), + candidateThisTypes: flatMap(usages, u => u.candidateThisTypes) as Type[], + inferredTypes: undefined, // clear type cache + }; + } + function single(): Type { return unifyTypes(inferTypesFromReferencesSingle(references)); } @@ -767,6 +814,10 @@ namespace ts.codefix { return inferences.filter(i => toRemove.every(f => !f(i))); } + function unifyFromUsage(usage: Usage) { + return unifyTypes(inferFromUsage(usage)); + } + function unifyTypes(inferences: ReadonlyArray): Type { if (!inferences.length) return checker.getAnyType(); @@ -837,7 +888,7 @@ namespace ts.codefix { numberIndices.length ? checker.createIndexInfo(checker.getUnionType(numberIndices), numberIndexReadonly) : undefined); } - function inferFromUsage(usage: Usage) { + function inferFromUsage(usage: Usage): Type[] { const types = []; if (usage.isNumber) { @@ -851,12 +902,20 @@ namespace ts.codefix { } types.push(...(usage.candidateTypes || []).map(t => checker.getBaseTypeOfLiteralType(t))); - types.push(...findBuiltinTypes(usage)); + types.push(...inferNamedTypesFromProperties(usage)); if (usage.numberIndex) { - types.push(checker.createArrayType(recur(usage.numberIndex))); + types.push(checker.createArrayType(unifyFromUsage(usage.numberIndex))); } - else if (usage.properties && usage.properties.size + const structural = inferStructuralType(usage); + if (structural) { + types.push(structural); + } + return types; + } + + function inferStructuralType(usage: Usage) { + if (usage.properties && usage.properties.size || usage.calls && usage.calls.length || usage.constructs && usage.constructs.length || usage.stringIndex) { @@ -868,7 +927,7 @@ namespace ts.codefix { if (usage.properties) { usage.properties.forEach((u, name) => { const symbol = checker.createSymbol(SymbolFlags.Property, name); - symbol.type = recur(u); + symbol.type = unifyFromUsage(u); members.set(name, symbol); }); } @@ -882,75 +941,23 @@ namespace ts.codefix { } if (usage.stringIndex) { - stringIndexInfo = checker.createIndexInfo(recur(usage.stringIndex), /*isReadonly*/ false); + stringIndexInfo = checker.createIndexInfo(unifyFromUsage(usage.stringIndex), /*isReadonly*/ false); } - types.push(checker.createAnonymousType(/*symbol*/ undefined!, members, callSignatures, constructSignatures, stringIndexInfo, /*numberIndexInfo*/ undefined)); // TODO: GH#18217 - } - return types; // TODO: Should cache this since I HOPE it doesn't change - - function recur(innerUsage: Usage): Type { - return unifyTypes(inferFromUsage(innerUsage)); + return checker.createAnonymousType(/*symbol*/ undefined!, members, callSignatures, constructSignatures, stringIndexInfo, /*numberIndexInfo*/ undefined); // TODO: GH#18217 } } - function createEmptyUsage(): Usage { - return { - isNumber: undefined, - isString: undefined, - isNumberOrString: undefined, - candidateTypes: undefined, - properties: undefined, - calls: undefined, - constructs: undefined, - numberIndex: undefined, - stringIndex: undefined, - candidateThisTypes: undefined, - inferredTypes: undefined, - } - } - - function combineUsages(usages: Usage[]): Usage { - const combinedProperties = createUnderscoreEscapedMap() - for (const u of usages) { - if (u.properties) { - u.properties.forEach((p,name) => { - if (!combinedProperties.has(name)) { - combinedProperties.set(name, []); - } - combinedProperties.get(name)!.push(p); - }); - } - } - const properties = createUnderscoreEscapedMap() - combinedProperties.forEach((ps,name) => { - properties.set(name, combineUsages(ps)); - }); - return { - isNumber: usages.some(u => u.isNumber), - isString: usages.some(u => u.isString), - isNumberOrString: usages.some(u => u.isNumberOrString), - candidateTypes: flatMap(usages, u => u.candidateTypes) as Type[], - properties, - calls: flatMap(usages, u => u.calls) as CallUsage[], - constructs: flatMap(usages, u => u.constructs) as CallUsage[], - numberIndex: forEach(usages, u => u.numberIndex), - stringIndex: forEach(usages, u => u.stringIndex), - candidateThisTypes: flatMap(usages, u => u.candidateThisTypes) as Type[], - inferredTypes: undefined, // clear type cache - } - } - - function findBuiltinTypes(usage: Usage): Type[] { + function inferNamedTypesFromProperties(usage: Usage): Type[] { if (!usage.properties || !usage.properties.size) return []; - const matches = builtins.filter(t => matchesAllPropertiesOf(t, usage)); + const matches = builtins.filter(t => allPropertiesAreAssignableToUsage(t, usage)); if (0 < matches.length && matches.length < 3) { - return matches.map(m => inferTypeParameterFromUsage(m, usage)); + return matches.map(m => inferInstantiationFromUsage(m, usage)); } return []; } - function matchesAllPropertiesOf(type: Type, usage: Usage) { + function allPropertiesAreAssignableToUsage(type: Type, usage: Usage) { if (!usage.properties) return false; let result = true; usage.properties.forEach((propUsage, name) => { @@ -960,34 +967,34 @@ namespace ts.codefix { return; } if (propUsage.calls) { - const sigs = checker.getSignaturesOfType(source, ts.SignatureKind.Call); + const sigs = checker.getSignaturesOfType(source, SignatureKind.Call); result = result && !!sigs.length && checker.isTypeAssignableTo(source, getFunctionFromCalls(propUsage.calls)); } else { - result = result && checker.isTypeAssignableTo(source, unifyTypes(inferFromUsage(propUsage))); + result = result && checker.isTypeAssignableTo(source, unifyFromUsage(propUsage)); } }); return result; } - // inference is limited to - // 1. generic types with a single parameter - // 2. inference to/from calls with a single signature - function inferTypeParameterFromUsage(type: Type, usage: Usage) { - if (!usage.properties || !(getObjectFlags(type) & ObjectFlags.Reference)) return type; + /** + * inference is limited to + * 1. generic types with a single parameter + * 2. inference to/from calls with a single signature + */ + function inferInstantiationFromUsage(type: Type, usage: Usage) { + if (!(getObjectFlags(type) & ObjectFlags.Reference) || !usage.properties) { + return type; + } const generic = (type as TypeReference).target; const singleTypeParameter = singleOrUndefined(generic.typeParameters); if (!singleTypeParameter) return type; const types: Type[] = []; usage.properties.forEach((propUsage, name) => { - const source = checker.getTypeOfPropertyOfType(generic, name as string); - if (!source) { - return Debug.fail("generic should have all the properties of its reference."); - } - if (!propUsage.calls) return; - - types.push(...infer(source, getFunctionFromCalls(propUsage.calls), singleTypeParameter)); + const genericPropertyType = checker.getTypeOfPropertyOfType(generic, name as string); + Debug.assert(!!genericPropertyType, "generic should have all the properties of its reference."); + types.push(...infer(genericPropertyType!, unifyFromUsage(propUsage), singleTypeParameter)); }); return builtinConstructors[type.symbol.escapedName as string](unifyTypes(types)); } @@ -1033,7 +1040,7 @@ namespace ts.codefix { break; } let sourceType = checker.getTypeOfSymbolAtLocation(sourceParam, sourceParam.valueDeclaration); - let elementType = isRest && checker.getElementTypeOfArrayType(sourceType); + const elementType = isRest && checker.getElementTypeOfArrayType(sourceType); if (elementType) { sourceType = elementType; } @@ -1047,7 +1054,7 @@ namespace ts.codefix { } function getFunctionFromCalls(calls: CallUsage[]) { - return checker.createAnonymousType(undefined!, createSymbolTable(), [getSignatureFromCalls(calls)], emptyArray, undefined, undefined); + return checker.createAnonymousType(undefined!, createSymbolTable(), [getSignatureFromCalls(calls)], emptyArray, /*stringIndexInfo*/ undefined, /*numberIndexInfo*/ undefined); } function getSignatureFromCalls(calls: CallUsage[]): Signature { @@ -1061,7 +1068,7 @@ namespace ts.codefix { } parameters.push(symbol); } - const returnType = unifyTypes(inferFromUsage(combineUsages(calls.map(call => call.return_)))); + const returnType = unifyFromUsage(combineUsages(calls.map(call => call.return_))); // TODO: GH#18217 return checker.createSignature(/*declaration*/ undefined!, /*typeParameters*/ undefined, /*thisParameter*/ undefined, parameters, returnType, /*typePredicate*/ undefined, length, /*hasRestParameter*/ false, /*hasLiteralTypes*/ false); } From 1703ae0f46407beb4701e7234c9de558b20e17c0 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Fri, 6 Sep 2019 11:27:34 -0700 Subject: [PATCH 056/159] Renames and more cleanup --- src/services/codefixes/inferFromUsage.ts | 63 +++++++++++------------- 1 file changed, 30 insertions(+), 33 deletions(-) diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index 2e9fb0dfc72..0c711cfa4c4 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -743,7 +743,6 @@ namespace ts.codefix { if (parent.arguments) { for (const argument of parent.arguments) { - // TODO: should recursively infer a usage here, right? call.argumentTypes.push(checker.getTypeAtLocation(argument)); } } @@ -999,57 +998,55 @@ namespace ts.codefix { return builtinConstructors[type.symbol.escapedName as string](unifyTypes(types)); } - // TODO: Source and target are bad names. Should be builtinType and usageType...or something - // and search is a bad name - function infer(source: Type, target: Type, search: Type): readonly Type[] { - if (source === search) { - return [target]; + function infer(genericType: Type, usageType: Type, typeParameter: Type): readonly Type[] { + if (genericType === typeParameter) { + return [usageType]; } - else if (source.flags & TypeFlags.UnionOrIntersection) { - return flatMap((source as UnionOrIntersectionType).types, t => infer(t, target, search)); + else if (genericType.flags & TypeFlags.UnionOrIntersection) { + return flatMap((genericType as UnionOrIntersectionType).types, t => infer(t, usageType, typeParameter)); } - else if (getObjectFlags(source) & ObjectFlags.Reference && getObjectFlags(target) & ObjectFlags.Reference) { + else if (getObjectFlags(genericType) & ObjectFlags.Reference && getObjectFlags(usageType) & ObjectFlags.Reference) { // this is wrong because we need a reference to the targetType to, so we can check that it's also a reference - const sourceArgs = (source as TypeReference).typeArguments; - const targetArgs = (target as TypeReference).typeArguments; + const genericArgs = (genericType as TypeReference).typeArguments; + const usageArgs = (usageType as TypeReference).typeArguments; const types = []; - if (sourceArgs && targetArgs) { - for (let i = 0; i < sourceArgs.length; i++) { - if (targetArgs[i]) { - types.push(...infer(sourceArgs[i], targetArgs[i], search)); + if (genericArgs && usageArgs) { + for (let i = 0; i < genericArgs.length; i++) { + if (usageArgs[i]) { + types.push(...infer(genericArgs[i], usageArgs[i], typeParameter)); } } } return types; } - const sourceSigs = checker.getSignaturesOfType(source, SignatureKind.Call); - const targetSigs = checker.getSignaturesOfType(target, SignatureKind.Call); - if (sourceSigs.length === 1 && targetSigs.length === 1) { - return inferFromSignatures(sourceSigs[0], targetSigs[0], search); + const genericSigs = checker.getSignaturesOfType(genericType, SignatureKind.Call); + const usageSigs = checker.getSignaturesOfType(usageType, SignatureKind.Call); + if (genericSigs.length === 1 && usageSigs.length === 1) { + return inferFromSignatures(genericSigs[0], usageSigs[0], typeParameter); } return []; } - function inferFromSignatures(sourceSig: Signature, targetSig: Signature, search: Type) { + function inferFromSignatures(genericSig: Signature, usageSig: Signature, typeParameter: Type) { const types = []; - for (let i = 0; i < sourceSig.parameters.length; i++) { - const sourceParam = sourceSig.parameters[i]; - const targetParam = targetSig.parameters[i]; - const isRest = sourceSig.declaration && isRestParameter(sourceSig.declaration.parameters[i]); - if (!targetParam) { + for (let i = 0; i < genericSig.parameters.length; i++) { + const genericParam = genericSig.parameters[i]; + const usageParam = usageSig.parameters[i]; + const isRest = genericSig.declaration && isRestParameter(genericSig.declaration.parameters[i]); + if (!usageParam) { break; } - let sourceType = checker.getTypeOfSymbolAtLocation(sourceParam, sourceParam.valueDeclaration); - const elementType = isRest && checker.getElementTypeOfArrayType(sourceType); + let genericParamType = checker.getTypeOfSymbolAtLocation(genericParam, genericParam.valueDeclaration); + const elementType = isRest && checker.getElementTypeOfArrayType(genericParamType); if (elementType) { - sourceType = elementType; + genericParamType = elementType; } - const targetType = (targetParam as SymbolLinks).type || checker.getTypeOfSymbolAtLocation(targetParam, targetParam.valueDeclaration); - types.push(...infer(sourceType, targetType, search)); + const targetType = (usageParam as SymbolLinks).type || checker.getTypeOfSymbolAtLocation(usageParam, usageParam.valueDeclaration); + types.push(...infer(genericParamType, targetType, typeParameter)); } - const sourceReturn = checker.getReturnTypeOfSignature(sourceSig); - const targetReturn = checker.getReturnTypeOfSignature(targetSig); - types.push(...infer(sourceReturn, targetReturn, search)); + const genericReturn = checker.getReturnTypeOfSignature(genericSig); + const usageReturn = checker.getReturnTypeOfSignature(usageSig); + types.push(...infer(genericReturn, usageReturn, typeParameter)); return types; } From 330e51f09811a41bddd71bfe2eea3baa4e6651bc Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:15:19 -0700 Subject: [PATCH 057/159] Add test + reshuffle/rename new code --- src/services/codefixes/inferFromUsage.ts | 63 +++++++------------ .../codeFixInferFromUsageAddition.ts | 9 +++ .../fourslash/codeFixInferFromUsageArray.ts | 14 +++++ .../codeFixInferFromUsageLiteralTypes.ts | 10 +++ .../fourslash/codeFixInferFromUsagePromise.ts | 9 +++ .../fourslash/codeFixInferFromUsageString.ts | 12 ++++ 6 files changed, 77 insertions(+), 40 deletions(-) create mode 100644 tests/cases/fourslash/codeFixInferFromUsageAddition.ts create mode 100644 tests/cases/fourslash/codeFixInferFromUsageArray.ts create mode 100644 tests/cases/fourslash/codeFixInferFromUsageLiteralTypes.ts create mode 100644 tests/cases/fourslash/codeFixInferFromUsagePromise.ts create mode 100644 tests/cases/fourslash/codeFixInferFromUsageString.ts diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index 0c711cfa4c4..520f8520d21 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -899,59 +899,42 @@ namespace ts.codefix { if (usage.isNumberOrString) { types.push(checker.getUnionType([checker.getStringType(), checker.getNumberType()])); } + if (usage.numberIndex) { + types.push(checker.createArrayType(unifyFromUsage(usage.numberIndex))); + } + if (usage.properties && usage.properties.size + || usage.calls && usage.calls.length + || usage.constructs && usage.constructs.length + || usage.stringIndex) { + types.push(inferStructuralType(usage)); + } types.push(...(usage.candidateTypes || []).map(t => checker.getBaseTypeOfLiteralType(t))); types.push(...inferNamedTypesFromProperties(usage)); - if (usage.numberIndex) { - types.push(checker.createArrayType(unifyFromUsage(usage.numberIndex))); - } - const structural = inferStructuralType(usage); - if (structural) { - types.push(structural); - } return types; } function inferStructuralType(usage: Usage) { - if (usage.properties && usage.properties.size - || usage.calls && usage.calls.length - || usage.constructs && usage.constructs.length - || usage.stringIndex) { - const members = createUnderscoreEscapedMap(); - const callSignatures: Signature[] = []; - const constructSignatures: Signature[] = []; - let stringIndexInfo: IndexInfo | undefined; - - if (usage.properties) { - usage.properties.forEach((u, name) => { - const symbol = checker.createSymbol(SymbolFlags.Property, name); - symbol.type = unifyFromUsage(u); - members.set(name, symbol); - }); - } - - if (usage.calls) { - callSignatures.push(getSignatureFromCalls(usage.calls)); - } - - if (usage.constructs) { - constructSignatures.push(getSignatureFromCalls(usage.constructs)); - } - - if (usage.stringIndex) { - stringIndexInfo = checker.createIndexInfo(unifyFromUsage(usage.stringIndex), /*isReadonly*/ false); - } - - return checker.createAnonymousType(/*symbol*/ undefined!, members, callSignatures, constructSignatures, stringIndexInfo, /*numberIndexInfo*/ undefined); // TODO: GH#18217 + const members = createUnderscoreEscapedMap(); + if (usage.properties) { + usage.properties.forEach((u, name) => { + const symbol = checker.createSymbol(SymbolFlags.Property, name); + symbol.type = unifyFromUsage(u); + members.set(name, symbol); + }); } + const callSignatures: Signature[] = usage.calls ? [getSignatureFromCalls(usage.calls)] : []; + const constructSignatures: Signature[] = usage.constructs ? [getSignatureFromCalls(usage.constructs)] : []; + const stringIndexInfo = usage.stringIndex && checker.createIndexInfo(unifyFromUsage(usage.stringIndex), /*isReadonly*/ false); + return checker.createAnonymousType(/*symbol*/ undefined!, members, callSignatures, constructSignatures, stringIndexInfo, /*numberIndexInfo*/ undefined); // TODO: GH#18217 } function inferNamedTypesFromProperties(usage: Usage): Type[] { if (!usage.properties || !usage.properties.size) return []; - const matches = builtins.filter(t => allPropertiesAreAssignableToUsage(t, usage)); - if (0 < matches.length && matches.length < 3) { - return matches.map(m => inferInstantiationFromUsage(m, usage)); + const types = builtins.filter(t => allPropertiesAreAssignableToUsage(t, usage)); + if (0 < types.length && types.length < 3) { + return types.map(t => inferInstantiationFromUsage(t, usage)); } return []; } diff --git a/tests/cases/fourslash/codeFixInferFromUsageAddition.ts b/tests/cases/fourslash/codeFixInferFromUsageAddition.ts new file mode 100644 index 00000000000..4b57d0603f1 --- /dev/null +++ b/tests/cases/fourslash/codeFixInferFromUsageAddition.ts @@ -0,0 +1,9 @@ +/// + +// @noImplicitAny: true +//// function foo([|a, m |]) { +//// return a + m +//// } + +verify.rangeAfterCodeFix("a: any, m: any", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0); + diff --git a/tests/cases/fourslash/codeFixInferFromUsageArray.ts b/tests/cases/fourslash/codeFixInferFromUsageArray.ts new file mode 100644 index 00000000000..03d6b09e99b --- /dev/null +++ b/tests/cases/fourslash/codeFixInferFromUsageArray.ts @@ -0,0 +1,14 @@ +/// + +// @noImplicitAny: true +//// function foo([|p, a, b, c, d, e |]) { +//// var x: string = a.pop() +//// b.reverse() +//// var rr: boolean[] = c.reverse() +//// d.some(t => t > 1); // can't infer from callbacks right now +//// var y = e.concat(12); // can't infer from overloaded functions right now +//// return p.push(12) +//// } + +verify.rangeAfterCodeFix("p: number[], a: string[], b: any[], c: boolean[], d: any[], e: number[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0); + diff --git a/tests/cases/fourslash/codeFixInferFromUsageLiteralTypes.ts b/tests/cases/fourslash/codeFixInferFromUsageLiteralTypes.ts new file mode 100644 index 00000000000..3b8c9441159 --- /dev/null +++ b/tests/cases/fourslash/codeFixInferFromUsageLiteralTypes.ts @@ -0,0 +1,10 @@ +/// + +// @noImplicitAny: true +//// function foo([|a, m |]) { +//// a = 'hi' +//// m = 1 +//// } + +verify.rangeAfterCodeFix("a: string, m: number", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0); + diff --git a/tests/cases/fourslash/codeFixInferFromUsagePromise.ts b/tests/cases/fourslash/codeFixInferFromUsagePromise.ts new file mode 100644 index 00000000000..d06bb3b6a0f --- /dev/null +++ b/tests/cases/fourslash/codeFixInferFromUsagePromise.ts @@ -0,0 +1,9 @@ +/// + +// @noImplicitAny: true +//// function foo([|p |]) { +//// return p.then((x: string[]) => x[0]) +//// } + +verify.rangeAfterCodeFix("p: Promise", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0); + diff --git a/tests/cases/fourslash/codeFixInferFromUsageString.ts b/tests/cases/fourslash/codeFixInferFromUsageString.ts new file mode 100644 index 00000000000..dc5787dc75b --- /dev/null +++ b/tests/cases/fourslash/codeFixInferFromUsageString.ts @@ -0,0 +1,12 @@ +/// + +// @noImplicitAny: true +//// function foo([|p, a, b, c, d |]) { +//// var x +//// p.charAt(x) +//// a.charAt(0) +//// b.concat('hi') +//// } + +verify.rangeAfterCodeFix("p: string, a: string, b: string | string[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0); + From 99f9719ab3f9eaeaf5c1e9235680f98336fe050a Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 7 Sep 2019 18:43:32 -0400 Subject: [PATCH 058/159] Added codefix for numeric literals >= 2 ** 53 `Number.MAX_SAFE_INTEGER` is `2 ** 53 - 1`, so anything greater than that is a 'dangerous' integer to store as a traditional number. This adds a codefix to suggest converting them to a `bigint` literal. --- src/compiler/checker.ts | 23 ++++++ src/compiler/diagnosticMessages.json | 12 ++++ src/services/codefixes/useBigintLiteral.ts | 33 +++++++++ src/services/tsconfig.json | 1 + .../fourslash/codeFixUseBigIntLiteral.ts | 70 +++++++++++++++++++ 5 files changed, 139 insertions(+) create mode 100644 src/services/codefixes/useBigintLiteral.ts create mode 100644 tests/cases/fourslash/codeFixUseBigIntLiteral.ts diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index cfad47b6533..363bcd50241 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -33681,9 +33681,32 @@ namespace ts { return grammarErrorOnNode(withMinus ? node.parent : node, diagnosticMessage, literal); } } + + // Realism (size) checking + checkNumericLiteralValueSize(node); + return false; } + function checkNumericLiteralValueSize(node: NumericLiteral) { + // Literals with 15 or fewer characters aren't long enough to reach past 2^53 - 1 + // Fractional numbers (e.g. 9000000000000000.001) are inherently imprecise anyway + if (node.text.length <= 15 || node.text.indexOf(".") !== -1) { + return; + } + + // We can't rely on the runtime to accurately store and compare extremely large numeric values + // Even for internal use, we use getTextOfNode: https://github.com/microsoft/TypeScript/issues/33298 + // Thus, if the runtime claims a too-large number is lower than Number.MAX_SAFE_INTEGER, + // it's likely addition operations on it will fail too + const apparentValue = +getTextOfNode(node); + if (apparentValue <= 2 ** 53 - 1 && apparentValue + 1 > apparentValue) { + return; + } + + addErrorOrSuggestion(/*isError*/ false, createDiagnosticForNode(node, Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers)); + } + function checkGrammarBigIntLiteral(node: BigIntLiteral): boolean { const literalType = isLiteralTypeNode(node.parent) || isPrefixUnaryExpression(node.parent) && isLiteralTypeNode(node.parent.parent); diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index b296c224d08..188977298d8 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -4643,6 +4643,10 @@ "category": "Suggestion", "code": 80007 }, + "Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers.": { + "category": "Suggestion", + "code": 80008 + }, "Add missing 'super()' call": { "category": "Message", @@ -5124,6 +5128,14 @@ "category": "Message", "code": 95090 }, + "Convert to a bigint numeric literal": { + "category": "Message", + "code": 95091 + }, + "Convert all to bigint numeric literals": { + "category": "Message", + "code": 95092 + }, "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer.": { "category": "Error", diff --git a/src/services/codefixes/useBigintLiteral.ts b/src/services/codefixes/useBigintLiteral.ts new file mode 100644 index 00000000000..0749cc1a677 --- /dev/null +++ b/src/services/codefixes/useBigintLiteral.ts @@ -0,0 +1,33 @@ +/* @internal */ +namespace ts.codefix { + const fixId = "useBigintLiteral"; + const errorCodes = [ + Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code, + ]; + + registerCodeFix({ + errorCodes, + getCodeActions: context => { + const changes = textChanges.ChangeTracker.with(context, t => makeChange(t, context.sourceFile, context.span)); + if (changes.length > 0) { + return [createCodeFixAction(fixId, changes, Diagnostics.Convert_to_a_bigint_numeric_literal, fixId, Diagnostics.Convert_all_to_bigint_numeric_literals)]; + } + }, + fixIds: [fixId], + getAllCodeActions: context => { + return codeFixAll(context, errorCodes, (changes, diag) => makeChange(changes, diag.file, diag)); + }, + }); + + function makeChange(changeTracker: textChanges.ChangeTracker, sourceFile: SourceFile, span: TextSpan) { + const numericLiteral = tryCast(getTokenAtPosition(sourceFile, span.start), isNumericLiteral); + if (!numericLiteral) { + return; + } + + // We use .getText to overcome parser inaccuracies: https://github.com/microsoft/TypeScript/issues/33298 + const newText = numericLiteral.getText(sourceFile) + "n"; + + changeTracker.replaceNode(sourceFile, numericLiteral, createBigIntLiteral(newText)); + } +} diff --git a/src/services/tsconfig.json b/src/services/tsconfig.json index 6b52393422c..74495bc54f8 100644 --- a/src/services/tsconfig.json +++ b/src/services/tsconfig.json @@ -79,6 +79,7 @@ "codefixes/fixStrictClassInitialization.ts", "codefixes/requireInTs.ts", "codefixes/useDefaultImport.ts", + "codefixes/useBigintLiteral.ts", "codefixes/fixAddModuleReferTypeMissingTypeof.ts", "codefixes/convertToMappedObjectType.ts", "codefixes/removeUnnecessaryAwait.ts", diff --git a/tests/cases/fourslash/codeFixUseBigIntLiteral.ts b/tests/cases/fourslash/codeFixUseBigIntLiteral.ts new file mode 100644 index 00000000000..089f73cba97 --- /dev/null +++ b/tests/cases/fourslash/codeFixUseBigIntLiteral.ts @@ -0,0 +1,70 @@ +/// +////9007199254740991; +////-9007199254740991; +////9007199254740992; +////-9007199254740992; +////9007199254740993; +////-9007199254740993; +////9007199254740994; +////-9007199254740994; +////0x19999999999998; +////-0x19999999999998; +////0x19999999999999; +////-0x19999999999999; +////0x20000000000000; +////-0x20000000000000; +////0x20000000000001; +////-0x20000000000001; +////2e52; +////2e53; +////2e54; + +verify.codeFix({ + description: ts.Diagnostics.Convert_to_a_bigint_numeric_literal.message, + index: 0, + newFileContent: +`9007199254740991; +-9007199254740991; +9007199254740992n; +-9007199254740992; +9007199254740993; +-9007199254740993; +9007199254740994; +-9007199254740994; +0x19999999999998; +-0x19999999999998; +0x19999999999999; +-0x19999999999999; +0x20000000000000; +-0x20000000000000; +0x20000000000001; +-0x20000000000001; +2e52; +2e53; +2e54;` +}); + +verify.codeFixAll({ + fixAllDescription: ts.Diagnostics.Convert_all_to_bigint_numeric_literals.message, + fixId: "useBigintLiteral", + newFileContent: +`9007199254740991; +-9007199254740991; +9007199254740992n; +-9007199254740992n; +9007199254740993n; +-9007199254740993n; +9007199254740994n; +-9007199254740994n; +0x19999999999998; +-0x19999999999998; +0x19999999999999; +-0x19999999999999; +0x20000000000000n; +-0x20000000000000n; +0x20000000000001n; +-0x20000000000001n; +2e52; +2e53; +2e54;` +}); From 79e9bb1c8f7504a60ee1bc0f926adddf4ae03a92 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 7 Sep 2019 19:41:03 -0400 Subject: [PATCH 059/159] Added explicit check for scientific notation --- src/compiler/checker.ts | 3 ++- tests/cases/fourslash/codeFixUseBigIntLiteral.ts | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 363bcd50241..d14efb247e1 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -33689,9 +33689,10 @@ namespace ts { } function checkNumericLiteralValueSize(node: NumericLiteral) { + // Scientific notation (e.g. 2e54 and 1e00000000010) can't be converted to bigint // Literals with 15 or fewer characters aren't long enough to reach past 2^53 - 1 // Fractional numbers (e.g. 9000000000000000.001) are inherently imprecise anyway - if (node.text.length <= 15 || node.text.indexOf(".") !== -1) { + if (node.numericLiteralFlags & TokenFlags.Scientific || node.text.length <= 15 || node.text.indexOf(".") !== -1) { return; } diff --git a/tests/cases/fourslash/codeFixUseBigIntLiteral.ts b/tests/cases/fourslash/codeFixUseBigIntLiteral.ts index 089f73cba97..dcdff381af3 100644 --- a/tests/cases/fourslash/codeFixUseBigIntLiteral.ts +++ b/tests/cases/fourslash/codeFixUseBigIntLiteral.ts @@ -18,6 +18,7 @@ ////2e52; ////2e53; ////2e54; +////1e00000000010; verify.codeFix({ description: ts.Diagnostics.Convert_to_a_bigint_numeric_literal.message, @@ -41,7 +42,8 @@ verify.codeFix({ -0x20000000000001; 2e52; 2e53; -2e54;` +2e54; +1e00000000010;` }); verify.codeFixAll({ @@ -66,5 +68,6 @@ verify.codeFixAll({ -0x20000000000001n; 2e52; 2e53; -2e54;` +2e54; +1e00000000010;` }); From 566d32b2e8bb355fe40bb2398b978e89e0f23f93 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 9 Sep 2019 13:40:10 -0700 Subject: [PATCH 060/159] Refactor to write baseline of sourcemaps that are written --- .../unittests/tsbuild/amdModulesWithOut.ts | 14 +- src/testRunner/unittests/tsbuild/helpers.ts | 28 +- src/testRunner/unittests/tsbuild/outFile.ts | 10 +- src/testRunner/unittests/tsbuild/sample.ts | 18 +- ...e-resolution-finds-original-source-file.js | 232 ++ ...en-one-two-three-are-prepended-in-order.js | 3215 ---------------- .../stripInternal-jsdoc-style-comment.js | 1634 -------- ...en-one-two-three-are-prepended-in-order.js | 3215 ---------------- ...en-one-two-three-are-prepended-in-order.js | 3415 ----------------- ...tripInternal-with-comments-emit-enabled.js | 1734 --------- .../stripInternal.js | 1634 -------- 11 files changed, 256 insertions(+), 14893 deletions(-) diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts index 73e2af33fd9..e28f1ffc840 100644 --- a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -67,12 +67,7 @@ namespace ts { tick, proj: "amdModulesWithOut", rootNames: ["/src/app"], - expectedMapFileNames: [ - outputFiles[project.lib][ext.jsmap], - outputFiles[project.lib][ext.dtsmap], - outputFiles[project.app][ext.jsmap], - outputFiles[project.app][ext.dtsmap], - ], + baselineSourceMap: true, expectedBuildInfoFilesForSectionBaselines: [ [outputFiles[project.lib][ext.buildinfo], outputFiles[project.lib][ext.js], outputFiles[project.lib][ext.dts]], [outputFiles[project.app][ext.buildinfo], outputFiles[project.app][ext.js], outputFiles[project.app][ext.dts]] @@ -221,12 +216,7 @@ ${internal} export enum internalEnum { a, b, c }`); tick, proj: "amdModulesWithOut", rootNames: ["/src/app"], - expectedMapFileNames: [ - libOutputFile[ext.jsmap], - libOutputFile[ext.dtsmap], - outputFiles[project.app][ext.jsmap], - outputFiles[project.app][ext.dtsmap], - ], + baselineSourceMap: true, expectedBuildInfoFilesForSectionBaselines: [ [libOutputFile[ext.buildinfo], libOutputFile[ext.js], libOutputFile[ext.dts]], [outputFiles[project.app][ext.buildinfo], outputFiles[project.app][ext.js], outputFiles[project.app][ext.dts]] diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 4542733d2e6..88a9d403454 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -164,8 +164,10 @@ interface Symbol { } } - function generateSourceMapBaselineFiles(fs: vfs.FileSystem, mapFileNames: ReadonlyArray) { - for (const mapFile of mapFileNames) { + function generateSourceMapBaselineFiles(fs: vfs.FileSystem, mapFileNames: Iterator) { + while (true) { + const { value: mapFile, done } = mapFileNames.next(); + if (done) break; if (!fs.existsSync(mapFile)) continue; const text = Harness.SourceMapRecorder.getSourceMapRecordWithVFS(fs, mapFile); fs.writeFileSync(`${mapFile}.baseline.txt`, text); @@ -233,17 +235,24 @@ interface Symbol { fs: vfs.FileSystem; tick: () => void; rootNames: ReadonlyArray; - expectedMapFileNames?: ReadonlyArray; + baselineSourceMap?: true; expectedBuildInfoFilesForSectionBaselines?: ReadonlyArray; modifyFs: (fs: vfs.FileSystem) => void; } - function build({ fs, tick, rootNames, expectedMapFileNames, expectedBuildInfoFilesForSectionBaselines, modifyFs }: BuildInput) { + function build({ fs, tick, rootNames, baselineSourceMap, expectedBuildInfoFilesForSectionBaselines, modifyFs }: BuildInput) { const actualReadFileMap = createMap(); modifyFs(fs); tick(); const host = new fakes.SolutionBuilderHost(fs); + const writtenFiles = createMap(); + const originalWriteFile = host.writeFile; + host.writeFile = (fileName, content, writeByteOrderMark) => { + assert.isFalse(writtenFiles.has(fileName)); + writtenFiles.set(fileName, true); + return originalWriteFile.call(host, fileName, content, writeByteOrderMark); + }; const builder = createSolutionBuilder(host, rootNames, { dry: false, force: false, verbose: true }); host.clearDiagnostics(); const originalReadFile = host.readFile; @@ -255,7 +264,7 @@ interface Symbol { return originalReadFile.call(host, path); }; builder.build(); - if (expectedMapFileNames) generateSourceMapBaselineFiles(fs, expectedMapFileNames); + if (baselineSourceMap) generateSourceMapBaselineFiles(fs, mapDefinedIterator(writtenFiles.keys(), f => f.endsWith(".map") ? f : undefined)); generateBuildInfoSectionBaselineFiles(fs, expectedBuildInfoFilesForSectionBaselines || emptyArray); fs.makeReadonly(); return { fs, actualReadFileMap, host, builder }; @@ -302,8 +311,6 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt tick: () => void; proj: string; rootNames: ReadonlyArray; - /** map file names to generate baseline of */ - expectedMapFileNames?: ReadonlyArray; expectedBuildInfoFilesForSectionBaselines?: ReadonlyArray; lastProjectOutput: string; initialBuild: BuildState; @@ -313,11 +320,12 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt incrementalHeaderChangedBuild?: BuildState; baselineOnly?: true; verifyDiagnostics?: true; + baselineSourceMap?: true; } export function verifyTsbuildOutput({ scenario, projFs, time, tick, proj, rootNames, outputFiles, baselineOnly, verifyDiagnostics, - expectedMapFileNames, expectedBuildInfoFilesForSectionBaselines, lastProjectOutput, + baselineSourceMap, expectedBuildInfoFilesForSectionBaselines, lastProjectOutput, initialBuild, incrementalDtsChangedBuild, incrementalDtsUnchangedBuild, incrementalHeaderChangedBuild }: VerifyTsBuildInput) { describe(`tsc --b ${proj}:: ${scenario}`, () => { @@ -330,7 +338,7 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt fs: projFs().shadow(), tick, rootNames, - expectedMapFileNames, + baselineSourceMap, expectedBuildInfoFilesForSectionBaselines, modifyFs: initialBuild.modifyFs, }); @@ -374,7 +382,7 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt fs: newFs, tick, rootNames, - expectedMapFileNames, + baselineSourceMap, expectedBuildInfoFilesForSectionBaselines, modifyFs: incrementalModifyFs, })); diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index 4b81160cc99..f813f61542c 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -55,14 +55,6 @@ namespace ts { ] ] ]; - const expectedMapFileNames = [ - outputFiles[project.first][ext.jsmap], - outputFiles[project.first][ext.dtsmap], - outputFiles[project.second][ext.jsmap], - outputFiles[project.second][ext.dtsmap], - outputFiles[project.third][ext.jsmap], - outputFiles[project.third][ext.dtsmap] - ]; const expectedTsbuildInfoFileNames: ReadonlyArray = [ [outputFiles[project.first][ext.buildinfo], outputFiles[project.first][ext.js], outputFiles[project.first][ext.dts]], [outputFiles[project.second][ext.buildinfo], outputFiles[project.second][ext.js], outputFiles[project.second][ext.dts]], @@ -286,7 +278,7 @@ namespace ts { tick, proj: "outfile-concat", rootNames: ["/src/third"], - expectedMapFileNames, + baselineSourceMap: true, expectedBuildInfoFilesForSectionBaselines: expectedBuildInfoFilesForSectionBaselines || expectedTsbuildInfoFileNames, lastProjectOutput: outputFiles[project.third][ext.js], initialBuild: { diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index 91574c3a920..8e921c97aee 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -612,11 +612,7 @@ export class cNew {}`); tick, proj: "sample1", rootNames: ["/src/tests"], - expectedMapFileNames: [ - "/src/core/anotherModule.d.ts.map", - "/src/core/index.d.ts.map", - "/src/logic/index.js.map" - ], + baselineSourceMap: true, lastProjectOutput: "/src/tests/index.js", initialBuild, incrementalDtsChangedBuild: { @@ -722,11 +718,7 @@ class someClass { }`), tick, proj: "sample1", rootNames: ["/src/tests"], - expectedMapFileNames: [ - "/src/core/anotherModule.d.ts.map", - "/src/core/index.d.ts.map", - "/src/logic/index.js.map" - ], + baselineSourceMap: true, lastProjectOutput: "/src/tests/index.js", initialBuild, incrementalDtsChangedBuild: { @@ -790,11 +782,7 @@ class someClass { }`), tick, proj: "sample1", rootNames: ["/src/tests"], - expectedMapFileNames: [ - "/src/core/anotherModule.d.ts.map", - "/src/core/index.d.ts.map", - "/src/logic/index.js.map" - ], + baselineSourceMap: true, lastProjectOutput: "/src/tests/index.js", initialBuild: { modifyFs: fs => replaceText(fs, "/src/logic/tsconfig.json", `"composite": true,`, `"composite": true, diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js index 3fdb37efb3a..feae4ea8dc8 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js @@ -521,6 +521,123 @@ declare const globalConst = 10; //// [/src/module.d.ts.map] {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["lib/file0.ts","lib/file1.ts","lib/file2.ts","lib/global.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} +//// [/src/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: lib/file0.ts,lib/file1.ts,lib/file2.ts,lib/global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/module.d.ts +sourceFile:lib/file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^-> +1 > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/module.d.ts +sourceFile:lib/file1.ts +------------------------------------------------------------------- +>>>declare module "lib/file1" { +>>> export const x = 10; +1->^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1-> +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1->Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/module.d.ts +sourceFile:lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "lib/file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/module.d.ts +sourceFile:lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + //// [/src/module.js] var myGlob = 20; define("lib/file1", ["require", "exports"], function (require, exports) { @@ -539,6 +656,121 @@ var globalConst = 10; //// [/src/module.js.map] {"version":3,"file":"module.js","sourceRoot":"","sources":["lib/file0.ts","lib/file1.ts","lib/file2.ts","lib/global.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} +//// [/src/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: lib/file0.ts,lib/file1.ts,lib/file2.ts,lib/global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/module.js +sourceFile:lib/file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/module.js +sourceFile:lib/file1.ts +------------------------------------------------------------------- +>>>define("lib/file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/module.js +sourceFile:lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("lib/file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(10, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(10, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(10, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(10, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(10, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(10, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/module.js +sourceFile:lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(12, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(12, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(12, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(12, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(12, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + //// [/src/module.tsbuildinfo] { "bundle": { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 965863d088e..f3c8dccc27a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -778,1587 +778,6 @@ sourceFile:../second/second_part2.ts --- >>>//# sourceMappingURL=second-output.d.ts.map -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(15, 5) Source(14, 20) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 20) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 26) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 20) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 31) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 30) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 37) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 39) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 40) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 41) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 42) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 20) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 26) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 37) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 41) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(28, 5) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 20) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 36) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 39) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 43) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 37) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 50) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 37) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 46) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 34) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 44) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 47) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 60) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 61) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 62) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 63) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 33) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 46) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 49) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 51) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 52) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 32) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(66, 1) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 16) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 25) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 36) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 40) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 41) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 26) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 43) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 26) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 39) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 16) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 23) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 37) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 40) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 57) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 58) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 67) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 68) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 16) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 22) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 35) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 38) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 40) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 41) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 21) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - //// [/src/2/second-output.tsbuildinfo] { "bundle": { @@ -3326,1640 +1745,6 @@ sourceFile:../../third_part1.ts --- >>>//# sourceMappingURL=third-output.d.ts.map -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(15, 5) Source(14, 20) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 20) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 26) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 20) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 31) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 30) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 37) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 39) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 40) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 41) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 42) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 20) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 26) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 37) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 41) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(28, 5) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 20) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 36) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 39) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 43) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 37) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 50) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 37) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 46) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 34) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 44) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 47) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 60) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 61) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 62) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 63) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 33) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 46) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 49) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 51) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 52) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 32) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(66, 1) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 16) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 25) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 36) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 40) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 41) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 26) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 43) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 26) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 39) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 16) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 23) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 37) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 40) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 57) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 58) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 67) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 68) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 16) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 22) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 35) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 38) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 40) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 41) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 21) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - //// [/src/third/thirdjs/output/third-output.tsbuildinfo] { "bundle": { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js index e57ae860e88..d91fca25e4c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js @@ -671,1640 +671,6 @@ sourceFile:../../third_part1.ts --- >>>//# sourceMappingURL=third-output.d.ts.map -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(15, 5) Source(14, 20) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 20) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 26) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 20) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 31) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 30) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 37) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 39) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 40) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 41) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 42) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 20) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 26) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 37) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 41) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(28, 5) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 20) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 36) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 39) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 43) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 37) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 50) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 37) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 46) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 34) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 44) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 47) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 60) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 61) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 62) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 63) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 33) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 46) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 49) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 51) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 52) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 32) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(66, 1) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 16) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 25) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 36) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 40) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 41) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 26) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 43) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 26) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 39) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 16) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 23) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 37) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 40) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 57) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 58) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 67) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 68) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 16) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 22) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 35) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 38) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 40) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 41) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 21) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - //// [/src/third/thirdjs/output/third-output.tsbuildinfo] { "bundle": { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js index 8330077b7b9..4cc32daee93 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -778,1587 +778,6 @@ sourceFile:../second/second_part2.ts --- >>>//# sourceMappingURL=second-output.d.ts.map -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - //// [/src/2/second-output.tsbuildinfo] { "bundle": { @@ -3326,1640 +1745,6 @@ sourceFile:../../third_part1.ts --- >>>//# sourceMappingURL=third-output.d.ts.map -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - //// [/src/third/thirdjs/output/third-output.tsbuildinfo] { "bundle": { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 962e2c19099..b52187573a3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -778,1687 +778,6 @@ sourceFile:../second/second_part2.ts --- >>>//# sourceMappingURL=second-output.d.ts.map -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(15, 18) Source(14, 18) + SourceIndex(3) -3 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(17, 18) Source(16, 18) + SourceIndex(3) -3 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 43) Source(16, 25) + SourceIndex(3) -5 >Emitted(17, 46) Source(16, 19) + SourceIndex(3) -6 >Emitted(17, 60) Source(16, 30) + SourceIndex(3) -7 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(19, 22) Source(17, 18) + SourceIndex(3) -3 >Emitted(19, 28) Source(17, 19) + SourceIndex(3) -4 >Emitted(19, 42) Source(17, 29) + SourceIndex(3) -5 >Emitted(19, 49) Source(17, 36) + SourceIndex(3) -6 >Emitted(19, 51) Source(17, 38) + SourceIndex(3) -7 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) -8 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) -9 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(20, 22) Source(18, 18) + SourceIndex(3) -3 >Emitted(20, 28) Source(18, 19) + SourceIndex(3) -4 >Emitted(20, 38) Source(18, 25) + SourceIndex(3) -5 >Emitted(20, 41) Source(18, 36) + SourceIndex(3) -6 >Emitted(20, 45) Source(18, 40) + SourceIndex(3) -7 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(28, 18) Source(21, 18) + SourceIndex(3) -3 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(34, 18) Source(22, 18) + SourceIndex(3) -3 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) -4 >Emitted(34, 28) Source(22, 35) + SourceIndex(3) -5 >Emitted(34, 31) Source(22, 38) + SourceIndex(3) -6 >Emitted(34, 36) Source(22, 42) + SourceIndex(3) -7 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(36, 18) Source(23, 18) + SourceIndex(3) -3 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 36) + SourceIndex(3) -5 >Emitted(36, 36) Source(23, 49) + SourceIndex(3) -6 >Emitted(36, 37) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> /*@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(45, 18) Source(24, 18) + SourceIndex(3) -3 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) -4 >Emitted(45, 23) Source(24, 36) + SourceIndex(3) -5 >Emitted(45, 32) Source(24, 45) + SourceIndex(3) -6 >Emitted(45, 33) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(57, 18) Source(25, 18) + SourceIndex(3) -3 >Emitted(57, 19) Source(25, 33) + SourceIndex(3) -4 >Emitted(57, 37) Source(25, 43) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 46) + SourceIndex(3) -6 >Emitted(57, 53) Source(25, 59) + SourceIndex(3) -7 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) -8 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) -9 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(58, 18) Source(27, 18) + SourceIndex(3) -3 >Emitted(58, 19) Source(27, 32) + SourceIndex(3) -4 >Emitted(58, 40) Source(27, 45) + SourceIndex(3) -5 >Emitted(58, 43) Source(27, 48) + SourceIndex(3) -6 >Emitted(58, 45) Source(27, 50) + SourceIndex(3) -7 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(59, 18) Source(28, 18) + SourceIndex(3) -3 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) -4 >Emitted(59, 23) Source(28, 31) + SourceIndex(3) -5 >Emitted(59, 35) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(66, 14) Source(30, 14) + SourceIndex(3) -3 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(71, 14) Source(31, 14) + SourceIndex(3) -3 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) -4 >Emitted(71, 24) Source(31, 24) + SourceIndex(3) -5 >Emitted(71, 35) Source(31, 35) + SourceIndex(3) -6 >Emitted(71, 40) Source(31, 39) + SourceIndex(3) -7 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(72, 14) Source(32, 14) + SourceIndex(3) -3 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) -4 >Emitted(72, 19) Source(32, 25) + SourceIndex(3) -5 >Emitted(72, 36) Source(32, 42) + SourceIndex(3) -6 >Emitted(72, 37) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(81, 14) Source(33, 14) + SourceIndex(3) -3 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 25) + SourceIndex(3) -5 >Emitted(81, 32) Source(33, 38) + SourceIndex(3) -6 >Emitted(81, 33) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(93, 14) Source(34, 14) + SourceIndex(3) -3 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) -4 >Emitted(93, 19) Source(34, 22) + SourceIndex(3) -5 >Emitted(93, 33) Source(34, 36) + SourceIndex(3) -6 >Emitted(93, 36) Source(34, 39) + SourceIndex(3) -7 >Emitted(93, 53) Source(34, 56) + SourceIndex(3) -8 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) -9 >Emitted(93, 63) Source(34, 66) + SourceIndex(3) -10>Emitted(93, 64) Source(34, 67) + SourceIndex(3) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(94, 14) Source(36, 14) + SourceIndex(3) -3 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) -4 >Emitted(94, 19) Source(36, 21) + SourceIndex(3) -5 >Emitted(94, 32) Source(36, 34) + SourceIndex(3) -6 >Emitted(94, 35) Source(36, 37) + SourceIndex(3) -7 >Emitted(94, 37) Source(36, 39) + SourceIndex(3) -8 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(95, 14) Source(37, 14) + SourceIndex(3) -3 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) -4 >Emitted(95, 19) Source(37, 20) + SourceIndex(3) -5 >Emitted(95, 31) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - //// [/src/2/second-output.tsbuildinfo] { "bundle": { @@ -3426,1740 +1745,6 @@ sourceFile:../../third_part1.ts --- >>>//# sourceMappingURL=third-output.d.ts.map -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(15, 18) Source(14, 18) + SourceIndex(3) -3 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(17, 18) Source(16, 18) + SourceIndex(3) -3 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 43) Source(16, 25) + SourceIndex(3) -5 >Emitted(17, 46) Source(16, 19) + SourceIndex(3) -6 >Emitted(17, 60) Source(16, 30) + SourceIndex(3) -7 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(19, 22) Source(17, 18) + SourceIndex(3) -3 >Emitted(19, 28) Source(17, 19) + SourceIndex(3) -4 >Emitted(19, 42) Source(17, 29) + SourceIndex(3) -5 >Emitted(19, 49) Source(17, 36) + SourceIndex(3) -6 >Emitted(19, 51) Source(17, 38) + SourceIndex(3) -7 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) -8 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) -9 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(20, 22) Source(18, 18) + SourceIndex(3) -3 >Emitted(20, 28) Source(18, 19) + SourceIndex(3) -4 >Emitted(20, 38) Source(18, 25) + SourceIndex(3) -5 >Emitted(20, 41) Source(18, 36) + SourceIndex(3) -6 >Emitted(20, 45) Source(18, 40) + SourceIndex(3) -7 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(28, 18) Source(21, 18) + SourceIndex(3) -3 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(34, 18) Source(22, 18) + SourceIndex(3) -3 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) -4 >Emitted(34, 28) Source(22, 35) + SourceIndex(3) -5 >Emitted(34, 31) Source(22, 38) + SourceIndex(3) -6 >Emitted(34, 36) Source(22, 42) + SourceIndex(3) -7 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(36, 18) Source(23, 18) + SourceIndex(3) -3 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 36) + SourceIndex(3) -5 >Emitted(36, 36) Source(23, 49) + SourceIndex(3) -6 >Emitted(36, 37) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> /*@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(45, 18) Source(24, 18) + SourceIndex(3) -3 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) -4 >Emitted(45, 23) Source(24, 36) + SourceIndex(3) -5 >Emitted(45, 32) Source(24, 45) + SourceIndex(3) -6 >Emitted(45, 33) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(57, 18) Source(25, 18) + SourceIndex(3) -3 >Emitted(57, 19) Source(25, 33) + SourceIndex(3) -4 >Emitted(57, 37) Source(25, 43) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 46) + SourceIndex(3) -6 >Emitted(57, 53) Source(25, 59) + SourceIndex(3) -7 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) -8 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) -9 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(58, 18) Source(27, 18) + SourceIndex(3) -3 >Emitted(58, 19) Source(27, 32) + SourceIndex(3) -4 >Emitted(58, 40) Source(27, 45) + SourceIndex(3) -5 >Emitted(58, 43) Source(27, 48) + SourceIndex(3) -6 >Emitted(58, 45) Source(27, 50) + SourceIndex(3) -7 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(59, 18) Source(28, 18) + SourceIndex(3) -3 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) -4 >Emitted(59, 23) Source(28, 31) + SourceIndex(3) -5 >Emitted(59, 35) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(66, 14) Source(30, 14) + SourceIndex(3) -3 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(71, 14) Source(31, 14) + SourceIndex(3) -3 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) -4 >Emitted(71, 24) Source(31, 24) + SourceIndex(3) -5 >Emitted(71, 35) Source(31, 35) + SourceIndex(3) -6 >Emitted(71, 40) Source(31, 39) + SourceIndex(3) -7 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(72, 14) Source(32, 14) + SourceIndex(3) -3 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) -4 >Emitted(72, 19) Source(32, 25) + SourceIndex(3) -5 >Emitted(72, 36) Source(32, 42) + SourceIndex(3) -6 >Emitted(72, 37) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(81, 14) Source(33, 14) + SourceIndex(3) -3 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 25) + SourceIndex(3) -5 >Emitted(81, 32) Source(33, 38) + SourceIndex(3) -6 >Emitted(81, 33) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(93, 14) Source(34, 14) + SourceIndex(3) -3 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) -4 >Emitted(93, 19) Source(34, 22) + SourceIndex(3) -5 >Emitted(93, 33) Source(34, 36) + SourceIndex(3) -6 >Emitted(93, 36) Source(34, 39) + SourceIndex(3) -7 >Emitted(93, 53) Source(34, 56) + SourceIndex(3) -8 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) -9 >Emitted(93, 63) Source(34, 66) + SourceIndex(3) -10>Emitted(93, 64) Source(34, 67) + SourceIndex(3) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(94, 14) Source(36, 14) + SourceIndex(3) -3 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) -4 >Emitted(94, 19) Source(36, 21) + SourceIndex(3) -5 >Emitted(94, 32) Source(36, 34) + SourceIndex(3) -6 >Emitted(94, 35) Source(36, 37) + SourceIndex(3) -7 >Emitted(94, 37) Source(36, 39) + SourceIndex(3) -8 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(95, 14) Source(37, 14) + SourceIndex(3) -3 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) -4 >Emitted(95, 19) Source(37, 20) + SourceIndex(3) -5 >Emitted(95, 31) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - //// [/src/third/thirdjs/output/third-output.tsbuildinfo] { "bundle": { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js index fb04c867b4e..65791f61896 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js @@ -671,1740 +671,6 @@ sourceFile:../../third_part1.ts --- >>>//# sourceMappingURL=third-output.d.ts.map -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(15, 18) Source(14, 18) + SourceIndex(3) -3 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(17, 18) Source(16, 18) + SourceIndex(3) -3 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 43) Source(16, 25) + SourceIndex(3) -5 >Emitted(17, 46) Source(16, 19) + SourceIndex(3) -6 >Emitted(17, 60) Source(16, 30) + SourceIndex(3) -7 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(19, 22) Source(17, 18) + SourceIndex(3) -3 >Emitted(19, 28) Source(17, 19) + SourceIndex(3) -4 >Emitted(19, 42) Source(17, 29) + SourceIndex(3) -5 >Emitted(19, 49) Source(17, 36) + SourceIndex(3) -6 >Emitted(19, 51) Source(17, 38) + SourceIndex(3) -7 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) -8 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) -9 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(20, 22) Source(18, 18) + SourceIndex(3) -3 >Emitted(20, 28) Source(18, 19) + SourceIndex(3) -4 >Emitted(20, 38) Source(18, 25) + SourceIndex(3) -5 >Emitted(20, 41) Source(18, 36) + SourceIndex(3) -6 >Emitted(20, 45) Source(18, 40) + SourceIndex(3) -7 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(28, 18) Source(21, 18) + SourceIndex(3) -3 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(34, 18) Source(22, 18) + SourceIndex(3) -3 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) -4 >Emitted(34, 28) Source(22, 35) + SourceIndex(3) -5 >Emitted(34, 31) Source(22, 38) + SourceIndex(3) -6 >Emitted(34, 36) Source(22, 42) + SourceIndex(3) -7 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(36, 18) Source(23, 18) + SourceIndex(3) -3 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 36) + SourceIndex(3) -5 >Emitted(36, 36) Source(23, 49) + SourceIndex(3) -6 >Emitted(36, 37) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> /*@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(45, 18) Source(24, 18) + SourceIndex(3) -3 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) -4 >Emitted(45, 23) Source(24, 36) + SourceIndex(3) -5 >Emitted(45, 32) Source(24, 45) + SourceIndex(3) -6 >Emitted(45, 33) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(57, 18) Source(25, 18) + SourceIndex(3) -3 >Emitted(57, 19) Source(25, 33) + SourceIndex(3) -4 >Emitted(57, 37) Source(25, 43) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 46) + SourceIndex(3) -6 >Emitted(57, 53) Source(25, 59) + SourceIndex(3) -7 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) -8 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) -9 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(58, 18) Source(27, 18) + SourceIndex(3) -3 >Emitted(58, 19) Source(27, 32) + SourceIndex(3) -4 >Emitted(58, 40) Source(27, 45) + SourceIndex(3) -5 >Emitted(58, 43) Source(27, 48) + SourceIndex(3) -6 >Emitted(58, 45) Source(27, 50) + SourceIndex(3) -7 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(59, 18) Source(28, 18) + SourceIndex(3) -3 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) -4 >Emitted(59, 23) Source(28, 31) + SourceIndex(3) -5 >Emitted(59, 35) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(66, 14) Source(30, 14) + SourceIndex(3) -3 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(71, 14) Source(31, 14) + SourceIndex(3) -3 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) -4 >Emitted(71, 24) Source(31, 24) + SourceIndex(3) -5 >Emitted(71, 35) Source(31, 35) + SourceIndex(3) -6 >Emitted(71, 40) Source(31, 39) + SourceIndex(3) -7 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(72, 14) Source(32, 14) + SourceIndex(3) -3 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) -4 >Emitted(72, 19) Source(32, 25) + SourceIndex(3) -5 >Emitted(72, 36) Source(32, 42) + SourceIndex(3) -6 >Emitted(72, 37) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(81, 14) Source(33, 14) + SourceIndex(3) -3 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 25) + SourceIndex(3) -5 >Emitted(81, 32) Source(33, 38) + SourceIndex(3) -6 >Emitted(81, 33) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(93, 14) Source(34, 14) + SourceIndex(3) -3 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) -4 >Emitted(93, 19) Source(34, 22) + SourceIndex(3) -5 >Emitted(93, 33) Source(34, 36) + SourceIndex(3) -6 >Emitted(93, 36) Source(34, 39) + SourceIndex(3) -7 >Emitted(93, 53) Source(34, 56) + SourceIndex(3) -8 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) -9 >Emitted(93, 63) Source(34, 66) + SourceIndex(3) -10>Emitted(93, 64) Source(34, 67) + SourceIndex(3) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(94, 14) Source(36, 14) + SourceIndex(3) -3 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) -4 >Emitted(94, 19) Source(36, 21) + SourceIndex(3) -5 >Emitted(94, 32) Source(36, 34) + SourceIndex(3) -6 >Emitted(94, 35) Source(36, 37) + SourceIndex(3) -7 >Emitted(94, 37) Source(36, 39) + SourceIndex(3) -8 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(95, 14) Source(37, 14) + SourceIndex(3) -3 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) -4 >Emitted(95, 19) Source(37, 20) + SourceIndex(3) -5 >Emitted(95, 31) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - //// [/src/third/thirdjs/output/third-output.tsbuildinfo] { "bundle": { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js index 4c263d59de8..75a1379fe9f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js @@ -671,1640 +671,6 @@ sourceFile:../../third_part1.ts --- >>>//# sourceMappingURL=third-output.d.ts.map -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - //// [/src/third/thirdjs/output/third-output.tsbuildinfo] { "bundle": { From 1f149ccfd7f8cf8c6ace3a2cf4ac3a2232a6c98a Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 9 Sep 2019 14:09:28 -0700 Subject: [PATCH 061/159] Use clean and written files to verify the tsbuild incremental compilation = clean build compilation --- .../unittests/tsbuild/amdModulesWithOut.ts | 8 --- .../unittests/tsbuild/emitDeclarationOnly.ts | 22 ------ src/testRunner/unittests/tsbuild/helpers.ts | 18 ++--- .../inferredTypeFromTransitiveModule.ts | 7 -- .../unittests/tsbuild/lateBoundSymbol.ts | 5 -- src/testRunner/unittests/tsbuild/outFile.ts | 1 - src/testRunner/unittests/tsbuild/sample.ts | 68 ------------------- 7 files changed, 7 insertions(+), 122 deletions(-) diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts index e28f1ffc840..19413d89989 100644 --- a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -82,10 +82,6 @@ namespace ts { incrementalHeaderChangedBuild: modifyAgainFs ? { modifyFs: modifyAgainFs } : undefined, - outputFiles: [ - ...outputFiles[project.lib], - ...outputFiles[project.app] - ], baselineOnly: true }); } @@ -232,10 +228,6 @@ ${internal} export enum internalEnum { a, b, c }`); [Diagnostics.Building_project_0, sources[project.app][source.config]], ] }, - outputFiles: [ - ...libOutputFile, - ...outputFiles[project.app] - ], baselineOnly: true, verifyDiagnostics: true }); diff --git a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts index 1999737a50f..73dc36c1a0a 100644 --- a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts +++ b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts @@ -18,19 +18,6 @@ namespace ts { proj: "emitDeclarationOnly", rootNames: ["/src"], lastProjectOutput: `/src/lib/index.d.ts`, - outputFiles: [ - "/src/lib/a.d.ts", - "/src/lib/b.d.ts", - "/src/lib/c.d.ts", - "/src/lib/index.d.ts", - "/src/tsconfig.tsbuildinfo", - ...(disableMap ? emptyArray : [ - "/src/lib/a.d.ts.map", - "/src/lib/b.d.ts.map", - "/src/lib/c.d.ts.map", - "/src/lib/index.d.ts.map" - ]) - ], initialBuild: { modifyFs: disableMap ? (fs => replaceText(fs, "/src/tsconfig.json", `"declarationMap": true,`, "")) : @@ -64,15 +51,6 @@ namespace ts { proj: "emitDeclarationOnly", rootNames: ["/src"], lastProjectOutput: `/src/lib/a.d.ts`, - outputFiles: [ - "/src/lib/a.d.ts", - "/src/lib/b.d.ts", - "/src/lib/c.d.ts", - "/src/tsconfig.tsbuildinfo", - "/src/lib/a.d.ts.map", - "/src/lib/b.d.ts.map", - "/src/lib/c.d.ts.map", - ], initialBuild: { modifyFs: fs => { fs.rimrafSync("/src/src/index.ts"); diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 88a9d403454..5d656589b71 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -267,7 +267,7 @@ interface Symbol { if (baselineSourceMap) generateSourceMapBaselineFiles(fs, mapDefinedIterator(writtenFiles.keys(), f => f.endsWith(".map") ? f : undefined)); generateBuildInfoSectionBaselineFiles(fs, expectedBuildInfoFilesForSectionBaselines || emptyArray); fs.makeReadonly(); - return { fs, actualReadFileMap, host, builder }; + return { fs, actualReadFileMap, host, builder, writtenFiles }; } function generateBaseline(fs: vfs.FileSystem, proj: string, scenario: string, subScenario: string, baseFs: vfs.FileSystem) { @@ -314,7 +314,6 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt expectedBuildInfoFilesForSectionBaselines?: ReadonlyArray; lastProjectOutput: string; initialBuild: BuildState; - outputFiles?: ReadonlyArray; incrementalDtsChangedBuild?: BuildState; incrementalDtsUnchangedBuild?: BuildState; incrementalHeaderChangedBuild?: BuildState; @@ -324,7 +323,7 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt } export function verifyTsbuildOutput({ - scenario, projFs, time, tick, proj, rootNames, outputFiles, baselineOnly, verifyDiagnostics, + scenario, projFs, time, tick, proj, rootNames, baselineOnly, verifyDiagnostics, baselineSourceMap, expectedBuildInfoFilesForSectionBaselines, lastProjectOutput, initialBuild, incrementalDtsChangedBuild, incrementalDtsUnchangedBuild, incrementalHeaderChangedBuild }: VerifyTsBuildInput) { @@ -417,22 +416,19 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt }); } it(`Verify emit output file text is same when built clean`, () => { - const expectedOutputFiles = Debug.assertDefined(outputFiles); - const { fs } = build({ + const { fs, writtenFiles } = build({ fs: newFs.shadow(), tick, rootNames, modifyFs: fs => { // Delete output files - for (const outputFile of expectedOutputFiles) { - if (fs.existsSync(outputFile)) { - fs.rimrafSync(outputFile); - } - } + const host = new fakes.SolutionBuilderHost(fs); + const builder = createSolutionBuilder(host, rootNames, { clean: true }); + builder.clean(); }, }); - for (const outputFile of expectedOutputFiles) { + for (const outputFile of arrayFrom(writtenFiles.keys())) { const expectedText = fs.existsSync(outputFile) ? fs.readFileSync(outputFile, "utf8") : undefined; const actualText = newFs.existsSync(outputFile) ? newFs.readFileSync(outputFile, "utf8") : undefined; assert.equal(actualText, expectedText, `File: ${outputFile}`); diff --git a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts index 301f9894fde..81822df5652 100644 --- a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts +++ b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts @@ -17,13 +17,6 @@ namespace ts { proj: "inferredTypeFromTransitiveModule", rootNames: ["/src"], lastProjectOutput: `/src/obj/index.js`, - outputFiles: [ - "/src/obj/bar.js", "/src/obj/bar.d.ts", - "/src/obj/bundling.js", "/src/obj/bundling.d.ts", - "/src/obj/lazyIndex.js", "/src/obj/lazyIndex.d.ts", - "/src/obj/index.js", "/src/obj/index.d.ts", - "/src/obj/tsconfig.tsbuildinfo" - ], initialBuild: { modifyFs: noop, expectedDiagnostics: [ diff --git a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts index 781dd6938b9..72c7c0b80e2 100644 --- a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts +++ b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts @@ -17,11 +17,6 @@ namespace ts { proj: "lateBoundSymbol", rootNames: ["/src/tsconfig.json"], lastProjectOutput: "/src/src/main.js", - outputFiles: [ - "/src/src/hkt.js", - "/src/src/main.js", - "/src/tsconfig.tsbuildinfo", - ], initialBuild: { modifyFs: noop, expectedDiagnostics: [ diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index f813f61542c..dfc6d4cc327 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -303,7 +303,6 @@ namespace ts { expectedDiagnostics: dtsUnchanged && dtsUnchanged.expectedDiagnostics, expectedReadFiles: dtsUnchanged && dtsUnchanged.expectedReadFiles } : undefined, - outputFiles: expectedOutputFiles, baselineOnly }); } diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index 8e921c97aee..7e3f12bc4e7 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -693,22 +693,6 @@ class someClass { }`), ], ) }, - outputFiles: [ - "/src/core/anotherModule.js", - "/src/core/anotherModule.d.ts", - "/src/core/anotherModule.d.ts.map", - "/src/core/index.js", - "/src/core/index.d.ts", - "/src/core/index.d.ts.map", - "/src/core/tsconfig.tsbuildinfo", - "/src/logic/index.js", - "/src/logic/index.js.map", - "/src/logic/index.d.ts", - "/src/logic/tsconfig.tsbuildinfo", - "/src/tests/index.js", - "/src/tests/index.d.ts", - "/src/tests/tsconfig.tsbuildinfo", - ] }); verifyTsbuildOutput({ @@ -757,22 +741,6 @@ class someClass { }`), ] ) }, - outputFiles: [ - "/src/core/anotherModule.js", - "/src/core/anotherModule.d.ts", - "/src/core/anotherModule.d.ts.map", - "/src/core/index.js", - "/src/core/index.d.ts", - "/src/core/index.d.ts.map", - "/src/core/tsconfig.tsbuildinfo", - "/src/logic/index.js", - "/src/logic/index.js.map", - "/src/logic/decls/index.d.ts", - "/src/logic/tsconfig.tsbuildinfo", - "/src/tests/index.js", - "/src/tests/index.d.ts", - "/src/tests/tsconfig.tsbuildinfo", - ], }); verifyTsbuildOutput({ @@ -814,22 +782,6 @@ class someClass { }`), ] ) }, - outputFiles: [ - "/src/core/anotherModule.js", - "/src/core/anotherModule.d.ts", - "/src/core/anotherModule.d.ts.map", - "/src/core/index.js", - "/src/core/index.d.ts", - "/src/core/index.d.ts.map", - "/src/core/tsconfig.tsbuildinfo", - "/src/logic/index.js", - "/src/logic/index.js.map", - "/src/logic/index.d.ts", - "/src/logic/ownFile.tsbuildinfo", - "/src/tests/index.js", - "/src/tests/index.d.ts", - "/src/tests/tsconfig.tsbuildinfo", - ] }); verifyTsbuildOutput({ @@ -861,13 +813,6 @@ class someClass { }`), [Diagnostics.Building_project_0, "/src/core/tsconfig.json"] ] }, - outputFiles: [ - "/src/core/anotherModule.js", - "/src/core/anotherModule.d.ts", - "/src/core/index.js", - "/src/core/index.d.ts", - "/src/core/tsconfig.tsbuildinfo", - ], baselineOnly: true, verifyDiagnostics: true }); @@ -910,13 +855,6 @@ class someClass { }`), [Diagnostics.Building_project_0, "/src/core/tsconfig.json"] ] }, - outputFiles: [ - "/src/core/anotherModule.js", - "/src/core/anotherModule.d.ts", - "/src/core/index.js", - "/src/core/index.d.ts", - "/src/core/tsconfig.tsbuildinfo", - ], baselineOnly: true, verifyDiagnostics: true }); @@ -950,11 +888,6 @@ class someClass { }`), [Diagnostics.Building_project_0, "/src/core/tsconfig.json"] ] }, - outputFiles: [ - "/src/core/anotherModule.js", - "/src/core/index.js", - "/src/core/tsconfig.tsbuildinfo", - ], baselineOnly: true, verifyDiagnostics: true }); @@ -1002,7 +935,6 @@ class someClass { }`), [Diagnostics.Building_project_0, "/src/tests/tsconfig.json"] ] }, - outputFiles: [], baselineOnly: true, verifyDiagnostics: true }); From bfc4f7a12f9f27da1e31f40b8ffefb5ae8abdc43 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 9 Sep 2019 14:17:58 -0700 Subject: [PATCH 062/159] Get the last output from the written files --- src/testRunner/unittests/tsbuild/amdModulesWithOut.ts | 2 -- src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts | 2 -- src/testRunner/unittests/tsbuild/helpers.ts | 8 +++++--- .../unittests/tsbuild/inferredTypeFromTransitiveModule.ts | 1 - src/testRunner/unittests/tsbuild/lateBoundSymbol.ts | 1 - src/testRunner/unittests/tsbuild/moduleSpecifiers.ts | 1 - src/testRunner/unittests/tsbuild/outFile.ts | 1 - src/testRunner/unittests/tsbuild/sample.ts | 7 ------- 8 files changed, 5 insertions(+), 18 deletions(-) diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts index 19413d89989..c037c310043 100644 --- a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -72,7 +72,6 @@ namespace ts { [outputFiles[project.lib][ext.buildinfo], outputFiles[project.lib][ext.js], outputFiles[project.lib][ext.dts]], [outputFiles[project.app][ext.buildinfo], outputFiles[project.app][ext.js], outputFiles[project.app][ext.dts]] ], - lastProjectOutput: outputFiles[project.app][ext.js], initialBuild: { modifyFs }, @@ -217,7 +216,6 @@ ${internal} export enum internalEnum { a, b, c }`); [libOutputFile[ext.buildinfo], libOutputFile[ext.js], libOutputFile[ext.dts]], [outputFiles[project.app][ext.buildinfo], outputFiles[project.app][ext.js], outputFiles[project.app][ext.dts]] ], - lastProjectOutput: outputFiles[project.app][ext.js], initialBuild: { modifyFs, expectedDiagnostics: [ diff --git a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts index 73dc36c1a0a..e9ce4b46024 100644 --- a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts +++ b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts @@ -17,7 +17,6 @@ namespace ts { tick, proj: "emitDeclarationOnly", rootNames: ["/src"], - lastProjectOutput: `/src/lib/index.d.ts`, initialBuild: { modifyFs: disableMap ? (fs => replaceText(fs, "/src/tsconfig.json", `"declarationMap": true,`, "")) : @@ -50,7 +49,6 @@ namespace ts { tick, proj: "emitDeclarationOnly", rootNames: ["/src"], - lastProjectOutput: `/src/lib/a.d.ts`, initialBuild: { modifyFs: fs => { fs.rimrafSync("/src/src/index.ts"); diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 5d656589b71..b204daef0fb 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -312,7 +312,6 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt proj: string; rootNames: ReadonlyArray; expectedBuildInfoFilesForSectionBaselines?: ReadonlyArray; - lastProjectOutput: string; initialBuild: BuildState; incrementalDtsChangedBuild?: BuildState; incrementalDtsUnchangedBuild?: BuildState; @@ -324,7 +323,7 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt export function verifyTsbuildOutput({ scenario, projFs, time, tick, proj, rootNames, baselineOnly, verifyDiagnostics, - baselineSourceMap, expectedBuildInfoFilesForSectionBaselines, lastProjectOutput, + baselineSourceMap, expectedBuildInfoFilesForSectionBaselines, initialBuild, incrementalDtsChangedBuild, incrementalDtsUnchangedBuild, incrementalHeaderChangedBuild }: VerifyTsBuildInput) { describe(`tsc --b ${proj}:: ${scenario}`, () => { @@ -332,6 +331,7 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt let actualReadFileMap: Map; let firstBuildTime: number; let host: fakes.SolutionBuilderHost; + let initialWrittenFiles: Map; before(() => { const result = build({ fs: projFs().shadow(), @@ -341,13 +341,14 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt expectedBuildInfoFilesForSectionBaselines, modifyFs: initialBuild.modifyFs, }); - ({ fs, actualReadFileMap, host } = result); + ({ fs, actualReadFileMap, host, writtenFiles: initialWrittenFiles } = result); firstBuildTime = time(); }); after(() => { fs = undefined!; actualReadFileMap = undefined!; host = undefined!; + initialWrittenFiles = undefined!; }); describe("initialBuild", () => { if (!baselineOnly || verifyDiagnostics) { @@ -373,6 +374,7 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt let beforeBuildTime: number; let afterBuildTime: number; before(() => { + const lastProjectOutput = last(arrayFrom(initialWrittenFiles.keys())); beforeBuildTime = fs.statSync(lastProjectOutput).mtimeMs; tick(); newFs = fs.shadow(); diff --git a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts index 81822df5652..92762dfd49d 100644 --- a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts +++ b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts @@ -16,7 +16,6 @@ namespace ts { tick, proj: "inferredTypeFromTransitiveModule", rootNames: ["/src"], - lastProjectOutput: `/src/obj/index.js`, initialBuild: { modifyFs: noop, expectedDiagnostics: [ diff --git a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts index 72c7c0b80e2..02224b3fa88 100644 --- a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts +++ b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts @@ -16,7 +16,6 @@ namespace ts { tick, proj: "lateBoundSymbol", rootNames: ["/src/tsconfig.json"], - lastProjectOutput: "/src/src/main.js", initialBuild: { modifyFs: noop, expectedDiagnostics: [ diff --git a/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts b/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts index c6737b9d2f7..86328788a3b 100644 --- a/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts +++ b/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts @@ -96,7 +96,6 @@ namespace ts { tick, proj: "moduleSpecifiers", rootNames: ["/"], - lastProjectOutput: `/src/lib/index.d.ts`, initialBuild: { modifyFs: noop, }, diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index dfc6d4cc327..db8d0873e76 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -280,7 +280,6 @@ namespace ts { rootNames: ["/src/third"], baselineSourceMap: true, expectedBuildInfoFilesForSectionBaselines: expectedBuildInfoFilesForSectionBaselines || expectedTsbuildInfoFileNames, - lastProjectOutput: outputFiles[project.third][ext.js], initialBuild: { modifyFs, expectedDiagnostics: initialExpectedDiagnostics, diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index 7e3f12bc4e7..d95ba5e514a 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -613,7 +613,6 @@ export class cNew {}`); proj: "sample1", rootNames: ["/src/tests"], baselineSourceMap: true, - lastProjectOutput: "/src/tests/index.js", initialBuild, incrementalDtsChangedBuild: { modifyFs: fs => appendText(fs, "/src/core/index.ts", ` @@ -703,7 +702,6 @@ class someClass { }`), proj: "sample1", rootNames: ["/src/tests"], baselineSourceMap: true, - lastProjectOutput: "/src/tests/index.js", initialBuild, incrementalDtsChangedBuild: { modifyFs: fs => replaceText(fs, "/src/logic/tsconfig.json", `"declaration": true,`, `"declaration": true, @@ -751,7 +749,6 @@ class someClass { }`), proj: "sample1", rootNames: ["/src/tests"], baselineSourceMap: true, - lastProjectOutput: "/src/tests/index.js", initialBuild: { modifyFs: fs => replaceText(fs, "/src/logic/tsconfig.json", `"composite": true,`, `"composite": true, "tsBuildInfoFile": "ownFile.tsbuildinfo",`), @@ -791,7 +788,6 @@ class someClass { }`), tick, proj: "sample1", rootNames: ["/src/core"], - lastProjectOutput: "/src/core/index.js", initialBuild: { modifyFs: fs => fs.writeFileSync("/src/core/tsconfig.json", `{ "compilerOptions": { @@ -824,7 +820,6 @@ class someClass { }`), tick, proj: "sample1", rootNames: ["/src/core"], - lastProjectOutput: "/src/core/index.js", initialBuild: { modifyFs: fs => { fs.writeFileSync("/lib/lib.esnext.full.d.ts", `/// @@ -866,7 +861,6 @@ class someClass { }`), tick, proj: "sample1", rootNames: ["/src/core"], - lastProjectOutput: "/src/core/index.js", initialBuild: { modifyFs: fs => fs.writeFileSync("/src/core/tsconfig.json", `{ "compilerOptions": { @@ -899,7 +893,6 @@ class someClass { }`), tick, proj: "sample1", rootNames: ["/src/tests"], - lastProjectOutput: "/src/tests/index.js", initialBuild: { modifyFs: fs => fs.writeFileSync("/src/tests/tsconfig.json", `{ "references": [ From e43d5044226e95fac66105564b188d389ee5845f Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 9 Sep 2019 15:00:44 -0700 Subject: [PATCH 063/159] Baseline tsbuild info section files from written files --- src/compiler/tsbuild.ts | 5 +++ .../unittests/tsbuild/amdModulesWithOut.ts | 33 ----------------- src/testRunner/unittests/tsbuild/helpers.ts | 35 +++++++++++++------ src/testRunner/unittests/tsbuild/outFile.ts | 13 ------- ...e-resolution-finds-original-source-file.js | 34 ++++++++++++++++++ 5 files changed, 63 insertions(+), 57 deletions(-) diff --git a/src/compiler/tsbuild.ts b/src/compiler/tsbuild.ts index 0503d0a49da..f1ac23f0052 100644 --- a/src/compiler/tsbuild.ts +++ b/src/compiler/tsbuild.ts @@ -308,6 +308,7 @@ namespace ts { /*@internal*/ getUpToDateStatusOfProject(project: string): UpToDateStatus; /*@internal*/ invalidateProject(configFilePath: ResolvedConfigFilePath, reloadLevel?: ConfigFileProgramReloadLevel): void; /*@internal*/ buildNextInvalidatedProject(): void; + /*@internal*/ getAllParsedConfigs(): readonly ParsedCommandLine[]; } /** @@ -2047,6 +2048,10 @@ namespace ts { }, invalidateProject: (configFilePath, reloadLevel) => invalidateProject(state, configFilePath, reloadLevel || ConfigFileProgramReloadLevel.None), buildNextInvalidatedProject: () => buildNextInvalidatedProject(state), + getAllParsedConfigs: () => arrayFrom(mapDefinedIterator( + state.configFileCache.values(), + config => isParsedCommandLine(config) ? config : undefined + )), }; } diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts index c037c310043..e28c2a928db 100644 --- a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -2,26 +2,8 @@ namespace ts { describe("unittests:: tsbuild:: outFile:: on amd modules with --out", () => { let outFileFs: vfs.FileSystem; const { time, tick } = getTime(); - const enum ext { js, jsmap, dts, dtsmap, buildinfo } const enum project { lib, app } - type OutputFile = [string, string, string, string, string]; function relName(path: string) { return path.slice(1); } - const outputFiles: [OutputFile, OutputFile] = [ - [ - "/src/lib/module.js", - "/src/lib/module.js.map", - "/src/lib/module.d.ts", - "/src/lib/module.d.ts.map", - "/src/lib/module.tsbuildinfo" - ], - [ - "/src/app/module.js", - "/src/app/module.js.map", - "/src/app/module.d.ts", - "/src/app/module.d.ts.map", - "/src/app/module.tsbuildinfo" - ] - ]; type Sources = [string, ReadonlyArray]; const enum source { config, ts } const sources: [Sources, Sources] = [ @@ -68,10 +50,6 @@ namespace ts { proj: "amdModulesWithOut", rootNames: ["/src/app"], baselineSourceMap: true, - expectedBuildInfoFilesForSectionBaselines: [ - [outputFiles[project.lib][ext.buildinfo], outputFiles[project.lib][ext.js], outputFiles[project.lib][ext.dts]], - [outputFiles[project.app][ext.buildinfo], outputFiles[project.app][ext.js], outputFiles[project.app][ext.dts]] - ], initialBuild: { modifyFs }, @@ -197,13 +175,6 @@ ${internal} export enum internalEnum { a, b, c }`); replaceText(fs, sources[project.app][source.ts][0], "file1", "lib/file1"); } - const libOutputFile: OutputFile = [ - "/src/lib/module.js", - "/src/lib/module.js.map", - "/src/lib/module.d.ts", - "/src/lib/module.d.ts.map", - "/src/lib/module.tsbuildinfo" - ]; verifyTsbuildOutput({ scenario: "when the module resolution finds original source file", projFs: () => outFileFs, @@ -212,10 +183,6 @@ ${internal} export enum internalEnum { a, b, c }`); proj: "amdModulesWithOut", rootNames: ["/src/app"], baselineSourceMap: true, - expectedBuildInfoFilesForSectionBaselines: [ - [libOutputFile[ext.buildinfo], libOutputFile[ext.js], libOutputFile[ext.dts]], - [outputFiles[project.app][ext.buildinfo], outputFiles[project.app][ext.js], outputFiles[project.app][ext.dts]] - ], initialBuild: { modifyFs, expectedDiagnostics: [ diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index b204daef0fb..c20cdeb7f94 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -235,12 +235,12 @@ interface Symbol { fs: vfs.FileSystem; tick: () => void; rootNames: ReadonlyArray; - baselineSourceMap?: true; - expectedBuildInfoFilesForSectionBaselines?: ReadonlyArray; modifyFs: (fs: vfs.FileSystem) => void; + baselineSourceMap?: true; + baselineBuildInfo?: true; } - function build({ fs, tick, rootNames, baselineSourceMap, expectedBuildInfoFilesForSectionBaselines, modifyFs }: BuildInput) { + function build({ fs, tick, rootNames, modifyFs, baselineSourceMap, baselineBuildInfo }: BuildInput) { const actualReadFileMap = createMap(); modifyFs(fs); tick(); @@ -265,7 +265,21 @@ interface Symbol { }; builder.build(); if (baselineSourceMap) generateSourceMapBaselineFiles(fs, mapDefinedIterator(writtenFiles.keys(), f => f.endsWith(".map") ? f : undefined)); - generateBuildInfoSectionBaselineFiles(fs, expectedBuildInfoFilesForSectionBaselines || emptyArray); + if (baselineBuildInfo) { + let expectedBuildInfoFiles: BuildInfoSectionBaselineFiles[] | undefined; + for (const { options } of builder.getAllParsedConfigs()) { + const out = options.outFile || options.out; + if (out) { + const { jsFilePath, declarationFilePath, buildInfoPath } = getOutputPathsForBundle(options, /*forceDts*/ false); + if (buildInfoPath && writtenFiles.has(buildInfoPath)) { + (expectedBuildInfoFiles || (expectedBuildInfoFiles = [])).push( + [buildInfoPath, jsFilePath, declarationFilePath] + ); + } + } + } + if (expectedBuildInfoFiles) generateBuildInfoSectionBaselineFiles(fs, expectedBuildInfoFiles); + } fs.makeReadonly(); return { fs, actualReadFileMap, host, builder, writtenFiles }; } @@ -311,7 +325,6 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt tick: () => void; proj: string; rootNames: ReadonlyArray; - expectedBuildInfoFilesForSectionBaselines?: ReadonlyArray; initialBuild: BuildState; incrementalDtsChangedBuild?: BuildState; incrementalDtsUnchangedBuild?: BuildState; @@ -322,8 +335,8 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt } export function verifyTsbuildOutput({ - scenario, projFs, time, tick, proj, rootNames, baselineOnly, verifyDiagnostics, - baselineSourceMap, expectedBuildInfoFilesForSectionBaselines, + scenario, projFs, time, tick, proj, rootNames, + baselineOnly, verifyDiagnostics, baselineSourceMap, initialBuild, incrementalDtsChangedBuild, incrementalDtsUnchangedBuild, incrementalHeaderChangedBuild }: VerifyTsBuildInput) { describe(`tsc --b ${proj}:: ${scenario}`, () => { @@ -337,9 +350,9 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt fs: projFs().shadow(), tick, rootNames, - baselineSourceMap, - expectedBuildInfoFilesForSectionBaselines, modifyFs: initialBuild.modifyFs, + baselineSourceMap, + baselineBuildInfo: true, }); ({ fs, actualReadFileMap, host, writtenFiles: initialWrittenFiles } = result); firstBuildTime = time(); @@ -383,9 +396,9 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt fs: newFs, tick, rootNames, - baselineSourceMap, - expectedBuildInfoFilesForSectionBaselines, modifyFs: incrementalModifyFs, + baselineSourceMap, + baselineBuildInfo: true, })); afterBuildTime = newFs.statSync(lastProjectOutput).mtimeMs; }); diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index db8d0873e76..6fae1e443ab 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -55,11 +55,6 @@ namespace ts { ] ] ]; - const expectedTsbuildInfoFileNames: ReadonlyArray = [ - [outputFiles[project.first][ext.buildinfo], outputFiles[project.first][ext.js], outputFiles[project.first][ext.dts]], - [outputFiles[project.second][ext.buildinfo], outputFiles[project.second][ext.js], outputFiles[project.second][ext.dts]], - [outputFiles[project.third][ext.buildinfo], outputFiles[project.third][ext.js], outputFiles[project.third][ext.dts]] - ]; const relSources = sources.map(([config, sources]) => [relName(config), sources.map(relName)]) as any as [Sources, Sources, Sources]; const { time, tick } = getTime(); let expectedOutputFiles = [ @@ -244,7 +239,6 @@ namespace ts { modifyFs: (fs: vfs.FileSystem) => void; modifyAgainFs?: (fs: vfs.FileSystem) => void; additionalSourceFiles?: ReadonlyArray; - expectedBuildInfoFilesForSectionBaselines?: ReadonlyArray; dependOrdered?: true; ignoreDtsChanged?: true; ignoreDtsUnchanged?: true; @@ -256,7 +250,6 @@ namespace ts { modifyFs, modifyAgainFs, additionalSourceFiles, - expectedBuildInfoFilesForSectionBaselines, dependOrdered, ignoreDtsChanged, ignoreDtsUnchanged, @@ -279,7 +272,6 @@ namespace ts { proj: "outfile-concat", rootNames: ["/src/third"], baselineSourceMap: true, - expectedBuildInfoFilesForSectionBaselines: expectedBuildInfoFilesForSectionBaselines || expectedTsbuildInfoFileNames, initialBuild: { modifyFs, expectedDiagnostics: initialExpectedDiagnostics, @@ -334,11 +326,6 @@ namespace ts { scenario: "when final project specifies tsBuildInfoFile", modifyFs: fs => replaceText(fs, sources[project.third][source.config], `"composite": true,`, `"composite": true, "tsBuildInfoFile": "./thirdjs/output/third.tsbuildinfo",`), - expectedBuildInfoFilesForSectionBaselines: [ - expectedTsbuildInfoFileNames[0], - expectedTsbuildInfoFileNames[1], - ["/src/third/thirdjs/output/third.tsbuildinfo", expectedTsbuildInfoFileNames[2][1], expectedTsbuildInfoFileNames[2][2]] - ], ignoreDtsChanged: true, ignoreDtsUnchanged: true, baselineOnly: true diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js index feae4ea8dc8..3611d355563 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js @@ -803,3 +803,37 @@ sourceFile:lib/global.ts "version": "FakeTSVersion" } +//// [/src/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/module.js +---------------------------------------------------------------------- +text: (0-417) +var myGlob = 20; +define("lib/file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("lib/file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/module.d.ts +---------------------------------------------------------------------- +text: (0-179) +declare const myGlob = 20; +declare module "lib/file1" { + export const x = 10; +} +declare module "lib/file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + From 8521002dff8311f2ac3994c8379090fee4ffe38b Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 9 Sep 2019 15:29:38 -0700 Subject: [PATCH 064/159] Baseline emitted files that are written even if same file contents --- src/harness/vfs.ts | 49 +++++++++++++------ src/testRunner/unittests/tsbuild/helpers.ts | 2 +- .../modules-and-globals-mixed-in-amd.js | 3 ++ .../multiple-emitHelpers-in-all-projects.js | 3 ++ .../multiple-prologues-in-all-projects.js | 3 ++ .../shebang-in-all-projects.js | 3 ++ .../stripInternal.js | 3 ++ .../triple-slash-refs-in-all-projects.js | 3 ++ .../multiple-emitHelpers-in-all-projects.js | 3 ++ .../multiple-prologues-in-all-projects.js | 1 + .../stripInternal.js | 1 + ...-emitDeclarationOnly-and-declarationMap.js | 6 +++ ...import-project-with-emitDeclarationOnly.js | 3 ++ ...mports-project-with-emitDeclarationOnly.js | 4 ++ ...mports-project-with-emitDeclarationOnly.js | 1 + .../inferred-type-from-transitive-module.js | 3 ++ .../baseline-sectioned-sourcemaps.js | 3 ++ .../emitHelpers-in-all-projects.js | 3 ++ ...tHelpers-in-only-one-dependency-project.js | 3 ++ .../multiple-emitHelpers-in-all-projects.js | 3 ++ ...tiple-emitHelpers-in-different-projects.js | 3 ++ .../multiple-prologues-in-all-projects.js | 3 ++ ...ultiple-prologues-in-different-projects.js | 3 ++ .../shebang-in-all-projects.js | 3 ++ .../shebang-in-only-one-dependency-project.js | 3 ++ .../strict-in-all-projects.js | 3 ++ .../strict-in-one-dependency.js | 3 ++ ...en-one-two-three-are-prepended-in-order.js | 3 ++ .../stripInternal-jsdoc-style-comment.js | 3 ++ ...en-one-two-three-are-prepended-in-order.js | 3 ++ ...-jsdoc-style-with-comments-emit-enabled.js | 3 ++ ...en-one-two-three-are-prepended-in-order.js | 3 ++ ...en-one-two-three-are-prepended-in-order.js | 3 ++ ...tripInternal-with-comments-emit-enabled.js | 3 ++ .../stripInternal.js | 3 ++ .../triple-slash-refs-in-all-projects.js | 3 ++ .../triple-slash-refs-in-one-project.js | 3 ++ ...t-composite-but-uses-project-references.js | 6 +++ ...-source-files-are-empty-in-the-own-file.js | 3 ++ .../emitHelpers-in-all-projects.js | 1 + ...tHelpers-in-only-one-dependency-project.js | 1 + .../multiple-emitHelpers-in-all-projects.js | 1 + ...tiple-emitHelpers-in-different-projects.js | 1 + .../multiple-prologues-in-all-projects.js | 1 + ...ultiple-prologues-in-different-projects.js | 1 + .../strict-in-all-projects.js | 1 + .../strict-in-one-dependency.js | 1 + ...en-one-two-three-are-prepended-in-order.js | 3 ++ .../stripInternal-jsdoc-style-comment.js | 3 ++ ...en-one-two-three-are-prepended-in-order.js | 3 ++ ...en-one-two-three-are-prepended-in-order.js | 3 ++ ...tripInternal-with-comments-emit-enabled.js | 3 ++ .../stripInternal.js | 3 ++ .../incremental-declaration-changes/sample.js | 6 +++ .../when-declaration-option-changes.js | 2 + .../when-esModuleInterop-option-changes.js | 1 + ...en-logic-config-changes-declaration-dir.js | 5 ++ .../sample.js | 3 ++ 58 files changed, 191 insertions(+), 15 deletions(-) diff --git a/src/harness/vfs.ts b/src/harness/vfs.ts index 5ef5851433a..25da3149834 100644 --- a/src/harness/vfs.ts +++ b/src/harness/vfs.ts @@ -33,6 +33,10 @@ namespace vfs { let devCount = 0; // A monotonically increasing count of device ids let inoCount = 0; // A monotonically increasing count of inodes + export interface DiffOptions { + includeChangedFileWithSameContent?: boolean; + } + /** * Represents a virtual POSIX-like file system. */ @@ -693,21 +697,25 @@ namespace vfs { * Generates a `FileSet` patch containing all the entries in this `FileSystem` that are not in `base`. * @param base The base file system. If not provided, this file system's `shadowRoot` is used (if present). */ - public diff(base = this.shadowRoot) { + public diff(base = this.shadowRoot, options: DiffOptions = {}) { const differences: FileSet = {}; - const hasDifferences = base ? FileSystem.rootDiff(differences, this, base) : FileSystem.trackCreatedInodes(differences, this, this._getRootLinks()); + const hasDifferences = base ? + FileSystem.rootDiff(differences, this, base, options) : + FileSystem.trackCreatedInodes(differences, this, this._getRootLinks()); return hasDifferences ? differences : undefined; } /** * Generates a `FileSet` patch containing all the entries in `chagned` that are not in `base`. */ - public static diff(changed: FileSystem, base: FileSystem) { + public static diff(changed: FileSystem, base: FileSystem, options: DiffOptions = {}) { const differences: FileSet = {}; - return FileSystem.rootDiff(differences, changed, base) ? differences : undefined; + return FileSystem.rootDiff(differences, changed, base, options) ? + differences : + undefined; } - private static diffWorker(container: FileSet, changed: FileSystem, changedLinks: ReadonlyMap | undefined, base: FileSystem, baseLinks: ReadonlyMap | undefined) { + private static diffWorker(container: FileSet, changed: FileSystem, changedLinks: ReadonlyMap | undefined, base: FileSystem, baseLinks: ReadonlyMap | undefined, options: DiffOptions) { if (changedLinks && !baseLinks) return FileSystem.trackCreatedInodes(container, changed, changedLinks); if (baseLinks && !changedLinks) return FileSystem.trackDeletedInodes(container, baseLinks); if (changedLinks && baseLinks) { @@ -724,10 +732,10 @@ namespace vfs { const baseNode = baseLinks.get(basename); if (baseNode) { if (isDirectory(changedNode) && isDirectory(baseNode)) { - return hasChanges = FileSystem.directoryDiff(container, basename, changed, changedNode, base, baseNode) || hasChanges; + return hasChanges = FileSystem.directoryDiff(container, basename, changed, changedNode, base, baseNode, options) || hasChanges; } if (isFile(changedNode) && isFile(baseNode)) { - return hasChanges = FileSystem.fileDiff(container, basename, changed, changedNode, base, baseNode) || hasChanges; + return hasChanges = FileSystem.fileDiff(container, basename, changed, changedNode, base, baseNode, options) || hasChanges; } if (isSymlink(changedNode) && isSymlink(baseNode)) { return hasChanges = FileSystem.symlinkDiff(container, basename, changedNode, baseNode) || hasChanges; @@ -740,7 +748,7 @@ namespace vfs { return false; } - private static rootDiff(container: FileSet, changed: FileSystem, base: FileSystem) { + private static rootDiff(container: FileSet, changed: FileSystem, base: FileSystem, options: DiffOptions) { while (!changed._lazy.links && changed._shadowRoot) changed = changed._shadowRoot; while (!base._lazy.links && base._shadowRoot) base = base._shadowRoot; @@ -750,10 +758,10 @@ namespace vfs { // no difference if the root links are empty and unshadowed if (!changed._lazy.links && !changed._shadowRoot && !base._lazy.links && !base._shadowRoot) return false; - return FileSystem.diffWorker(container, changed, changed._getRootLinks(), base, base._getRootLinks()); + return FileSystem.diffWorker(container, changed, changed._getRootLinks(), base, base._getRootLinks(), options); } - private static directoryDiff(container: FileSet, basename: string, changed: FileSystem, changedNode: DirectoryInode, base: FileSystem, baseNode: DirectoryInode) { + private static directoryDiff(container: FileSet, basename: string, changed: FileSystem, changedNode: DirectoryInode, base: FileSystem, baseNode: DirectoryInode, options: DiffOptions) { while (!changedNode.links && changedNode.shadowRoot) changedNode = changedNode.shadowRoot; while (!baseNode.links && baseNode.shadowRoot) baseNode = baseNode.shadowRoot; @@ -770,7 +778,7 @@ namespace vfs { // no difference if both nodes have identical children const children: FileSet = {}; - if (!FileSystem.diffWorker(children, changed, changed._getLinks(changedNode), base, base._getLinks(baseNode))) { + if (!FileSystem.diffWorker(children, changed, changed._getLinks(changedNode), base, base._getLinks(baseNode), options)) { return false; } @@ -778,7 +786,7 @@ namespace vfs { return true; } - private static fileDiff(container: FileSet, basename: string, changed: FileSystem, changedNode: FileInode, base: FileSystem, baseNode: FileInode) { + private static fileDiff(container: FileSet, basename: string, changed: FileSystem, changedNode: FileInode, base: FileSystem, baseNode: FileInode, options: DiffOptions) { while (!changedNode.buffer && changedNode.shadowRoot) changedNode = changedNode.shadowRoot; while (!baseNode.buffer && baseNode.shadowRoot) baseNode = baseNode.shadowRoot; @@ -800,7 +808,11 @@ namespace vfs { if (changedBuffer === baseBuffer) return false; // no difference if both buffers are identical - if (Buffer.compare(changedBuffer, baseBuffer) === 0) return false; + if (Buffer.compare(changedBuffer, baseBuffer) === 0) { + if (!options.includeChangedFileWithSameContent) return false; + container[basename] = new SameFileContentFile(changedBuffer); + return true; + } container[basename] = new File(changedBuffer); return true; @@ -1360,6 +1372,12 @@ namespace vfs { } } + export class SameFileContentFile extends File { + constructor(data: Buffer | string, metaAndEncoding?: { encoding?: string, meta?: Record }) { + super(data, metaAndEncoding); + } + } + /** Extended options for a hard link in a `FileSet` */ export class Link { public readonly path: string; @@ -1546,6 +1564,9 @@ namespace vfs { else if (entry instanceof Directory) { text += formatPatchWorker(file, entry.files); } + else if (entry instanceof SameFileContentFile) { + text += `//// [${file}] file written with same contents\r\n`; + } else if (entry instanceof File) { const content = typeof entry.data === "string" ? entry.data : entry.data.toString("utf8"); text += `//// [${file}]\r\n${content}\r\n\r\n`; @@ -1582,4 +1603,4 @@ namespace vfs { } } } -// tslint:enable:no-null-keyword \ No newline at end of file +// tslint:enable:no-null-keyword diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index c20cdeb7f94..ab8461a14e6 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -285,7 +285,7 @@ interface Symbol { } function generateBaseline(fs: vfs.FileSystem, proj: string, scenario: string, subScenario: string, baseFs: vfs.FileSystem) { - const patch = fs.diff(baseFs); + const patch = fs.diff(baseFs, { includeChangedFileWithSameContent: true }); // tslint:disable-next-line:no-null-keyword Harness.Baseline.runBaseline(`tsbuild/${proj}/${subScenario.split(" ").join("-")}/${scenario.split(" ").join("-")}.js`, patch ? vfs.formatPatch(patch) : null); } diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js index e30eed1615a..87ace04e448 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js @@ -332,6 +332,9 @@ declare const myVar = 30; //// [/src/lib/file1.ts] export const x = 10;console.log(x); +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] var myGlob = 20; define("file1", ["require", "exports"], function (require, exports) { diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js index 6297215f3ca..2b4e0a0a838 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -790,6 +790,9 @@ export const x = 10;function forlibfile1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; }console.log(x); +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js index 689dc08570f..f7252e6dcbc 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js @@ -482,6 +482,9 @@ declare const myVar = 30; //// [/src/lib/file1.ts] export const x = 10;console.log(x); +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] "use strict"; "myPrologue"; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js index d55f61ae925..3cf10ffbe19 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js @@ -338,6 +338,9 @@ declare const myVar = 30; #!someshebang lib file1 export const x = 10;console.log(x); +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] #!someshebang lib file0 var myGlob = 20; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js index 16f1d50a224..4de45c6d0ec 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js @@ -1893,6 +1893,9 @@ export namespace normalN { /*@internal*/ export const internalConst = 10; /*@internal*/ export enum internalEnum { a, b, c }console.log(x); +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] /*@internal*/ var myGlob = 20; define("file1", ["require", "exports"], function (require, exports) { diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js index ece0a5fc25a..479ea723921 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js @@ -432,6 +432,9 @@ declare const myVar = 30; //// [/src/lib/file1.ts] export const x = 10;console.log(x); +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] /// var file0Const = new libfile0(); diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js index 6c9be3154a5..54c0b8fe21e 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -724,6 +724,9 @@ declare function appfile4Spread(...b: number[]): void; //// [/src/lib/file1.ts] export const x = 10;function forlibfile1Rest() { } +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js index df3412c267c..ad401641be8 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js @@ -647,6 +647,7 @@ declare const myVar = 30; "myPrologue5" export const x = 10; +//// [/src/lib/module.d.ts] file written with same contents //// [/src/lib/module.d.ts.map] {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js index 1c8bad6c40a..218681bea8f 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js @@ -2071,6 +2071,7 @@ export namespace normalN { /*@internal*/ export const internalConst = 10; /*@internal*/ export enum internalEnum { a, b, c } +//// [/src/lib/module.d.ts] file written with same contents //// [/src/lib/module.d.ts.map] {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;sBACF,CAAC,EACM,MAAM;KAClC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js index 9a793388ac0..f4675cfcd15 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js @@ -9,6 +9,12 @@ export interface A { //// [/src/lib/a.d.ts.map] {"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"} +//// [/src/lib/b.d.ts] file written with same contents +//// [/src/lib/b.d.ts.map] file written with same contents +//// [/src/lib/c.d.ts] file written with same contents +//// [/src/lib/c.d.ts.map] file written with same contents +//// [/src/lib/index.d.ts] file written with same contents +//// [/src/lib/index.d.ts.map] file written with same contents //// [/src/src/a.ts] import { B } from "./b"; diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js index a86656dbed5..a1297732a88 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -6,6 +6,9 @@ export interface A { } +//// [/src/lib/b.d.ts] file written with same contents +//// [/src/lib/c.d.ts] file written with same contents +//// [/src/lib/index.d.ts] file written with same contents //// [/src/src/a.ts] import { B } from "./b"; diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index 8a70278d315..c5eb746e843 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -11,6 +11,10 @@ export interface A { //// [/src/lib/a.d.ts.map] {"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAElC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"} +//// [/src/lib/b.d.ts] file written with same contents +//// [/src/lib/b.d.ts.map] file written with same contents +//// [/src/lib/c.d.ts] file written with same contents +//// [/src/lib/c.d.ts.map] file written with same contents //// [/src/src/a.ts] export class B { prop = "hello"; } diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index 7facc60eef5..0eb46f39556 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -1,3 +1,4 @@ +//// [/src/lib/a.d.ts] file written with same contents //// [/src/lib/a.d.ts.map] {"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js index 727875a5d40..e27d6055603 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js @@ -26,6 +26,9 @@ import { LazyAction } from './bundling'; export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; +//// [/src/obj/index.js] file written with same contents +//// [/src/obj/lazyIndex.d.ts] file written with same contents +//// [/src/obj/lazyIndex.js] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] { "program": { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js index de8f6f9b0db..0c1de645252 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js index 2c8eeceeac3..4049a658d5d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var __rest = (this && this.__rest) || function (s, e) { var t = {}; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js index 80c79449ce1..91d63e81d93 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js index 9a1d94824d4..4ea169f5940 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var __rest = (this && this.__rest) || function (s, e) { var t = {}; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js index 5a6d733931e..ac94261ec5b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var __rest = (this && this.__rest) || function (s, e) { var t = {}; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js index c8eae0ea272..a1075353f3e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] "use strict"; "myPrologue"; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js index cbf38cf0642..75a66a9473f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] "use strict"; var s = "Hello, world"; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js index b0c4c820ac2..66cbcb79b2c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] #!someshebang first first_PART1 var s = "Hello, world"; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js index d89f565e375..4771fa447ef 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js index 5cf3ea7abd4..1e7436f9df8 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] "use strict"; var s = "Hello, world"; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js index 372ef671910..654b18ce483 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index d9691fde1a8..6ec1100b4bd 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -2024,6 +2024,9 @@ declare class C { ====================================================================== +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js index 38403c4693d..a21376924f6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index a48020f4ba7..d68b80c42a4 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -2124,6 +2124,9 @@ declare class C { ====================================================================== +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js index 29ad265d6ab..b779dcffa53 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js index 08a0bffd148..f312697a726 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -2024,6 +2024,9 @@ declare class C { ====================================================================== +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index e17e3f05842..4ccb69a5a8d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -2124,6 +2124,9 @@ declare class C { ====================================================================== +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js index 29c643c43f5..b64f0367708 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js index e91c046c278..2fc43e90ec5 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js index a7e041fe565..0303c231a2d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js index c34e752d808..d317b8f29b6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js index eb117294ec4..126759e3719 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); @@ -257,6 +260,9 @@ interface NoJsForHereEither { console.log(s); console.log(s); +//// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents +//// [/src/third/thirdjs/output/third-output.d.ts.map] file written with same contents +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] file written with same contents //// [/src/third/thirdjs/output/third-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js index d050ca2dd0c..a3b4c95b0f2 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js @@ -1,3 +1,6 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents //// [/src/first/bin/first-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js index f595aac7193..40ab1fa6dd0 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js @@ -1,3 +1,4 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js index 65d56d99c99..95c8bdbb672 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js @@ -1,3 +1,4 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js index 85a0007b0ff..d5a6f310b95 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -1,3 +1,4 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js index ea399602b00..c7426fd026e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js @@ -1,3 +1,4 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js index 948b6e8233a..e31929fda61 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js @@ -1,3 +1,4 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js index f16a24a3fb8..441559cdf45 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js @@ -1,3 +1,4 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js index 7e96f8915da..00e04704f80 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js @@ -1,3 +1,4 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js index ebb00b3b84c..59205be8064 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js @@ -1,3 +1,4 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index f3c8dccc27a..887c845e48b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -1072,6 +1072,7 @@ declare class C { ====================================================================== +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -1205,6 +1206,8 @@ sourceFile:../first_part3.ts --- >>>//# sourceMappingURL=first-output.d.ts.map +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== JsFile: first-output.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js index d91fca25e4c..3d722243740 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js @@ -1,3 +1,4 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -131,6 +132,8 @@ sourceFile:../first_part3.ts --- >>>//# sourceMappingURL=first-output.d.ts.map +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== JsFile: first-output.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js index 4cc32daee93..5f9b856f99c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1072,6 +1072,7 @@ declare class C { ====================================================================== +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -1205,6 +1206,8 @@ sourceFile:../first_part3.ts --- >>>//# sourceMappingURL=first-output.d.ts.map +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== JsFile: first-output.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index b52187573a3..dcaa317a0d2 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1072,6 +1072,7 @@ declare class C { ====================================================================== +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -1205,6 +1206,8 @@ sourceFile:../first_part3.ts --- >>>//# sourceMappingURL=first-output.d.ts.map +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== JsFile: first-output.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js index 65791f61896..93681166f46 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js @@ -1,3 +1,4 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -131,6 +132,8 @@ sourceFile:../first_part3.ts --- >>>//# sourceMappingURL=first-output.d.ts.map +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== JsFile: first-output.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js index 75a1379fe9f..832ea5e5de0 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js @@ -1,3 +1,4 @@ +//// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -131,6 +132,8 @@ sourceFile:../first_part3.ts --- >>>//# sourceMappingURL=first-output.d.ts.map +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== JsFile: first-output.js diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js index f1124ae44eb..0a2ce56cb64 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js @@ -207,6 +207,10 @@ export class someClass { } "version": "FakeTSVersion" } +//// [/src/logic/index.d.ts] file written with same contents +//// [/src/logic/index.js] file written with same contents +//// [/src/logic/index.js.map] file written with same contents +//// [/src/logic/index.js.map.baseline.txt] file written with same contents //// [/src/logic/tsconfig.tsbuildinfo] { "program": { @@ -257,6 +261,8 @@ export class someClass { } "version": "FakeTSVersion" } +//// [/src/tests/index.d.ts] file written with same contents +//// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] { "program": { diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js index 8a87cafe69e..b3c22649712 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js @@ -2,12 +2,14 @@ export declare const World = "hello"; +//// [/src/core/anotherModule.js] file written with same contents //// [/src/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; export declare function multiply(a: number, b: number): number; +//// [/src/core/index.js] file written with same contents //// [/src/core/tsconfig.json] { "compilerOptions": { diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js index ce9044faa05..a701b09575a 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js @@ -1,3 +1,4 @@ +//// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] "use strict"; var __importStar = (this && this.__importStar) || function (mod) { diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js index 13d6ef5c3ba..701737ec3b5 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js @@ -4,6 +4,9 @@ import * as mod from '../core/anotherModule'; export declare const m: typeof mod; +//// [/src/logic/index.js] file written with same contents +//// [/src/logic/index.js.map] file written with same contents +//// [/src/logic/index.js.map.baseline.txt] file written with same contents //// [/src/logic/tsconfig.json] { "compilerOptions": { @@ -71,6 +74,8 @@ export declare const m: typeof mod; "version": "FakeTSVersion" } +//// [/src/tests/index.d.ts] file written with same contents +//// [/src/tests/index.js] file written with same contents //// [/src/tests/tsconfig.tsbuildinfo] { "program": { diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js index 82e64bc9330..658377ce3a3 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js @@ -1,3 +1,6 @@ +//// [/src/core/index.d.ts] file written with same contents +//// [/src/core/index.d.ts.map] file written with same contents +//// [/src/core/index.d.ts.map.baseline.txt] file written with same contents //// [/src/core/index.js] "use strict"; exports.__esModule = true; From 11fd654cf997f6d031c7437fcb4c0b6e0862264e Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 9 Sep 2019 16:16:57 -0700 Subject: [PATCH 065/159] Separate emitOnlyDtsFiles and forcing dts emit (for builder signature detection where we want it irrespective of settings) --- src/compiler/builderState.ts | 13 ++++++++++--- src/compiler/emitter.ts | 21 ++++++++++++++------- src/compiler/program.ts | 10 ++++++---- src/compiler/types.ts | 2 ++ 4 files changed, 32 insertions(+), 14 deletions(-) diff --git a/src/compiler/builderState.ts b/src/compiler/builderState.ts index 9d2c55b5610..d1a9b2f5d59 100644 --- a/src/compiler/builderState.ts +++ b/src/compiler/builderState.ts @@ -15,9 +15,9 @@ namespace ts { /*@internal*/ namespace ts { export function getFileEmitOutput(program: Program, sourceFile: SourceFile, emitOnlyDtsFiles: boolean, - cancellationToken?: CancellationToken, customTransformers?: CustomTransformers): EmitOutput { + cancellationToken?: CancellationToken, customTransformers?: CustomTransformers, forceDtsEmit?: boolean): EmitOutput { const outputFiles: OutputFile[] = []; - const emitResult = program.emit(sourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers); + const emitResult = program.emit(sourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers, forceDtsEmit); return { outputFiles, emitSkipped: emitResult.emitSkipped, exportedModulesFromDeclarationEmit: emitResult.exportedModulesFromDeclarationEmit }; function writeFile(fileName: string, text: string, writeByteOrderMark: boolean) { @@ -344,7 +344,14 @@ namespace ts.BuilderState { } } else { - const emitOutput = getFileEmitOutput(programOfThisState, sourceFile, /*emitOnlyDtsFiles*/ true, cancellationToken); + const emitOutput = getFileEmitOutput( + programOfThisState, + sourceFile, + /*emitOnlyDtsFiles*/ true, + cancellationToken, + /*customTransformers*/ undefined, + /*forceDtsEmit*/ true + ); const firstDts = emitOutput.outputFiles && programOfThisState.getCompilerOptions().declarationMap ? emitOutput.outputFiles.length > 1 ? emitOutput.outputFiles[1] : undefined : diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 57cc47cf0e1..3f396aa2d9b 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -20,7 +20,7 @@ namespace ts { export function forEachEmittedFile( host: EmitHost, action: (emitFileNames: EmitFileNames, sourceFileOrBundle: SourceFile | Bundle | undefined) => T, sourceFilesOrTargetSourceFile?: ReadonlyArray | SourceFile, - emitOnlyDtsFiles = false, + forceDtsEmit = false, onlyBuildInfo?: boolean, includeBuildInfo?: boolean) { const sourceFiles = isArray(sourceFilesOrTargetSourceFile) ? sourceFilesOrTargetSourceFile : getSourceFilesToEmit(host, sourceFilesOrTargetSourceFile); @@ -29,7 +29,7 @@ namespace ts { const prepends = host.getPrependNodes(); if (sourceFiles.length || prepends.length) { const bundle = createBundle(sourceFiles, prepends); - const result = action(getOutputPathsFor(bundle, host, emitOnlyDtsFiles), bundle); + const result = action(getOutputPathsFor(bundle, host, forceDtsEmit), bundle); if (result) { return result; } @@ -38,7 +38,7 @@ namespace ts { else { if (!onlyBuildInfo) { for (const sourceFile of sourceFiles) { - const result = action(getOutputPathsFor(sourceFile, host, emitOnlyDtsFiles), sourceFile); + const result = action(getOutputPathsFor(sourceFile, host, forceDtsEmit), sourceFile); if (result) { return result; } @@ -227,7 +227,7 @@ namespace ts { /*@internal*/ // targetSourceFile is when users only want one file in entire project to be emitted. This is used in compileOnSave feature - export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFile: SourceFile | undefined, { scriptTransformers, declarationTransformers }: EmitTransformers, emitOnlyDtsFiles?: boolean, onlyBuildInfo?: boolean): EmitResult { + export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFile: SourceFile | undefined, { scriptTransformers, declarationTransformers }: EmitTransformers, emitOnlyDtsFiles?: boolean, onlyBuildInfo?: boolean, forceDtsEmit?: boolean): EmitResult { const compilerOptions = host.getCompilerOptions(); const sourceMapDataList: SourceMapEmitResult[] | undefined = (compilerOptions.sourceMap || compilerOptions.inlineSourceMap || getAreDeclarationMapsEnabled(compilerOptions)) ? [] : undefined; const emittedFilesList: string[] | undefined = compilerOptions.listEmittedFiles ? [] : undefined; @@ -241,7 +241,14 @@ namespace ts { // Emit each output file enter(); - forEachEmittedFile(host, emitSourceFileOrBundle, getSourceFilesToEmit(host, targetSourceFile), emitOnlyDtsFiles, onlyBuildInfo, !targetSourceFile); + forEachEmittedFile( + host, + emitSourceFileOrBundle, + getSourceFilesToEmit(host, targetSourceFile), + forceDtsEmit, + onlyBuildInfo, + !targetSourceFile + ); exit(); @@ -400,7 +407,7 @@ namespace ts { }); const declBlocked = (!!declarationTransform.diagnostics && !!declarationTransform.diagnostics.length) || !!host.isEmitBlocked(declarationFilePath) || !!compilerOptions.noEmit; emitSkipped = emitSkipped || declBlocked; - if (!declBlocked || emitOnlyDtsFiles) { + if (!declBlocked || forceDtsEmit) { Debug.assert(declarationTransform.transformed.length === 1, "Should only see one output from the decl transform"); printSourceFileOrBundle( declarationFilePath, @@ -415,7 +422,7 @@ namespace ts { // Explicitly do not passthru either `inline` option } ); - if (emitOnlyDtsFiles && declarationTransform.transformed[0].kind === SyntaxKind.SourceFile) { + if (forceDtsEmit && declarationTransform.transformed[0].kind === SyntaxKind.SourceFile) { const sourceFile = declarationTransform.transformed[0]; exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit; } diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 76c92ad74bb..76cccf79749 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1533,18 +1533,18 @@ namespace ts { return noDiagnosticsTypeChecker || (noDiagnosticsTypeChecker = createTypeChecker(program, /*produceDiagnostics:*/ false)); } - function emit(sourceFile?: SourceFile, writeFileCallback?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, transformers?: CustomTransformers): EmitResult { - return runWithCancellationToken(() => emitWorker(program, sourceFile, writeFileCallback, cancellationToken, emitOnlyDtsFiles, transformers)); + function emit(sourceFile?: SourceFile, writeFileCallback?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, transformers?: CustomTransformers, forceDtsEmit?: boolean): EmitResult { + return runWithCancellationToken(() => emitWorker(program, sourceFile, writeFileCallback, cancellationToken, emitOnlyDtsFiles, transformers, forceDtsEmit)); } function isEmitBlocked(emitFileName: string): boolean { return hasEmitBlockingDiagnostics.has(toPath(emitFileName)); } - function emitWorker(program: Program, sourceFile: SourceFile | undefined, writeFileCallback: WriteFileCallback | undefined, cancellationToken: CancellationToken | undefined, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult { + function emitWorker(program: Program, sourceFile: SourceFile | undefined, writeFileCallback: WriteFileCallback | undefined, cancellationToken: CancellationToken | undefined, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers, forceDtsEmit?: boolean): EmitResult { let declarationDiagnostics: ReadonlyArray = []; - if (!emitOnlyDtsFiles) { + if (!forceDtsEmit) { if (options.noEmit) { return { diagnostics: declarationDiagnostics, sourceMaps: undefined, emittedFiles: undefined, emitSkipped: true }; } @@ -1593,6 +1593,8 @@ namespace ts { sourceFile, getTransformers(options, customTransformers, emitOnlyDtsFiles), emitOnlyDtsFiles, + /*onlyBuildInfo*/ false, + forceDtsEmit ); performance.mark("afterEmit"); diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 999a9220412..285f3101727 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2980,6 +2980,8 @@ namespace ts { * will be invoked when writing the JavaScript and declaration files. */ emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult; + /*@internal*/ + emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers, forceDtsEmit?: boolean): EmitResult; // tslint:disable-line unified-signatures getOptionsDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray; getGlobalDiagnostics(cancellationToken?: CancellationToken): ReadonlyArray; From 49be51dcf323624e31c1c9acc3356d9825eddb98 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 9 Sep 2019 22:11:56 -0400 Subject: [PATCH 066/159] Added more helpful syntax error for enum member commas Switches the error message emitted by the parser to the more specific _"An enum member name must be followed by a ',' or '='."_ when the expected comma doesn't follow the member. --- src/compiler/diagnosticMessages.json | 4 ++ src/compiler/parser.ts | 6 ++- .../baselines/reference/enumErrors.errors.txt | 44 ++++++++++++++++++- tests/baselines/reference/enumErrors.js | 34 ++++++++++++++ tests/baselines/reference/enumErrors.symbols | 33 ++++++++++++++ tests/baselines/reference/enumErrors.types | 34 ++++++++++++++ tests/cases/conformance/enums/enumErrors.ts | 12 +++++ 7 files changed, 165 insertions(+), 2 deletions(-) diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index b296c224d08..1c3563c9c11 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1035,6 +1035,10 @@ "category": "Error", "code": 1356 }, + "An enum member name must be followed by a ',' or '='.": { + "category": "Error", + "code": 1357 + }, "Duplicate identifier '{0}'.": { "category": "Error", diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index f1221883bde..f752d887d8d 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -2125,7 +2125,7 @@ namespace ts { // We didn't get a comma, and the list wasn't terminated, explicitly parse // out a comma so we give a good error message. - parseExpected(SyntaxKind.CommaToken); + parseExpected(SyntaxKind.CommaToken, getExpectedCommaDiagnostic(kind)); // If the token was a semicolon, and the caller allows that, then skip it and // continue. This ensures we get back on track and don't result in tons of @@ -2168,6 +2168,10 @@ namespace ts { return result; } + function getExpectedCommaDiagnostic(kind: ParsingContext) { + return kind === ParsingContext.EnumMembers ? Diagnostics.An_enum_member_name_must_be_followed_by_a_or : undefined; + } + interface MissingList extends NodeArray { isMissingList: true; } diff --git a/tests/baselines/reference/enumErrors.errors.txt b/tests/baselines/reference/enumErrors.errors.txt index 49205e3630e..6c43f318389 100644 --- a/tests/baselines/reference/enumErrors.errors.txt +++ b/tests/baselines/reference/enumErrors.errors.txt @@ -11,9 +11,19 @@ tests/cases/conformance/enums/enumErrors.ts(35,9): error TS2553: Computed values tests/cases/conformance/enums/enumErrors.ts(36,9): error TS2553: Computed values are not permitted in an enum with string valued members. tests/cases/conformance/enums/enumErrors.ts(37,9): error TS2553: Computed values are not permitted in an enum with string valued members. tests/cases/conformance/enums/enumErrors.ts(38,9): error TS2553: Computed values are not permitted in an enum with string valued members. +tests/cases/conformance/enums/enumErrors.ts(46,18): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/enums/enumErrors.ts(47,24): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/enums/enumErrors.ts(47,26): error TS2452: An enum member cannot have a numeric name. +tests/cases/conformance/enums/enumErrors.ts(48,28): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/enums/enumErrors.ts(48,30): error TS2452: An enum member cannot have a numeric name. +tests/cases/conformance/enums/enumErrors.ts(48,31): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/enums/enumErrors.ts(51,16): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/enums/enumErrors.ts(51,22): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/enums/enumErrors.ts(51,30): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/enums/enumErrors.ts(51,33): error TS2452: An enum member cannot have a numeric name. -==== tests/cases/conformance/enums/enumErrors.ts (13 errors) ==== +==== tests/cases/conformance/enums/enumErrors.ts (23 errors) ==== // Enum named with PredefinedTypes enum any { } ~~~ @@ -79,4 +89,36 @@ tests/cases/conformance/enums/enumErrors.ts(38,9): error TS2553: Computed values ~~~~~ !!! error TS2553: Computed values are not permitted in an enum with string valued members. } + + // Enum with incorrect syntax + enum E13 { + postComma, + postValueComma = 1, + + postSemicolon; + ~ +!!! error TS1357: An enum member name must be followed by a ',' or '='. + postColonValueComma: 2, + ~ +!!! error TS1357: An enum member name must be followed by a ',' or '='. + ~ +!!! error TS2452: An enum member cannot have a numeric name. + postColonValueSemicolon: 3; + ~ +!!! error TS1357: An enum member name must be followed by a ',' or '='. + ~ +!!! error TS2452: An enum member cannot have a numeric name. + ~ +!!! error TS1357: An enum member name must be followed by a ',' or '='. + }; + + enum E14 { a, b: any "hello" += 1, c, d} + ~ +!!! error TS1357: An enum member name must be followed by a ',' or '='. + ~~~~~~~ +!!! error TS1357: An enum member name must be followed by a ',' or '='. + ~~ +!!! error TS1357: An enum member name must be followed by a ',' or '='. + ~ +!!! error TS2452: An enum member cannot have a numeric name. \ No newline at end of file diff --git a/tests/baselines/reference/enumErrors.js b/tests/baselines/reference/enumErrors.js index 17b67864c70..64a884a0979 100644 --- a/tests/baselines/reference/enumErrors.js +++ b/tests/baselines/reference/enumErrors.js @@ -38,6 +38,18 @@ enum E12 { D = {}, E = 1 + 1, } + +// Enum with incorrect syntax +enum E13 { + postComma, + postValueComma = 1, + + postSemicolon; + postColonValueComma: 2, + postColonValueSemicolon: 3; +}; + +enum E14 { a, b: any "hello" += 1, c, d} //// [enumErrors.js] @@ -88,3 +100,25 @@ var E12; E12[E12["D"] = 0] = "D"; E12[E12["E"] = 0] = "E"; })(E12 || (E12 = {})); +// Enum with incorrect syntax +var E13; +(function (E13) { + E13[E13["postComma"] = 0] = "postComma"; + E13[E13["postValueComma"] = 1] = "postValueComma"; + E13[E13["postSemicolon"] = 2] = "postSemicolon"; + E13[E13["postColonValueComma"] = 3] = "postColonValueComma"; + E13[E13[2] = 4] = 2; + E13[E13["postColonValueSemicolon"] = 5] = "postColonValueSemicolon"; + E13[E13[3] = 6] = 3; +})(E13 || (E13 = {})); +; +var E14; +(function (E14) { + E14[E14["a"] = 0] = "a"; + E14[E14["b"] = 1] = "b"; + E14[E14["any"] = 2] = "any"; + E14[E14["hello"] = 3] = "hello"; + E14[E14[1] = 4] = 1; + E14[E14["c"] = 5] = "c"; + E14[E14["d"] = 6] = "d"; +})(E14 || (E14 = {})); diff --git a/tests/baselines/reference/enumErrors.symbols b/tests/baselines/reference/enumErrors.symbols index 3dab3ef5f76..d20fea828b1 100644 --- a/tests/baselines/reference/enumErrors.symbols +++ b/tests/baselines/reference/enumErrors.symbols @@ -91,3 +91,36 @@ enum E12 { >E : Symbol(E12.E, Decl(enumErrors.ts, 36, 11)) } +// Enum with incorrect syntax +enum E13 { +>E13 : Symbol(E13, Decl(enumErrors.ts, 38, 1)) + + postComma, +>postComma : Symbol(E13.postComma, Decl(enumErrors.ts, 41, 10)) + + postValueComma = 1, +>postValueComma : Symbol(E13.postValueComma, Decl(enumErrors.ts, 42, 14)) + + postSemicolon; +>postSemicolon : Symbol(E13.postSemicolon, Decl(enumErrors.ts, 43, 23)) + + postColonValueComma: 2, +>postColonValueComma : Symbol(E13.postColonValueComma, Decl(enumErrors.ts, 45, 18)) +>2 : Symbol(E13[2], Decl(enumErrors.ts, 46, 24)) + + postColonValueSemicolon: 3; +>postColonValueSemicolon : Symbol(E13.postColonValueSemicolon, Decl(enumErrors.ts, 46, 27)) +>3 : Symbol(E13[3], Decl(enumErrors.ts, 47, 28)) + +}; + +enum E14 { a, b: any "hello" += 1, c, d} +>E14 : Symbol(E14, Decl(enumErrors.ts, 48, 2)) +>a : Symbol(E14.a, Decl(enumErrors.ts, 50, 10)) +>b : Symbol(E14.b, Decl(enumErrors.ts, 50, 13)) +>any : Symbol(E14.any, Decl(enumErrors.ts, 50, 16)) +>"hello" : Symbol(E14["hello"], Decl(enumErrors.ts, 50, 20)) +>1 : Symbol(E14[1], Decl(enumErrors.ts, 50, 31)) +>c : Symbol(E14.c, Decl(enumErrors.ts, 50, 34)) +>d : Symbol(E14.d, Decl(enumErrors.ts, 50, 37)) + diff --git a/tests/baselines/reference/enumErrors.types b/tests/baselines/reference/enumErrors.types index 9759ec25390..24859e89b97 100644 --- a/tests/baselines/reference/enumErrors.types +++ b/tests/baselines/reference/enumErrors.types @@ -102,3 +102,37 @@ enum E12 { >1 : 1 } +// Enum with incorrect syntax +enum E13 { +>E13 : E13 + + postComma, +>postComma : E13.postComma + + postValueComma = 1, +>postValueComma : E13.postValueComma +>1 : 1 + + postSemicolon; +>postSemicolon : E13.postSemicolon + + postColonValueComma: 2, +>postColonValueComma : E13.postColonValueComma +>2 : E13.2 + + postColonValueSemicolon: 3; +>postColonValueSemicolon : E13.postColonValueSemicolon +>3 : E13.3 + +}; + +enum E14 { a, b: any "hello" += 1, c, d} +>E14 : E14 +>a : E14.a +>b : E14.b +>any : E14.any +>"hello" : E14.hello +>1 : E14.1 +>c : E14.c +>d : E14.d + diff --git a/tests/cases/conformance/enums/enumErrors.ts b/tests/cases/conformance/enums/enumErrors.ts index 99de3d4bc0d..16360574167 100644 --- a/tests/cases/conformance/enums/enumErrors.ts +++ b/tests/cases/conformance/enums/enumErrors.ts @@ -37,3 +37,15 @@ enum E12 { D = {}, E = 1 + 1, } + +// Enum with incorrect syntax +enum E13 { + postComma, + postValueComma = 1, + + postSemicolon; + postColonValueComma: 2, + postColonValueSemicolon: 3; +}; + +enum E14 { a, b: any "hello" += 1, c, d} From 92dbb65376b5f1df609170c1216aa62d1389b596 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 9 Sep 2019 22:29:48 -0400 Subject: [PATCH 067/159] Accepted a few more baselines, why not --- tests/baselines/reference/constEnum2.errors.txt | 4 ++-- .../parserComputedPropertyName30.errors.txt | 4 ++-- tests/baselines/reference/parserEnum5.errors.txt | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/baselines/reference/constEnum2.errors.txt b/tests/baselines/reference/constEnum2.errors.txt index 4748b1840b8..3a3036404bf 100644 --- a/tests/baselines/reference/constEnum2.errors.txt +++ b/tests/baselines/reference/constEnum2.errors.txt @@ -1,6 +1,6 @@ tests/cases/conformance/constEnums/constEnum2.ts(10,9): error TS2474: const enum member initializers can only contain literal values and other computed enum values. tests/cases/conformance/constEnums/constEnum2.ts(11,9): error TS2474: const enum member initializers can only contain literal values and other computed enum values. -tests/cases/conformance/constEnums/constEnum2.ts(12,5): error TS1005: ',' expected. +tests/cases/conformance/constEnums/constEnum2.ts(12,5): error TS1357: An enum member name must be followed by a ',' or '='. tests/cases/conformance/constEnums/constEnum2.ts(12,9): error TS2474: const enum member initializers can only contain literal values and other computed enum values. @@ -22,7 +22,7 @@ tests/cases/conformance/constEnums/constEnum2.ts(12,9): error TS2474: const enum !!! error TS2474: const enum member initializers can only contain literal values and other computed enum values. g = CONST, ~ -!!! error TS1005: ',' expected. +!!! error TS1357: An enum member name must be followed by a ',' or '='. ~~~~~ !!! error TS2474: const enum member initializers can only contain literal values and other computed enum values. } \ No newline at end of file diff --git a/tests/baselines/reference/parserComputedPropertyName30.errors.txt b/tests/baselines/reference/parserComputedPropertyName30.errors.txt index 94ab013c8be..bf99b4888a4 100644 --- a/tests/baselines/reference/parserComputedPropertyName30.errors.txt +++ b/tests/baselines/reference/parserComputedPropertyName30.errors.txt @@ -1,6 +1,6 @@ tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts(3,5): error TS1164: Computed property names are not allowed in enums. tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts(3,11): error TS2304: Cannot find name 'id'. -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts(4,5): error TS1005: ',' expected. +tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts(4,5): error TS1357: An enum member name must be followed by a ',' or '='. tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts(4,5): error TS1164: Computed property names are not allowed in enums. @@ -14,7 +14,7 @@ tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedP !!! error TS2304: Cannot find name 'id'. [e2] = 1 ~ -!!! error TS1005: ',' expected. +!!! error TS1357: An enum member name must be followed by a ',' or '='. ~~~~ !!! error TS1164: Computed property names are not allowed in enums. } \ No newline at end of file diff --git a/tests/baselines/reference/parserEnum5.errors.txt b/tests/baselines/reference/parserEnum5.errors.txt index 6315de88da7..8b052a047d9 100644 --- a/tests/baselines/reference/parserEnum5.errors.txt +++ b/tests/baselines/reference/parserEnum5.errors.txt @@ -1,8 +1,8 @@ -tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(2,12): error TS1005: ',' expected. +tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(2,12): error TS1357: An enum member name must be followed by a ',' or '='. tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(2,14): error TS2452: An enum member cannot have a numeric name. -tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,15): error TS1005: ',' expected. +tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,15): error TS1357: An enum member name must be followed by a ',' or '='. tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,17): error TS2452: An enum member cannot have a numeric name. -tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,24): error TS1005: ',' expected. +tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,24): error TS1357: An enum member name must be followed by a ',' or '='. tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,26): error TS2452: An enum member cannot have a numeric name. @@ -10,15 +10,15 @@ tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,26) enum E2 { a, } enum E3 { a: 1, } ~ -!!! error TS1005: ',' expected. +!!! error TS1357: An enum member name must be followed by a ',' or '='. ~ !!! error TS2452: An enum member cannot have a numeric name. enum E1 { a, b: 1, c, d: 2 = 3 } ~ -!!! error TS1005: ',' expected. +!!! error TS1357: An enum member name must be followed by a ',' or '='. ~ !!! error TS2452: An enum member cannot have a numeric name. ~ -!!! error TS1005: ',' expected. +!!! error TS1357: An enum member name must be followed by a ',' or '='. ~ !!! error TS2452: An enum member cannot have a numeric name. \ No newline at end of file From 686e9a42db5f62901a3da0be7bbc5ef5fd9d529c Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 10 Sep 2019 12:53:17 -0700 Subject: [PATCH 068/159] Do not emit .js files if only d.ts file will be impacted. --- src/compiler/builder.ts | 99 ++++++++++++++----- .../inferred-type-from-transitive-module.js | 1 - 2 files changed, 74 insertions(+), 26 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index d80283ce3cf..1d2f5d2417e 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -60,6 +60,10 @@ namespace ts { * Files pending to be emitted */ affectedFilesPendingEmit?: ReadonlyArray | undefined; + /** + * Files pending to be emitted kind. + */ + affectedFilesPendingEmitKind?: ReadonlyMap | undefined; /** * Current index to retrieve pending affected file */ @@ -70,6 +74,11 @@ namespace ts { hasReusableDiagnostic?: true; } + export const enum BuilderFileEmit { + DtsOnly, + Full + } + /** * State to store the changed files, affected files and cache semantic diagnostics */ @@ -127,7 +136,11 @@ namespace ts { /** * Files pending to be emitted */ - affectedFilesPendingEmit: ReadonlyArray | undefined; + affectedFilesPendingEmit: Path[] | undefined; + /** + * Files pending to be emitted kind. + */ + affectedFilesPendingEmitKind: Map | undefined; /** * Current index to retrieve pending affected file */ @@ -139,7 +152,7 @@ namespace ts { /** * Already seen emitted files */ - seenEmittedFiles: Map | undefined; + seenEmittedFiles: Map | undefined; /** * true if program has been emitted */ @@ -186,7 +199,8 @@ namespace ts { copyEntries(changedFilesSet, state.changedFilesSet); } if (!compilerOptions.outFile && !compilerOptions.out && oldState!.affectedFilesPendingEmit) { - state.affectedFilesPendingEmit = oldState!.affectedFilesPendingEmit; + state.affectedFilesPendingEmit = oldState!.affectedFilesPendingEmit.slice(); + state.affectedFilesPendingEmitKind = cloneMapOrUndefined(oldState!.affectedFilesPendingEmitKind); state.affectedFilesPendingEmitIndex = oldState!.affectedFilesPendingEmitIndex; } } @@ -233,7 +247,7 @@ namespace ts { if (oldCompilerOptions && compilerOptionsAffectEmit(compilerOptions, oldCompilerOptions)) { // Add all files to affectedFilesPendingEmit since emit changed - addToAffectedFilesPendingEmit(state, newProgram.getSourceFiles().map(f => f.path)); + newProgram.getSourceFiles().forEach(f => addToAffectedFilesPendingEmit(state, f.path, BuilderFileEmit.Full)); Debug.assert(state.seenAffectedFiles === undefined); state.seenAffectedFiles = createMap(); } @@ -295,7 +309,8 @@ namespace ts { newState.semanticDiagnosticsFromOldState = cloneMapOrUndefined(state.semanticDiagnosticsFromOldState); newState.program = state.program; newState.compilerOptions = state.compilerOptions; - newState.affectedFilesPendingEmit = state.affectedFilesPendingEmit; + newState.affectedFilesPendingEmit = state.affectedFilesPendingEmit && state.affectedFilesPendingEmit.slice(); + newState.affectedFilesPendingEmitKind = cloneMapOrUndefined(state.affectedFilesPendingEmitKind); newState.affectedFilesPendingEmitIndex = state.affectedFilesPendingEmitIndex; newState.seenEmittedFiles = cloneMapOrUndefined(state.seenEmittedFiles); newState.programEmitComplete = state.programEmitComplete; @@ -373,19 +388,24 @@ namespace ts { /** * Returns next file to be emitted from files that retrieved semantic diagnostics but did not emit yet */ - function getNextAffectedFilePendingEmit(state: BuilderProgramState): SourceFile | undefined { + function getNextAffectedFilePendingEmit(state: BuilderProgramState) { const { affectedFilesPendingEmit } = state; if (affectedFilesPendingEmit) { const seenEmittedFiles = state.seenEmittedFiles || (state.seenEmittedFiles = createMap()); for (let i = state.affectedFilesPendingEmitIndex!; i < affectedFilesPendingEmit.length; i++) { const affectedFile = Debug.assertDefined(state.program).getSourceFileByPath(affectedFilesPendingEmit[i]); - if (affectedFile && !seenEmittedFiles.has(affectedFile.path)) { - // emit this file - state.affectedFilesPendingEmitIndex = i; - return affectedFile; + if (affectedFile) { + const seenKind = seenEmittedFiles.get(affectedFile.path); + const emitKind = Debug.assertDefined(Debug.assertDefined(state.affectedFilesPendingEmitKind).get(affectedFile.path)); + if (seenKind === undefined || seenKind < emitKind) { + // emit this file + state.affectedFilesPendingEmitIndex = i; + return { affectedFile, emitKind }; + } } } state.affectedFilesPendingEmit = undefined; + state.affectedFilesPendingEmitKind = undefined; state.affectedFilesPendingEmitIndex = undefined; } return undefined; @@ -442,7 +462,7 @@ namespace ts { ); // If not dts emit, nothing more to do if (getEmitDeclarations(state.compilerOptions)) { - addToAffectedFilesPendingEmit(state, [path]); + addToAffectedFilesPendingEmit(state, path, BuilderFileEmit.DtsOnly); } } } @@ -548,7 +568,13 @@ namespace ts { * This is called after completing operation on the next affected file. * The operations here are postponed to ensure that cancellation during the iteration is handled correctly */ - function doneWithAffectedFile(state: BuilderProgramState, affected: SourceFile | Program, isPendingEmit?: boolean, isBuildInfoEmit?: boolean, isEmitResult?: boolean) { + function doneWithAffectedFile( + state: BuilderProgramState, + affected: SourceFile | Program, + emitKind?: BuilderFileEmit, + isPendingEmit?: boolean, + isBuildInfoEmit?: boolean + ) { if (isBuildInfoEmit) { state.emittedBuildInfo = true; } @@ -558,8 +584,8 @@ namespace ts { } else { state.seenAffectedFiles!.set((affected as SourceFile).path, true); - if (isEmitResult) { - (state.seenEmittedFiles || (state.seenEmittedFiles = createMap())).set((affected as SourceFile).path, true); + if (emitKind !== undefined) { + (state.seenEmittedFiles || (state.seenEmittedFiles = createMap())).set((affected as SourceFile).path, emitKind); } if (isPendingEmit) { state.affectedFilesPendingEmitIndex!++; @@ -573,16 +599,23 @@ namespace ts { /** * Returns the result with affected file */ - function toAffectedFileResult(state: BuilderProgramState, result: T, affected: SourceFile | Program, isPendingEmit?: boolean, isBuildInfoEmit?: boolean): AffectedFileResult { - doneWithAffectedFile(state, affected, isPendingEmit, isBuildInfoEmit); + function toAffectedFileResult(state: BuilderProgramState, result: T, affected: SourceFile | Program): AffectedFileResult { + doneWithAffectedFile(state, affected); return { result, affected }; } /** * Returns the result with affected file */ - function toAffectedFileEmitResult(state: BuilderProgramState, result: EmitResult, affected: SourceFile | Program, isPendingEmit?: boolean, isBuildInfoEmit?: boolean): AffectedFileResult { - doneWithAffectedFile(state, affected, isPendingEmit, isBuildInfoEmit, /*isEmitResult*/ true); + function toAffectedFileEmitResult( + state: BuilderProgramState, + result: EmitResult, + affected: SourceFile | Program, + emitKind: BuilderFileEmit, + isPendingEmit?: boolean, + isBuildInfoEmit?: boolean + ): AffectedFileResult { + doneWithAffectedFile(state, affected, emitKind, isPendingEmit, isBuildInfoEmit); return { result, affected }; } @@ -849,11 +882,12 @@ namespace ts { */ function emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): AffectedFileResult { let affected = getNextAffectedFile(state, cancellationToken, computeHash); + let emitKind = BuilderFileEmit.Full; let isPendingEmitFile = false; if (!affected) { if (!state.compilerOptions.out && !state.compilerOptions.outFile) { - affected = getNextAffectedFilePendingEmit(state); - if (!affected) { + const pendingAffectedFile = getNextAffectedFilePendingEmit(state); + if (!pendingAffectedFile) { if (state.emittedBuildInfo) { return undefined; } @@ -865,10 +899,12 @@ namespace ts { // Otherwise just affected file affected.emitBuildInfo(writeFile || maybeBind(host, host.writeFile), cancellationToken), affected, + /*emitKind*/ BuilderFileEmit.Full, /*isPendingEmitFile*/ false, /*isBuildInfoEmit*/ true ); } + ({ affectedFile: affected, emitKind } = pendingAffectedFile); isPendingEmitFile = true; } else { @@ -886,10 +922,17 @@ namespace ts { state, // When whole program is affected, do emit only once (eg when --out or --outFile is specified) // Otherwise just affected file - Debug.assertDefined(state.program).emit(affected === state.program ? undefined : affected as SourceFile, writeFile || maybeBind(host, host.writeFile), cancellationToken, emitOnlyDtsFiles, customTransformers), + Debug.assertDefined(state.program).emit( + affected === state.program ? undefined : affected as SourceFile, + writeFile || maybeBind(host, host.writeFile), + cancellationToken, + emitOnlyDtsFiles || emitKind === BuilderFileEmit.DtsOnly, + customTransformers + ), affected, + emitKind, isPendingEmitFile, - ); + ); } /** @@ -953,7 +996,7 @@ namespace ts { // Add file to affected file pending emit to handle for later emit time if (kind === BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram) { - addToAffectedFilesPendingEmit(state, [(affected as SourceFile).path]); + addToAffectedFilesPendingEmit(state, (affected as SourceFile).path, BuilderFileEmit.Full); } // Get diagnostics for the affected file if its not ignored @@ -1006,8 +1049,14 @@ namespace ts { } } - function addToAffectedFilesPendingEmit(state: BuilderProgramState, affectedFilesPendingEmit: readonly Path[]) { - state.affectedFilesPendingEmit = concatenate(state.affectedFilesPendingEmit, affectedFilesPendingEmit); + function addToAffectedFilesPendingEmit(state: BuilderProgramState, affectedFilePendingEmit: Path, kind: BuilderFileEmit) { + if (!state.affectedFilesPendingEmit) state.affectedFilesPendingEmit = []; + if (!state.affectedFilesPendingEmitKind) state.affectedFilesPendingEmitKind = createMap(); + + const existingKind = state.affectedFilesPendingEmitKind.get(affectedFilePendingEmit); + state.affectedFilesPendingEmit.push(affectedFilePendingEmit); + state.affectedFilesPendingEmitKind.set(affectedFilePendingEmit, existingKind || kind); + // affectedFilesPendingEmitIndex === undefined // - means the emit state.affectedFilesPendingEmit was undefined before adding current affected files // so start from 0 as array would be affectedFilesPendingEmit diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js index e27d6055603..556f32082f5 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js @@ -26,7 +26,6 @@ import { LazyAction } from './bundling'; export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; -//// [/src/obj/index.js] file written with same contents //// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/lazyIndex.js] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] From 630499eca20db3193752b1d11c3f9a834d5eae24 Mon Sep 17 00:00:00 2001 From: Jack Williams Date: Mon, 2 Sep 2019 23:33:15 +0100 Subject: [PATCH 069/159] Assume void variables are initialized --- src/compiler/checker.ts | 2 +- .../logicalAndOperatorStrictMode.types | 2 +- .../baselines/reference/voidIsInitialized.js | 23 +++++++++++++++ .../reference/voidIsInitialized.symbols | 23 +++++++++++++++ .../reference/voidIsInitialized.types | 29 +++++++++++++++++++ tests/cases/compiler/voidIsInitialized.ts | 12 ++++++++ 6 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 tests/baselines/reference/voidIsInitialized.js create mode 100644 tests/baselines/reference/voidIsInitialized.symbols create mode 100644 tests/baselines/reference/voidIsInitialized.types create mode 100644 tests/cases/compiler/voidIsInitialized.ts diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index cfad47b6533..14fcd2eea46 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -18027,7 +18027,7 @@ namespace ts { // the entire control flow graph from the variable's declaration (i.e. when the flow container and // declaration container are the same). const assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isBindingElement(declaration) || - type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & TypeFlags.AnyOrUnknown) !== 0 || + type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (TypeFlags.AnyOrUnknown | TypeFlags.Void)) !== 0 || isInTypeQuery(node) || node.parent.kind === SyntaxKind.ExportSpecifier) || node.parent.kind === SyntaxKind.NonNullExpression || declaration.kind === SyntaxKind.VariableDeclaration && (declaration).exclamationToken || diff --git a/tests/baselines/reference/logicalAndOperatorStrictMode.types b/tests/baselines/reference/logicalAndOperatorStrictMode.types index 2d7ef648aee..6bf592c8b7b 100644 --- a/tests/baselines/reference/logicalAndOperatorStrictMode.types +++ b/tests/baselines/reference/logicalAndOperatorStrictMode.types @@ -256,7 +256,7 @@ const v5 = v && v; >v5 : void >v && v : void >v : void ->v : never +>v : void const v6 = v && u; >v6 : void diff --git a/tests/baselines/reference/voidIsInitialized.js b/tests/baselines/reference/voidIsInitialized.js new file mode 100644 index 00000000000..4aaa550d44f --- /dev/null +++ b/tests/baselines/reference/voidIsInitialized.js @@ -0,0 +1,23 @@ +//// [voidIsInitialized.ts] +const x: void = undefined; +const y: void = undefined; + +if(typeof x === "undefined") { + x // no error: assume x2 is initialised +} + +if(typeof y !== "undefined") { + y // no error: do not narrow void +} + + +//// [voidIsInitialized.js] +"use strict"; +var x = undefined; +var y = undefined; +if (typeof x === "undefined") { + x; // no error: assume x2 is initialised +} +if (typeof y !== "undefined") { + y; // no error: do not narrow void +} diff --git a/tests/baselines/reference/voidIsInitialized.symbols b/tests/baselines/reference/voidIsInitialized.symbols new file mode 100644 index 00000000000..23ce56b309f --- /dev/null +++ b/tests/baselines/reference/voidIsInitialized.symbols @@ -0,0 +1,23 @@ +=== tests/cases/compiler/voidIsInitialized.ts === +const x: void = undefined; +>x : Symbol(x, Decl(voidIsInitialized.ts, 0, 5)) +>undefined : Symbol(undefined) + +const y: void = undefined; +>y : Symbol(y, Decl(voidIsInitialized.ts, 1, 5)) +>undefined : Symbol(undefined) + +if(typeof x === "undefined") { +>x : Symbol(x, Decl(voidIsInitialized.ts, 0, 5)) + + x // no error: assume x2 is initialised +>x : Symbol(x, Decl(voidIsInitialized.ts, 0, 5)) +} + +if(typeof y !== "undefined") { +>y : Symbol(y, Decl(voidIsInitialized.ts, 1, 5)) + + y // no error: do not narrow void +>y : Symbol(y, Decl(voidIsInitialized.ts, 1, 5)) +} + diff --git a/tests/baselines/reference/voidIsInitialized.types b/tests/baselines/reference/voidIsInitialized.types new file mode 100644 index 00000000000..a8b5767d2c4 --- /dev/null +++ b/tests/baselines/reference/voidIsInitialized.types @@ -0,0 +1,29 @@ +=== tests/cases/compiler/voidIsInitialized.ts === +const x: void = undefined; +>x : void +>undefined : undefined + +const y: void = undefined; +>y : void +>undefined : undefined + +if(typeof x === "undefined") { +>typeof x === "undefined" : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : void +>"undefined" : "undefined" + + x // no error: assume x2 is initialised +>x : void +} + +if(typeof y !== "undefined") { +>typeof y !== "undefined" : boolean +>typeof y : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>y : void +>"undefined" : "undefined" + + y // no error: do not narrow void +>y : void +} + diff --git a/tests/cases/compiler/voidIsInitialized.ts b/tests/cases/compiler/voidIsInitialized.ts new file mode 100644 index 00000000000..b2027c21df3 --- /dev/null +++ b/tests/cases/compiler/voidIsInitialized.ts @@ -0,0 +1,12 @@ +// @strict: true + +const x: void = undefined; +const y: void = undefined; + +if(typeof x === "undefined") { + x // no error: assume x2 is initialised +} + +if(typeof y !== "undefined") { + y // no error: do not narrow void +} From 21528748c6dd7d46a9a2c428a302495debba119e Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 10 Sep 2019 16:24:00 -0700 Subject: [PATCH 070/159] Address CR feedback --- src/compiler/binder.ts | 3 ++- src/compiler/checker.ts | 24 +++++++++++++----------- src/compiler/types.ts | 13 +++++++++---- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index b73431f6f56..df312b991c6 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -1281,7 +1281,8 @@ namespace ts { function isDottedName(node: Expression): boolean { return node.kind === SyntaxKind.Identifier || node.kind === SyntaxKind.ThisKeyword || - node.kind === SyntaxKind.PropertyAccessExpression && isDottedName((node).expression); + node.kind === SyntaxKind.PropertyAccessExpression && isDottedName((node).expression) || + node.kind === SyntaxKind.ParenthesizedExpression && isDottedName((node).expression); } function bindExpressionStatement(node: ExpressionStatement): void { diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 0af56d7f172..bb59a6143fd 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -16852,7 +16852,7 @@ namespace ts { return !!(declaration && ( declaration.kind === SyntaxKind.VariableDeclaration || declaration.kind === SyntaxKind.Parameter || declaration.kind === SyntaxKind.PropertyDeclaration || declaration.kind === SyntaxKind.PropertySignature) && - (declaration as VariableDeclaration | ParameterDeclaration | PropertyDeclaration | PropertySignature).type); + getEffectiveTypeAnnotationNode(declaration as VariableDeclaration | ParameterDeclaration | PropertyDeclaration | PropertySignature)); } function getExplicitTypeOfSymbol(symbol: Symbol) { @@ -16861,11 +16861,11 @@ namespace ts { getTypeOfSymbol(symbol) : undefined; } - function getTypeOfDottedName(node: Expression) { - // We require the dotted function name in an assertion expression to be comprised of identifiers - // that reference function, method, class or value module symbols; or variable, property or - // parameter symbols with declarations that have explicit type annotations. Such references are - // resolvable with no possibility of triggering circularities in control flow analysis. + // We require the dotted function name in an assertion expression to be comprised of identifiers + // that reference function, method, class or value module symbols; or variable, property or + // parameter symbols with declarations that have explicit type annotations. Such references are + // resolvable with no possibility of triggering circularities in control flow analysis. + function getTypeOfDottedName(node: Expression): Type | undefined { switch (node.kind) { case SyntaxKind.Identifier: const symbol = getResolvedSymbol(node); @@ -16874,10 +16874,10 @@ namespace ts { return checkThisExpression(node); case SyntaxKind.PropertyAccessExpression: const type = getTypeOfDottedName((node).expression); - if (type) { - const prop = getPropertyOfType(type, (node).name.escapedText); - return prop && getExplicitTypeOfSymbol(prop); - } + const prop = type && getPropertyOfType(type, (node).name.escapedText); + return prop && getExplicitTypeOfSymbol(prop); + case SyntaxKind.ParenthesizedExpression: + return getTypeOfDottedName((node).expression); } } @@ -16886,7 +16886,9 @@ namespace ts { let signature = links.effectsSignature; if (signature === undefined) { // A call expression parented by an expression statement is a potential assertion. Other call - // expressions are potential type predicate function calls. + // expressions are potential type predicate function calls. In order to avoid triggering + // circularities in control flow analysis, we use getTypeOfDottedName when resolving the call + // target expression of an assertion. const funcType = node.parent.kind === SyntaxKind.ExpressionStatement ? getTypeOfDottedName(node.expression) : node.expression.kind !== SyntaxKind.SuperKeyword ? checkNonNullExpression(node.expression) : undefined; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index b27de58134a..b4e4769ab47 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3518,28 +3518,33 @@ namespace ts { AssertsIdentifier } - export interface ThisTypePredicate { + export interface TypePredicateBase { + kind: TypePredicateKind; + type: Type | undefined; + } + + export interface ThisTypePredicate extends TypePredicateBase { kind: TypePredicateKind.This; parameterName: undefined; parameterIndex: undefined; type: Type; } - export interface IdentifierTypePredicate { + export interface IdentifierTypePredicate extends TypePredicateBase { kind: TypePredicateKind.Identifier; parameterName: string; parameterIndex: number; type: Type; } - export interface AssertsThisTypePredicate { + export interface AssertsThisTypePredicate extends TypePredicateBase { kind: TypePredicateKind.AssertsThis; parameterName: undefined; parameterIndex: undefined; type: Type | undefined; } - export interface AssertsIdentifierTypePredicate { + export interface AssertsIdentifierTypePredicate extends TypePredicateBase { kind: TypePredicateKind.AssertsIdentifier; parameterName: string; parameterIndex: number; From 8791b62c9614b83f23928aa0208fbfe07f508904 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 10 Sep 2019 22:26:36 -0700 Subject: [PATCH 071/159] Accept new baselines --- tests/baselines/reference/api/tsserverlibrary.d.ts | 12 ++++++++---- tests/baselines/reference/api/typescript.d.ts | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index c458e88300b..35f3d7a7a54 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -2097,25 +2097,29 @@ declare namespace ts { AssertsThis = 2, AssertsIdentifier = 3 } - export interface ThisTypePredicate { + export interface TypePredicateBase { + kind: TypePredicateKind; + type: Type | undefined; + } + export interface ThisTypePredicate extends TypePredicateBase { kind: TypePredicateKind.This; parameterName: undefined; parameterIndex: undefined; type: Type; } - export interface IdentifierTypePredicate { + export interface IdentifierTypePredicate extends TypePredicateBase { kind: TypePredicateKind.Identifier; parameterName: string; parameterIndex: number; type: Type; } - export interface AssertsThisTypePredicate { + export interface AssertsThisTypePredicate extends TypePredicateBase { kind: TypePredicateKind.AssertsThis; parameterName: undefined; parameterIndex: undefined; type: Type | undefined; } - export interface AssertsIdentifierTypePredicate { + export interface AssertsIdentifierTypePredicate extends TypePredicateBase { kind: TypePredicateKind.AssertsIdentifier; parameterName: string; parameterIndex: number; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index d8df06e936f..ba196621c14 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -2097,25 +2097,29 @@ declare namespace ts { AssertsThis = 2, AssertsIdentifier = 3 } - export interface ThisTypePredicate { + export interface TypePredicateBase { + kind: TypePredicateKind; + type: Type | undefined; + } + export interface ThisTypePredicate extends TypePredicateBase { kind: TypePredicateKind.This; parameterName: undefined; parameterIndex: undefined; type: Type; } - export interface IdentifierTypePredicate { + export interface IdentifierTypePredicate extends TypePredicateBase { kind: TypePredicateKind.Identifier; parameterName: string; parameterIndex: number; type: Type; } - export interface AssertsThisTypePredicate { + export interface AssertsThisTypePredicate extends TypePredicateBase { kind: TypePredicateKind.AssertsThis; parameterName: undefined; parameterIndex: undefined; type: Type | undefined; } - export interface AssertsIdentifierTypePredicate { + export interface AssertsIdentifierTypePredicate extends TypePredicateBase { kind: TypePredicateKind.AssertsIdentifier; parameterName: string; parameterIndex: number; From 1d97ae62b63de876c7b73aff2ca152d57f787495 Mon Sep 17 00:00:00 2001 From: Titian Cernicova-Dragomir Date: Wed, 11 Sep 2019 21:20:55 +0300 Subject: [PATCH 072/159] Update src/services/refactors/extractSymbol.ts Fixed typo in comment Co-Authored-By: Orta --- src/services/refactors/extractSymbol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/refactors/extractSymbol.ts b/src/services/refactors/extractSymbol.ts index df8be2808ff..8a4003ac4a2 100644 --- a/src/services/refactors/extractSymbol.ts +++ b/src/services/refactors/extractSymbol.ts @@ -1107,7 +1107,7 @@ namespace ts.refactor.extractSymbol { return { renameFilename, renameLocation, edits }; function transformFunctionInitializerAndType(variableType: TypeNode | undefined, initializer: Expression): { variableType: TypeNode | undefined, initializer: Expression } { - // If no contextual type exists there is noting to transfer to the function signature + // If no contextual type exists there is nothing to transfer to the function signature if (variableType === undefined) return { variableType, initializer }; // Only do this for function expressions and arrow functions that are not generic if (!isFunctionExpression(initializer) && !isArrowFunction(initializer) || !!initializer.typeParameters) return { variableType, initializer }; From 4e1768c1707b0a595f51f0c383f18105f83424c7 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Wed, 11 Sep 2019 15:32:58 -0400 Subject: [PATCH 073/159] Added '}' to allowed characters in diagnostic message --- src/compiler/diagnosticMessages.json | 2 +- .../baselines/reference/constEnum2.errors.txt | 4 +-- .../baselines/reference/enumErrors.errors.txt | 28 +++++++++---------- .../parserComputedPropertyName30.errors.txt | 4 +-- .../reference/parserEnum5.errors.txt | 12 ++++---- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 1c3563c9c11..7aa8c36696c 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1035,7 +1035,7 @@ "category": "Error", "code": 1356 }, - "An enum member name must be followed by a ',' or '='.": { + "An enum member name must be followed by a ',', '=', or '}'.": { "category": "Error", "code": 1357 }, diff --git a/tests/baselines/reference/constEnum2.errors.txt b/tests/baselines/reference/constEnum2.errors.txt index 3a3036404bf..2ab0f624d60 100644 --- a/tests/baselines/reference/constEnum2.errors.txt +++ b/tests/baselines/reference/constEnum2.errors.txt @@ -1,6 +1,6 @@ tests/cases/conformance/constEnums/constEnum2.ts(10,9): error TS2474: const enum member initializers can only contain literal values and other computed enum values. tests/cases/conformance/constEnums/constEnum2.ts(11,9): error TS2474: const enum member initializers can only contain literal values and other computed enum values. -tests/cases/conformance/constEnums/constEnum2.ts(12,5): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/constEnums/constEnum2.ts(12,5): error TS1357: An enum member name must be followed by a ',', '=', or '}'. tests/cases/conformance/constEnums/constEnum2.ts(12,9): error TS2474: const enum member initializers can only contain literal values and other computed enum values. @@ -22,7 +22,7 @@ tests/cases/conformance/constEnums/constEnum2.ts(12,9): error TS2474: const enum !!! error TS2474: const enum member initializers can only contain literal values and other computed enum values. g = CONST, ~ -!!! error TS1357: An enum member name must be followed by a ',' or '='. +!!! error TS1357: An enum member name must be followed by a ',', '=', or '}'. ~~~~~ !!! error TS2474: const enum member initializers can only contain literal values and other computed enum values. } \ No newline at end of file diff --git a/tests/baselines/reference/enumErrors.errors.txt b/tests/baselines/reference/enumErrors.errors.txt index 6c43f318389..23b5e97e71b 100644 --- a/tests/baselines/reference/enumErrors.errors.txt +++ b/tests/baselines/reference/enumErrors.errors.txt @@ -11,15 +11,15 @@ tests/cases/conformance/enums/enumErrors.ts(35,9): error TS2553: Computed values tests/cases/conformance/enums/enumErrors.ts(36,9): error TS2553: Computed values are not permitted in an enum with string valued members. tests/cases/conformance/enums/enumErrors.ts(37,9): error TS2553: Computed values are not permitted in an enum with string valued members. tests/cases/conformance/enums/enumErrors.ts(38,9): error TS2553: Computed values are not permitted in an enum with string valued members. -tests/cases/conformance/enums/enumErrors.ts(46,18): error TS1357: An enum member name must be followed by a ',' or '='. -tests/cases/conformance/enums/enumErrors.ts(47,24): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/enums/enumErrors.ts(46,18): error TS1357: An enum member name must be followed by a ',', '=', or '}'. +tests/cases/conformance/enums/enumErrors.ts(47,24): error TS1357: An enum member name must be followed by a ',', '=', or '}'. tests/cases/conformance/enums/enumErrors.ts(47,26): error TS2452: An enum member cannot have a numeric name. -tests/cases/conformance/enums/enumErrors.ts(48,28): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/enums/enumErrors.ts(48,28): error TS1357: An enum member name must be followed by a ',', '=', or '}'. tests/cases/conformance/enums/enumErrors.ts(48,30): error TS2452: An enum member cannot have a numeric name. -tests/cases/conformance/enums/enumErrors.ts(48,31): error TS1357: An enum member name must be followed by a ',' or '='. -tests/cases/conformance/enums/enumErrors.ts(51,16): error TS1357: An enum member name must be followed by a ',' or '='. -tests/cases/conformance/enums/enumErrors.ts(51,22): error TS1357: An enum member name must be followed by a ',' or '='. -tests/cases/conformance/enums/enumErrors.ts(51,30): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/enums/enumErrors.ts(48,31): error TS1357: An enum member name must be followed by a ',', '=', or '}'. +tests/cases/conformance/enums/enumErrors.ts(51,16): error TS1357: An enum member name must be followed by a ',', '=', or '}'. +tests/cases/conformance/enums/enumErrors.ts(51,22): error TS1357: An enum member name must be followed by a ',', '=', or '}'. +tests/cases/conformance/enums/enumErrors.ts(51,30): error TS1357: An enum member name must be followed by a ',', '=', or '}'. tests/cases/conformance/enums/enumErrors.ts(51,33): error TS2452: An enum member cannot have a numeric name. @@ -97,28 +97,28 @@ tests/cases/conformance/enums/enumErrors.ts(51,33): error TS2452: An enum member postSemicolon; ~ -!!! error TS1357: An enum member name must be followed by a ',' or '='. +!!! error TS1357: An enum member name must be followed by a ',', '=', or '}'. postColonValueComma: 2, ~ -!!! error TS1357: An enum member name must be followed by a ',' or '='. +!!! error TS1357: An enum member name must be followed by a ',', '=', or '}'. ~ !!! error TS2452: An enum member cannot have a numeric name. postColonValueSemicolon: 3; ~ -!!! error TS1357: An enum member name must be followed by a ',' or '='. +!!! error TS1357: An enum member name must be followed by a ',', '=', or '}'. ~ !!! error TS2452: An enum member cannot have a numeric name. ~ -!!! error TS1357: An enum member name must be followed by a ',' or '='. +!!! error TS1357: An enum member name must be followed by a ',', '=', or '}'. }; enum E14 { a, b: any "hello" += 1, c, d} ~ -!!! error TS1357: An enum member name must be followed by a ',' or '='. +!!! error TS1357: An enum member name must be followed by a ',', '=', or '}'. ~~~~~~~ -!!! error TS1357: An enum member name must be followed by a ',' or '='. +!!! error TS1357: An enum member name must be followed by a ',', '=', or '}'. ~~ -!!! error TS1357: An enum member name must be followed by a ',' or '='. +!!! error TS1357: An enum member name must be followed by a ',', '=', or '}'. ~ !!! error TS2452: An enum member cannot have a numeric name. \ No newline at end of file diff --git a/tests/baselines/reference/parserComputedPropertyName30.errors.txt b/tests/baselines/reference/parserComputedPropertyName30.errors.txt index bf99b4888a4..cbb4e7c096e 100644 --- a/tests/baselines/reference/parserComputedPropertyName30.errors.txt +++ b/tests/baselines/reference/parserComputedPropertyName30.errors.txt @@ -1,6 +1,6 @@ tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts(3,5): error TS1164: Computed property names are not allowed in enums. tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts(3,11): error TS2304: Cannot find name 'id'. -tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts(4,5): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts(4,5): error TS1357: An enum member name must be followed by a ',', '=', or '}'. tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts(4,5): error TS1164: Computed property names are not allowed in enums. @@ -14,7 +14,7 @@ tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedP !!! error TS2304: Cannot find name 'id'. [e2] = 1 ~ -!!! error TS1357: An enum member name must be followed by a ',' or '='. +!!! error TS1357: An enum member name must be followed by a ',', '=', or '}'. ~~~~ !!! error TS1164: Computed property names are not allowed in enums. } \ No newline at end of file diff --git a/tests/baselines/reference/parserEnum5.errors.txt b/tests/baselines/reference/parserEnum5.errors.txt index 8b052a047d9..706cac4af4e 100644 --- a/tests/baselines/reference/parserEnum5.errors.txt +++ b/tests/baselines/reference/parserEnum5.errors.txt @@ -1,8 +1,8 @@ -tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(2,12): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(2,12): error TS1357: An enum member name must be followed by a ',', '=', or '}'. tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(2,14): error TS2452: An enum member cannot have a numeric name. -tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,15): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,15): error TS1357: An enum member name must be followed by a ',', '=', or '}'. tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,17): error TS2452: An enum member cannot have a numeric name. -tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,24): error TS1357: An enum member name must be followed by a ',' or '='. +tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,24): error TS1357: An enum member name must be followed by a ',', '=', or '}'. tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,26): error TS2452: An enum member cannot have a numeric name. @@ -10,15 +10,15 @@ tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,26) enum E2 { a, } enum E3 { a: 1, } ~ -!!! error TS1357: An enum member name must be followed by a ',' or '='. +!!! error TS1357: An enum member name must be followed by a ',', '=', or '}'. ~ !!! error TS2452: An enum member cannot have a numeric name. enum E1 { a, b: 1, c, d: 2 = 3 } ~ -!!! error TS1357: An enum member name must be followed by a ',' or '='. +!!! error TS1357: An enum member name must be followed by a ',', '=', or '}'. ~ !!! error TS2452: An enum member cannot have a numeric name. ~ -!!! error TS1357: An enum member name must be followed by a ',' or '='. +!!! error TS1357: An enum member name must be followed by a ',', '=', or '}'. ~ !!! error TS2452: An enum member cannot have a numeric name. \ No newline at end of file From 3a868af5f538909f54f72debbb5c5161a3df336e Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 11 Sep 2019 12:34:20 -0700 Subject: [PATCH 074/159] Fix typo --- src/harness/vfs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/harness/vfs.ts b/src/harness/vfs.ts index 25da3149834..c6931d21611 100644 --- a/src/harness/vfs.ts +++ b/src/harness/vfs.ts @@ -706,7 +706,7 @@ namespace vfs { } /** - * Generates a `FileSet` patch containing all the entries in `chagned` that are not in `base`. + * Generates a `FileSet` patch containing all the entries in `changed` that are not in `base`. */ public static diff(changed: FileSystem, base: FileSystem, options: DiffOptions = {}) { const differences: FileSet = {}; From 07b9715fde05b3d405423a7303ea3d180706cbde Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 4 Sep 2019 13:42:11 -0700 Subject: [PATCH 075/159] Allow .d.ts with --isolatedModules Fixes #29490 --- src/compiler/program.ts | 4 ---- .../reference/isolatedModulesDeclaration.errors.txt | 6 ------ 2 files changed, 10 deletions(-) delete mode 100644 tests/baselines/reference/isolatedModulesDeclaration.errors.txt diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 275acb64641..6a8a36dd590 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -2808,10 +2808,6 @@ namespace ts { } if (options.isolatedModules) { - if (getEmitDeclarations(options)) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, getEmitDeclarationOptionName(options), "isolatedModules"); - } - if (options.out) { createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "out", "isolatedModules"); } diff --git a/tests/baselines/reference/isolatedModulesDeclaration.errors.txt b/tests/baselines/reference/isolatedModulesDeclaration.errors.txt deleted file mode 100644 index 09a655c6da0..00000000000 --- a/tests/baselines/reference/isolatedModulesDeclaration.errors.txt +++ /dev/null @@ -1,6 +0,0 @@ -error TS5053: Option 'declaration' cannot be specified with option 'isolatedModules'. - - -!!! error TS5053: Option 'declaration' cannot be specified with option 'isolatedModules'. -==== tests/cases/compiler/file1.ts (0 errors) ==== - export var x; \ No newline at end of file From 2692b2e214fa531436a5701e5227c539e987e214 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 4 Sep 2019 15:40:38 -0700 Subject: [PATCH 076/159] Add failing test cases for isolatedModules after enabling declaration emit --- src/testRunner/unittests/tsbuild/helpers.ts | 10 +- .../inferredTypeFromTransitiveModule.ts | 52 ++++++- .../unittests/tscWatch/emitAndErrorUpdates.ts | 144 ++++++++++++++---- ...-transitive-module-with-isolatedModules.js | 82 ++++++++++ ...-transitive-module-with-isolatedModules.js | 135 ++++++++++++++++ 5 files changed, 390 insertions(+), 33 deletions(-) create mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js create mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index e33edf289d3..126b8d2f7d5 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -230,7 +230,7 @@ interface Symbol { } } - interface BuildInput { + export interface BuildInput { fs: vfs.FileSystem; tick: () => void; rootNames: readonly string[]; @@ -239,7 +239,7 @@ interface Symbol { baselineBuildInfo?: true; } - function build({ fs, tick, rootNames, modifyFs, baselineSourceMap, baselineBuildInfo }: BuildInput) { + export function tscBuild({ fs, tick, rootNames, modifyFs, baselineSourceMap, baselineBuildInfo }: BuildInput) { const actualReadFileMap = createMap(); modifyFs(fs); tick(); @@ -344,7 +344,7 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt let host: fakes.SolutionBuilderHost; let initialWrittenFiles: Map; before(() => { - const result = build({ + const result = tscBuild({ fs: projFs().shadow(), tick, rootNames, @@ -390,7 +390,7 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt tick(); newFs = fs.shadow(); tick(); - ({ actualReadFileMap, host } = build({ + ({ actualReadFileMap, host } = tscBuild({ fs: newFs, tick, rootNames, @@ -429,7 +429,7 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt }); } it(`Verify emit output file text is same when built clean`, () => { - const { fs, writtenFiles } = build({ + const { fs, writtenFiles } = tscBuild({ fs: newFs.shadow(), tick, rootNames, diff --git a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts index 92762dfd49d..5383b7d32be 100644 --- a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts +++ b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts @@ -25,7 +25,7 @@ namespace ts { ] }, incrementalDtsChangedBuild: { - modifyFs: fs => replaceText(fs, "/src/bar.ts", "param: string", ""), + modifyFs: changeBarParam, expectedDiagnostics: [ getExpectedDiagnosticForProjectsInBuild("src/tsconfig.json"), [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/tsconfig.json", "src/obj/bar.js", "src/bar.ts"], @@ -36,5 +36,55 @@ namespace ts { baselineOnly: true, verifyDiagnostics: true }); + + verifyTsbuildOutput({ + scenario: "inferred type from transitive module with isolatedModules", + projFs: () => projFs, + time, + tick, + proj: "inferredTypeFromTransitiveModule", + rootNames: ["/src"], + initialBuild: { modifyFs: changeToIsolatedModules }, + incrementalDtsChangedBuild: { modifyFs: changeBarParam }, + baselineOnly: true, + }); + + it("reports errors in files affected by change in signature", () => { + const { fs, host } = tscBuild({ + fs: projFs.shadow(), + tick, + rootNames: ["/src"], + modifyFs: fs => { + changeToIsolatedModules(fs); + appendText(fs, "/src/lazyIndex.ts", ` +import { default as bar } from './bar'; +bar("hello");`); + } + }); + host.assertErrors(/*empty*/); + + tick(); + const { fs: newFs, host: newHost, writtenFiles } = tscBuild({ + fs: fs.shadow(), + tick, + rootNames: ["/src"], + modifyFs: changeBarParam + }); + // Has errors + newHost.assertErrors({ + message: [Diagnostics.Expected_0_arguments_but_got_1, 0, 1], + location: expectedLocationIndexOf(newFs, "/src/lazyIndex.ts", `"hello"`) + }); + // No written files + assert.equal(writtenFiles.size, 0); + }); }); + + function changeToIsolatedModules(fs: vfs.FileSystem) { + replaceText(fs, "/src/tsconfig.json", `"incremental": true`, `"incremental": true, "isolatedModules": true`); + } + + function changeBarParam(fs: vfs.FileSystem) { + replaceText(fs, "/src/bar.ts", "param: string", ""); + } } diff --git a/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts b/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts index f41b07b157d..908c609e703 100644 --- a/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts +++ b/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts @@ -12,7 +12,8 @@ namespace ts.tscWatch { file, fileStamp: host.getModifiedTime(file.path.replace(".ts", ".js")), errors: builderProgram.getSemanticDiagnostics(watch().getSourceFileByPath(file.path as Path)), - errorsFromOldState: !!state.semanticDiagnosticsFromOldState && state.semanticDiagnosticsFromOldState.has(file.path) + errorsFromOldState: !!state.semanticDiagnosticsFromOldState && state.semanticDiagnosticsFromOldState.has(file.path), + dtsStamp: host.getModifiedTime(file.path.replace(".ts", ".d.ts")) }; } @@ -24,21 +25,36 @@ namespace ts.tscWatch { return find(stampsAndErrors, info => info.file === file)!; } - function verifyOutputFileStampsAndErrors( - file: File, - emitExpected: boolean, - errorRefershExpected: boolean, - beforeChangeFileStampsAndErrors: readonly ReturnType[], - afterChangeFileStampsAndErrors: readonly ReturnType[] - ) { + interface VerifyOutputFileStampAndErrors { + file: File; + jsEmitExpected: boolean; + dtsEmitExpected: boolean; + errorRefershExpected: boolean; + beforeChangeFileStampsAndErrors: readonly ReturnType[]; + afterChangeFileStampsAndErrors: readonly ReturnType[]; + } + function verifyOutputFileStampsAndErrors({ + file, + jsEmitExpected, + dtsEmitExpected, + errorRefershExpected, + beforeChangeFileStampsAndErrors, + afterChangeFileStampsAndErrors + }: VerifyOutputFileStampAndErrors) { const beforeChange = findStampAndErrors(beforeChangeFileStampsAndErrors, file); const afterChange = findStampAndErrors(afterChangeFileStampsAndErrors, file); - if (emitExpected) { + if (jsEmitExpected) { assert.notStrictEqual(afterChange.fileStamp, beforeChange.fileStamp, `Expected emit for file ${file.path}`); } else { assert.strictEqual(afterChange.fileStamp, beforeChange.fileStamp, `Did not expect new emit for file ${file.path}`); } + if (dtsEmitExpected) { + assert.notStrictEqual(afterChange.dtsStamp, beforeChange.dtsStamp, `Expected emit for file ${file.path}`); + } + else { + assert.strictEqual(afterChange.dtsStamp, beforeChange.dtsStamp, `Did not expect new emit for file ${file.path}`); + } if (errorRefershExpected) { if (afterChange.errors !== emptyArray || beforeChange.errors !== emptyArray) { assert.notStrictEqual(afterChange.errors, beforeChange.errors, `Expected new errors for file ${file.path}`); @@ -51,19 +67,22 @@ namespace ts.tscWatch { } } - interface VerifyEmitAndErrorUpdates { - change: (host: WatchedSystem) => void; - getInitialErrors: (watch: Watch) => readonly Diagnostic[] | readonly string[]; - getIncrementalErrors: (watch: Watch) => readonly Diagnostic[] | readonly string[]; - filesWithNewEmit: readonly File[]; - filesWithOnlyErrorRefresh: readonly File[]; - filesNotTouched: readonly File[]; - configFile?: File; + interface VerifyEmitAndErrorUpdatesWorker extends VerifyEmitAndErrorUpdates { + configFile: File; } - - function verifyEmitAndErrorUpdates({ filesWithNewEmit, filesWithOnlyErrorRefresh, filesNotTouched, configFile = config, change, getInitialErrors, getIncrementalErrors }: VerifyEmitAndErrorUpdates) { + function verifyEmitAndErrorUpdatesWorker({ + fileWithChange, + filesWithNewEmit, + filesWithOnlyErrorRefresh, + filesNotTouched, + configFile, + change, + getInitialErrors, + getIncrementalErrors + }: VerifyEmitAndErrorUpdatesWorker) { const nonLibFiles = [...filesWithNewEmit, ...filesWithOnlyErrorRefresh, ...filesNotTouched]; const files = [...nonLibFiles, configFile, libFile]; + const compilerOptions = (JSON.parse(configFile.content).compilerOptions || {}) as CompilerOptions; const host = createWatchedSystem(files, { currentDirectory }); const watch = createWatchOfConfigFile("tsconfig.json", host); checkProgramActualFiles(watch(), [...nonLibFiles.map(f => f.path), libFile.path]); @@ -73,9 +92,77 @@ namespace ts.tscWatch { host.runQueuedTimeoutCallbacks(); checkOutputErrorsIncremental(host, getIncrementalErrors(watch)); const afterChange = getOutputFileStampsAndErrors(host, watch, nonLibFiles); - filesWithNewEmit.forEach(file => verifyOutputFileStampsAndErrors(file, /*emitExpected*/ true, /*errorRefershExpected*/ true, beforeChange, afterChange)); - filesWithOnlyErrorRefresh.forEach(file => verifyOutputFileStampsAndErrors(file, /*emitExpected*/ false, /*errorRefershExpected*/ true, beforeChange, afterChange)); - filesNotTouched.forEach(file => verifyOutputFileStampsAndErrors(file, /*emitExpected*/ false, /*errorRefershExpected*/ false, beforeChange, afterChange)); + filesWithNewEmit.forEach(file => verifyOutputFileStampsAndErrors({ + file, + jsEmitExpected: !compilerOptions.isolatedModules || fileWithChange === file, + dtsEmitExpected: getEmitDeclarations(compilerOptions), + errorRefershExpected: true, + beforeChangeFileStampsAndErrors: beforeChange, + afterChangeFileStampsAndErrors: afterChange + })); + filesWithOnlyErrorRefresh.forEach(file => verifyOutputFileStampsAndErrors({ + file, + jsEmitExpected: false, + dtsEmitExpected: getEmitDeclarations(compilerOptions) && !file.path.endsWith(".d.ts"), + errorRefershExpected: true, + beforeChangeFileStampsAndErrors: beforeChange, + afterChangeFileStampsAndErrors: afterChange + })); + filesNotTouched.forEach(file => verifyOutputFileStampsAndErrors({ + file, + jsEmitExpected: false, + dtsEmitExpected: false, + errorRefershExpected: false, + beforeChangeFileStampsAndErrors: beforeChange, + afterChangeFileStampsAndErrors: afterChange + })); + } + + function changeCompilerOptions(input: VerifyEmitAndErrorUpdates, additionalOptions: CompilerOptions): File { + const configFile = input.configFile || config; + const content = JSON.parse(configFile.content); + content.compilerOptions = { ...content.compilerOptions, ...additionalOptions }; + return { path: configFile.path, content: JSON.stringify(content) }; + } + + interface VerifyEmitAndErrorUpdates { + change: (host: WatchedSystem) => void; + getInitialErrors: (watch: Watch) => readonly Diagnostic[] | readonly string[]; + getIncrementalErrors: (watch: Watch) => readonly Diagnostic[] | readonly string[]; + fileWithChange: File; + filesWithNewEmit: readonly File[]; + filesWithOnlyErrorRefresh: readonly File[]; + filesNotTouched: readonly File[]; + configFile?: File; + } + function verifyEmitAndErrorUpdates(input: VerifyEmitAndErrorUpdates) { + it("with default config", () => { + verifyEmitAndErrorUpdatesWorker({ + ...input, + configFile: input.configFile || config + }); + }); + + it("with default config and --declaration", () => { + verifyEmitAndErrorUpdatesWorker({ + ...input, + configFile: changeCompilerOptions(input, { declaration: true }) + }); + }); + + it("config with --isolatedModules", () => { + verifyEmitAndErrorUpdatesWorker({ + ...input, + configFile: changeCompilerOptions(input, { isolatedModules: true }) + }); + }); + + it("config with --isolatedModules and --declaration", () => { + verifyEmitAndErrorUpdatesWorker({ + ...input, + configFile: changeCompilerOptions(input, { isolatedModules: true, declaration: true }) + }); + }); } describe("deep import changes", () => { @@ -93,6 +180,7 @@ console.log(b.c.d);` addImportedModule(bFile); addImportedModule(cFile); verifyEmitAndErrorUpdates({ + fileWithChange: cFile, filesWithNewEmit, filesWithOnlyErrorRefresh, filesNotTouched: emptyArray, @@ -113,7 +201,7 @@ console.log(b.c.d);` } } - it("updates errors when deep import file changes", () => { + describe("updates errors when deep import file changes", () => { const bFile: File = { path: `${currentDirectory}/b.ts`, content: `import {C} from './c'; @@ -132,7 +220,7 @@ export class B verifyDeepImportChange(bFile, cFile); }); - it("updates errors when deep import through declaration file changes", () => { + describe("updates errors when deep import through declaration file changes", () => { const bFile: File = { path: `${currentDirectory}/b.d.ts`, content: `import {C} from './c'; @@ -152,7 +240,7 @@ export class B }); }); - it("updates errors in file not exporting a deep multilevel import that changes", () => { + describe("updates errors in file not exporting a deep multilevel import that changes", () => { const aFile: File = { path: `${currentDirectory}/a.ts`, content: `export interface Point { @@ -193,6 +281,7 @@ getPoint().c.x;` content: `import "./d";` }; verifyEmitAndErrorUpdates({ + fileWithChange: aFile, filesWithNewEmit: [aFile, bFile], filesWithOnlyErrorRefresh: [cFile, dFile], filesNotTouched: [eFile], @@ -265,6 +354,7 @@ export class Data { filesWithOnlyErrorRefresh.push(lib2Data2); } verifyEmitAndErrorUpdates({ + fileWithChange: lib1ToolsInterface, filesWithNewEmit, filesWithOnlyErrorRefresh, filesNotTouched: emptyArray, @@ -276,11 +366,11 @@ export class Data { ] }); } - it("when there are no circular import and exports", () => { + describe("when there are no circular import and exports", () => { verifyTransitiveExports(lib2Data); }); - it("when there are circular import and exports", () => { + describe("when there are circular import and exports", () => { const lib2Data: File = { path: `${currentDirectory}/lib2/data.ts`, content: `import { ITest } from "lib1/public"; import { Data2 } from "./data2"; diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js new file mode 100644 index 00000000000..bf9b03d9b2d --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js @@ -0,0 +1,82 @@ +//// [/src/bar.ts] +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + +//// [/src/obj/bar.d.ts] +declare const _default: () => void; +export default _default; + + +//// [/src/obj/bar.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar() { +}); + + +//// [/src/obj/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../bar.ts": { + "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "signature": "-9232740537-declare const _default: () => void;\r\nexport default _default;\r\n" + }, + "../bundling.ts": { + "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" + }, + "../global.d.ts": { + "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" + }, + "../lazyindex.ts": { + "version": "-6956449754-export { default as bar } from './bar';\n", + "signature": "-6224542381-export { default as bar } from './bar';\r\n" + }, + "../index.ts": { + "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "18468008756-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\r\n" + } + }, + "options": { + "target": 1, + "declaration": true, + "outDir": "./", + "incremental": true, + "isolatedModules": true, + "configFilePath": "../tsconfig.json" + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "exportedModulesMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + } + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js new file mode 100644 index 00000000000..3ebfc183fa9 --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js @@ -0,0 +1,135 @@ +//// [/src/obj/bar.d.ts] +declare const _default: (param: string) => void; +export default _default; + + +//// [/src/obj/bar.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + + +//// [/src/obj/bundling.d.ts] +export declare class LazyModule { + private importCallback; + constructor(importCallback: () => Promise); +} +export declare class LazyAction any, TModule> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); +} + + +//// [/src/obj/bundling.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var LazyModule = /** @class */ (function () { + function LazyModule(importCallback) { + this.importCallback = importCallback; + } + return LazyModule; +}()); +exports.LazyModule = LazyModule; +var LazyAction = /** @class */ (function () { + function LazyAction(_lazyModule, _getter) { + } + return LazyAction; +}()); +exports.LazyAction = LazyAction; + + +//// [/src/obj/index.d.ts] +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + + +//// [/src/obj/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var bundling_1 = require("./bundling"); +var lazyModule = new bundling_1.LazyModule(function () { + return Promise.resolve().then(function () { return require('./lazyIndex'); }); +}); +exports.lazyBar = new bundling_1.LazyAction(lazyModule, function (m) { return m.bar; }); + + +//// [/src/obj/lazyIndex.d.ts] +export { default as bar } from './bar'; + + +//// [/src/obj/lazyIndex.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var bar_1 = require("./bar"); +exports.bar = bar_1.default; + + +//// [/src/obj/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../bar.ts": { + "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "signature": "11191036521-declare const _default: (param: string) => void;\r\nexport default _default;\r\n" + }, + "../bundling.ts": { + "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" + }, + "../global.d.ts": { + "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" + }, + "../lazyindex.ts": { + "version": "-6956449754-export { default as bar } from './bar';\n", + "signature": "-6224542381-export { default as bar } from './bar';\r\n" + }, + "../index.ts": { + "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "18468008756-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\r\n" + } + }, + "options": { + "target": 1, + "declaration": true, + "outDir": "./", + "incremental": true, + "isolatedModules": true, + "configFilePath": "../tsconfig.json" + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "exportedModulesMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, "isolatedModules": true + } +} + From 0019cee6de55842fe56d8e58ab4f85a8c2adabd2 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 11 Sep 2019 12:11:59 -0700 Subject: [PATCH 077/159] Handle --isolatedModules and d.ts emit in the builder --- src/compiler/builder.ts | 32 +++++++++++++++++-- src/compiler/builderState.ts | 2 +- ...-transitive-module-with-isolatedModules.js | 18 +++++++++-- ...-transitive-module-with-isolatedModules.js | 10 +++++- 4 files changed, 55 insertions(+), 7 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 653832c8dbd..72526fc4b90 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -173,8 +173,7 @@ namespace ts { const compilerOptions = newProgram.getCompilerOptions(); state.compilerOptions = compilerOptions; // With --out or --outFile, any change affects all semantic diagnostics so no need to cache them - // With --isolatedModules, emitting changed file doesnt emit dependent files so we cant know of dependent files to retrieve errors so dont cache the errors - if (!compilerOptions.outFile && !compilerOptions.out && !compilerOptions.isolatedModules) { + if (!compilerOptions.outFile && !compilerOptions.out) { state.semanticDiagnosticsPerFile = createMap(); } state.changedFilesSet = createMap(); @@ -483,16 +482,43 @@ namespace ts { return !state.semanticDiagnosticsFromOldState.size; } + function isChangedSignagure(state: BuilderProgramState, path: Path) { + const newSignature = Debug.assertDefined(state.currentAffectedFilesSignatures).get(path); + const oldSignagure = Debug.assertDefined(state.fileInfos.get(path)).signature; + return newSignature !== oldSignagure; + } + /** * Iterate on referencing modules that export entities from affected file */ function forEachReferencingModulesOfExportOfAffectedFile(state: BuilderProgramState, affectedFile: SourceFile, fn: (state: BuilderProgramState, filePath: Path) => boolean) { // If there was change in signature (dts output) for the changed file, // then only we need to handle pending file emit - if (!state.exportedModulesMap || state.affectedFiles!.length === 1 || !state.changedFilesSet.has(affectedFile.path)) { + if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.path)) { return; } + if (!isChangedSignagure(state, affectedFile.path)) return; + + // Since isolated modules dont change js files, files affected by change in signature is itself + // But we need to cleanup semantic diagnostics and queue dts emit for affected files + if (state.compilerOptions.isolatedModules) { + const seenFileNamesMap = createMap(); + seenFileNamesMap.set(affectedFile.path, true); + const queue = BuilderState.getReferencedByPaths(state, affectedFile.resolvedPath); + while (queue.length > 0) { + const currentPath = queue.pop()!; + if (!seenFileNamesMap.has(currentPath)) { + seenFileNamesMap.set(currentPath, true); + const result = fn(state, currentPath); + if (result && isChangedSignagure(state, currentPath)) { + const currentSourceFile = Debug.assertDefined(state.program).getSourceFileByPath(currentPath)!; + queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath)); + } + } + } + } + Debug.assert(!!state.currentAffectedFilesExportedModulesMap); const seenFileAndExportsOfFile = createMap(); // Go through exported modules from cache first diff --git a/src/compiler/builderState.ts b/src/compiler/builderState.ts index 189d801777d..b34a0bf8370 100644 --- a/src/compiler/builderState.ts +++ b/src/compiler/builderState.ts @@ -466,7 +466,7 @@ namespace ts.BuilderState { /** * Gets the files referenced by the the file path */ - function getReferencedByPaths(state: Readonly, referencedFilePath: Path) { + export function getReferencedByPaths(state: Readonly, referencedFilePath: Path) { return arrayFrom(mapDefinedIterator(state.referencedMap!.entries(), ([filePath, referencesInFile]) => referencesInFile.has(referencedFilePath) ? filePath as Path : undefined )); diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js index bf9b03d9b2d..f8dfdc7e146 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js @@ -21,6 +21,12 @@ exports.default = foo()(function foobar() { }); +//// [/src/obj/index.d.ts] +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; + + +//// [/src/obj/lazyIndex.d.ts] file written with same contents //// [/src/obj/tsconfig.tsbuildinfo] { "program": { @@ -47,7 +53,7 @@ exports.default = foo()(function foobar() { }, "../index.ts": { "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "18468008756-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\r\n" + "signature": "6256067474-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\r\n" } }, "options": { @@ -75,7 +81,15 @@ exports.default = foo()(function foobar() { "../lazyindex.ts": [ "../bar.ts" ] - } + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../index.ts", + "../lazyindex.ts" + ] }, "version": "FakeTSVersion" } diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js index 3ebfc183fa9..568116485a4 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js @@ -118,7 +118,15 @@ exports.bar = bar_1.default; "../lazyindex.ts": [ "../bar.ts" ] - } + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../index.ts", + "../lazyindex.ts" + ] }, "version": "FakeTSVersion" } From fd6fbdf7fe9230b64127fab39b29f7dfcbd7d7ee Mon Sep 17 00:00:00 2001 From: Jesse Trinity <42591254+jessetrinity@users.noreply.github.com> Date: Wed, 11 Sep 2019 15:54:27 -0700 Subject: [PATCH 078/159] Show more items in the navbar (#33040) * show more items in navbar * fixed missing node kind for property assignments * updated navBarNestedCommonJsExports test * updated navigationBarMerging_grandchildren test * updated navigationBarItemsFunctions test * updated navigationBarAnonymousClassAndFunctionExpressions test * updated navigationBarFunctionIndirectlyInVariableDeclaration test * updated navigationBarInitializerSpans test * updated navigationBarItemsPropertiesDefinedInConstructors test * updated tests * change nav icon for properties with function-like initializers * add test case for binding element with function-like initializer * add navigationBarNestedObjectLiterals test * add navigationBarFunctionLikePropertyAssignments test * made some silly names less silly (?) * added SpreadAssignments and ShorthandPropertyAssignments * new wording for primary menu items --- src/services/navigationBar.ts | 76 +++++----- src/services/utilities.ts | 5 + .../fourslash/navbarNestedCommonJsExports.ts | 18 ++- ...BarAnonymousClassAndFunctionExpressions.ts | 4 +- .../fourslash/navigationBarAssignmentTypes.ts | 64 ++++++++ ...FunctionIndirectlyInVariableDeclaration.ts | 48 +++++- ...ationBarFunctionLikePropertyAssignments.ts | 91 ++++++++++++ .../navigationBarFunctionPrototype.ts | 38 ++++- .../navigationBarFunctionPrototypeBroken.ts | 35 ++++- .../navigationBarFunctionPrototypeNested.ts | 10 ++ .../navigationBarInitializerSpans.ts | 118 ++++++++++++++- .../navigationBarItemsBindingPatterns.ts | 9 ++ .../fourslash/navigationBarItemsFunctions.ts | 25 +++- ...BarItemsPropertiesDefinedInConstructors.ts | 12 ++ .../navigationBarMerging_grandchildren.ts | 38 ++++- .../navigationBarNestedObjectLiterals.ts | 139 ++++++++++++++++++ 16 files changed, 664 insertions(+), 66 deletions(-) create mode 100644 tests/cases/fourslash/navigationBarAssignmentTypes.ts create mode 100644 tests/cases/fourslash/navigationBarFunctionLikePropertyAssignments.ts create mode 100644 tests/cases/fourslash/navigationBarNestedObjectLiterals.ts diff --git a/src/services/navigationBar.ts b/src/services/navigationBar.ts index fb0a1503214..7a91fcdcad2 100644 --- a/src/services/navigationBar.ts +++ b/src/services/navigationBar.ts @@ -56,7 +56,7 @@ namespace ts.NavigationBar { curCancellationToken = cancellationToken; curSourceFile = sourceFile; try { - return map(topLevelItems(rootNavigationBarNode(sourceFile)), convertToTopLevelItem); + return map(primaryNavBarMenuItems(rootNavigationBarNode(sourceFile)), convertToPrimaryNavBarMenuItem); } finally { reset(); @@ -111,8 +111,8 @@ namespace ts.NavigationBar { return root; } - function addLeafNode(node: Node): void { - pushChild(parent, emptyNavigationBarNode(node)); + function addLeafNode(node: Node, name?: DeclarationName): void { + pushChild(parent, emptyNavigationBarNode(node, name)); } function emptyNavigationBarNode(node: Node, name?: DeclarationName): NavigationBarNode { @@ -243,23 +243,26 @@ namespace ts.NavigationBar { } break; + case SyntaxKind.ShorthandPropertyAssignment: + addNodeWithRecursiveChild(node, (node).name); + break; + case SyntaxKind.SpreadAssignment: + const { expression } = node; + // Use the expression as the name of the SpreadAssignment, otherwise show as . + isIdentifier(expression) ? addLeafNode(node, expression) : addLeafNode(node); + break; case SyntaxKind.BindingElement: + case SyntaxKind.PropertyAssignment: case SyntaxKind.VariableDeclaration: - const { name, initializer } = node; + const { name, initializer } = node; if (isBindingPattern(name)) { addChildrenRecursively(name); } else if (initializer && isFunctionOrClassExpression(initializer)) { - if (initializer.name) { - // Don't add a node for the VariableDeclaration, just for the initializer. - addChildrenRecursively(initializer); - } - else { - // Add a node for the VariableDeclaration, but not for the initializer. - startNode(node); - forEachChild(initializer, addChildrenRecursively); - endNode(); - } + // Add a node for the VariableDeclaration, but not for the initializer. + startNode(node); + forEachChild(initializer, addChildrenRecursively); + endNode(); } else { addNodeWithRecursiveChild(node, initializer); @@ -699,12 +702,15 @@ namespace ts.NavigationBar { } } - /** Flattens the NavNode tree to a list, keeping only the top-level items. */ - function topLevelItems(root: NavigationBarNode): NavigationBarNode[] { - const topLevel: NavigationBarNode[] = []; + /** Flattens the NavNode tree to a list of items to appear in the primary navbar menu. */ + function primaryNavBarMenuItems(root: NavigationBarNode): NavigationBarNode[] { + // The primary (middle) navbar menu displays the general code navigation hierarchy, similar to the navtree. + // The secondary (right) navbar menu displays the child items of whichever primary item is selected. + // Some less interesting items without their own child navigation items (e.g. a local variable declaration) only show up in the secondary menu. + const primaryNavBarMenuItems: NavigationBarNode[] = []; function recur(item: NavigationBarNode) { - if (isTopLevel(item)) { - topLevel.push(item); + if (shouldAppearInPrimaryNavBarMenu(item)) { + primaryNavBarMenuItems.push(item); if (item.children) { for (const child of item.children) { recur(child); @@ -713,9 +719,16 @@ namespace ts.NavigationBar { } } recur(root); - return topLevel; + return primaryNavBarMenuItems; - function isTopLevel(item: NavigationBarNode): boolean { + /** Determines if a node should appear in the primary navbar menu. */ + function shouldAppearInPrimaryNavBarMenu(item: NavigationBarNode): boolean { + // Items with children should always appear in the primary navbar menu. + if (item.children) { + return true; + } + + // Some nodes are otherwise important enough to always include in the primary navigation menu. switch (navigationBarNodeKind(item)) { case SyntaxKind.ClassDeclaration: case SyntaxKind.ClassExpression: @@ -728,13 +741,6 @@ namespace ts.NavigationBar { case SyntaxKind.JSDocCallbackTag: return true; - case SyntaxKind.Constructor: - case SyntaxKind.MethodDeclaration: - case SyntaxKind.GetAccessor: - case SyntaxKind.SetAccessor: - case SyntaxKind.VariableDeclaration: - return hasSomeImportantChild(item); - case SyntaxKind.ArrowFunction: case SyntaxKind.FunctionDeclaration: case SyntaxKind.FunctionExpression: @@ -755,15 +761,9 @@ namespace ts.NavigationBar { case SyntaxKind.Constructor: return true; default: - return hasSomeImportantChild(item); + return false; } } - function hasSomeImportantChild(item: NavigationBarNode): boolean { - return some(item.children, child => { - const childKind = navigationBarNodeKind(child); - return childKind !== SyntaxKind.VariableDeclaration && childKind !== SyntaxKind.BindingElement; - }); - } } } @@ -778,19 +778,19 @@ namespace ts.NavigationBar { }; } - function convertToTopLevelItem(n: NavigationBarNode): NavigationBarItem { + function convertToPrimaryNavBarMenuItem(n: NavigationBarNode): NavigationBarItem { return { text: getItemName(n.node, n.name), kind: getNodeKind(n.node), kindModifiers: getModifiers(n.node), spans: getSpans(n), - childItems: map(n.children, convertToChildItem) || emptyChildItemArray, + childItems: map(n.children, convertToSecondaryNavBarMenuItem) || emptyChildItemArray, indent: n.indent, bolded: false, grayed: false }; - function convertToChildItem(n: NavigationBarNode): NavigationBarItem { + function convertToSecondaryNavBarMenuItem(n: NavigationBarNode): NavigationBarItem { return { text: getItemName(n.node, n.name), kind: getNodeKind(n.node), diff --git a/src/services/utilities.ts b/src/services/utilities.ts index 95d501de110..91b0a7a1991 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -353,8 +353,13 @@ namespace ts { case SyntaxKind.MethodDeclaration: case SyntaxKind.MethodSignature: return ScriptElementKind.memberFunctionElement; + case SyntaxKind.PropertyAssignment: + const {initializer} = node as PropertyAssignment; + return isFunctionLike(initializer) ? ScriptElementKind.memberFunctionElement : ScriptElementKind.memberVariableElement; case SyntaxKind.PropertyDeclaration: case SyntaxKind.PropertySignature: + case SyntaxKind.ShorthandPropertyAssignment: + case SyntaxKind.SpreadAssignment: return ScriptElementKind.memberVariableElement; case SyntaxKind.IndexSignature: return ScriptElementKind.indexSignatureElement; case SyntaxKind.ConstructSignature: return ScriptElementKind.constructSignatureElement; diff --git a/tests/cases/fourslash/navbarNestedCommonJsExports.ts b/tests/cases/fourslash/navbarNestedCommonJsExports.ts index 3c2d4499172..14c289a3bc2 100644 --- a/tests/cases/fourslash/navbarNestedCommonJsExports.ts +++ b/tests/cases/fourslash/navbarNestedCommonJsExports.ts @@ -29,7 +29,23 @@ verify.navigationBar([ kind: "script", childItems: [ { text: "a", kind: "const" }, - ], + ] }, + { + text: "a", + kind: "const", + childItems: [ + { text: "b", kind: "const"}, + ], + indent: 1, + }, + { + text: "b", + kind: "const", + childItems: [ + { text: "c", kind: "const" }, + ], + indent: 2, + } ]); diff --git a/tests/cases/fourslash/navigationBarAnonymousClassAndFunctionExpressions.ts b/tests/cases/fourslash/navigationBarAnonymousClassAndFunctionExpressions.ts index ad1ba1e72f9..d35d051eda6 100644 --- a/tests/cases/fourslash/navigationBarAnonymousClassAndFunctionExpressions.ts +++ b/tests/cases/fourslash/navigationBarAnonymousClassAndFunctionExpressions.ts @@ -62,7 +62,7 @@ verify.navigationTree({ "childItems": [ { "text": "foo", - "kind": "function" + "kind": "method" } ] } @@ -185,7 +185,7 @@ verify.navigationBar([ "childItems": [ { "text": "foo", - "kind": "function" + "kind": "method" } ], "indent": 2 diff --git a/tests/cases/fourslash/navigationBarAssignmentTypes.ts b/tests/cases/fourslash/navigationBarAssignmentTypes.ts new file mode 100644 index 00000000000..d3ee66f9b08 --- /dev/null +++ b/tests/cases/fourslash/navigationBarAssignmentTypes.ts @@ -0,0 +1,64 @@ +/// +////'use strict' +////const a = { +//// ...b, +//// c, +//// d: 0 +////}; + +verify.navigationTree({ + text: "", + kind: "script", + childItems: [ + { + text: "a", + kind: "const", + childItems: [ + { + text: "b", + kind: "property", + }, + { + text: "c", + kind: "property" + }, + { + text: "d", + kind: "property" + } + ] + } + ] +}); + +verify.navigationBar([ + { + text: "", + kind: "script", + childItems: [ + { + text: "a", + kind: "const" + } + ] + }, + { + text: "a", + kind: "const", + childItems: [ + { + text: "b", + kind: "property", + }, + { + text: "c", + kind: "property" + }, + { + text: "d", + kind: "property" + } + ], + indent: 1 + } +]); diff --git a/tests/cases/fourslash/navigationBarFunctionIndirectlyInVariableDeclaration.ts b/tests/cases/fourslash/navigationBarFunctionIndirectlyInVariableDeclaration.ts index a0ed5174f56..a9b588041dd 100644 --- a/tests/cases/fourslash/navigationBarFunctionIndirectlyInVariableDeclaration.ts +++ b/tests/cases/fourslash/navigationBarFunctionIndirectlyInVariableDeclaration.ts @@ -1,11 +1,16 @@ /// ////var a = { -//// propA: function() {} +//// propA: function() { +//// var c; +//// } ////}; ////var b; ////b = { -//// propB: function() {} +//// propB: function() { +//// // function must not have an empty body to appear top level +//// var d; +//// } ////}; verify.navigationTree({ @@ -18,7 +23,13 @@ verify.navigationTree({ "childItems": [ { "text": "propA", - "kind": "function" + "kind": "method", + "childItems": [ + { + "text": "c", + "kind": "var" + } + ] } ] }, @@ -28,7 +39,13 @@ verify.navigationTree({ }, { "text": "propB", - "kind": "function" + "kind": "method", + "childItems": [ + { + "text": "d", + "kind": "var" + } + ] } ] }); @@ -48,7 +65,7 @@ verify.navigationBar([ }, { "text": "propB", - "kind": "function" + "kind": "method" } ] }, @@ -58,14 +75,31 @@ verify.navigationBar([ "childItems": [ { "text": "propA", - "kind": "function" + "kind": "method" } ], "indent": 1 }, + { + "text": "propA", + "kind": "method", + "childItems": [ + { + "text": "c", + "kind": "var" + } + ], + "indent": 2 + }, { "text": "propB", - "kind": "function", + "kind": "method", + "childItems": [ + { + "text": "d", + "kind": "var" + } + ], "indent": 1 } ]); diff --git a/tests/cases/fourslash/navigationBarFunctionLikePropertyAssignments.ts b/tests/cases/fourslash/navigationBarFunctionLikePropertyAssignments.ts new file mode 100644 index 00000000000..39bc0e1893e --- /dev/null +++ b/tests/cases/fourslash/navigationBarFunctionLikePropertyAssignments.ts @@ -0,0 +1,91 @@ +/// + +////var functions = { +//// a: 0, +//// b: function () { }, +//// c: function x() { }, +//// d: () => { }, +//// e: y(), +//// f() { } +////}; + +verify.navigationTree({ + text: "", + kind: "script", + childItems: [ + { + text: "functions", + kind: "var", + childItems: [ + { + text: "a", + kind: "property" + }, + { + text: "b", + kind: "method" + }, + { + text: "c", + kind: "method" + }, + { + text: "d", + kind: "method" + }, + { + text: "e", + kind: "property" + }, + { + text: "f", + kind: "method" + } + ] + } + ] +}); + +verify.navigationBar([ + { + "text": "", + "kind": "script", + "childItems": [ + { + "text": "functions", + "kind": "var" + } + ] + }, + { + "text": "functions", + "kind": "var", + "childItems": [ + { + "text": "a", + "kind": "property" + }, + { + "text": "b", + "kind": "method" + }, + { + "text": "c", + "kind": "method" + }, + { + "text": "d", + "kind": "method" + }, + { + "text": "e", + "kind": "property" + }, + { + "text": "f", + "kind": "method" + } + ], + "indent": 1 + } +]); \ No newline at end of file diff --git a/tests/cases/fourslash/navigationBarFunctionPrototype.ts b/tests/cases/fourslash/navigationBarFunctionPrototype.ts index fbd3ba2c16f..2806f36dae9 100644 --- a/tests/cases/fourslash/navigationBarFunctionPrototype.ts +++ b/tests/cases/fourslash/navigationBarFunctionPrototype.ts @@ -44,11 +44,11 @@ verify.navigationTree({ "childItems": [ { "text": "get", - "kind": "function" + "kind": "method" }, { "text": "set", - "kind": "function" + "kind": "method" } ] }, @@ -57,11 +57,11 @@ verify.navigationTree({ "childItems": [ { "text": "get", - "kind": "function" + "kind": "method" }, { "text": "set", - "kind": "function" + "kind": "method" } ] } @@ -108,5 +108,33 @@ verify.navigationBar([ } ], "indent": 1 - } + }, + { + "text": "staticProp", + "childItems": [ + { + "text": "get", + "kind": "method" + }, + { + "text": "set", + "kind": "method" + } + ], + "indent": 2 + }, + { + "text": "name", + "childItems": [ + { + "text": "get", + "kind": "method" + }, + { + "text": "set", + "kind": "method" + } + ], + "indent": 2 + } ]); diff --git a/tests/cases/fourslash/navigationBarFunctionPrototypeBroken.ts b/tests/cases/fourslash/navigationBarFunctionPrototypeBroken.ts index 48270dc3aa1..01d70c61170 100644 --- a/tests/cases/fourslash/navigationBarFunctionPrototypeBroken.ts +++ b/tests/cases/fourslash/navigationBarFunctionPrototypeBroken.ts @@ -138,6 +138,28 @@ verify.navigationBar([ } ] }, + { + "text": "G", + "kind": "method", + "childItems": [ + { + "text": "A", + "kind": "method" + } + ], + "indent": 1 + }, + { + "text": "A", + "kind": "method", + "childItems": [ + { + "text": "a", + "kind": "function" + } + ], + "indent": 2 + }, { "text": "A", "kind": "class", @@ -152,5 +174,16 @@ verify.navigationBar([ } ], "indent": 1 - } + }, + { + "text": "A", + "kind": "method", + "childItems": [ + { + "text": "a", + "kind": "function" + } + ], + "indent": 2 + }, ]); diff --git a/tests/cases/fourslash/navigationBarFunctionPrototypeNested.ts b/tests/cases/fourslash/navigationBarFunctionPrototypeNested.ts index dea8b872061..97f9a5a5805 100644 --- a/tests/cases/fourslash/navigationBarFunctionPrototypeNested.ts +++ b/tests/cases/fourslash/navigationBarFunctionPrototypeNested.ts @@ -208,6 +208,16 @@ verify.navigationBar([ ], "indent": 2 }, + { + "text": "x", + "childItems": [ + { + "text": "get", + "kind": "method" + } + ], + "indent": 3 + }, { "text": "D", "kind": "class", diff --git a/tests/cases/fourslash/navigationBarInitializerSpans.ts b/tests/cases/fourslash/navigationBarInitializerSpans.ts index 7b044db9c4c..036b83cf318 100644 --- a/tests/cases/fourslash/navigationBarInitializerSpans.ts +++ b/tests/cases/fourslash/navigationBarInitializerSpans.ts @@ -1,10 +1,25 @@ /// -////const [|[|x|] = () => 0|]; -////const f = [|function [|f|]() {}|]; +////// get the name for the navbar from the variable name rather than the function name +////const [|[|x|] = () => { var [|a|]; }|]; +////const [|[|f|] = function f() { var [|b|]; }|]; +////const [|[|y|] = { [|[|z|]: function z() { var [|c|]; }|] }|]; -const [s0, s0Name, s1, s1Name] = test.spans(); -const sGlobal = { start: 0, length: 45 }; +const [ + s0, + s0Name, + s0Child, + s1, + s1Name, + s1Child, + s2, + s2Name, + s2Child, + s2ChildName, + s2GrandChildName +] = test.spans(); + +const sGlobal = { start: 0, length: 188 }; verify.navigationTree({ text: "", @@ -13,16 +28,54 @@ verify.navigationTree({ childItems: [ { text: "f", - kind: "function", + kind: "const", spans: [s1], nameSpan: s1Name, + childItems: [ + { + text: "b", + kind: "var", + spans: [s1Child], + nameSpan: s1Child, + }, + ], }, { text: "x", kind: "const", spans: [s0], nameSpan: s0Name, + childItems: [ + { + text: "a", + kind: "var", + spans: [s0Child], + nameSpan: s0Child, + }, + ], }, + { + text: "y", + kind: "const", + spans: [s2], + nameSpan: s2Name, + childItems:[ + { + text: "z", + kind: "method", + spans: [s2Child], + nameSpan: s2ChildName, + childItems: [ + { + text: "c", + kind: "var", + spans: [s2GrandChildName], + nameSpan: s2GrandChildName, + }, + ], + }, + ], + } ] }, { checkSpans: true }); @@ -34,7 +87,7 @@ verify.navigationBar([ childItems: [ { text: "f", - kind: "function", + kind: "const", spans: [s1], }, { @@ -42,12 +95,63 @@ verify.navigationBar([ kind: "const", spans: [s0], }, + { + text: "y", + kind: "const", + spans: [s2], + } ], }, { text: "f", - kind: "function", + kind: "const", spans: [s1], + childItems: [ + { + text: "b", + kind: "var", + spans: [s1Child], + }, + ], indent: 1, }, + { + text: "x", + kind: "const", + spans: [s0], + childItems: [ + { + text: "a", + kind: "var", + spans: [s0Child], + }, + ], + indent: 1, + }, + { + text: "y", + kind: "const", + spans: [s2], + childItems: [ + { + text: "z", + kind: "method", + spans: [s2Child], + }, + ], + indent: 1, + }, + { + text: "z", + kind: "method", + spans: [s2Child], + childItems: [ + { + text: "c", + kind: "var", + spans: [s2GrandChildName], + }, + ], + indent: 2, + }, ], { checkSpans: true }); diff --git a/tests/cases/fourslash/navigationBarItemsBindingPatterns.ts b/tests/cases/fourslash/navigationBarItemsBindingPatterns.ts index d2b8b24bcbf..7e64257604c 100644 --- a/tests/cases/fourslash/navigationBarItemsBindingPatterns.ts +++ b/tests/cases/fourslash/navigationBarItemsBindingPatterns.ts @@ -5,6 +5,7 @@ ////let foo1, {a, b} ////const bar1, [c, d] ////var {e, x: [f, g]} = {a:1, x:[]}; +////var { h: i = function j() {} } = obj; verify.navigationTree({ "text": "", @@ -53,6 +54,10 @@ verify.navigationTree({ { "text": "g", "kind": "var" + }, + { + "text": "i", + "kind": "var" } ] }); @@ -105,6 +110,10 @@ verify.navigationBar([ { "text": "g", "kind": "var" + }, + { + "text": "i", + "kind": "var" } ] } diff --git a/tests/cases/fourslash/navigationBarItemsFunctions.ts b/tests/cases/fourslash/navigationBarItemsFunctions.ts index f43cd3effaf..5978a1b940d 100644 --- a/tests/cases/fourslash/navigationBarItemsFunctions.ts +++ b/tests/cases/fourslash/navigationBarItemsFunctions.ts @@ -7,6 +7,9 @@ //// function biz() { //// var z = 10; //// } +//// function qux() { +//// // A function with an empty body should not be top level +//// } //// } ////} //// @@ -46,6 +49,10 @@ verify.navigationTree({ } ] }, + { + "text": "qux", + "kind": "function" + }, { "text": "y", "kind": "var" @@ -110,11 +117,27 @@ verify.navigationBar([ "text": "biz", "kind": "function" }, + { + "text": "qux", + "kind": "function" + }, { "text": "y", "kind": "var" } ], "indent": 2 - } + }, + { + "text": "biz", + "kind": "function", + "childItems": [ + { + "text": "z", + "kind": "var" + } + ], + "indent": 3 + }, + ]); diff --git a/tests/cases/fourslash/navigationBarItemsPropertiesDefinedInConstructors.ts b/tests/cases/fourslash/navigationBarItemsPropertiesDefinedInConstructors.ts index 6e8e0ea350c..d880c6e3844 100644 --- a/tests/cases/fourslash/navigationBarItemsPropertiesDefinedInConstructors.ts +++ b/tests/cases/fourslash/navigationBarItemsPropertiesDefinedInConstructors.ts @@ -78,5 +78,17 @@ verify.navigationBar([ } ], "indent": 1 + }, + { + "text": "constructor", + "kind": "constructor", + "childItems": [ + { + "text": "local", + "kind": "var" + } + ], + "indent": 2 } + ]); diff --git a/tests/cases/fourslash/navigationBarMerging_grandchildren.ts b/tests/cases/fourslash/navigationBarMerging_grandchildren.ts index 732b1794b68..87b70558548 100644 --- a/tests/cases/fourslash/navigationBarMerging_grandchildren.ts +++ b/tests/cases/fourslash/navigationBarMerging_grandchildren.ts @@ -1,5 +1,6 @@ /// +////// Should not merge grandchildren with property assignments ////const o = { //// a: { //// m() {}, @@ -17,8 +18,20 @@ verify.navigationTree({ text: "o", kind: "const", childItems: [ - { text: "m", kind: "method" }, - { text: "m", kind: "method" }, + { + text: "a", + kind: "property", + childItems: [ + { text: "m", kind: "method" } + ] + }, + { + text: "b", + kind: "property", + childItems: [ + { text: "m", kind: "method" } + ] + }, ], }, ] @@ -36,9 +49,26 @@ verify.navigationBar([ text: "o", kind: "const", childItems: [ - { text: "m", kind: "method" }, - { text: "m", kind: "method" }, + { text: "a", kind: "property" }, + { text: "b", kind: "property" }, ], indent: 1, }, + { + text: "a", + kind: "property", + childItems: [ + { text: "m", kind: "method" }, + ], + indent: 2, + }, + { + text: "b", + kind: "property", + childItems: [ + { text: "m", kind: "method" }, + ], + indent: 2, + }, + ]); diff --git a/tests/cases/fourslash/navigationBarNestedObjectLiterals.ts b/tests/cases/fourslash/navigationBarNestedObjectLiterals.ts new file mode 100644 index 00000000000..5c62a7e26fb --- /dev/null +++ b/tests/cases/fourslash/navigationBarNestedObjectLiterals.ts @@ -0,0 +1,139 @@ +/// + +////var a = { +//// b: 0, +//// c: {}, +//// d: { +//// e: 1, +//// }, +//// f: { +//// g: 2, +//// h: { +//// i: 3, +//// }, +//// }, +////} + +verify.navigationTree({ + "text": "", + "kind": "script", + "childItems": [ + { + "text": "a", + "kind": "var", + "childItems": [ + { + "text": "b", + "kind": "property" + }, + { + "text": "c", + "kind": "property" + }, + { + "text": "d", + "kind": "property", + "childItems": [ + { + "text": "e", + "kind": "property" + } + ] + }, + { + "text": "f", + "kind": "property", + "childItems": [ + { + "text": "g", + "kind": "property" + }, + { + "text": "h", + "kind": "property", + "childItems": [ + { + "text": "i", + "kind": "property" + } + ] + } + ] + } + ] + } + ] + }); + +verify.navigationBar([ + { + "text": "", + "kind": "script", + "childItems": [ + { + "text": "a", + "kind": "var" + } + ] + }, + { + "text": "a", + "kind": "var", + "childItems": [ + { + "text": "b", + "kind": "property" + }, + { + "text": "c", + "kind": "property" + }, + { + "text": "d", + "kind": "property" + }, + { + "text": "f", + "kind": "property" + } + ], + "indent": 1 + }, + { + "text": "d", + "kind": "property", + "childItems": [ + { + "text": "e", + "kind": "property" + } + ], + "indent": 2 + }, + { + "text": "f", + "kind": "property", + "childItems": [ + { + "text": "g", + "kind": "property" + }, + { + "text": "h", + "kind": "property" + } + ], + "indent": 2 + }, + { + "text": "h", + "kind": "property", + "childItems": [ + { + "text": "i", + "kind": "property" + } + ], + "indent": 3 + } + ]); \ No newline at end of file From 436339ddef241c3ae9da802ecddb9782e768cdc7 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Thu, 12 Sep 2019 07:41:47 -0700 Subject: [PATCH 079/159] Use declared type for references in unreachable code --- src/compiler/checker.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index d2a106b903d..c7e11e5be6a 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -671,6 +671,7 @@ namespace ts { const silentNeverType = createIntrinsicType(TypeFlags.Never, "never"); const nonInferrableType = createIntrinsicType(TypeFlags.Never, "never", ObjectFlags.NonInferrableType); const implicitNeverType = createIntrinsicType(TypeFlags.Never, "never"); + const unreachableNeverType = createIntrinsicType(TypeFlags.Never, "never"); const nonPrimitiveType = createIntrinsicType(TypeFlags.NonPrimitive, "object"); const stringNumberSymbolType = getUnionType([stringType, numberType, esSymbolType]); const keyofConstraintType = keyofStringsOnly ? stringType : stringNumberSymbolType; @@ -17008,7 +17009,7 @@ namespace ts { // on empty arrays are possible without implicit any errors and new element types can be inferred without // type mismatch errors. const resultType = getObjectFlags(evolvedType) & ObjectFlags.EvolvingArray && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType); - if (reference.parent && reference.parent.kind === SyntaxKind.NonNullExpression && getTypeWithFacts(resultType, TypeFacts.NEUndefinedOrNull).flags & TypeFlags.Never) { + if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === SyntaxKind.NonNullExpression && getTypeWithFacts(resultType, TypeFacts.NEUndefinedOrNull).flags & TypeFlags.Never) { return declaredType; } return resultType; @@ -17144,8 +17145,11 @@ namespace ts { // Assignments only narrow the computed type if the declared type is a union type. Thus, we // only need to evaluate the assigned type if the declared type is a union type. if (isMatchingReference(reference, node)) { + const flowType = getTypeAtFlowNode(flow.antecedent); + if (flowType === unreachableNeverType) { + return flowType; + } if (getAssignmentTargetKind(node) === AssignmentKind.Compound) { - const flowType = getTypeAtFlowNode(flow.antecedent); return createFlowType(getBaseTypeOfLiteralType(getTypeFromFlowType(flowType)), isIncomplete(flowType)); } if (declaredType === autoType || declaredType === autoArrayType) { @@ -17165,12 +17169,16 @@ namespace ts { // reference 'x.y.z', we may be at an assignment to 'x.y' or 'x'. In that case, // return the declared type. if (containsMatchingReference(reference, node)) { + const flowType = getTypeAtFlowNode(flow.antecedent); + if (flowType === unreachableNeverType) { + return flowType; + } // A matching dotted name might also be an expando property on a function *expression*, // in which case we continue control flow analysis back to the function's declaration if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConst(node))) { const init = getDeclaredExpandoInitializer(node); if (init && (init.kind === SyntaxKind.FunctionExpression || init.kind === SyntaxKind.ArrowFunction)) { - return getTypeAtFlowNode(flow.antecedent); + return flowType; } } return declaredType; @@ -17209,7 +17217,7 @@ namespace ts { return narrowedType === type ? flowType : createFlowType(narrowedType, isIncomplete(flowType)); } if (getReturnTypeOfSignature(signature).flags & TypeFlags.Never) { - return neverType; + return unreachableNeverType; } } return undefined; From a9336ba8a5df106fd40ca8816735b6a98cd7381e Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Thu, 12 Sep 2019 09:15:43 -0700 Subject: [PATCH 080/159] Revert "Use declared type for references in unreachable code" This reverts commit 436339ddef241c3ae9da802ecddb9782e768cdc7. --- src/compiler/checker.ts | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c7e11e5be6a..d2a106b903d 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -671,7 +671,6 @@ namespace ts { const silentNeverType = createIntrinsicType(TypeFlags.Never, "never"); const nonInferrableType = createIntrinsicType(TypeFlags.Never, "never", ObjectFlags.NonInferrableType); const implicitNeverType = createIntrinsicType(TypeFlags.Never, "never"); - const unreachableNeverType = createIntrinsicType(TypeFlags.Never, "never"); const nonPrimitiveType = createIntrinsicType(TypeFlags.NonPrimitive, "object"); const stringNumberSymbolType = getUnionType([stringType, numberType, esSymbolType]); const keyofConstraintType = keyofStringsOnly ? stringType : stringNumberSymbolType; @@ -17009,7 +17008,7 @@ namespace ts { // on empty arrays are possible without implicit any errors and new element types can be inferred without // type mismatch errors. const resultType = getObjectFlags(evolvedType) & ObjectFlags.EvolvingArray && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType); - if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === SyntaxKind.NonNullExpression && getTypeWithFacts(resultType, TypeFacts.NEUndefinedOrNull).flags & TypeFlags.Never) { + if (reference.parent && reference.parent.kind === SyntaxKind.NonNullExpression && getTypeWithFacts(resultType, TypeFacts.NEUndefinedOrNull).flags & TypeFlags.Never) { return declaredType; } return resultType; @@ -17145,11 +17144,8 @@ namespace ts { // Assignments only narrow the computed type if the declared type is a union type. Thus, we // only need to evaluate the assigned type if the declared type is a union type. if (isMatchingReference(reference, node)) { - const flowType = getTypeAtFlowNode(flow.antecedent); - if (flowType === unreachableNeverType) { - return flowType; - } if (getAssignmentTargetKind(node) === AssignmentKind.Compound) { + const flowType = getTypeAtFlowNode(flow.antecedent); return createFlowType(getBaseTypeOfLiteralType(getTypeFromFlowType(flowType)), isIncomplete(flowType)); } if (declaredType === autoType || declaredType === autoArrayType) { @@ -17169,16 +17165,12 @@ namespace ts { // reference 'x.y.z', we may be at an assignment to 'x.y' or 'x'. In that case, // return the declared type. if (containsMatchingReference(reference, node)) { - const flowType = getTypeAtFlowNode(flow.antecedent); - if (flowType === unreachableNeverType) { - return flowType; - } // A matching dotted name might also be an expando property on a function *expression*, // in which case we continue control flow analysis back to the function's declaration if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConst(node))) { const init = getDeclaredExpandoInitializer(node); if (init && (init.kind === SyntaxKind.FunctionExpression || init.kind === SyntaxKind.ArrowFunction)) { - return flowType; + return getTypeAtFlowNode(flow.antecedent); } } return declaredType; @@ -17217,7 +17209,7 @@ namespace ts { return narrowedType === type ? flowType : createFlowType(narrowedType, isIncomplete(flowType)); } if (getReturnTypeOfSignature(signature).flags & TypeFlags.Never) { - return unreachableNeverType; + return neverType; } } return undefined; From 3c79225f48773cccdf247578cf2297111f0ccd2a Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 12 Sep 2019 11:18:47 -0700 Subject: [PATCH 081/159] Update baselines with any[] inferences --- tests/cases/fourslash/codeFixInferFromUsageArray.ts | 2 +- tests/cases/fourslash/codeFixInferFromUsageString.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cases/fourslash/codeFixInferFromUsageArray.ts b/tests/cases/fourslash/codeFixInferFromUsageArray.ts index 03d6b09e99b..75f923d5aee 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageArray.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageArray.ts @@ -10,5 +10,5 @@ //// return p.push(12) //// } -verify.rangeAfterCodeFix("p: number[], a: string[], b: any[], c: boolean[], d: any[], e: number[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0); +verify.rangeAfterCodeFix("p: number[], a: string[], b: any[], c: boolean[], d: any[], e: any[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0); diff --git a/tests/cases/fourslash/codeFixInferFromUsageString.ts b/tests/cases/fourslash/codeFixInferFromUsageString.ts index dc5787dc75b..d58998cf4a3 100644 --- a/tests/cases/fourslash/codeFixInferFromUsageString.ts +++ b/tests/cases/fourslash/codeFixInferFromUsageString.ts @@ -1,12 +1,12 @@ /// // @noImplicitAny: true -//// function foo([|p, a, b, c, d |]) { +//// function foo([|p, a, b |]) { //// var x //// p.charAt(x) //// a.charAt(0) //// b.concat('hi') //// } -verify.rangeAfterCodeFix("p: string, a: string, b: string | string[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0); +verify.rangeAfterCodeFix("p: string, a: string, b: string | any[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0); From de7d68a6d8704545fa4d04e3e0cf3072bda887c2 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 12 Sep 2019 11:30:51 -0700 Subject: [PATCH 082/159] Even more renaming --- src/services/codefixes/inferFromUsage.ts | 46 ++++++++++++------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index 00b95c57d1a..090c241b05d 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -481,7 +481,7 @@ namespace ts.codefix { } function single(): Type { - return unifyTypes(inferTypesFromReferencesSingle(references)); + return combineTypes(inferTypesFromReferencesSingle(references)); } function parameters(declaration: FunctionLike): ParameterInference[] | undefined { @@ -517,7 +517,7 @@ namespace ts.codefix { const inferred = inferTypesFromReferencesSingle(getReferences(parameter.name, program, cancellationToken)); types.push(...(isRest ? mapDefined(inferred, checker.getElementTypeOfArrayType) : inferred)); } - const type = unifyTypes(types); + const type = combineTypes(types); return { type: isRest ? checker.createArrayType(type) : type, isOptional: isOptional && !isRest, @@ -533,7 +533,7 @@ namespace ts.codefix { calculateUsageOfNode(reference, usage); } - return unifyTypes(usage.candidateThisTypes || emptyArray); + return combineTypes(usage.candidateThisTypes || emptyArray); } function inferTypesFromReferencesSingle(references: readonly Identifier[]): Type[] { @@ -542,7 +542,7 @@ namespace ts.codefix { cancellationToken.throwIfCancellationRequested(); calculateUsageOfNode(reference, usage); } - return inferFromUsage(usage); + return inferTypes(usage); } function calculateUsageOfNode(node: Expression, usage: Usage): void { @@ -819,11 +819,11 @@ namespace ts.codefix { return inferences.filter(i => toRemove.every(f => !f(i))); } - function unifyFromUsage(usage: Usage) { - return unifyTypes(inferFromUsage(usage)); + function combineFromUsage(usage: Usage) { + return combineTypes(inferTypes(usage)); } - function unifyTypes(inferences: readonly Type[]): Type { + function combineTypes(inferences: readonly Type[]): Type { if (!inferences.length) return checker.getAnyType(); // 1. string or number individually override string | number @@ -847,12 +847,12 @@ namespace ts.codefix { const anons = good.filter(i => checker.getObjectFlags(i) & ObjectFlags.Anonymous) as AnonymousType[]; if (anons.length) { good = good.filter(i => !(checker.getObjectFlags(i) & ObjectFlags.Anonymous)); - good.push(unifyAnonymousTypes(anons)); + good.push(combineAnonymousTypes(anons)); } return checker.getWidenedType(checker.getUnionType(good.map(checker.getBaseTypeOfLiteralType), UnionReduction.Subtype)); } - function unifyAnonymousTypes(anons: AnonymousType[]) { + function combineAnonymousTypes(anons: AnonymousType[]) { if (anons.length === 1) { return anons[0]; } @@ -893,7 +893,7 @@ namespace ts.codefix { numberIndices.length ? checker.createIndexInfo(checker.getUnionType(numberIndices), numberIndexReadonly) : undefined); } - function inferFromUsage(usage: Usage): Type[] { + function inferTypes(usage: Usage): Type[] { const types = []; if (usage.isNumber) { @@ -906,7 +906,7 @@ namespace ts.codefix { types.push(checker.getUnionType([checker.getStringType(), checker.getNumberType()])); } if (usage.numberIndex) { - types.push(checker.createArrayType(unifyFromUsage(usage.numberIndex))); + types.push(checker.createArrayType(combineFromUsage(usage.numberIndex))); } if (usage.properties && usage.properties.size || usage.calls && usage.calls.length @@ -926,13 +926,13 @@ namespace ts.codefix { if (usage.properties) { usage.properties.forEach((u, name) => { const symbol = checker.createSymbol(SymbolFlags.Property, name); - symbol.type = unifyFromUsage(u); + symbol.type = combineFromUsage(u); members.set(name, symbol); }); } const callSignatures: Signature[] = usage.calls ? [getSignatureFromCalls(usage.calls)] : []; const constructSignatures: Signature[] = usage.constructs ? [getSignatureFromCalls(usage.constructs)] : []; - const stringIndexInfo = usage.stringIndex && checker.createIndexInfo(unifyFromUsage(usage.stringIndex), /*isReadonly*/ false); + const stringIndexInfo = usage.stringIndex && checker.createIndexInfo(combineFromUsage(usage.stringIndex), /*isReadonly*/ false); return checker.createAnonymousType(/*symbol*/ undefined!, members, callSignatures, constructSignatures, stringIndexInfo, /*numberIndexInfo*/ undefined); // TODO: GH#18217 } @@ -959,7 +959,7 @@ namespace ts.codefix { result = result && !!sigs.length && checker.isTypeAssignableTo(source, getFunctionFromCalls(propUsage.calls)); } else { - result = result && checker.isTypeAssignableTo(source, unifyFromUsage(propUsage)); + result = result && checker.isTypeAssignableTo(source, combineFromUsage(propUsage)); } }); return result; @@ -982,17 +982,17 @@ namespace ts.codefix { usage.properties.forEach((propUsage, name) => { const genericPropertyType = checker.getTypeOfPropertyOfType(generic, name as string); Debug.assert(!!genericPropertyType, "generic should have all the properties of its reference."); - types.push(...infer(genericPropertyType!, unifyFromUsage(propUsage), singleTypeParameter)); + types.push(...inferTypeParameters(genericPropertyType!, combineFromUsage(propUsage), singleTypeParameter)); }); - return builtinConstructors[type.symbol.escapedName as string](unifyTypes(types)); + return builtinConstructors[type.symbol.escapedName as string](combineTypes(types)); } - function infer(genericType: Type, usageType: Type, typeParameter: Type): readonly Type[] { + function inferTypeParameters(genericType: Type, usageType: Type, typeParameter: Type): readonly Type[] { if (genericType === typeParameter) { return [usageType]; } else if (genericType.flags & TypeFlags.UnionOrIntersection) { - return flatMap((genericType as UnionOrIntersectionType).types, t => infer(t, usageType, typeParameter)); + return flatMap((genericType as UnionOrIntersectionType).types, t => inferTypeParameters(t, usageType, typeParameter)); } else if (getObjectFlags(genericType) & ObjectFlags.Reference && getObjectFlags(usageType) & ObjectFlags.Reference) { // this is wrong because we need a reference to the targetType to, so we can check that it's also a reference @@ -1002,7 +1002,7 @@ namespace ts.codefix { if (genericArgs && usageArgs) { for (let i = 0; i < genericArgs.length; i++) { if (usageArgs[i]) { - types.push(...infer(genericArgs[i], usageArgs[i], typeParameter)); + types.push(...inferTypeParameters(genericArgs[i], usageArgs[i], typeParameter)); } } } @@ -1031,11 +1031,11 @@ namespace ts.codefix { genericParamType = elementType; } const targetType = (usageParam as SymbolLinks).type || checker.getTypeOfSymbolAtLocation(usageParam, usageParam.valueDeclaration); - types.push(...infer(genericParamType, targetType, typeParameter)); + types.push(...inferTypeParameters(genericParamType, targetType, typeParameter)); } const genericReturn = checker.getReturnTypeOfSignature(genericSig); const usageReturn = checker.getReturnTypeOfSignature(usageSig); - types.push(...infer(genericReturn, usageReturn, typeParameter)); + types.push(...inferTypeParameters(genericReturn, usageReturn, typeParameter)); return types; } @@ -1048,13 +1048,13 @@ namespace ts.codefix { const length = Math.max(...calls.map(c => c.argumentTypes.length)); for (let i = 0; i < length; i++) { const symbol = checker.createSymbol(SymbolFlags.FunctionScopedVariable, escapeLeadingUnderscores(`arg${i}`)); - symbol.type = unifyTypes(calls.map(call => call.argumentTypes[i] || checker.getUndefinedType())); + symbol.type = combineTypes(calls.map(call => call.argumentTypes[i] || checker.getUndefinedType())); if (calls.some(call => call.argumentTypes[i] === undefined)) { symbol.flags |= SymbolFlags.Optional; } parameters.push(symbol); } - const returnType = unifyFromUsage(combineUsages(calls.map(call => call.return_))); + const returnType = combineFromUsage(combineUsages(calls.map(call => call.return_))); // TODO: GH#18217 return checker.createSignature(/*declaration*/ undefined!, /*typeParameters*/ undefined, /*thisParameter*/ undefined, parameters, returnType, /*typePredicate*/ undefined, length, /*hasRestParameter*/ false, /*hasLiteralTypes*/ false); } From a8d04b2db98f47d38a2ed9346b156b584cccc2c7 Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Thu, 12 Sep 2019 13:23:16 +0200 Subject: [PATCH 083/159] Fix `Identifiers: NaN` diagnostic when having JSON SourceFiles This makes sure that the `identifierCount` and `nodeCount` properties are always initialized for `SourceFile` objects. --- src/compiler/parser.ts | 4 ++++ src/testRunner/unittests/programApi.ts | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index c22717bc8e3..f437ca697a8 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -770,7 +770,11 @@ namespace ts { fixupParentReferences(sourceFile); } + sourceFile.nodeCount = nodeCount; + sourceFile.identifierCount = identifierCount; + sourceFile.identifiers = identifiers; sourceFile.parseDiagnostics = parseDiagnostics; + const result = sourceFile as JsonSourceFile; clearState(); return result; diff --git a/src/testRunner/unittests/programApi.ts b/src/testRunner/unittests/programApi.ts index 51e1b8ffa50..5f5251afaf2 100644 --- a/src/testRunner/unittests/programApi.ts +++ b/src/testRunner/unittests/programApi.ts @@ -160,4 +160,22 @@ namespace ts { } } }); + + describe("unittests:: Program.getNodeCount / Program.getIdentifierCount", () => { + it("works on projects that have .json files", () => { + const main = new documents.TextDocument("/main.ts", 'export { version } from "./package.json";'); + const pkg = new documents.TextDocument("/package.json", '{"version": "1.0.0"}'); + + const fs = vfs.createFromFileSystem(Harness.IO, /*ignoreCase*/ false, { documents: [main, pkg], cwd: "/" }); + const program = createProgram(["/main.ts"], { resolveJsonModule: true }, new fakes.CompilerHost(fs, { newLine: NewLineKind.LineFeed })); + + const json = program.getSourceFile("/package.json")!; + assert.equal(json.scriptKind, ScriptKind.JSON); + assert.isNumber(json.nodeCount); + assert.isNumber(json.identifierCount); + + assert.isNotNaN(program.getNodeCount()); + assert.isNotNaN(program.getIdentifierCount()); + }); + }); } From d94d715cdfd33295e5789490d7cd5ec8d3e5b4fd Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 12 Sep 2019 13:31:11 -0700 Subject: [PATCH 084/159] Make perf count functions public Previously they were internal --- src/compiler/types.ts | 10 +++++----- tests/baselines/reference/api/tsserverlibrary.d.ts | 9 +++++++++ tests/baselines/reference/api/typescript.d.ts | 9 +++++++++ 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 5acc831f127..1828d056405 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -3007,11 +3007,11 @@ namespace ts { /* @internal */ getClassifiableNames(): UnderscoreEscapedMap; - /* @internal */ getNodeCount(): number; - /* @internal */ getIdentifierCount(): number; - /* @internal */ getSymbolCount(): number; - /* @internal */ getTypeCount(): number; - /* @internal */ getRelationCacheSizes(): { assignable: number, identity: number, subtype: number }; + getNodeCount(): number; + getIdentifierCount(): number; + getSymbolCount(): number; + getTypeCount(): number; + getRelationCacheSizes(): { assignable: number, identity: number, subtype: number }; /* @internal */ getFileProcessingDiagnostics(): DiagnosticCollection; /* @internal */ getResolvedTypeReferenceDirectives(): Map; diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 6620848321c..41ea5756204 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -1883,6 +1883,15 @@ declare namespace ts { * Gets a type checker that can be used to semantically analyze source files in the program. */ getTypeChecker(): TypeChecker; + getNodeCount(): number; + getIdentifierCount(): number; + getSymbolCount(): number; + getTypeCount(): number; + getRelationCacheSizes(): { + assignable: number; + identity: number; + subtype: number; + }; isSourceFileFromExternalLibrary(file: SourceFile): boolean; isSourceFileDefaultLibrary(file: SourceFile): boolean; getProjectReferences(): readonly ProjectReference[] | undefined; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index eaef5a454e2..8402150f2a0 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -1883,6 +1883,15 @@ declare namespace ts { * Gets a type checker that can be used to semantically analyze source files in the program. */ getTypeChecker(): TypeChecker; + getNodeCount(): number; + getIdentifierCount(): number; + getSymbolCount(): number; + getTypeCount(): number; + getRelationCacheSizes(): { + assignable: number; + identity: number; + subtype: number; + }; isSourceFileFromExternalLibrary(file: SourceFile): boolean; isSourceFileDefaultLibrary(file: SourceFile): boolean; getProjectReferences(): readonly ProjectReference[] | undefined; From 971b0df80a3bacf9d6108c5053cabb18f0ae74f6 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 13 Sep 2019 07:12:19 -0700 Subject: [PATCH 085/159] Use declared type for references in unreachable code (again) --- src/compiler/checker.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index d2a106b903d..2e792040bb4 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -671,6 +671,7 @@ namespace ts { const silentNeverType = createIntrinsicType(TypeFlags.Never, "never"); const nonInferrableType = createIntrinsicType(TypeFlags.Never, "never", ObjectFlags.NonInferrableType); const implicitNeverType = createIntrinsicType(TypeFlags.Never, "never"); + const unreachableNeverType = createIntrinsicType(TypeFlags.Never, "never"); const nonPrimitiveType = createIntrinsicType(TypeFlags.NonPrimitive, "object"); const stringNumberSymbolType = getUnionType([stringType, numberType, esSymbolType]); const keyofConstraintType = keyofStringsOnly ? stringType : stringNumberSymbolType; @@ -17008,7 +17009,7 @@ namespace ts { // on empty arrays are possible without implicit any errors and new element types can be inferred without // type mismatch errors. const resultType = getObjectFlags(evolvedType) & ObjectFlags.EvolvingArray && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType); - if (reference.parent && reference.parent.kind === SyntaxKind.NonNullExpression && getTypeWithFacts(resultType, TypeFacts.NEUndefinedOrNull).flags & TypeFlags.Never) { + if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === SyntaxKind.NonNullExpression && getTypeWithFacts(resultType, TypeFacts.NEUndefinedOrNull).flags & TypeFlags.Never) { return declaredType; } return resultType; @@ -17037,6 +17038,7 @@ namespace ts { if (key) { const id = getFlowNodeId(flow); if (flowAssignmentKeys[id] === key) { + flowDepth--; return flowAssignmentTypes[id]; } } @@ -17144,8 +17146,11 @@ namespace ts { // Assignments only narrow the computed type if the declared type is a union type. Thus, we // only need to evaluate the assigned type if the declared type is a union type. if (isMatchingReference(reference, node)) { + const flowType = getTypeAtFlowNode(flow.antecedent); + if (flowType === unreachableNeverType) { + return flowType; + } if (getAssignmentTargetKind(node) === AssignmentKind.Compound) { - const flowType = getTypeAtFlowNode(flow.antecedent); return createFlowType(getBaseTypeOfLiteralType(getTypeFromFlowType(flowType)), isIncomplete(flowType)); } if (declaredType === autoType || declaredType === autoArrayType) { @@ -17165,12 +17170,16 @@ namespace ts { // reference 'x.y.z', we may be at an assignment to 'x.y' or 'x'. In that case, // return the declared type. if (containsMatchingReference(reference, node)) { + const flowType = getTypeAtFlowNode(flow.antecedent); + if (flowType === unreachableNeverType) { + return flowType; + } // A matching dotted name might also be an expando property on a function *expression*, // in which case we continue control flow analysis back to the function's declaration if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConst(node))) { const init = getDeclaredExpandoInitializer(node); if (init && (init.kind === SyntaxKind.FunctionExpression || init.kind === SyntaxKind.ArrowFunction)) { - return getTypeAtFlowNode(flow.antecedent); + return flowType; } } return declaredType; @@ -17209,7 +17218,7 @@ namespace ts { return narrowedType === type ? flowType : createFlowType(narrowedType, isIncomplete(flowType)); } if (getReturnTypeOfSignature(signature).flags & TypeFlags.Never) { - return neverType; + return unreachableNeverType; } } return undefined; From 93a250b9a6d5c1869d5c7c9d9633d049484b7427 Mon Sep 17 00:00:00 2001 From: kingwl Date: Sat, 14 Sep 2019 02:22:59 +0800 Subject: [PATCH 086/159] fix duplicate async modifier codefix --- src/services/codefixes/fixAwaitInSyncFunction.ts | 13 ++++++++----- .../fourslash/codeFixAwaitInSyncFunction_all.ts | 4 ++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/services/codefixes/fixAwaitInSyncFunction.ts b/src/services/codefixes/fixAwaitInSyncFunction.ts index e5b3a24dbea..55dd4bd0556 100644 --- a/src/services/codefixes/fixAwaitInSyncFunction.ts +++ b/src/services/codefixes/fixAwaitInSyncFunction.ts @@ -15,11 +15,14 @@ namespace ts.codefix { return [createCodeFixAction(fixId, changes, Diagnostics.Add_async_modifier_to_containing_function, fixId, Diagnostics.Add_all_missing_async_modifiers)]; }, fixIds: [fixId], - getAllCodeActions: context => codeFixAll(context, errorCodes, (changes, diag) => { - const nodes = getNodes(diag.file, diag.start); - if (!nodes) return; - doChange(changes, context.sourceFile, nodes); - }), + getAllCodeActions: context => { + const seen = createMap(); + return codeFixAll(context, errorCodes, (changes, diag) => { + const nodes = getNodes(diag.file, diag.start); + if (!nodes || !addToSeen(seen, getNodeId(nodes.insertBefore))) return; + doChange(changes, context.sourceFile, nodes); + }); + }, }); function getReturnType(expr: FunctionDeclaration | MethodDeclaration | FunctionExpression | ArrowFunction) { diff --git a/tests/cases/fourslash/codeFixAwaitInSyncFunction_all.ts b/tests/cases/fourslash/codeFixAwaitInSyncFunction_all.ts index 4b5f7aea0a3..fadb5f30ca8 100644 --- a/tests/cases/fourslash/codeFixAwaitInSyncFunction_all.ts +++ b/tests/cases/fourslash/codeFixAwaitInSyncFunction_all.ts @@ -2,10 +2,12 @@ ////function f() { //// await Promise.resolve(); +//// await Promise.resolve(); ////} //// ////const g = () => { //// await f(); +//// await f(); ////} verify.codeFixAll({ @@ -14,9 +16,11 @@ verify.codeFixAll({ newFileContent: `async function f() { await Promise.resolve(); + await Promise.resolve(); } const g = async () => { await f(); + await f(); }`, }); From 3749de60195f0bce34ac5ed4f265102cbc425193 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 13 Sep 2019 11:33:16 -0700 Subject: [PATCH 087/159] Dedicated isReachableFlowNode function to determine reachability --- src/compiler/checker.ts | 48 +++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 2e792040bb4..b5630a6ef10 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -842,6 +842,7 @@ namespace ts { const flowLoopTypes: Type[][] = []; const sharedFlowNodes: FlowNode[] = []; const sharedFlowTypes: FlowType[] = []; + const flowNodeReachable: (boolean | undefined)[] = []; const potentialThisCollisions: Node[] = []; const potentialNewTargetCollisions: Node[] = []; const awaitedTypeStack: number[] = []; @@ -16991,6 +16992,40 @@ namespace ts { diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)); } + function isReachableFlowNode(flow: FlowNode) { + return isReachableFlowNodeWorker(flow, /*skipCacheCheck*/ false); + } + + function isReachableFlowNodeWorker(flow: FlowNode, skipCacheCheck: boolean): boolean { + while (true) { + const flags = flow.flags; + if (flags & FlowFlags.Shared && !skipCacheCheck) { + const id = getFlowNodeId(flow); + const reachable = flowNodeReachable[id]; + return reachable !== undefined ? reachable : (flowNodeReachable[id] = isReachableFlowNodeWorker(flow, /*skipCacheCheck*/ true)); + } + if (flags & (FlowFlags.Assignment | FlowFlags.Condition | FlowFlags.SwitchClause | FlowFlags.ArrayMutation | FlowFlags.PreFinally | FlowFlags.AfterFinally)) { + flow = (flow).antecedent; + } + else if (flags & FlowFlags.Call) { + const signature = getEffectsSignature((flow).node); + if (signature && getReturnTypeOfSignature(signature).flags & TypeFlags.Never) { + return false; + } + flow = (flow).antecedent; + } + else if (flags & FlowFlags.LoopLabel) { + flow = (flow).antecedents![0]; + } + else if (flags & FlowFlags.BranchLabel) { + return every((flow).antecedents!, isReachableFlowNode); + } + else { + return true; + } + } + } + function getFlowTypeOfReference(reference: Node, declaredType: Type, initialType = declaredType, flowContainer?: Node, couldBeUninitialized?: boolean) { let key: string | undefined; let keySet = false; @@ -17146,11 +17181,11 @@ namespace ts { // Assignments only narrow the computed type if the declared type is a union type. Thus, we // only need to evaluate the assigned type if the declared type is a union type. if (isMatchingReference(reference, node)) { - const flowType = getTypeAtFlowNode(flow.antecedent); - if (flowType === unreachableNeverType) { - return flowType; + if (!isReachableFlowNode(flow)) { + return unreachableNeverType; } if (getAssignmentTargetKind(node) === AssignmentKind.Compound) { + const flowType = getTypeAtFlowNode(flow.antecedent); return createFlowType(getBaseTypeOfLiteralType(getTypeFromFlowType(flowType)), isIncomplete(flowType)); } if (declaredType === autoType || declaredType === autoArrayType) { @@ -17170,16 +17205,15 @@ namespace ts { // reference 'x.y.z', we may be at an assignment to 'x.y' or 'x'. In that case, // return the declared type. if (containsMatchingReference(reference, node)) { - const flowType = getTypeAtFlowNode(flow.antecedent); - if (flowType === unreachableNeverType) { - return flowType; + if (!isReachableFlowNode(flow)) { + return unreachableNeverType; } // A matching dotted name might also be an expando property on a function *expression*, // in which case we continue control flow analysis back to the function's declaration if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConst(node))) { const init = getDeclaredExpandoInitializer(node); if (init && (init.kind === SyntaxKind.FunctionExpression || init.kind === SyntaxKind.ArrowFunction)) { - return flowType; + return getTypeAtFlowNode(flow.antecedent); } } return declaredType; From 1755db4d8129b521a4a7a4a35882dcb9b9a24040 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Fri, 13 Sep 2019 14:38:10 -0700 Subject: [PATCH 088/159] Add build-eslint-rules to npm prepare script (#33417) * Add build-eslint-rules to local build * Switch to prepare script --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 478538926ce..7a59b95a130 100644 --- a/package.json +++ b/package.json @@ -102,6 +102,7 @@ "xml2js": "^0.4.19" }, "scripts": { + "prepare": "gulp build-eslint-rules", "pretest": "gulp tests", "test": "gulp runtests-parallel --light=false", "test:eslint-rules": "gulp run-eslint-rules-tests", From 3a89c8cc5c06669c7d53e4e382db4390df1dfb59 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 13 Sep 2019 14:38:12 -0700 Subject: [PATCH 089/159] Use isReachableFlowNode to check for implicit return --- src/compiler/binder.ts | 6 ++---- src/compiler/checker.ts | 11 +++-------- src/compiler/types.ts | 2 +- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 77ad55a20c9..bb3b7b10508 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -569,7 +569,7 @@ namespace ts { } // We create a return control flow graph for IIFEs and constructors. For constructors // we use the return control flow graph in strict property initialization checks. - currentReturnTarget = isIIFE || node.kind === SyntaxKind.Constructor ? createBranchLabel() : undefined; + currentReturnTarget = containerFlags & ContainerFlags.IsFunctionLike && nodeIsPresent((node).body) ? createBranchLabel() : undefined; currentBreakTarget = undefined; currentContinueTarget = undefined; activeLabels = undefined; @@ -589,9 +589,7 @@ namespace ts { if (currentReturnTarget) { addAntecedent(currentReturnTarget, currentFlow); currentFlow = finishFlowLabel(currentReturnTarget); - if (node.kind === SyntaxKind.Constructor) { - (node).returnFlowNode = currentFlow; - } + (node).returnFlowNode = currentFlow; } if (!isIIFE) { currentFlow = saveCurrentFlow; diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index b5630a6ef10..5e491b2e730 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -23803,15 +23803,10 @@ namespace ts { return eachTypeContainedIn(mapType(type, getRegularTypeOfLiteralType), switchTypes); } - function isNeverFunctionCall(expr: Expression) { - const signature = expr.kind === SyntaxKind.CallExpression && getEffectsSignature(expr); - return !!(signature && getReturnTypeOfSignature(signature).flags & TypeFlags.Never); - } - function functionHasImplicitReturn(func: FunctionLikeDeclaration) { - return !!(func.flags & NodeFlags.HasImplicitReturn) && !some((func.body).statements, statement => - statement.kind === SyntaxKind.SwitchStatement && isExhaustiveSwitchStatement(statement) || - statement.kind === SyntaxKind.ExpressionStatement && isNeverFunctionCall((statement).expression)); + return !!(func.flags & NodeFlags.HasImplicitReturn && + !some((func.body).statements, s => s.kind === SyntaxKind.SwitchStatement && isExhaustiveSwitchStatement(s)) && + !(func.returnFlowNode && !isReachableFlowNode(func.returnFlowNode))); } /** NOTE: Return value of `[]` means a different thing than `undefined`. `[]` means func returns `void`, `undefined` means it returns `never`. */ diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 7486af7148d..214c2d58788 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -1040,6 +1040,7 @@ namespace ts { questionToken?: QuestionToken; exclamationToken?: ExclamationToken; body?: Block | Expression; + /* @internal */ returnFlowNode?: FlowNode; } export type FunctionLikeDeclaration = @@ -1085,7 +1086,6 @@ namespace ts { kind: SyntaxKind.Constructor; parent: ClassLikeDeclaration; body?: FunctionBody; - /* @internal */ returnFlowNode?: FlowNode; } /** For when we encounter a semicolon in a class declaration. ES6 allows these as class elements. */ From 99229f88dd785f0eb559a668663843db782eff4e Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Fri, 13 Sep 2019 15:14:25 -0700 Subject: [PATCH 090/159] Update user baselines (#33411) --- .../baselines/reference/docker/azure-sdk.log | 4 ++-- .../reference/docker/office-ui-fabric.log | 7 +++++-- tests/baselines/reference/docker/vscode.log | 20 ++++++++++++++----- tests/baselines/reference/user/jimp.log | 6 +----- tests/baselines/reference/user/prettier.log | 8 +++++--- tests/baselines/reference/user/webpack.log | 10 ++++++++++ tests/cases/user/axios-src/axios-src | 2 +- .../user/create-react-app/create-react-app | 2 +- tests/cases/user/prettier/prettier | 2 +- tests/cases/user/puppeteer/puppeteer | 2 +- tests/cases/user/webpack/webpack | 2 +- 11 files changed, 43 insertions(+), 22 deletions(-) create mode 100644 tests/baselines/reference/user/webpack.log diff --git a/tests/baselines/reference/docker/azure-sdk.log b/tests/baselines/reference/docker/azure-sdk.log index 347a6c188a9..ad0dbf4e9d6 100644 --- a/tests/baselines/reference/docker/azure-sdk.log +++ b/tests/baselines/reference/docker/azure-sdk.log @@ -24,7 +24,7 @@ Warning: You have changed the public API signature for this project. Updating re dist-esm/index.js → dist/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency -tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) +tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js) @azure/cosmos-sign (imported by dist-esm/auth.js) universal-user-agent (imported by dist-esm/common/platform.js) uuid/v4 (imported by dist-esm/ClientContext.js, dist-esm/client/Item/Items.js) @@ -96,7 +96,7 @@ Warning: You have changed the public API signature for this project. Updating re dist-esm/index.js → dist/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency -tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) +tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js) @azure/cosmos-sign (imported by dist-esm/auth.js) universal-user-agent (imported by dist-esm/common/platform.js) uuid/v4 (imported by dist-esm/ClientContext.js, dist-esm/client/Item/Items.js) diff --git a/tests/baselines/reference/docker/office-ui-fabric.log b/tests/baselines/reference/docker/office-ui-fabric.log index b36e3e50ffc..67398753776 100644 --- a/tests/baselines/reference/docker/office-ui-fabric.log +++ b/tests/baselines/reference/docker/office-ui-fabric.log @@ -34,6 +34,10 @@ Standard output: @uifabric/migration: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/migration/tsconfig.json @uifabric/migration: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --inlineSources --sourceRoot "../src" --outDir lib --module commonjs --project "/office-ui-fabric-react/packages/migration/tsconfig.json" @uifabric/migration: Done in ?s. +@uifabric/monaco-editor: yarn run vX.X.X +@uifabric/monaco-editor: $ just-scripts build --production --lint +@uifabric/monaco-editor: [XX:XX:XX XM] ■ Removing [lib] +@uifabric/monaco-editor: Done in ?s. @uifabric/set-version: yarn run vX.X.X @uifabric/set-version: $ just-scripts build --production --lint @uifabric/set-version: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] @@ -84,7 +88,6 @@ Standard output: @uifabric/merge-styles: PASS src/Stylesheet.test.ts @uifabric/merge-styles: PASS src/extractStyleParts.test.ts @uifabric/merge-styles: PASS src/server.test.ts -@uifabric/merge-styles: PASS src/fontFace.test.ts @uifabric/merge-styles: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/merge-styles/lib/index.d.ts' @uifabric/merge-styles: Done in ?s. @uifabric/jest-serializer-merge-styles: yarn run vX.X.X @@ -223,7 +226,7 @@ Standard output: Standard error: info cli using local version of lerna lerna notice cli vX.X.X -lerna info Executing command in 41 packages: "yarn run build --production --lint" +lerna info Executing command in 42 packages: "yarn run build --production --lint" @uifabric/codepen-loader: ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. @uifabric/codepen-loader: Force exiting Jest @uifabric/codepen-loader: diff --git a/tests/baselines/reference/docker/vscode.log b/tests/baselines/reference/docker/vscode.log index 8bc85ffef12..fdd7db9d713 100644 --- a/tests/baselines/reference/docker/vscode.log +++ b/tests/baselines/reference/docker/vscode.log @@ -1,14 +1,24 @@ -Exit Code: 0 +Exit Code: 1 Standard output: yarn run vX.X.X $ gulp compile --max_old_space_size=4095 [XX:XX:XX] Node flags detected: --max_old_space_size=4095 [XX:XX:XX] Using gulpfile /vscode/gulpfile.js -Done in ?s. +info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Standard error: -{"type":"warning","data":"package.json: No license field"} -{"type":"warning","data":"../package.json: No license field"} -{"type":"warning","data":"vscode-web@X.X.X: No license field"} +[XX:XX:XX] 'compile' errored after ?s +[XX:XX:XX] TypeError: Cannot read property 'text' of undefined + at DeclarationResolver._getDeclarationSourceFile (/vscode/build/monaco/api.js:519:75) + at DeclarationResolver.getDeclarationSourceFile (/vscode/build/monaco/api.js:493:52) + at sourceFileGetter (/vscode/build/monaco/api.js:525:53) + at lines.forEach.line (/vscode/build/monaco/api.js:330:32) + at Array.forEach () + at generateDeclarationFile (/vscode/build/monaco/api.js:319:11) + at _run (/vscode/build/monaco/api.js:438:15) + at Object.run3 (/vscode/build/monaco/api.js:526:12) + at MonacoGenerator._run (/vscode/build/lib/compilation.js:142:27) + at MonacoGenerator.execute (/vscode/build/lib/compilation.js:154:29) +error Command failed with exit code 1. diff --git a/tests/baselines/reference/user/jimp.log b/tests/baselines/reference/user/jimp.log index 94ca297844b..d9a47363e22 100644 --- a/tests/baselines/reference/user/jimp.log +++ b/tests/baselines/reference/user/jimp.log @@ -1,10 +1,6 @@ Exit Code: 1 Standard output: -node_modules/@jimp/core/index.d.ts(200,3): error TS2411: Property 'class' of type 'undefined' is not assignable to string index type 'Function'. -node_modules/@jimp/core/index.d.ts(201,3): error TS2411: Property 'constants' of type 'undefined' is not assignable to string index type 'Function'. -node_modules/@jimp/core/index.d.ts(255,42): error TS2344: Type 'T' does not satisfy the constraint 'WellFormedPlugin'. - Type 'JimpType | undefined' is not assignable to type 'WellFormedPlugin'. - Type 'undefined' is not assignable to type 'WellFormedPlugin'. +index.ts(1,23): error TS2307: Cannot find module 'jimp'. diff --git a/tests/baselines/reference/user/prettier.log b/tests/baselines/reference/user/prettier.log index 6e7cf800473..743c7a71167 100644 --- a/tests/baselines/reference/user/prettier.log +++ b/tests/baselines/reference/user/prettier.log @@ -244,9 +244,11 @@ src/language-js/printer-estree.js(4201,24): error TS2532: Object is possibly 'un src/language-js/printer-estree.js(4557,5): error TS2345: Argument of type '"" | { type: string; parts: any; } | { type: string; contents: any; }' is not assignable to parameter of type 'string'. Type '{ type: string; parts: any; }' is not assignable to type 'string'. src/language-js/printer-estree.js(4561,16): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. -src/language-js/printer-estree.js(4603,9): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. -src/language-js/printer-estree.js(4905,9): error TS2554: Expected 0-2 arguments, but got 3. -src/language-js/printer-estree.js(6112,7): error TS2769: No overload matches this call. +src/language-js/printer-estree.js(4609,11): error TS2322: Type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }' is not assignable to type 'string'. +src/language-js/printer-estree.js(4624,11): error TS2322: Type '{ type: string; parts: any; }' is not assignable to type 'string'. +src/language-js/printer-estree.js(4636,9): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. +src/language-js/printer-estree.js(4923,9): error TS2554: Expected 0-2 arguments, but got 3. +src/language-js/printer-estree.js(6130,7): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray<(childPath: any) => any>[]): ((childPath: any) => any)[]', gave the following error. Argument of type '(string | number)[]' is not assignable to parameter of type 'ConcatArray<(childPath: any) => any>'. Types of property 'slice' are incompatible. diff --git a/tests/baselines/reference/user/webpack.log b/tests/baselines/reference/user/webpack.log new file mode 100644 index 00000000000..d1fbc9df903 --- /dev/null +++ b/tests/baselines/reference/user/webpack.log @@ -0,0 +1,10 @@ +Exit Code: 1 +Standard output: +lib/Compilation.js(575,5): error TS2322: Type 'number | "toString" | "valueOf" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | ... 29 more ... | "trimRight"' is not assignable to type 'string'. + Type 'number' is not assignable to type 'string'. +lib/Compiler.js(228,48): error TS2345: Argument of type 'number | "toString" | "valueOf" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | ... 29 more ... | "trimRight"' is not assignable to parameter of type 'string'. + Type 'number' is not assignable to type 'string'. + + + +Standard error: diff --git a/tests/cases/user/axios-src/axios-src b/tests/cases/user/axios-src/axios-src index 6a4a85c57fc..d74385f1c8f 160000 --- a/tests/cases/user/axios-src/axios-src +++ b/tests/cases/user/axios-src/axios-src @@ -1 +1 @@ -Subproject commit 6a4a85c57fcaba912eee61b87ba34d07323bc60c +Subproject commit d74385f1c8f944a6d94ae0680d3841859a2fcb38 diff --git a/tests/cases/user/create-react-app/create-react-app b/tests/cases/user/create-react-app/create-react-app index c9b95047b97..74eb65a4626 160000 --- a/tests/cases/user/create-react-app/create-react-app +++ b/tests/cases/user/create-react-app/create-react-app @@ -1 +1 @@ -Subproject commit c9b95047b979bebe89ee70590b2a32ab67ef68af +Subproject commit 74eb65a46269d5c2cc5483841e271281477c650e diff --git a/tests/cases/user/prettier/prettier b/tests/cases/user/prettier/prettier index 9f5bd298db2..e83b4537fea 160000 --- a/tests/cases/user/prettier/prettier +++ b/tests/cases/user/prettier/prettier @@ -1 +1 @@ -Subproject commit 9f5bd298db26f76e95ad17f8406edd7ebefacc5a +Subproject commit e83b4537feaa6c063a1598b8d3972b6ad600f2a7 diff --git a/tests/cases/user/puppeteer/puppeteer b/tests/cases/user/puppeteer/puppeteer index c2651c2b5cc..a5f03ce1c85 160000 --- a/tests/cases/user/puppeteer/puppeteer +++ b/tests/cases/user/puppeteer/puppeteer @@ -1 +1 @@ -Subproject commit c2651c2b5cc888ebd0ca6be87063d9f98b9eb59c +Subproject commit a5f03ce1c85c2630739f2a894a303c68632aa250 diff --git a/tests/cases/user/webpack/webpack b/tests/cases/user/webpack/webpack index 77cd3d0cff3..e4c7d8c0ae0 160000 --- a/tests/cases/user/webpack/webpack +++ b/tests/cases/user/webpack/webpack @@ -1 +1 @@ -Subproject commit 77cd3d0cff39def2f8bd6355dcd270dd80bc5da2 +Subproject commit e4c7d8c0ae0c93306f07920bc28fe72119bc098a From 038d95144d8b93c2799d1732181c89c3d84362d5 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Fri, 13 Sep 2019 16:14:33 -0700 Subject: [PATCH 091/159] Remove all submodules - just force clone and reset on run instead (#33425) --- .gitignore | 12 +++++- .gitmodules | 40 ------------------- src/testRunner/externalCompileRunner.ts | 15 ++++--- .../TypeScript-Node-Starter | 1 - .../user/TypeScript-Node-Starter/test.json | 1 + .../TypeScript-React-Native-Starter | 1 - .../TypeScript-React-Native-Starter/test.json | 1 + .../TypeScript-React-Starter | 1 - .../user/TypeScript-React-Starter/test.json | 1 + .../TypeScript-Vue-Starter | 1 - .../user/TypeScript-Vue-Starter/test.json | 1 + .../TypeScript-WeChat-Starter | 1 - .../user/TypeScript-WeChat-Starter/test.json | 1 + tests/cases/user/axios-src/axios-src | 1 - tests/cases/user/axios-src/test.json | 1 + .../user/create-react-app/create-react-app | 1 - tests/cases/user/create-react-app/test.json | 1 + tests/cases/user/prettier/prettier | 1 - tests/cases/user/prettier/test.json | 1 + tests/cases/user/puppeteer/puppeteer | 1 - tests/cases/user/puppeteer/test.json | 1 + tests/cases/user/webpack/test.json | 1 + tests/cases/user/webpack/webpack | 1 - 23 files changed, 31 insertions(+), 56 deletions(-) delete mode 160000 tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter delete mode 160000 tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter delete mode 160000 tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter delete mode 160000 tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter delete mode 160000 tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter delete mode 160000 tests/cases/user/axios-src/axios-src delete mode 160000 tests/cases/user/create-react-app/create-react-app delete mode 160000 tests/cases/user/prettier/prettier delete mode 160000 tests/cases/user/puppeteer/puppeteer delete mode 160000 tests/cases/user/webpack/webpack diff --git a/.gitignore b/.gitignore index a220522b5f0..da243079549 100644 --- a/.gitignore +++ b/.gitignore @@ -81,4 +81,14 @@ tests/cases/user/*/**/*.d.ts tests/baselines/reference/dt .failed-tests TEST-results.xml -package-lock.json \ No newline at end of file +package-lock.json +tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter +tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter +tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter +tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter +tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter +tests/cases/user/create-react-app/create-react-app +tests/cases/user/webpack/webpack +tests/cases/user/puppeteer/puppeteer +tests/cases/user/axios-src/axios-src +tests/cases/user/prettier/prettier \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index 0e4e0b3ed77..e69de29bb2d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,40 +0,0 @@ -[submodule "tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter"] - path = tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter - url = https://github.com/Microsoft/TypeScript-React-Starter - ignore = all -[submodule "tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter"] - path = tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter - url = https://github.com/Microsoft/TypeScript-Node-Starter.git - ignore = all -[submodule "tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter"] - path = tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter - url = https://github.com/Microsoft/TypeScript-React-Native-Starter.git - ignore = all -[submodule "tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter"] - path = tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter - url = https://github.com/Microsoft/TypeScript-Vue-Starter.git - ignore = all -[submodule "tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter"] - path = tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter - url = https://github.com/Microsoft/TypeScript-WeChat-Starter.git - ignore = all -[submodule "tests/cases/user/create-react-app/create-react-app"] - path = tests/cases/user/create-react-app/create-react-app - url = https://github.com/facebook/create-react-app.git - ignore = all -[submodule "tests/cases/user/webpack/webpack"] - path = tests/cases/user/webpack/webpack - url = https://github.com/webpack/webpack.git - ignore = all -[submodule "tests/cases/user/puppeteer/puppeteer"] - path = tests/cases/user/puppeteer/puppeteer - url = https://github.com/GoogleChrome/puppeteer.git - ignore = all -[submodule "tests/cases/user/axios-src/axios-src"] - path = tests/cases/user/axios-src/axios-src - url = https://github.com/axios/axios.git - ignore = all -[submodule "tests/cases/user/prettier/prettier"] - path = tests/cases/user/prettier/prettier - url = https://github.com/prettier/prettier.git - ignore = all diff --git a/src/testRunner/externalCompileRunner.ts b/src/testRunner/externalCompileRunner.ts index c9e800713c3..7698fc3f086 100644 --- a/src/testRunner/externalCompileRunner.ts +++ b/src/testRunner/externalCompileRunner.ts @@ -10,6 +10,7 @@ interface ExecResult { interface UserConfig { types: string[]; + cloneUrl: string; path?: string; } @@ -49,13 +50,17 @@ abstract class ExternalCompileRunnerBase extends RunnerBase { const stdio = isWorker ? "pipe" : "inherit"; let types: string[] | undefined; if (fs.existsSync(path.join(cwd, "test.json"))) { - const submoduleDir = path.join(cwd, directoryName); - exec("git", ["reset", "HEAD", "--hard"], { cwd: submoduleDir }); - exec("git", ["clean", "-f"], { cwd: submoduleDir }); - exec("git", ["submodule", "update", "--init", "--remote", "."], { cwd: originalCwd }); - const config = JSON.parse(fs.readFileSync(path.join(cwd, "test.json"), { encoding: "utf8" })) as UserConfig; ts.Debug.assert(!!config.types, "Bad format from test.json: Types field must be present."); + ts.Debug.assert(!!config.cloneUrl, "Bad format from test.json: cloneUrl field must be present."); + const submoduleDir = path.join(cwd, directoryName); + if (!fs.existsSync(submoduleDir)) { + exec("git", ["clone", config.cloneUrl, directoryName], { cwd }); + } + exec("git", ["reset", "HEAD", "--hard"], { cwd: submoduleDir }); + exec("git", ["clean", "-f"], { cwd: submoduleDir }); + exec("git", ["pull", "-f"], { cwd: submoduleDir }); + types = config.types; cwd = config.path ? path.join(cwd, config.path) : submoduleDir; diff --git a/tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter b/tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter deleted file mode 160000 index ca14e7ccbca..00000000000 --- a/tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ca14e7ccbca8a821d3b860ebb6f3c81c68ccbd06 diff --git a/tests/cases/user/TypeScript-Node-Starter/test.json b/tests/cases/user/TypeScript-Node-Starter/test.json index 11d2aa87c59..c37bf34ad15 100644 --- a/tests/cases/user/TypeScript-Node-Starter/test.json +++ b/tests/cases/user/TypeScript-Node-Starter/test.json @@ -1,3 +1,4 @@ { + "cloneUrl": "https://github.com/Microsoft/TypeScript-Node-Starter.git", "types": ["jquery"] } diff --git a/tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter b/tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter deleted file mode 160000 index 30acce5e136..00000000000 --- a/tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 30acce5e136e86bcf4eff1df151742f78142aa1a diff --git a/tests/cases/user/TypeScript-React-Native-Starter/test.json b/tests/cases/user/TypeScript-React-Native-Starter/test.json index cbe38c569ee..a87cd1ed89e 100644 --- a/tests/cases/user/TypeScript-React-Native-Starter/test.json +++ b/tests/cases/user/TypeScript-React-Native-Starter/test.json @@ -1,4 +1,5 @@ { + "cloneUrl": "https://github.com/Microsoft/TypeScript-React-Native-Starter.git", "types": ["jest"], "path": "TypeScript-React-Native-Starter/ExampleProject" } diff --git a/tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter b/tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter deleted file mode 160000 index 19c71f2c6a2..00000000000 --- a/tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 19c71f2c6a2b874b1b2bb28a8526b19185b8eece diff --git a/tests/cases/user/TypeScript-React-Starter/test.json b/tests/cases/user/TypeScript-React-Starter/test.json index f3613bf3b01..caa97357cb7 100644 --- a/tests/cases/user/TypeScript-React-Starter/test.json +++ b/tests/cases/user/TypeScript-React-Starter/test.json @@ -1,3 +1,4 @@ { + "cloneUrl": "https://github.com/Microsoft/TypeScript-React-Starter", "types": ["jest", "node"] } diff --git a/tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter b/tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter deleted file mode 160000 index 56024cfe414..00000000000 --- a/tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 56024cfe414491a9097e9dd33661a5ad5d51d975 diff --git a/tests/cases/user/TypeScript-Vue-Starter/test.json b/tests/cases/user/TypeScript-Vue-Starter/test.json index e0d4d26bdca..4504c4c1cd5 100644 --- a/tests/cases/user/TypeScript-Vue-Starter/test.json +++ b/tests/cases/user/TypeScript-Vue-Starter/test.json @@ -1,3 +1,4 @@ { + "cloneUrl": "https://github.com/Microsoft/TypeScript-Vue-Starter.git", "types": [] } diff --git a/tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter b/tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter deleted file mode 160000 index 3fb8b460102..00000000000 --- a/tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3fb8b4601022f7e2df899eb0ac0178f531e6f027 diff --git a/tests/cases/user/TypeScript-WeChat-Starter/test.json b/tests/cases/user/TypeScript-WeChat-Starter/test.json index e0d4d26bdca..92c47595d1a 100644 --- a/tests/cases/user/TypeScript-WeChat-Starter/test.json +++ b/tests/cases/user/TypeScript-WeChat-Starter/test.json @@ -1,3 +1,4 @@ { + "cloneUrl": "https://github.com/Microsoft/TypeScript-React-Starter", "types": [] } diff --git a/tests/cases/user/axios-src/axios-src b/tests/cases/user/axios-src/axios-src deleted file mode 160000 index d74385f1c8f..00000000000 --- a/tests/cases/user/axios-src/axios-src +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d74385f1c8f944a6d94ae0680d3841859a2fcb38 diff --git a/tests/cases/user/axios-src/test.json b/tests/cases/user/axios-src/test.json index b6495a1b80b..36c01c495bd 100644 --- a/tests/cases/user/axios-src/test.json +++ b/tests/cases/user/axios-src/test.json @@ -1,3 +1,4 @@ { + "cloneUrl": "https://github.com/axios/axios.git", "types": ["node"] } diff --git a/tests/cases/user/create-react-app/create-react-app b/tests/cases/user/create-react-app/create-react-app deleted file mode 160000 index 74eb65a4626..00000000000 --- a/tests/cases/user/create-react-app/create-react-app +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 74eb65a46269d5c2cc5483841e271281477c650e diff --git a/tests/cases/user/create-react-app/test.json b/tests/cases/user/create-react-app/test.json index e0d4d26bdca..98888de7fdb 100644 --- a/tests/cases/user/create-react-app/test.json +++ b/tests/cases/user/create-react-app/test.json @@ -1,3 +1,4 @@ { + "cloneUrl": "https://github.com/facebook/create-react-app.git", "types": [] } diff --git a/tests/cases/user/prettier/prettier b/tests/cases/user/prettier/prettier deleted file mode 160000 index e83b4537fea..00000000000 --- a/tests/cases/user/prettier/prettier +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e83b4537feaa6c063a1598b8d3972b6ad600f2a7 diff --git a/tests/cases/user/prettier/test.json b/tests/cases/user/prettier/test.json index b6495a1b80b..7b041238424 100644 --- a/tests/cases/user/prettier/test.json +++ b/tests/cases/user/prettier/test.json @@ -1,3 +1,4 @@ { + "cloneUrl": "https://github.com/prettier/prettier.git", "types": ["node"] } diff --git a/tests/cases/user/puppeteer/puppeteer b/tests/cases/user/puppeteer/puppeteer deleted file mode 160000 index a5f03ce1c85..00000000000 --- a/tests/cases/user/puppeteer/puppeteer +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a5f03ce1c85c2630739f2a894a303c68632aa250 diff --git a/tests/cases/user/puppeteer/test.json b/tests/cases/user/puppeteer/test.json index e0d4d26bdca..f2e61aca5f9 100644 --- a/tests/cases/user/puppeteer/test.json +++ b/tests/cases/user/puppeteer/test.json @@ -1,3 +1,4 @@ { + "cloneUrl": "https://github.com/GoogleChrome/puppeteer.git", "types": [] } diff --git a/tests/cases/user/webpack/test.json b/tests/cases/user/webpack/test.json index e0d4d26bdca..a3fcf317a74 100644 --- a/tests/cases/user/webpack/test.json +++ b/tests/cases/user/webpack/test.json @@ -1,3 +1,4 @@ { + "cloneUrl": "https://github.com/webpack/webpack.git", "types": [] } diff --git a/tests/cases/user/webpack/webpack b/tests/cases/user/webpack/webpack deleted file mode 160000 index e4c7d8c0ae0..00000000000 --- a/tests/cases/user/webpack/webpack +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e4c7d8c0ae0c93306f07920bc28fe72119bc098a From cc6e4938aedaa017a999c4c53bd5e560999f6fde Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sat, 14 Sep 2019 15:30:09 -0700 Subject: [PATCH 092/159] Treat exhaustive switch statements like non-returning functions in CFA --- src/compiler/binder.ts | 7 +++++-- src/compiler/checker.ts | 39 +++++++++++++++++++++++++-------------- src/compiler/types.ts | 3 ++- 3 files changed, 32 insertions(+), 17 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index bb3b7b10508..e93fef838e8 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -569,7 +569,7 @@ namespace ts { } // We create a return control flow graph for IIFEs and constructors. For constructors // we use the return control flow graph in strict property initialization checks. - currentReturnTarget = containerFlags & ContainerFlags.IsFunctionLike && nodeIsPresent((node).body) ? createBranchLabel() : undefined; + currentReturnTarget = isIIFE || node.kind === SyntaxKind.Constructor ? createBranchLabel() : undefined; currentBreakTarget = undefined; currentContinueTarget = undefined; activeLabels = undefined; @@ -581,6 +581,7 @@ namespace ts { if (!(currentFlow.flags & FlowFlags.Unreachable) && containerFlags & ContainerFlags.IsFunctionLike && nodeIsPresent((node).body)) { node.flags |= NodeFlags.HasImplicitReturn; if (hasExplicitReturn) node.flags |= NodeFlags.HasExplicitReturn; + (node).endFlowNode = currentFlow; } if (node.kind === SyntaxKind.SourceFile) { node.flags |= emitFlags; @@ -589,7 +590,9 @@ namespace ts { if (currentReturnTarget) { addAntecedent(currentReturnTarget, currentFlow); currentFlow = finishFlowLabel(currentReturnTarget); - (node).returnFlowNode = currentFlow; + if (node.kind === SyntaxKind.Constructor) { + (node).returnFlowNode = currentFlow; + } } if (!isIIFE) { currentFlow = saveCurrentFlow; diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 5e491b2e730..0d9397eb6b3 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -16996,16 +16996,19 @@ namespace ts { return isReachableFlowNodeWorker(flow, /*skipCacheCheck*/ false); } - function isReachableFlowNodeWorker(flow: FlowNode, skipCacheCheck: boolean): boolean { + function isReachableFlowNodeWorker(flow: FlowNode, noCacheCheck: boolean): boolean { while (true) { const flags = flow.flags; - if (flags & FlowFlags.Shared && !skipCacheCheck) { - const id = getFlowNodeId(flow); - const reachable = flowNodeReachable[id]; - return reachable !== undefined ? reachable : (flowNodeReachable[id] = isReachableFlowNodeWorker(flow, /*skipCacheCheck*/ true)); + if (flags & FlowFlags.Shared | flags & FlowFlags.SwitchClause) { + if (!noCacheCheck) { + const id = getFlowNodeId(flow); + const reachable = flowNodeReachable[id]; + return reachable !== undefined ? reachable : (flowNodeReachable[id] = isReachableFlowNodeWorker(flow, /*skipCacheCheck*/ true)); + } + noCacheCheck = false; } - if (flags & (FlowFlags.Assignment | FlowFlags.Condition | FlowFlags.SwitchClause | FlowFlags.ArrayMutation | FlowFlags.PreFinally | FlowFlags.AfterFinally)) { - flow = (flow).antecedent; + if (flags & (FlowFlags.Assignment | FlowFlags.Condition | FlowFlags.ArrayMutation | FlowFlags.PreFinally | FlowFlags.AfterFinally)) { + flow = (flow).antecedent; } else if (flags & FlowFlags.Call) { const signature = getEffectsSignature((flow).node); @@ -17014,14 +17017,20 @@ namespace ts { } flow = (flow).antecedent; } + else if (flags & FlowFlags.BranchLabel) { + return some((flow).antecedents!, isReachableFlowNode); + } else if (flags & FlowFlags.LoopLabel) { flow = (flow).antecedents![0]; } - else if (flags & FlowFlags.BranchLabel) { - return every((flow).antecedents!, isReachableFlowNode); + else if (flags & FlowFlags.SwitchClause) { + if ((flow).clauseStart === (flow).clauseEnd && isExhaustiveSwitchStatement((flow).switchStatement)) { + return false; + } + flow = (flow).antecedent; } else { - return true; + return !(flags & FlowFlags.Unreachable); } } } @@ -17044,7 +17053,11 @@ namespace ts { // on empty arrays are possible without implicit any errors and new element types can be inferred without // type mismatch errors. const resultType = getObjectFlags(evolvedType) & ObjectFlags.EvolvingArray && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType); - if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === SyntaxKind.NonNullExpression && getTypeWithFacts(resultType, TypeFacts.NEUndefinedOrNull).flags & TypeFlags.Never) { + if (resultType === unreachableNeverType) { + error(reference, Diagnostics.Unreachable_code_detected); + return declaredType; + } + if (reference.parent && reference.parent.kind === SyntaxKind.NonNullExpression && getTypeWithFacts(resultType, TypeFacts.NEUndefinedOrNull).flags & TypeFlags.Never) { return declaredType; } return resultType; @@ -23804,9 +23817,7 @@ namespace ts { } function functionHasImplicitReturn(func: FunctionLikeDeclaration) { - return !!(func.flags & NodeFlags.HasImplicitReturn && - !some((func.body).statements, s => s.kind === SyntaxKind.SwitchStatement && isExhaustiveSwitchStatement(s)) && - !(func.returnFlowNode && !isReachableFlowNode(func.returnFlowNode))); + return func.endFlowNode && isReachableFlowNode(func.endFlowNode); } /** NOTE: Return value of `[]` means a different thing than `undefined`. `[]` means func returns `void`, `undefined` means it returns `never`. */ diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 214c2d58788..3ba88e3e45d 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -1040,7 +1040,7 @@ namespace ts { questionToken?: QuestionToken; exclamationToken?: ExclamationToken; body?: Block | Expression; - /* @internal */ returnFlowNode?: FlowNode; + /* @internal */ endFlowNode?: FlowNode; } export type FunctionLikeDeclaration = @@ -1086,6 +1086,7 @@ namespace ts { kind: SyntaxKind.Constructor; parent: ClassLikeDeclaration; body?: FunctionBody; + /* @internal */ returnFlowNode?: FlowNode; } /** For when we encounter a semicolon in a class declaration. ES6 allows these as class elements. */ From 0060964fba457f83eb77c48b60909e23184b59d7 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sun, 15 Sep 2019 08:25:07 -0700 Subject: [PATCH 093/159] Further CFA handling of exhaustive switch statements --- src/compiler/binder.ts | 3 ++- src/compiler/checker.ts | 17 +++++++++++++---- src/compiler/types.ts | 1 + 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index e93fef838e8..6efc4ae05b0 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -1224,7 +1224,8 @@ namespace ts { addAntecedent(postSwitchLabel, currentFlow); const hasDefault = forEach(node.caseBlock.clauses, c => c.kind === SyntaxKind.DefaultClause); // We mark a switch statement as possibly exhaustive if it has no default clause and if all - // case clauses have unreachable end points (e.g. they all return). + // case clauses have unreachable end points (e.g. they all return). Note, we no longer need + // this property in control flow analysis, it's there only for backwards compatibility. node.possiblyExhaustive = !hasDefault && !postSwitchLabel.antecedents; if (!hasDefault) { addAntecedent(postSwitchLabel, createFlowSwitchClause(preSwitchCaseFlow, node, 0, 0)); diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 0d9397eb6b3..e5204350742 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -16999,7 +16999,7 @@ namespace ts { function isReachableFlowNodeWorker(flow: FlowNode, noCacheCheck: boolean): boolean { while (true) { const flags = flow.flags; - if (flags & FlowFlags.Shared | flags & FlowFlags.SwitchClause) { + if (flags & FlowFlags.Shared) { if (!noCacheCheck) { const id = getFlowNodeId(flow); const reachable = flowNodeReachable[id]; @@ -17018,12 +17018,16 @@ namespace ts { flow = (flow).antecedent; } else if (flags & FlowFlags.BranchLabel) { + // A branching point is reachable if any branch is reachable. return some((flow).antecedents!, isReachableFlowNode); } else if (flags & FlowFlags.LoopLabel) { + // A loop is reachable if the control flow path that leads to the top is reachable. flow = (flow).antecedents![0]; } else if (flags & FlowFlags.SwitchClause) { + // The control flow path representing an unmatched value in a switch statement with + // no default clause is unreachable if the switch statement is exhaustive. if ((flow).clauseStart === (flow).clauseEnd && isExhaustiveSwitchStatement((flow).switchStatement)) { return false; } @@ -17327,6 +17331,9 @@ namespace ts { } function getTypeAtSwitchClause(flow: FlowSwitchClause): FlowType { + if (flow.clauseStart === flow.clauseEnd && isExhaustiveSwitchStatement((flow).switchStatement)) { + return neverType; + } const expr = flow.switchStatement.expression; const flowType = getTypeAtFlowNode(flow.antecedent); let type = getTypeFromFlowType(flowType); @@ -23793,9 +23800,11 @@ namespace ts { } function isExhaustiveSwitchStatement(node: SwitchStatement): boolean { - if (!node.possiblyExhaustive) { - return false; - } + const links = getNodeLinks(node); + return links.isExhaustive !== undefined ? links.isExhaustive : (links.isExhaustive = computeExhaustiveSwitchStatement(node)); + } + + function computeExhaustiveSwitchStatement(node: SwitchStatement): boolean { if (node.expression.kind === SyntaxKind.TypeOfExpression) { const operandType = getTypeOfExpression((node.expression as TypeOfExpression).expression); // This cast is safe because the switch is possibly exhaustive and does not contain a default case, so there can be no undefined. diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 3ba88e3e45d..f80126b64c5 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -4016,6 +4016,7 @@ namespace ts { contextFreeType?: Type; // Cached context-free type used by the first pass of inference; used when a function's return is partially contextually sensitive deferredNodes?: Map; // Set of nodes whose checking has been deferred capturedBlockScopeBindings?: Symbol[]; // Block-scoped bindings captured beneath this part of an IterationStatement + isExhaustive?: boolean; // Is node an exhaustive switch statement } export const enum TypeFlags { From 51dcce212498a8cb8f6a8ca3d846501252f649fa Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sun, 15 Sep 2019 08:28:17 -0700 Subject: [PATCH 094/159] Accept new baselines --- tests/baselines/reference/narrowingByTypeofInSwitch.types | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/baselines/reference/narrowingByTypeofInSwitch.types b/tests/baselines/reference/narrowingByTypeofInSwitch.types index f823c57770c..fbfe7fe92ee 100644 --- a/tests/baselines/reference/narrowingByTypeofInSwitch.types +++ b/tests/baselines/reference/narrowingByTypeofInSwitch.types @@ -208,7 +208,7 @@ function testExtendsUnion(x: T) { assertAll(x); >assertAll(x) : Basic >assertAll : (x: Basic) => Basic ->x : T +>x : never } function testAny(x: any) { From 59b76cee89254dba2dd36abea850ecd9e578f3c7 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sun, 15 Sep 2019 08:38:17 -0700 Subject: [PATCH 095/159] Fix call to Debug.fail in compiler --- src/compiler/checker.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index e5204350742..58b6d2e4ceb 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -31531,8 +31531,7 @@ namespace ts { const nameType = checkComputedPropertyName(name); return isTypeAssignableToKind(nameType, TypeFlags.ESSymbolLike) ? nameType : stringType; default: - Debug.fail("Unsupported property name."); - return errorType; + return Debug.fail("Unsupported property name."); } } From 945babbaacb0cbb09c39f554c4141bed9647a9c0 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sun, 15 Sep 2019 09:49:57 -0700 Subject: [PATCH 096/159] Fix inference circularity error triggered by exhaustive switch analysis --- src/compiler/transformers/generators.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/transformers/generators.ts b/src/compiler/transformers/generators.ts index 3b1a8379e07..cc16aef6009 100644 --- a/src/compiler/transformers/generators.ts +++ b/src/compiler/transformers/generators.ts @@ -2871,7 +2871,7 @@ namespace ts { function tryEnterOrLeaveBlock(operationIndex: number): void { if (blocks) { for (; blockIndex < blockActions!.length && blockOffsets![blockIndex] <= operationIndex; blockIndex++) { - const block = blocks[blockIndex]; + const block: CodeBlock = blocks[blockIndex]; const blockAction = blockActions![blockIndex]; switch (block.kind) { case CodeBlockKind.Exception: From d26afd7273c8aabfb92157df55eadbc907c6fb65 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sun, 15 Sep 2019 11:07:51 -0700 Subject: [PATCH 097/159] for-in or for-of expression is evaluated before loop back edge --- src/compiler/binder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 6efc4ae05b0..5006e841dc7 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -1032,12 +1032,12 @@ namespace ts { function bindForInOrForOfStatement(node: ForInOrOfStatement): void { const preLoopLabel = createLoopLabel(); const postLoopLabel = createBranchLabel(); + bind(node.expression); addAntecedent(preLoopLabel, currentFlow); currentFlow = preLoopLabel; if (node.kind === SyntaxKind.ForOfStatement) { bind(node.awaitModifier); } - bind(node.expression); addAntecedent(postLoopLabel, currentFlow); bind(node.initializer); if (node.initializer.kind !== SyntaxKind.VariableDeclarationList) { From 05d1e68e6296d1b951010e8bad6168b88cef05f1 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sun, 15 Sep 2019 18:13:49 -0700 Subject: [PATCH 098/159] Fix linting issues --- src/compiler/checker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 58b6d2e4ceb..ba06e08a301 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -17019,7 +17019,7 @@ namespace ts { } else if (flags & FlowFlags.BranchLabel) { // A branching point is reachable if any branch is reachable. - return some((flow).antecedents!, isReachableFlowNode); + return some((flow).antecedents, isReachableFlowNode); } else if (flags & FlowFlags.LoopLabel) { // A loop is reachable if the control flow path that leads to the top is reachable. @@ -17331,7 +17331,7 @@ namespace ts { } function getTypeAtSwitchClause(flow: FlowSwitchClause): FlowType { - if (flow.clauseStart === flow.clauseEnd && isExhaustiveSwitchStatement((flow).switchStatement)) { + if (flow.clauseStart === flow.clauseEnd && isExhaustiveSwitchStatement(flow.switchStatement)) { return neverType; } const expr = flow.switchStatement.expression; From f06f32d945bc5a07a443840ddccc7838a9a49125 Mon Sep 17 00:00:00 2001 From: typescript-bot Date: Mon, 16 Sep 2019 14:10:30 +0000 Subject: [PATCH 099/159] Update user baselines --- .../baselines/reference/docker/azure-sdk.log | 4 +- .../reference/docker/office-ui-fabric.log | 27 ++++- .../user/TypeScript-WeChat-Starter.log | 17 +++ tests/baselines/reference/user/axios-src.log | 22 ++-- tests/baselines/reference/user/jimp.log | 47 +++++++- tests/baselines/reference/user/prettier.log | 114 ++++++++++-------- 6 files changed, 166 insertions(+), 65 deletions(-) create mode 100644 tests/baselines/reference/user/TypeScript-WeChat-Starter.log diff --git a/tests/baselines/reference/docker/azure-sdk.log b/tests/baselines/reference/docker/azure-sdk.log index ad0dbf4e9d6..347a6c188a9 100644 --- a/tests/baselines/reference/docker/azure-sdk.log +++ b/tests/baselines/reference/docker/azure-sdk.log @@ -24,7 +24,7 @@ Warning: You have changed the public API signature for this project. Updating re dist-esm/index.js → dist/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency -tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js) +tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) @azure/cosmos-sign (imported by dist-esm/auth.js) universal-user-agent (imported by dist-esm/common/platform.js) uuid/v4 (imported by dist-esm/ClientContext.js, dist-esm/client/Item/Items.js) @@ -96,7 +96,7 @@ Warning: You have changed the public API signature for this project. Updating re dist-esm/index.js → dist/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency -tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js) +tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) @azure/cosmos-sign (imported by dist-esm/auth.js) universal-user-agent (imported by dist-esm/common/platform.js) uuid/v4 (imported by dist-esm/ClientContext.js, dist-esm/client/Item/Items.js) diff --git a/tests/baselines/reference/docker/office-ui-fabric.log b/tests/baselines/reference/docker/office-ui-fabric.log index 67398753776..56cc33c98c6 100644 --- a/tests/baselines/reference/docker/office-ui-fabric.log +++ b/tests/baselines/reference/docker/office-ui-fabric.log @@ -164,6 +164,26 @@ Standard output: @uifabric/utilities: PASS src/keyboard.test.ts @uifabric/utilities: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/utilities/lib/index.d.ts' @uifabric/utilities: Done in ?s. +@uifabric/react-hooks: yarn run vX.X.X +@uifabric/react-hooks: $ just-scripts build --production --lint +@uifabric/react-hooks: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running tslint +@uifabric/react-hooks: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/tslint/lib/tslintCli.js" --project "/office-ui-fabric-react/packages/react-hooks/tsconfig.json" -t stylish -r /office-ui-fabric-react/node_modules/tslint-microsoft-contrib +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/react-hooks/tsconfig.json +@uifabric/react-hooks: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --inlineSources --sourceRoot "../src" --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/react-hooks/tsconfig.json" +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/react-hooks/tsconfig.json +@uifabric/react-hooks: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --inlineSources --sourceRoot "../src" --outDir lib --module esnext --project "/office-ui-fabric-react/packages/react-hooks/tsconfig.json" +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/react-hooks/tsconfig.json +@uifabric/react-hooks: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --inlineSources --sourceRoot "../src" --outDir lib-amd --module amd --project "/office-ui-fabric-react/packages/react-hooks/tsconfig.json" +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running Jest +@uifabric/react-hooks: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/jest/bin/jest.js" --config "/office-ui-fabric-react/packages/react-hooks/jest.config.js" --passWithNoTests --colors --forceExit +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running Webpack +@uifabric/react-hooks: [XX:XX:XX XM] ■ Webpack Config Path: /office-ui-fabric-react/packages/react-hooks/webpack.config.js +@uifabric/react-hooks: Webpack version: 4.29.5 +@uifabric/react-hooks: PASS src/useConst.test.tsx +@uifabric/react-hooks: PASS src/useId.test.tsx +@uifabric/react-hooks: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/react-hooks/lib/index.d.ts' +@uifabric/react-hooks: Done in ?s. @uifabric/styling: yarn run vX.X.X @uifabric/styling: $ just-scripts build --production --lint @uifabric/styling: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] @@ -226,7 +246,7 @@ Standard output: Standard error: info cli using local version of lerna lerna notice cli vX.X.X -lerna info Executing command in 42 packages: "yarn run build --production --lint" +lerna info Executing command in 43 packages: "yarn run build --production --lint" @uifabric/codepen-loader: ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. @uifabric/codepen-loader: Force exiting Jest @uifabric/codepen-loader: @@ -247,6 +267,11 @@ lerna info Executing command in 42 packages: "yarn run build --production --lint @uifabric/utilities: Force exiting Jest @uifabric/utilities: @uifabric/utilities: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished? +@uifabric/react-hooks: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect +@uifabric/react-hooks: ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. +@uifabric/react-hooks: Force exiting Jest +@uifabric/react-hooks: +@uifabric/react-hooks: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished? @uifabric/styling: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect @uifabric/styling: ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. @uifabric/styling: Force exiting Jest diff --git a/tests/baselines/reference/user/TypeScript-WeChat-Starter.log b/tests/baselines/reference/user/TypeScript-WeChat-Starter.log new file mode 100644 index 00000000000..825eae70a53 --- /dev/null +++ b/tests/baselines/reference/user/TypeScript-WeChat-Starter.log @@ -0,0 +1,17 @@ +Exit Code: 1 +Standard output: +src/App.test.tsx(5,1): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +src/components/Hello.test.tsx(5,1): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +src/components/Hello.test.tsx(7,3): error TS2304: Cannot find name 'expect'. +src/components/Hello.test.tsx(10,1): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +src/components/Hello.test.tsx(12,3): error TS2304: Cannot find name 'expect'. +src/components/Hello.test.tsx(15,1): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +src/components/Hello.test.tsx(17,3): error TS2304: Cannot find name 'expect'. +src/components/Hello.test.tsx(20,1): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +src/components/Hello.test.tsx(21,3): error TS2304: Cannot find name 'expect'. +src/components/Hello.test.tsx(26,1): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +src/components/Hello.test.tsx(27,3): error TS2304: Cannot find name 'expect'. + + + +Standard error: diff --git a/tests/baselines/reference/user/axios-src.log b/tests/baselines/reference/user/axios-src.log index adc8d7e0a48..d24af763712 100644 --- a/tests/baselines/reference/user/axios-src.log +++ b/tests/baselines/reference/user/axios-src.log @@ -1,18 +1,18 @@ Exit Code: 1 Standard output: lib/adapters/http.js(13,19): error TS2732: Cannot find module './../../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension -lib/adapters/http.js(87,22): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. +lib/adapters/http.js(84,22): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string'. -lib/adapters/http.js(123,17): error TS2532: Object is possibly 'undefined'. -lib/adapters/http.js(123,40): error TS2532: Object is possibly 'undefined'. -lib/adapters/http.js(124,17): error TS2531: Object is possibly 'null'. -lib/adapters/http.js(124,54): error TS2531: Object is possibly 'null'. -lib/adapters/http.js(124,54): error TS2532: Object is possibly 'undefined'. -lib/adapters/http.js(223,23): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. -lib/adapters/http.js(229,44): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. -lib/adapters/http.js(235,13): error TS2322: Type 'string' is not assignable to type 'Buffer'. -lib/adapters/http.js(247,40): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. -lib/adapters/http.js(271,42): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. +lib/adapters/http.js(120,17): error TS2532: Object is possibly 'undefined'. +lib/adapters/http.js(120,40): error TS2532: Object is possibly 'undefined'. +lib/adapters/http.js(121,17): error TS2531: Object is possibly 'null'. +lib/adapters/http.js(121,54): error TS2531: Object is possibly 'null'. +lib/adapters/http.js(121,54): error TS2532: Object is possibly 'undefined'. +lib/adapters/http.js(220,23): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. +lib/adapters/http.js(226,44): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. +lib/adapters/http.js(232,13): error TS2322: Type 'string' is not assignable to type 'Buffer'. +lib/adapters/http.js(244,40): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. +lib/adapters/http.js(273,42): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. lib/adapters/xhr.js(64,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'. lib/adapters/xhr.js(76,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'. lib/adapters/xhr.js(83,51): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. diff --git a/tests/baselines/reference/user/jimp.log b/tests/baselines/reference/user/jimp.log index d9a47363e22..8aa96e8bb82 100644 --- a/tests/baselines/reference/user/jimp.log +++ b/tests/baselines/reference/user/jimp.log @@ -1,6 +1,51 @@ Exit Code: 1 Standard output: -index.ts(1,23): error TS2307: Cannot find module 'jimp'. +node_modules/@jimp/bmp/index.d.ts(1,38): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/gif/index.d.ts(1,27): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/jpeg/index.d.ts(1,59): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-blit/index.d.ts(1,54): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-blur/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-color/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-contain/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-cover/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-crop/index.d.ts(1,37): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-displace/index.d.ts(1,54): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-dither/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-flip/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-gaussian/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-invert/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-mask/index.d.ts(1,54): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-normalize/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-print/index.d.ts(1,54): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-resize/index.d.ts(1,37): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-rotate/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/plugin-scale/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/png/index.d.ts(1,59): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/@jimp/tiff/index.d.ts(1,38): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` +node_modules/jimp/types/ts3.1/index.d.ts(16,8): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. + Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` diff --git a/tests/baselines/reference/user/prettier.log b/tests/baselines/reference/user/prettier.log index 743c7a71167..93ccd99a0d6 100644 --- a/tests/baselines/reference/user/prettier.log +++ b/tests/baselines/reference/user/prettier.log @@ -55,16 +55,18 @@ src/doc/doc-printer.js(501,37): error TS2345: Argument of type 'any[][]' is not src/index.js(3,25): error TS2732: Cannot find module '../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension src/index.js(30,17): error TS2339: Property 'sync' does not exist on type '(...args: any[]) => any'. src/language-css/clean.js(3,30): error TS2307: Cannot find module 'html-tag-names'. -src/language-css/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/css'. -src/language-css/index.js(8,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-css/index.js(15,26): error TS2307: Cannot find module 'linguist-languages/data/postcss'. -src/language-css/index.js(25,26): error TS2307: Cannot find module 'linguist-languages/data/less'. -src/language-css/index.js(25,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-css/index.js(32,26): error TS2307: Cannot find module 'linguist-languages/data/scss'. -src/language-css/index.js(32,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. +src/language-css/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/CSS'. +src/language-css/index.js(8,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-css/index.js(15,26): error TS2307: Cannot find module 'linguist-languages/data/PostCSS'. +src/language-css/index.js(15,62): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { extensions: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Property 'exclude' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { extensions: string[]; }; }' but required in type '{ extend: any; override: any; exclude: any; }'. +src/language-css/index.js(25,26): error TS2307: Cannot find module 'linguist-languages/data/Less'. +src/language-css/index.js(25,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-css/index.js(32,26): error TS2307: Cannot find module 'linguist-languages/data/SCSS'. +src/language-css/index.js(32,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude src/language-css/parser-postcss.js(64,32): error TS2345: Argument of type '{ groups: never[]; type: string; }' is not assignable to parameter of type 'never'. src/language-css/parser-postcss.js(74,30): error TS2345: Argument of type '{ open: null; close: null; groups: never[]; type: string; }' is not assignable to parameter of type 'never'. src/language-css/parser-postcss.js(79,30): error TS2345: Argument of type '{ groups: never[]; type: string; }' is not assignable to parameter of type 'never'. @@ -72,12 +74,12 @@ src/language-css/parser-postcss.js(86,30): error TS2345: Argument of type 'any' src/language-css/parser-postcss.js(90,28): error TS2345: Argument of type '{ groups: never[]; type: string; }' is not assignable to parameter of type 'never'. src/language-css/parser-postcss.js(449,32): error TS2531: Object is possibly 'null'. src/language-css/utils.js(3,30): error TS2307: Cannot find module 'html-tag-names'. -src/language-graphql/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/graphql'. -src/language-graphql/index.js(8,62): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-handlebars/index.js(7,26): error TS2307: Cannot find module 'linguist-languages/data/handlebars'. -src/language-handlebars/index.js(7,65): error TS2345: Argument of type '{ override: { since: null; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: null; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. +src/language-graphql/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/GraphQL'. +src/language-graphql/index.js(8,62): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-handlebars/index.js(7,26): error TS2307: Cannot find module 'linguist-languages/data/Handlebars'. +src/language-handlebars/index.js(7,65): error TS2345: Argument of type '{ override: { since: null; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: null; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude src/language-html/ast.js(53,11): error TS2536: Type 'Extract' cannot be used to index type 'Node'. src/language-html/ast.js(56,15): error TS2339: Property 'index' does not exist on type 'Node'. src/language-html/ast.js(56,22): error TS2339: Property 'siblings' does not exist on type 'Node'. @@ -100,16 +102,18 @@ src/language-html/ast.js(90,69): error TS2339: Property 'name' does not exist on src/language-html/conditional-comment.js(23,16): error TS2349: This expression is not callable. Not all constituents of type 'RegExp | ((node: any) => { type: string; sourceSpan: any; })' are callable. Type 'RegExp' has no call signatures. -src/language-html/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/html'. -src/language-html/index.js(8,59): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: string[]; filenames: never[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: string[]; filenames: never[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-html/index.js(19,26): error TS2307: Cannot find module 'linguist-languages/data/html'. -src/language-html/index.js(31,26): error TS2307: Cannot find module 'linguist-languages/data/html'. -src/language-html/index.js(31,59): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: never[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: never[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-html/index.js(42,26): error TS2307: Cannot find module 'linguist-languages/data/vue'. -src/language-html/index.js(42,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. +src/language-html/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/HTML'. +src/language-html/index.js(8,59): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: string[]; filenames: never[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: string[]; filenames: never[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-html/index.js(19,26): error TS2307: Cannot find module 'linguist-languages/data/HTML'. +src/language-html/index.js(19,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { extensions: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Property 'exclude' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { extensions: string[]; }; }' but required in type '{ extend: any; override: any; exclude: any; }'. +src/language-html/index.js(31,26): error TS2307: Cannot find module 'linguist-languages/data/HTML'. +src/language-html/index.js(31,59): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: never[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: never[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-html/index.js(42,26): error TS2307: Cannot find module 'linguist-languages/data/Vue'. +src/language-html/index.js(42,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude src/language-html/parser-html.js(52,12): error TS2339: Property 'type' does not exist on type 'Attribute'. src/language-html/parser-html.js(54,12): error TS2339: Property 'type' does not exist on type 'CDATA'. src/language-html/parser-html.js(56,12): error TS2339: Property 'type' does not exist on type 'Comment'. @@ -166,24 +170,33 @@ src/language-html/utils.js(10,30): error TS2307: Cannot find module 'html-tag-na src/language-html/utils.js(11,39): error TS2307: Cannot find module 'html-element-attributes'. src/language-html/utils.js(444,17): error TS2554: Expected 0 arguments, but got 1. src/language-js/comments.js(864,64): error TS2554: Expected 0 arguments, but got 1. -src/language-js/index.js(9,26): error TS2307: Cannot find module 'linguist-languages/data/javascript'. -src/language-js/index.js(19,26): error TS2307: Cannot find module 'linguist-languages/data/javascript'. -src/language-js/index.js(19,65): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; aliases: never[]; filenames: never[]; extensions: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; aliases: never[]; filenames: never[]; extensions: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-js/index.js(31,26): error TS2307: Cannot find module 'linguist-languages/data/jsx'. -src/language-js/index.js(31,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-js/index.js(38,26): error TS2307: Cannot find module 'linguist-languages/data/typescript'. -src/language-js/index.js(38,65): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-js/index.js(45,26): error TS2307: Cannot find module 'linguist-languages/data/json'. -src/language-js/index.js(45,59): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-js/index.js(56,26): error TS2307: Cannot find module 'linguist-languages/data/json'. -src/language-js/index.js(66,26): error TS2307: Cannot find module 'linguist-languages/data/json-with-comments'. -src/language-js/index.js(76,26): error TS2307: Cannot find module 'linguist-languages/data/json5'. -src/language-js/index.js(76,60): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. +src/language-js/index.js(9,26): error TS2307: Cannot find module 'linguist-languages/data/JavaScript'. +src/language-js/index.js(9,65): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { interpreters: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Property 'exclude' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { interpreters: string[]; }; }' but required in type '{ extend: any; override: any; exclude: any; }'. +src/language-js/index.js(19,26): error TS2307: Cannot find module 'linguist-languages/data/JavaScript'. +src/language-js/index.js(19,65): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; aliases: never[]; filenames: never[]; extensions: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; aliases: never[]; filenames: never[]; extensions: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-js/index.js(30,26): error TS2307: Cannot find module 'linguist-languages/data/JSX'. +src/language-js/index.js(30,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-js/index.js(37,26): error TS2307: Cannot find module 'linguist-languages/data/TypeScript'. +src/language-js/index.js(37,65): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-js/index.js(44,26): error TS2307: Cannot find module 'linguist-languages/data/TSX'. +src/language-js/index.js(44,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-js/index.js(51,26): error TS2307: Cannot find module 'linguist-languages/data/JSON'. +src/language-js/index.js(51,59): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-js/index.js(61,26): error TS2307: Cannot find module 'linguist-languages/data/JSON'. +src/language-js/index.js(61,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { filenames: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Property 'exclude' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { filenames: string[]; }; }' but required in type '{ extend: any; override: any; exclude: any; }'. +src/language-js/index.js(71,26): error TS2307: Cannot find module 'linguist-languages/data/JSON with Comments'. +src/language-js/index.js(71,73): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { filenames: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Property 'exclude' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { filenames: string[]; }; }' but required in type '{ extend: any; override: any; exclude: any; }'. +src/language-js/index.js(81,26): error TS2307: Cannot find module 'linguist-languages/data/JSON5'. +src/language-js/index.js(81,60): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude src/language-js/needs-parens.js(871,14): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray<(childPath: any) => any>[]): ((childPath: any) => any)[]', gave the following error. Argument of type '(string | number)[]' is not assignable to parameter of type 'ConcatArray<(childPath: any) => any>'. @@ -260,17 +273,18 @@ src/language-js/printer-estree.js(6130,7): error TS2769: No overload matches thi Argument of type '(string | number)[]' is not assignable to parameter of type '((childPath: any) => any) | ConcatArray<(childPath: any) => any>'. Type '(string | number)[]' is not assignable to type 'ConcatArray<(childPath: any) => any>'. src/language-js/utils.js(107,55): error TS2554: Expected 0-1 arguments, but got 2. -src/language-markdown/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/markdown'. -src/language-markdown/index.js(20,5): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. +src/language-markdown/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/Markdown'. +src/language-markdown/index.js(21,26): error TS2307: Cannot find module 'linguist-languages/data/Markdown'. +src/language-markdown/index.js(21,63): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; filenames: never[]; extensions: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; filenames: never[]; extensions: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude src/language-markdown/printer-markdown.js(278,18): error TS2532: Object is possibly 'undefined'. src/language-markdown/printer-markdown.js(279,17): error TS2532: Object is possibly 'undefined'. src/language-markdown/printer-markdown.js(300,14): error TS2532: Object is possibly 'undefined'. src/language-markdown/utils.js(203,5): error TS2322: Type 'never[]' is not assignable to type 'null'. src/language-markdown/utils.js(213,47): error TS2345: Argument of type 'any[]' is not assignable to parameter of type 'null'. -src/language-yaml/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/yaml'. -src/language-yaml/index.js(8,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. +src/language-yaml/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/YAML'. +src/language-yaml/index.js(8,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude src/language-yaml/printer-yaml.js(226,41): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. Argument of type '"" | { type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. From e97ebb7f1c6ee93ce3ed6a4f996e54f346a0ff44 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Mon, 16 Sep 2019 13:04:22 -0700 Subject: [PATCH 100/159] More efficient scheme for caching flow node reachability --- src/compiler/checker.ts | 20 ++++++++++++++------ src/compiler/types.ts | 4 ++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index ba06e08a301..c49ef71c19d 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -6,6 +6,7 @@ namespace ts { let nextNodeId = 1; let nextMergeId = 1; let nextFlowId = 1; + let nextCheckerId = 1; const enum IterationUse { AllowsSyncIterablesFlag = 1 << 0, @@ -298,6 +299,7 @@ namespace ts { let instantiationDepth = 0; let constraintDepth = 0; let currentNode: Node | undefined; + let checkerId: number; const emptySymbols = createSymbolTable(); const identityMapper: (type: Type) => Type = identity; @@ -842,7 +844,6 @@ namespace ts { const flowLoopTypes: Type[][] = []; const sharedFlowNodes: FlowNode[] = []; const sharedFlowTypes: FlowType[] = []; - const flowNodeReachable: (boolean | undefined)[] = []; const potentialThisCollisions: Node[] = []; const potentialNewTargetCollisions: Node[] = []; const awaitedTypeStack: number[] = []; @@ -16993,17 +16994,21 @@ namespace ts { } function isReachableFlowNode(flow: FlowNode) { - return isReachableFlowNodeWorker(flow, /*skipCacheCheck*/ false); + return isReachableFlowNodeWorker(flow, /*noCacheCheck*/ false); } function isReachableFlowNodeWorker(flow: FlowNode, noCacheCheck: boolean): boolean { while (true) { const flags = flow.flags; - if (flags & FlowFlags.Shared) { + if (flags & (FlowFlags.Shared | FlowFlags.Assignment | FlowFlags.Label)) { if (!noCacheCheck) { - const id = getFlowNodeId(flow); - const reachable = flowNodeReachable[id]; - return reachable !== undefined ? reachable : (flowNodeReachable[id] = isReachableFlowNodeWorker(flow, /*skipCacheCheck*/ true)); + if (flow.checkerId === checkerId) { + return !!(flow.flags & FlowFlags.Reachable); + } + const reachable = isReachableFlowNodeWorker(flow, /*noCacheCheck*/ true); + flow.checkerId = checkerId; + flow.flags = (flow.flags & ~FlowFlags.Reachable) | (reachable ? FlowFlags.Reachable : 0); + return reachable; } noCacheCheck = false; } @@ -32287,6 +32292,9 @@ namespace ts { } function initializeTypeChecker() { + checkerId = nextCheckerId; + nextCheckerId++; + // Bind all source files and propagate errors for (const file of host.getSourceFiles()) { bindSourceFile(file, compilerOptions); diff --git a/src/compiler/types.ts b/src/compiler/types.ts index f80126b64c5..b9931adb604 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2582,6 +2582,8 @@ namespace ts { AfterFinally = 1 << 13, // Injected edge that links post-finally flow with the rest of the graph /** @internal */ Cached = 1 << 14, // Indicates that at least one cross-call cache entry exists for this node, even if not a loop participant + /** @internal */ + Reachable = 1 << 15, // Reachability as computed by isReachableFlowNode Label = BranchLabel | LoopLabel, Condition = TrueCondition | FalseCondition } @@ -2600,6 +2602,8 @@ namespace ts { export interface FlowNodeBase { flags: FlowFlags; id?: number; // Node id used by flow type cache in checker + /** @internal */ + checkerId?: number; // Checker id for FlowFlags.Reachable } export interface FlowLock { From def5e37e6a03d42dd5c0093b70ab22eda36b5c10 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Mon, 16 Sep 2019 14:20:53 -0700 Subject: [PATCH 101/159] Revert "More efficient scheme for caching flow node reachability" This reverts commit e97ebb7f1c6ee93ce3ed6a4f996e54f346a0ff44. --- src/compiler/checker.ts | 20 ++++++-------------- src/compiler/types.ts | 4 ---- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c49ef71c19d..ba06e08a301 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -6,7 +6,6 @@ namespace ts { let nextNodeId = 1; let nextMergeId = 1; let nextFlowId = 1; - let nextCheckerId = 1; const enum IterationUse { AllowsSyncIterablesFlag = 1 << 0, @@ -299,7 +298,6 @@ namespace ts { let instantiationDepth = 0; let constraintDepth = 0; let currentNode: Node | undefined; - let checkerId: number; const emptySymbols = createSymbolTable(); const identityMapper: (type: Type) => Type = identity; @@ -844,6 +842,7 @@ namespace ts { const flowLoopTypes: Type[][] = []; const sharedFlowNodes: FlowNode[] = []; const sharedFlowTypes: FlowType[] = []; + const flowNodeReachable: (boolean | undefined)[] = []; const potentialThisCollisions: Node[] = []; const potentialNewTargetCollisions: Node[] = []; const awaitedTypeStack: number[] = []; @@ -16994,21 +16993,17 @@ namespace ts { } function isReachableFlowNode(flow: FlowNode) { - return isReachableFlowNodeWorker(flow, /*noCacheCheck*/ false); + return isReachableFlowNodeWorker(flow, /*skipCacheCheck*/ false); } function isReachableFlowNodeWorker(flow: FlowNode, noCacheCheck: boolean): boolean { while (true) { const flags = flow.flags; - if (flags & (FlowFlags.Shared | FlowFlags.Assignment | FlowFlags.Label)) { + if (flags & FlowFlags.Shared) { if (!noCacheCheck) { - if (flow.checkerId === checkerId) { - return !!(flow.flags & FlowFlags.Reachable); - } - const reachable = isReachableFlowNodeWorker(flow, /*noCacheCheck*/ true); - flow.checkerId = checkerId; - flow.flags = (flow.flags & ~FlowFlags.Reachable) | (reachable ? FlowFlags.Reachable : 0); - return reachable; + const id = getFlowNodeId(flow); + const reachable = flowNodeReachable[id]; + return reachable !== undefined ? reachable : (flowNodeReachable[id] = isReachableFlowNodeWorker(flow, /*skipCacheCheck*/ true)); } noCacheCheck = false; } @@ -32292,9 +32287,6 @@ namespace ts { } function initializeTypeChecker() { - checkerId = nextCheckerId; - nextCheckerId++; - // Bind all source files and propagate errors for (const file of host.getSourceFiles()) { bindSourceFile(file, compilerOptions); diff --git a/src/compiler/types.ts b/src/compiler/types.ts index b9931adb604..f80126b64c5 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2582,8 +2582,6 @@ namespace ts { AfterFinally = 1 << 13, // Injected edge that links post-finally flow with the rest of the graph /** @internal */ Cached = 1 << 14, // Indicates that at least one cross-call cache entry exists for this node, even if not a loop participant - /** @internal */ - Reachable = 1 << 15, // Reachability as computed by isReachableFlowNode Label = BranchLabel | LoopLabel, Condition = TrueCondition | FalseCondition } @@ -2602,8 +2600,6 @@ namespace ts { export interface FlowNodeBase { flags: FlowFlags; id?: number; // Node id used by flow type cache in checker - /** @internal */ - checkerId?: number; // Checker id for FlowFlags.Reachable } export interface FlowLock { From 6d6c620cc2e047047f8aba4eb7fe6acea81d77b4 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Mon, 16 Sep 2019 15:30:45 -0700 Subject: [PATCH 102/159] Report grammatic and type-based unreachable code errors in the same way --- src/compiler/binder.ts | 3 +++ src/compiler/checker.ts | 10 +++++----- src/compiler/types.ts | 4 +++- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 5006e841dc7..cf93ee17ebd 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -672,6 +672,9 @@ namespace ts { bindJSDoc(node); return; } + if (node.kind >= SyntaxKind.FirstStatement && node.kind <= SyntaxKind.LastStatement) { + node.flowNode = currentFlow; + } switch (node.kind) { case SyntaxKind.WhileStatement: bindWhileStatement(node); diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index ba06e08a301..501e6c4d92e 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -17057,11 +17057,7 @@ namespace ts { // on empty arrays are possible without implicit any errors and new element types can be inferred without // type mismatch errors. const resultType = getObjectFlags(evolvedType) & ObjectFlags.EvolvingArray && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType); - if (resultType === unreachableNeverType) { - error(reference, Diagnostics.Unreachable_code_detected); - return declaredType; - } - if (reference.parent && reference.parent.kind === SyntaxKind.NonNullExpression && getTypeWithFacts(resultType, TypeFacts.NEUndefinedOrNull).flags & TypeFlags.Never) { + if (resultType === unreachableNeverType|| reference.parent && reference.parent.kind === SyntaxKind.NonNullExpression && getTypeWithFacts(resultType, TypeFacts.NEUndefinedOrNull).flags & TypeFlags.Never) { return declaredType; } return resultType; @@ -30533,6 +30529,10 @@ namespace ts { cancellationToken.throwIfCancellationRequested(); } } + if (kind >= SyntaxKind.FirstStatement && kind <= SyntaxKind.LastStatement && + !compilerOptions.allowUnreachableCode && node.flowNode && !isReachableFlowNode(node.flowNode)) { + errorOrSuggestion(compilerOptions.allowUnreachableCode === false, node, Diagnostics.Unreachable_code_detected); + } switch (kind) { case SyntaxKind.TypeParameter: diff --git a/src/compiler/types.ts b/src/compiler/types.ts index f80126b64c5..afb53aea7a3 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -363,8 +363,8 @@ namespace ts { SemicolonClassElement, // Element Block, - VariableStatement, EmptyStatement, + VariableStatement, ExpressionStatement, IfStatement, DoStatement, @@ -514,6 +514,8 @@ namespace ts { LastTemplateToken = TemplateTail, FirstBinaryOperator = LessThanToken, LastBinaryOperator = CaretEqualsToken, + FirstStatement = VariableStatement, + LastStatement = DebuggerStatement, FirstNode = QualifiedName, FirstJSDocNode = JSDocTypeExpression, LastJSDocNode = JSDocPropertyTag, From d9c9129720536f2d989772ab2498b900471d83e2 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Mon, 16 Sep 2019 15:56:55 -0700 Subject: [PATCH 103/159] Ignore references in with statements in getTypeOfDottedName --- src/compiler/checker.ts | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 501e6c4d92e..ca55f755b7b 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -16945,18 +16945,20 @@ namespace ts { // parameter symbols with declarations that have explicit type annotations. Such references are // resolvable with no possibility of triggering circularities in control flow analysis. function getTypeOfDottedName(node: Expression): Type | undefined { - switch (node.kind) { - case SyntaxKind.Identifier: - const symbol = getResolvedSymbol(node); - return getExplicitTypeOfSymbol(symbol.flags & SymbolFlags.Alias ? resolveAlias(symbol) : symbol); - case SyntaxKind.ThisKeyword: - return checkThisExpression(node); - case SyntaxKind.PropertyAccessExpression: - const type = getTypeOfDottedName((node).expression); - const prop = type && getPropertyOfType(type, (node).name.escapedText); - return prop && getExplicitTypeOfSymbol(prop); - case SyntaxKind.ParenthesizedExpression: - return getTypeOfDottedName((node).expression); + if (!(node.flags & NodeFlags.InWithStatement)) { + switch (node.kind) { + case SyntaxKind.Identifier: + const symbol = getResolvedSymbol(node); + return getExplicitTypeOfSymbol(symbol.flags & SymbolFlags.Alias ? resolveAlias(symbol) : symbol); + case SyntaxKind.ThisKeyword: + return checkThisExpression(node); + case SyntaxKind.PropertyAccessExpression: + const type = getTypeOfDottedName((node).expression); + const prop = type && getPropertyOfType(type, (node).name.escapedText); + return prop && getExplicitTypeOfSymbol(prop); + case SyntaxKind.ParenthesizedExpression: + return getTypeOfDottedName((node).expression); + } } } From 282a7aff6e984ddee05561a557b08034f35f113f Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Mon, 16 Sep 2019 15:58:42 -0700 Subject: [PATCH 104/159] Accept new API baselines --- tests/baselines/reference/api/tsserverlibrary.d.ts | 6 ++++-- tests/baselines/reference/api/typescript.d.ts | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 121c14b4056..3ebd9418f8b 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -298,8 +298,8 @@ declare namespace ts { TemplateSpan = 218, SemicolonClassElement = 219, Block = 220, - VariableStatement = 221, - EmptyStatement = 222, + EmptyStatement = 221, + VariableStatement = 222, ExpressionStatement = 223, IfStatement = 224, DoStatement = 225, @@ -423,6 +423,8 @@ declare namespace ts { LastTemplateToken = 17, FirstBinaryOperator = 28, LastBinaryOperator = 72, + FirstStatement = 222, + LastStatement = 238, FirstNode = 150, FirstJSDocNode = 290, LastJSDocNode = 314, diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 22ed36d7ff9..e4d4648b172 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -298,8 +298,8 @@ declare namespace ts { TemplateSpan = 218, SemicolonClassElement = 219, Block = 220, - VariableStatement = 221, - EmptyStatement = 222, + EmptyStatement = 221, + VariableStatement = 222, ExpressionStatement = 223, IfStatement = 224, DoStatement = 225, @@ -423,6 +423,8 @@ declare namespace ts { LastTemplateToken = 17, FirstBinaryOperator = 28, LastBinaryOperator = 72, + FirstStatement = 222, + LastStatement = 238, FirstNode = 150, FirstJSDocNode = 290, LastJSDocNode = 314, From 58e0469252a244b3b1fae44b133657495dca03a6 Mon Sep 17 00:00:00 2001 From: xiaofa Date: Tue, 17 Sep 2019 18:56:19 +0800 Subject: [PATCH 105/159] fix typo --- src/services/codefixes/convertConstToLet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/codefixes/convertConstToLet.ts b/src/services/codefixes/convertConstToLet.ts index df027f7d8c8..610aaf5daa4 100644 --- a/src/services/codefixes/convertConstToLet.ts +++ b/src/services/codefixes/convertConstToLet.ts @@ -7,14 +7,14 @@ namespace ts.codefix { errorCodes, getCodeActions: context => { const { sourceFile, span, program } = context; - const variableStatement = getVaribleStatement(sourceFile, span.start, program); + const variableStatement = getVariableStatement(sourceFile, span.start, program); const changes = textChanges.ChangeTracker.with(context, t => doChange(t, sourceFile, variableStatement)); return [createCodeFixAction(fixId, changes, Diagnostics.Convert_const_to_let, fixId, Diagnostics.Convert_const_to_let)]; }, fixIds: [fixId] }); - function getVaribleStatement(sourceFile: SourceFile, pos: number, program: Program) { + function getVariableStatement(sourceFile: SourceFile, pos: number, program: Program) { const token = getTokenAtPosition(sourceFile, pos); const checker = program.getTypeChecker(); const symbol = checker.getSymbolAtLocation(token); From 8cbf69489cd1974354ae07c81a4f03dc251d84b3 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 17 Sep 2019 07:01:07 -0700 Subject: [PATCH 106/159] Cache last isReachableFlowNode result + switch statement CFA fix --- src/compiler/checker.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index ca55f755b7b..9e331dd0854 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -820,6 +820,8 @@ namespace ts { let flowLoopCount = 0; let sharedFlowCount = 0; let flowAnalysisDisabled = false; + let lastFlowNode: FlowNode | undefined; + let lastFlowNodeReachable: boolean; const emptyStringType = getLiteralType(""); const zeroType = getLiteralType(0); @@ -16995,11 +16997,17 @@ namespace ts { } function isReachableFlowNode(flow: FlowNode) { - return isReachableFlowNodeWorker(flow, /*skipCacheCheck*/ false); + const result = isReachableFlowNodeWorker(flow, /*skipCacheCheck*/ false); + lastFlowNode = flow; + lastFlowNodeReachable = result; + return result; } function isReachableFlowNodeWorker(flow: FlowNode, noCacheCheck: boolean): boolean { while (true) { + if (flow === lastFlowNode) { + return lastFlowNodeReachable; + } const flags = flow.flags; if (flags & FlowFlags.Shared) { if (!noCacheCheck) { @@ -17329,9 +17337,6 @@ namespace ts { } function getTypeAtSwitchClause(flow: FlowSwitchClause): FlowType { - if (flow.clauseStart === flow.clauseEnd && isExhaustiveSwitchStatement(flow.switchStatement)) { - return neverType; - } const expr = flow.switchStatement.expression; const flowType = getTypeAtFlowNode(flow.antecedent); let type = getTypeFromFlowType(flowType); @@ -17350,6 +17355,9 @@ namespace ts { else if (containsMatchingReferenceDiscriminant(reference, expr)) { type = declaredType; } + else if (flow.clauseStart === flow.clauseEnd && isExhaustiveSwitchStatement(flow.switchStatement)) { + return unreachableNeverType; + } return createFlowType(type, isIncomplete(flowType)); } From 946602599611aa542d558f0b68436f7cac0584df Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 17 Sep 2019 07:41:36 -0700 Subject: [PATCH 107/159] Accept new baselines --- tests/baselines/reference/narrowingByTypeofInSwitch.types | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/baselines/reference/narrowingByTypeofInSwitch.types b/tests/baselines/reference/narrowingByTypeofInSwitch.types index fbfe7fe92ee..f823c57770c 100644 --- a/tests/baselines/reference/narrowingByTypeofInSwitch.types +++ b/tests/baselines/reference/narrowingByTypeofInSwitch.types @@ -208,7 +208,7 @@ function testExtendsUnion(x: T) { assertAll(x); >assertAll(x) : Basic >assertAll : (x: Basic) => Basic ->x : never +>x : T } function testAny(x: any) { From f10e38fea7996f746b79fc86f6fd47c1516cb307 Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Mon, 16 Sep 2019 19:08:01 -0700 Subject: [PATCH 108/159] Make extractSymbol explicitly drop JSDoc nodes Fixes #33332 --- src/compiler/utilities.ts | 2 ++ src/services/refactors/extractSymbol.ts | 5 +++++ src/testRunner/unittests/services/extract/ranges.ts | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index b338d3ba657..cb71df1fa93 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -975,6 +975,8 @@ namespace ts { return getSpanOfTokenAtPosition(sourceFile, node.pos); } + Debug.assert(!isJSDoc(errorNode)); + const isMissing = nodeIsMissing(errorNode); const pos = isMissing || isJsxText(node) ? errorNode.pos diff --git a/src/services/refactors/extractSymbol.ts b/src/services/refactors/extractSymbol.ts index 859f7e1d3cc..e7f57a57351 100644 --- a/src/services/refactors/extractSymbol.ts +++ b/src/services/refactors/extractSymbol.ts @@ -116,6 +116,7 @@ namespace ts.refactor.extractSymbol { export const cannotExtractRange: DiagnosticMessage = createMessage("Cannot extract range."); export const cannotExtractImport: DiagnosticMessage = createMessage("Cannot extract import statement."); export const cannotExtractSuper: DiagnosticMessage = createMessage("Cannot extract super call."); + export const cannotExtractJSDoc: DiagnosticMessage = createMessage("Cannot extract JSDoc."); export const cannotExtractEmpty: DiagnosticMessage = createMessage("Cannot extract empty range."); export const expressionExpected: DiagnosticMessage = createMessage("expression expected."); export const uselessConstantType: DiagnosticMessage = createMessage("No reason to extract constant of type."); @@ -246,6 +247,10 @@ namespace ts.refactor.extractSymbol { return { targetRange: { range: statements, facts: rangeFacts, declarations } }; } + if (isJSDoc(start)) { + return { errors: [createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractJSDoc)] }; + } + if (isReturnStatement(start) && !start.expression) { // Makes no sense to extract an expression-less return statement. return { errors: [createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] }; diff --git a/src/testRunner/unittests/services/extract/ranges.ts b/src/testRunner/unittests/services/extract/ranges.ts index d2ac6a0a883..ab205288b33 100644 --- a/src/testRunner/unittests/services/extract/ranges.ts +++ b/src/testRunner/unittests/services/extract/ranges.ts @@ -380,6 +380,10 @@ switch (x) { `[#|{ 1;|] }`, [refactor.extractSymbol.Messages.cannotExtractRange.message]); + testExtractRangeFailed("extractRangeFailed19", + `[#|/** @type {number} */|] const foo = 1;`, + [refactor.extractSymbol.Messages.cannotExtractJSDoc.message]); + testExtractRangeFailed("extract-method-not-for-token-expression-statement", `[#|a|]`, [refactor.extractSymbol.Messages.cannotExtractIdentifier.message]); }); } From 800eaedbfa9d34eb136496e24bc026e5ad1dc9d5 Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Tue, 17 Sep 2019 11:36:09 -0700 Subject: [PATCH 109/159] =?UTF-8?q?=F0=9F=A4=96=20User=20test=20baselines?= =?UTF-8?q?=20have=20changed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/baselines/reference/docker/azure-sdk.log | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/baselines/reference/docker/azure-sdk.log b/tests/baselines/reference/docker/azure-sdk.log index 347a6c188a9..fb911c5a367 100644 --- a/tests/baselines/reference/docker/azure-sdk.log +++ b/tests/baselines/reference/docker/azure-sdk.log @@ -9,12 +9,11 @@ XX of XX: [@azure/abort-controller] completed successfully in ? seconds XX of XX: [@azure/core-auth] completed successfully in ? seconds XX of XX: [@azure/core-tracing] completed successfully in ? seconds XX of XX: [@azure/core-http] completed successfully in ? seconds -XX of XX: [@azure/identity] completed successfully in ? seconds -XX of XX: [@azure/core-amqp] completed successfully in ? seconds XX of XX: [@azure/core-arm] completed successfully in ? seconds XX of XX: [@azure/core-paging] completed successfully in ? seconds +XX of XX: [@azure/identity] completed successfully in ? seconds XX of XX: [@azure/test-utils-recorder] completed successfully in ? seconds -XX of XX: [@azure/event-hubs] completed successfully in ? seconds +XX of XX: [@azure/core-amqp] completed successfully in ? seconds XX of XX: [@azure/event-processor-host] completed successfully in ? seconds XX of XX: [@azure/keyvault-keys] completed successfully in ? seconds XX of XX: [@azure/keyvault-secrets] completed successfully in ? seconds @@ -56,6 +55,7 @@ atob (guessing 'atob') (!) Circular dependency: dist-esm/index.js -> dist-esm/CosmosClient.js -> dist-esm/client/Database/index.js -> dist-esm/client/Database/Database.js -> dist-esm/client/Container/index.js -> dist-esm/client/Container/Container.js -> dist-esm/client/Script/Scripts.js -> dist-esm/index.js (!) Circular dependency: dist-esm/request/RequestHandler.js -> dist-esm/retry/retryUtility.js -> dist-esm/request/RequestHandler.js created dist/index.js in ?s +XX of XX: [@azure/event-hubs] completed successfully in ? seconds XX of XX: [@azure/eventhubs-checkpointstore-blob] completed successfully in ? seconds XX of XX: [@azure/keyvault-certificates] completed successfully in ? seconds Warning: You have changed the public API signature for this project. Updating review/service-bus.api.md @@ -70,17 +70,17 @@ SUCCESS (22) @azure/core-auth (? seconds) @azure/core-tracing (? seconds) @azure/core-http (? seconds) -@azure/identity (? seconds) -@azure/core-amqp (? seconds) @azure/core-arm (? seconds) @azure/core-paging (? seconds) +@azure/identity (? seconds) @azure/test-utils-recorder (? seconds) -@azure/event-hubs (? seconds) +@azure/core-amqp (? seconds) @azure/event-processor-host (? seconds) @azure/keyvault-keys (? seconds) @azure/keyvault-secrets (? seconds) @azure/app-configuration (? seconds) @azure/core-asynciterator-polyfill (? seconds) +@azure/event-hubs (? seconds) @azure/eventhubs-checkpointstore-blob (? seconds) @azure/keyvault-certificates (? seconds) @azure/storage-blob (? seconds) From 6bb7e5c086ecbe40dfda84c75b5b5b46a8a389c2 Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Mon, 9 Sep 2019 14:08:00 +0200 Subject: [PATCH 110/159] Handle parentless nodes in isParameterPropertyDeclaration Fixes #33295. This follows a similar pattern as in #20314 by requiring an explicit `parent` parameter. Where possible, it uses the appopriate variable at the call sites. In several locations there is no context available though (e.g. inspecting `valueDeclarations`) and we access `.parent` as the code previously did. From a cursory inspection this seems correct, these callpaths originate in phases where there must be a `parent` (i.e. in checker, binder, etc). Change-Id: I28e4726777b57237bec776e4001e9e69ac591b11 --- src/compiler/binder.ts | 2 +- src/compiler/checker.ts | 4 +-- src/compiler/transformers/classFields.ts | 2 +- .../transformers/declarations/diagnostics.ts | 2 +- src/compiler/transformers/ts.ts | 4 +-- src/compiler/utilities.ts | 6 ++-- src/services/findAllReferences.ts | 4 +-- src/services/navigationBar.ts | 2 +- .../generateGetAccessorAndSetAccessor.ts | 4 +-- src/testRunner/unittests/transform.ts | 30 ++++++++++++++++++- .../reference/api/tsserverlibrary.d.ts | 2 +- tests/baselines/reference/api/typescript.d.ts | 2 +- ...rmsCorrectly.transformParameterProperty.js | 18 +++++++++++ 13 files changed, 64 insertions(+), 18 deletions(-) create mode 100644 tests/baselines/reference/transformApi/transformsCorrectly.transformParameterProperty.js diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 3bc03cdbab9..705ec3b75f4 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -2859,7 +2859,7 @@ namespace ts { // If this is a property-parameter, then also declare the property symbol into the // containing class. - if (isParameterPropertyDeclaration(node)) { + if (isParameterPropertyDeclaration(node, node.parent)) { const classDeclaration = node.parent.parent; declareSymbol(classDeclaration.symbol.members!, classDeclaration.symbol, node, SymbolFlags.Property | (node.questionToken ? SymbolFlags.Optional : SymbolFlags.None), SymbolFlags.PropertyExcludes); } diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index f8c88178885..2fa1d8acf4a 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -25705,7 +25705,7 @@ namespace ts { for (const member of node.members) { if (member.kind === SyntaxKind.Constructor) { for (const param of (member as ConstructorDeclaration).parameters) { - if (isParameterPropertyDeclaration(param) && !isBindingPattern(param.name)) { + if (isParameterPropertyDeclaration(param, member) && !isBindingPattern(param.name)) { addName(instanceNames, param.name, param.name.escapedText, DeclarationMeaning.GetOrSetAccessor); } } @@ -27469,7 +27469,7 @@ namespace ts { const parameter = local.valueDeclaration && tryGetRootParameterDeclaration(local.valueDeclaration); const name = local.valueDeclaration && getNameOfDeclaration(local.valueDeclaration); if (parameter && name) { - if (!isParameterPropertyDeclaration(parameter) && !parameterIsThisKeyword(parameter) && !isIdentifierThatStartsWithUnderscore(name)) { + if (!isParameterPropertyDeclaration(parameter, parameter.parent) && !parameterIsThisKeyword(parameter) && !isIdentifierThatStartsWithUnderscore(name)) { addDiagnostic(parameter, UnusedKind.Parameter, createDiagnosticForNode(name, Diagnostics._0_is_declared_but_its_value_is_never_read, symbolName(local))); } } diff --git a/src/compiler/transformers/classFields.ts b/src/compiler/transformers/classFields.ts index 4efe4ad7b38..37473d9bb20 100644 --- a/src/compiler/transformers/classFields.ts +++ b/src/compiler/transformers/classFields.ts @@ -337,7 +337,7 @@ namespace ts { if (constructor && constructor.body) { let parameterPropertyDeclarationCount = 0; for (let i = indexOfFirstStatement; i < constructor.body.statements.length; i++) { - if (isParameterPropertyDeclaration(getOriginalNode(constructor.body.statements[i]))) { + if (isParameterPropertyDeclaration(getOriginalNode(constructor.body.statements[i]), constructor)) { parameterPropertyDeclarationCount++; } else { diff --git a/src/compiler/transformers/declarations/diagnostics.ts b/src/compiler/transformers/declarations/diagnostics.ts index 61d4dd30a67..91c960ea942 100644 --- a/src/compiler/transformers/declarations/diagnostics.ts +++ b/src/compiler/transformers/declarations/diagnostics.ts @@ -135,7 +135,7 @@ namespace ts { return getReturnTypeVisibilityError; } else if (isParameter(node)) { - if (isParameterPropertyDeclaration(node) && hasModifier(node.parent, ModifierFlags.Private)) { + if (isParameterPropertyDeclaration(node, node.parent) && hasModifier(node.parent, ModifierFlags.Private)) { return getVariableDeclarationTypeVisibilityError; } return getParameterDeclarationTypeVisibilityError; diff --git a/src/compiler/transformers/ts.ts b/src/compiler/transformers/ts.ts index 4cbc8e565df..06b3fb53ec1 100644 --- a/src/compiler/transformers/ts.ts +++ b/src/compiler/transformers/ts.ts @@ -895,7 +895,7 @@ namespace ts { const members: ClassElement[] = []; const constructor = getFirstConstructorWithBody(node); const parametersWithPropertyAssignments = constructor && - filter(constructor.parameters, isParameterPropertyDeclaration); + filter(constructor.parameters, p => isParameterPropertyDeclaration(p, constructor)); if (parametersWithPropertyAssignments) { for (const parameter of parametersWithPropertyAssignments) { @@ -1907,7 +1907,7 @@ namespace ts { function transformConstructorBody(body: Block, constructor: ConstructorDeclaration) { const parametersWithPropertyAssignments = constructor && - filter(constructor.parameters, isParameterPropertyDeclaration); + filter(constructor.parameters, p => isParameterPropertyDeclaration(p, constructor)); if (!some(parametersWithPropertyAssignments)) { return visitFunctionBody(body, visitor, context); } diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index cb71df1fa93..1645b9339ae 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -1009,7 +1009,7 @@ namespace ts { } export function isDeclarationReadonly(declaration: Declaration): boolean { - return !!(getCombinedModifierFlags(declaration) & ModifierFlags.Readonly && !isParameterPropertyDeclaration(declaration)); + return !!(getCombinedModifierFlags(declaration) & ModifierFlags.Readonly && !isParameterPropertyDeclaration(declaration, declaration.parent)); } export function isVarConst(node: VariableDeclaration | VariableDeclarationList): boolean { @@ -4983,8 +4983,8 @@ namespace ts { } export type ParameterPropertyDeclaration = ParameterDeclaration & { parent: ConstructorDeclaration, name: Identifier }; - export function isParameterPropertyDeclaration(node: Node): node is ParameterPropertyDeclaration { - return hasModifier(node, ModifierFlags.ParameterPropertyModifier) && node.parent.kind === SyntaxKind.Constructor; + export function isParameterPropertyDeclaration(node: Node, parent: Node): node is ParameterPropertyDeclaration { + return hasModifier(node, ModifierFlags.ParameterPropertyModifier) && parent.kind === SyntaxKind.Constructor; } export function isEmptyBindingPattern(node: BindingName): node is BindingPattern { diff --git a/src/services/findAllReferences.ts b/src/services/findAllReferences.ts index 5d667ee55a4..f98fb2f75b8 100644 --- a/src/services/findAllReferences.ts +++ b/src/services/findAllReferences.ts @@ -1145,7 +1145,7 @@ namespace ts.FindAllReferences.Core { } export function eachSymbolReferenceInFile(definition: Identifier, checker: TypeChecker, sourceFile: SourceFile, cb: (token: Identifier) => T): T | undefined { - const symbol = isParameterPropertyDeclaration(definition.parent) + const symbol = isParameterPropertyDeclaration(definition.parent, definition.parent.parent) ? first(checker.getSymbolsOfParameterPropertyDeclaration(definition.parent, definition.text)) : checker.getSymbolAtLocation(definition); if (!symbol) return undefined; @@ -1886,7 +1886,7 @@ namespace ts.FindAllReferences.Core { const res = fromRoot(symbol); if (res) return res; - if (symbol.valueDeclaration && isParameterPropertyDeclaration(symbol.valueDeclaration)) { + if (symbol.valueDeclaration && isParameterPropertyDeclaration(symbol.valueDeclaration, symbol.valueDeclaration.parent)) { // For a parameter property, now try on the other symbol (property if this was a parameter, parameter if this was a property). const paramProps = checker.getSymbolsOfParameterPropertyDeclaration(cast(symbol.valueDeclaration, isParameter), symbol.name); Debug.assert(paramProps.length === 2 && !!(paramProps[0].flags & SymbolFlags.FunctionScopedVariable) && !!(paramProps[1].flags & SymbolFlags.Property)); // is [parameter, property] diff --git a/src/services/navigationBar.ts b/src/services/navigationBar.ts index 7a91fcdcad2..dd3bdcffd32 100644 --- a/src/services/navigationBar.ts +++ b/src/services/navigationBar.ts @@ -197,7 +197,7 @@ namespace ts.NavigationBar { // Parameter properties are children of the class, not the constructor. for (const param of ctr.parameters) { - if (isParameterPropertyDeclaration(param)) { + if (isParameterPropertyDeclaration(param, ctr)) { addLeafNode(param); } } diff --git a/src/services/refactors/generateGetAccessorAndSetAccessor.ts b/src/services/refactors/generateGetAccessorAndSetAccessor.ts index 7e4ca1a6645..a1bd32b37fc 100644 --- a/src/services/refactors/generateGetAccessorAndSetAccessor.ts +++ b/src/services/refactors/generateGetAccessorAndSetAccessor.ts @@ -92,7 +92,7 @@ namespace ts.refactor.generateGetAccessorAndSetAccessor { } function isAcceptedDeclaration(node: Node): node is AcceptedDeclaration { - return isParameterPropertyDeclaration(node) || isPropertyDeclaration(node) || isPropertyAssignment(node); + return isParameterPropertyDeclaration(node, node.parent) || isPropertyDeclaration(node) || isPropertyAssignment(node); } function createPropertyName (name: string, originalName: AcceptedNameType) { @@ -214,7 +214,7 @@ namespace ts.refactor.generateGetAccessorAndSetAccessor { } function insertAccessor(changeTracker: textChanges.ChangeTracker, file: SourceFile, accessor: AccessorDeclaration, declaration: AcceptedDeclaration, container: ContainerDeclaration) { - isParameterPropertyDeclaration(declaration) ? changeTracker.insertNodeAtClassStart(file, container, accessor) : + isParameterPropertyDeclaration(declaration, declaration.parent) ? changeTracker.insertNodeAtClassStart(file, container, accessor) : isPropertyAssignment(declaration) ? changeTracker.insertNodeAfterComma(file, declaration, accessor) : changeTracker.insertNodeAfter(file, declaration, accessor); } diff --git a/src/testRunner/unittests/transform.ts b/src/testRunner/unittests/transform.ts index 5203e69e813..ffd5ba7609f 100644 --- a/src/testRunner/unittests/transform.ts +++ b/src/testRunner/unittests/transform.ts @@ -300,6 +300,34 @@ namespace ts { }); }); + // https://github.com/microsoft/TypeScript/issues/33295 + testBaseline("transformParameterProperty", () => { + return transpileModule("", { + transformers: { + before: [transformAddParameterProperty], + }, + compilerOptions: { + target: ScriptTarget.ES5, + newLine: NewLineKind.CarriageReturnLineFeed, + } + }).outputText; + + function transformAddParameterProperty(_context: TransformationContext) { + return (sourceFile: SourceFile): SourceFile => { + return visitNode(sourceFile); + }; + function visitNode(sf: SourceFile) { + // produce `class Foo { constructor(@Dec private x) {} }`; + // The decorator is required to trigger ts.ts transformations. + const classDecl = createClassDeclaration([], [], "Foo", /*typeParameters*/ undefined, /*heritageClauses*/ undefined, [ + createConstructor(/*decorators*/ undefined, /*modifiers*/ undefined, [ + createParameter(/*decorators*/ [createDecorator(createIdentifier("Dec"))], /*modifiers*/ [createModifier(SyntaxKind.PrivateKeyword)], /*dotDotDotToken*/ undefined, "x")], createBlock([])) + ]); + return updateSourceFileNode(sf, [classDecl]); + } + } + }); + function baselineDeclarationTransform(text: string, opts: TranspileOptions) { const fs = vfs.createFromFileSystem(Harness.IO, /*caseSensitive*/ true, { documents: [new documents.TextDocument("/.src/index.ts", text)] }); const host = new fakes.CompilerHost(fs, opts.compilerOptions); @@ -389,7 +417,7 @@ class Clazz { } `, { transformers: { - before: [addSyntheticComment(n => isPropertyDeclaration(n) || isParameterPropertyDeclaration(n) || isClassDeclaration(n) || isConstructorDeclaration(n))], + before: [addSyntheticComment(n => isPropertyDeclaration(n) || isParameterPropertyDeclaration(n, n.parent) || isClassDeclaration(n) || isConstructorDeclaration(n))], }, compilerOptions: { target: ScriptTarget.ES2015, diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 41ea5756204..58d513b2e0a 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -3274,7 +3274,7 @@ declare namespace ts { parent: ConstructorDeclaration; name: Identifier; }; - function isParameterPropertyDeclaration(node: Node): node is ParameterPropertyDeclaration; + function isParameterPropertyDeclaration(node: Node, parent: Node): node is ParameterPropertyDeclaration; function isEmptyBindingPattern(node: BindingName): node is BindingPattern; function isEmptyBindingElement(node: BindingElement): boolean; function walkUpBindingElementsAndPatterns(binding: BindingElement): VariableDeclaration | ParameterDeclaration; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 8402150f2a0..bc71eaffa37 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -3274,7 +3274,7 @@ declare namespace ts { parent: ConstructorDeclaration; name: Identifier; }; - function isParameterPropertyDeclaration(node: Node): node is ParameterPropertyDeclaration; + function isParameterPropertyDeclaration(node: Node, parent: Node): node is ParameterPropertyDeclaration; function isEmptyBindingPattern(node: BindingName): node is BindingPattern; function isEmptyBindingElement(node: BindingElement): boolean; function walkUpBindingElementsAndPatterns(binding: BindingElement): VariableDeclaration | ParameterDeclaration; diff --git a/tests/baselines/reference/transformApi/transformsCorrectly.transformParameterProperty.js b/tests/baselines/reference/transformApi/transformsCorrectly.transformParameterProperty.js new file mode 100644 index 00000000000..d121694872f --- /dev/null +++ b/tests/baselines/reference/transformApi/transformsCorrectly.transformParameterProperty.js @@ -0,0 +1,18 @@ +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +var Foo = /** @class */ (function () { + function Foo(x) { + this.x = x; + } + Foo = __decorate([ + __param(0, Dec) + ], Foo); + return Foo; +}()); From 56e2cb31ad95b08fa4f4c9578522777c18b687b2 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Tue, 17 Sep 2019 15:36:00 -0700 Subject: [PATCH 111/159] Reverse mapped types should have inferable indexes if their source had an inferable index (#33450) --- src/compiler/checker.ts | 6 +-- .../reverseMappedTypeAssignableToIndex.js | 22 ++++++++ ...reverseMappedTypeAssignableToIndex.symbols | 54 +++++++++++++++++++ .../reverseMappedTypeAssignableToIndex.types | 42 +++++++++++++++ .../reverseMappedTypeAssignableToIndex.ts | 19 +++++++ 5 files changed, 140 insertions(+), 3 deletions(-) create mode 100644 tests/baselines/reference/reverseMappedTypeAssignableToIndex.js create mode 100644 tests/baselines/reference/reverseMappedTypeAssignableToIndex.symbols create mode 100644 tests/baselines/reference/reverseMappedTypeAssignableToIndex.types create mode 100644 tests/cases/compiler/reverseMappedTypeAssignableToIndex.ts diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 2fa1d8acf4a..e3907885a4c 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -15004,9 +15004,9 @@ namespace ts { * Return true if type was inferred from an object literal, written as an object type literal, or is the shape of a module * with no call or construct signatures. */ - function isObjectTypeWithInferableIndex(type: Type) { - return type.symbol && (type.symbol.flags & (SymbolFlags.ObjectLiteral | SymbolFlags.TypeLiteral | SymbolFlags.Enum | SymbolFlags.ValueModule)) !== 0 && - !typeHasCallOrConstructSignatures(type); + function isObjectTypeWithInferableIndex(type: Type): boolean { + return !!(type.symbol && (type.symbol.flags & (SymbolFlags.ObjectLiteral | SymbolFlags.TypeLiteral | SymbolFlags.Enum | SymbolFlags.ValueModule)) !== 0 && + !typeHasCallOrConstructSignatures(type)) || !!(getObjectFlags(type) & ObjectFlags.ReverseMapped && isObjectTypeWithInferableIndex((type as ReverseMappedType).source)); } function createSymbolWithType(source: Symbol, type: Type | undefined) { diff --git a/tests/baselines/reference/reverseMappedTypeAssignableToIndex.js b/tests/baselines/reference/reverseMappedTypeAssignableToIndex.js new file mode 100644 index 00000000000..b3ee2dcda2e --- /dev/null +++ b/tests/baselines/reference/reverseMappedTypeAssignableToIndex.js @@ -0,0 +1,22 @@ +//// [reverseMappedTypeAssignableToIndex.ts] +// Simple mapped type and inferrence +type Mapped = { [K in keyof T]: { name: T[K] } }; +type InferFromMapped = T extends Mapped ? R : never; + +// Object literal type and associated mapped type +// Note that in the real code we don't have a direct reference to LiteralType +type LiteralType = { + first: "first"; + second: "second"; +} +type MappedLiteralType = { + first: { name: "first" }, + second: { name: "second" }, +}; + +type Inferred = InferFromMapped; + +// UNEXPECTED resolves to false +type Test1 = Inferred extends Record ? true : false; + +//// [reverseMappedTypeAssignableToIndex.js] diff --git a/tests/baselines/reference/reverseMappedTypeAssignableToIndex.symbols b/tests/baselines/reference/reverseMappedTypeAssignableToIndex.symbols new file mode 100644 index 00000000000..38ed9ff039f --- /dev/null +++ b/tests/baselines/reference/reverseMappedTypeAssignableToIndex.symbols @@ -0,0 +1,54 @@ +=== tests/cases/compiler/reverseMappedTypeAssignableToIndex.ts === +// Simple mapped type and inferrence +type Mapped = { [K in keyof T]: { name: T[K] } }; +>Mapped : Symbol(Mapped, Decl(reverseMappedTypeAssignableToIndex.ts, 0, 0)) +>T : Symbol(T, Decl(reverseMappedTypeAssignableToIndex.ts, 1, 12)) +>K : Symbol(K, Decl(reverseMappedTypeAssignableToIndex.ts, 1, 20)) +>T : Symbol(T, Decl(reverseMappedTypeAssignableToIndex.ts, 1, 12)) +>name : Symbol(name, Decl(reverseMappedTypeAssignableToIndex.ts, 1, 36)) +>T : Symbol(T, Decl(reverseMappedTypeAssignableToIndex.ts, 1, 12)) +>K : Symbol(K, Decl(reverseMappedTypeAssignableToIndex.ts, 1, 20)) + +type InferFromMapped = T extends Mapped ? R : never; +>InferFromMapped : Symbol(InferFromMapped, Decl(reverseMappedTypeAssignableToIndex.ts, 1, 52)) +>T : Symbol(T, Decl(reverseMappedTypeAssignableToIndex.ts, 2, 21)) +>T : Symbol(T, Decl(reverseMappedTypeAssignableToIndex.ts, 2, 21)) +>Mapped : Symbol(Mapped, Decl(reverseMappedTypeAssignableToIndex.ts, 0, 0)) +>R : Symbol(R, Decl(reverseMappedTypeAssignableToIndex.ts, 2, 48)) +>R : Symbol(R, Decl(reverseMappedTypeAssignableToIndex.ts, 2, 48)) + +// Object literal type and associated mapped type +// Note that in the real code we don't have a direct reference to LiteralType +type LiteralType = { +>LiteralType : Symbol(LiteralType, Decl(reverseMappedTypeAssignableToIndex.ts, 2, 64)) + + first: "first"; +>first : Symbol(first, Decl(reverseMappedTypeAssignableToIndex.ts, 6, 20)) + + second: "second"; +>second : Symbol(second, Decl(reverseMappedTypeAssignableToIndex.ts, 7, 16)) +} +type MappedLiteralType = { +>MappedLiteralType : Symbol(MappedLiteralType, Decl(reverseMappedTypeAssignableToIndex.ts, 9, 1)) + + first: { name: "first" }, +>first : Symbol(first, Decl(reverseMappedTypeAssignableToIndex.ts, 10, 26)) +>name : Symbol(name, Decl(reverseMappedTypeAssignableToIndex.ts, 11, 9)) + + second: { name: "second" }, +>second : Symbol(second, Decl(reverseMappedTypeAssignableToIndex.ts, 11, 26)) +>name : Symbol(name, Decl(reverseMappedTypeAssignableToIndex.ts, 12, 10)) + +}; + +type Inferred = InferFromMapped; +>Inferred : Symbol(Inferred, Decl(reverseMappedTypeAssignableToIndex.ts, 13, 2)) +>InferFromMapped : Symbol(InferFromMapped, Decl(reverseMappedTypeAssignableToIndex.ts, 1, 52)) +>MappedLiteralType : Symbol(MappedLiteralType, Decl(reverseMappedTypeAssignableToIndex.ts, 9, 1)) + +// UNEXPECTED resolves to false +type Test1 = Inferred extends Record ? true : false; +>Test1 : Symbol(Test1, Decl(reverseMappedTypeAssignableToIndex.ts, 15, 51)) +>Inferred : Symbol(Inferred, Decl(reverseMappedTypeAssignableToIndex.ts, 13, 2)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) + diff --git a/tests/baselines/reference/reverseMappedTypeAssignableToIndex.types b/tests/baselines/reference/reverseMappedTypeAssignableToIndex.types new file mode 100644 index 00000000000..589e9ff3477 --- /dev/null +++ b/tests/baselines/reference/reverseMappedTypeAssignableToIndex.types @@ -0,0 +1,42 @@ +=== tests/cases/compiler/reverseMappedTypeAssignableToIndex.ts === +// Simple mapped type and inferrence +type Mapped = { [K in keyof T]: { name: T[K] } }; +>Mapped : Mapped +>name : T[K] + +type InferFromMapped = T extends Mapped ? R : never; +>InferFromMapped : InferFromMapped + +// Object literal type and associated mapped type +// Note that in the real code we don't have a direct reference to LiteralType +type LiteralType = { +>LiteralType : LiteralType + + first: "first"; +>first : "first" + + second: "second"; +>second : "second" +} +type MappedLiteralType = { +>MappedLiteralType : MappedLiteralType + + first: { name: "first" }, +>first : { name: "first"; } +>name : "first" + + second: { name: "second" }, +>second : { name: "second"; } +>name : "second" + +}; + +type Inferred = InferFromMapped; +>Inferred : { first: "first"; second: "second"; } + +// UNEXPECTED resolves to false +type Test1 = Inferred extends Record ? true : false; +>Test1 : true +>true : true +>false : false + diff --git a/tests/cases/compiler/reverseMappedTypeAssignableToIndex.ts b/tests/cases/compiler/reverseMappedTypeAssignableToIndex.ts new file mode 100644 index 00000000000..a1244fe8eb2 --- /dev/null +++ b/tests/cases/compiler/reverseMappedTypeAssignableToIndex.ts @@ -0,0 +1,19 @@ +// Simple mapped type and inferrence +type Mapped = { [K in keyof T]: { name: T[K] } }; +type InferFromMapped = T extends Mapped ? R : never; + +// Object literal type and associated mapped type +// Note that in the real code we don't have a direct reference to LiteralType +type LiteralType = { + first: "first"; + second: "second"; +} +type MappedLiteralType = { + first: { name: "first" }, + second: { name: "second" }, +}; + +type Inferred = InferFromMapped; + +// UNEXPECTED resolves to false +type Test1 = Inferred extends Record ? true : false; \ No newline at end of file From 344dba8809e82ff74b9616c872fa5a781c264d42 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 17 Sep 2019 21:02:12 -0700 Subject: [PATCH 112/159] Fix incorrect parameter types for AsyncIterator next/return (#33354) --- src/compiler/checker.ts | 6 ++-- src/lib/es2018.asyncgenerator.d.ts | 2 +- src/lib/es2018.asynciterable.d.ts | 2 +- .../reference/customAsyncIterator.js | 26 ++++++++++++++ .../reference/customAsyncIterator.symbols | 35 +++++++++++++++++++ .../reference/customAsyncIterator.types | 32 +++++++++++++++++ .../types.asyncGenerators.es2018.1.symbols | 9 +++++ .../types.asyncGenerators.es2018.1.types | 9 +++++ .../types.asyncGenerators.es2018.2.errors.txt | 20 +++++------ tests/cases/compiler/customAsyncIterator.ts | 13 +++++++ .../types.asyncGenerators.es2018.1.ts | 3 ++ 11 files changed, 143 insertions(+), 14 deletions(-) create mode 100644 tests/baselines/reference/customAsyncIterator.js create mode 100644 tests/baselines/reference/customAsyncIterator.symbols create mode 100644 tests/baselines/reference/customAsyncIterator.types create mode 100644 tests/cases/compiler/customAsyncIterator.ts diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index e3907885a4c..9a8cf2f8038 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -28740,11 +28740,13 @@ namespace ts { let nextType: Type | undefined; if (methodName !== "throw") { const methodParameterType = methodParameterTypes ? getUnionType(methodParameterTypes) : unknownType; - const resolvedMethodParameterType = resolver.resolveIterationType(methodParameterType, errorNode) || anyType; if (methodName === "next") { - nextType = resolvedMethodParameterType; + // The value of `next(value)` is *not* awaited by async generators + nextType = methodParameterType; } else if (methodName === "return") { + // The value of `return(value)` *is* awaited by async generators + const resolvedMethodParameterType = resolver.resolveIterationType(methodParameterType, errorNode) || anyType; returnTypes = append(returnTypes, resolvedMethodParameterType); } } diff --git a/src/lib/es2018.asyncgenerator.d.ts b/src/lib/es2018.asyncgenerator.d.ts index 76275c92575..f6966264c8b 100644 --- a/src/lib/es2018.asyncgenerator.d.ts +++ b/src/lib/es2018.asyncgenerator.d.ts @@ -2,7 +2,7 @@ interface AsyncGenerator extends AsyncIterator { // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. - next(...args: [] | [TNext | PromiseLike]): Promise>; + next(...args: [] | [TNext]): Promise>; return(value: TReturn | PromiseLike): Promise>; throw(e: any): Promise>; [Symbol.asyncIterator](): AsyncGenerator; diff --git a/src/lib/es2018.asynciterable.d.ts b/src/lib/es2018.asynciterable.d.ts index d5d83f31893..19a31c72ca4 100644 --- a/src/lib/es2018.asynciterable.d.ts +++ b/src/lib/es2018.asynciterable.d.ts @@ -11,7 +11,7 @@ interface SymbolConstructor { interface AsyncIterator { // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. - next(...args: [] | [TNext | PromiseLike]): Promise>; + next(...args: [] | [TNext]): Promise>; return?(value?: TReturn | PromiseLike): Promise>; throw?(e?: any): Promise>; } diff --git a/tests/baselines/reference/customAsyncIterator.js b/tests/baselines/reference/customAsyncIterator.js new file mode 100644 index 00000000000..c0a86218e8d --- /dev/null +++ b/tests/baselines/reference/customAsyncIterator.js @@ -0,0 +1,26 @@ +//// [customAsyncIterator.ts] +// GH: https://github.com/microsoft/TypeScript/issues/33239 +class ConstantIterator implements AsyncIterator { + constructor(private constant: T) { + } + async next(value?: T): Promise> { + if (value != null) { + throw new Error("ConstantIterator.prototype.next may not take any values"); + } + return { value: this.constant, done: false }; + } +} + +//// [customAsyncIterator.js] +// GH: https://github.com/microsoft/TypeScript/issues/33239 +class ConstantIterator { + constructor(constant) { + this.constant = constant; + } + async next(value) { + if (value != null) { + throw new Error("ConstantIterator.prototype.next may not take any values"); + } + return { value: this.constant, done: false }; + } +} diff --git a/tests/baselines/reference/customAsyncIterator.symbols b/tests/baselines/reference/customAsyncIterator.symbols new file mode 100644 index 00000000000..59c099ec403 --- /dev/null +++ b/tests/baselines/reference/customAsyncIterator.symbols @@ -0,0 +1,35 @@ +=== tests/cases/compiler/customAsyncIterator.ts === +// GH: https://github.com/microsoft/TypeScript/issues/33239 +class ConstantIterator implements AsyncIterator { +>ConstantIterator : Symbol(ConstantIterator, Decl(customAsyncIterator.ts, 0, 0)) +>T : Symbol(T, Decl(customAsyncIterator.ts, 1, 23)) +>AsyncIterator : Symbol(AsyncIterator, Decl(lib.es2018.asynciterable.d.ts, --, --)) +>T : Symbol(T, Decl(customAsyncIterator.ts, 1, 23)) +>T : Symbol(T, Decl(customAsyncIterator.ts, 1, 23)) + + constructor(private constant: T) { +>constant : Symbol(ConstantIterator.constant, Decl(customAsyncIterator.ts, 2, 16)) +>T : Symbol(T, Decl(customAsyncIterator.ts, 1, 23)) + } + async next(value?: T): Promise> { +>next : Symbol(ConstantIterator.next, Decl(customAsyncIterator.ts, 3, 5)) +>value : Symbol(value, Decl(customAsyncIterator.ts, 4, 15)) +>T : Symbol(T, Decl(customAsyncIterator.ts, 1, 23)) +>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>IteratorResult : Symbol(IteratorResult, Decl(lib.es2015.iterable.d.ts, --, --)) +>T : Symbol(T, Decl(customAsyncIterator.ts, 1, 23)) + + if (value != null) { +>value : Symbol(value, Decl(customAsyncIterator.ts, 4, 15)) + + throw new Error("ConstantIterator.prototype.next may not take any values"); +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + } + return { value: this.constant, done: false }; +>value : Symbol(value, Decl(customAsyncIterator.ts, 8, 16)) +>this.constant : Symbol(ConstantIterator.constant, Decl(customAsyncIterator.ts, 2, 16)) +>this : Symbol(ConstantIterator, Decl(customAsyncIterator.ts, 0, 0)) +>constant : Symbol(ConstantIterator.constant, Decl(customAsyncIterator.ts, 2, 16)) +>done : Symbol(done, Decl(customAsyncIterator.ts, 8, 38)) + } +} diff --git a/tests/baselines/reference/customAsyncIterator.types b/tests/baselines/reference/customAsyncIterator.types new file mode 100644 index 00000000000..63c67cfddd3 --- /dev/null +++ b/tests/baselines/reference/customAsyncIterator.types @@ -0,0 +1,32 @@ +=== tests/cases/compiler/customAsyncIterator.ts === +// GH: https://github.com/microsoft/TypeScript/issues/33239 +class ConstantIterator implements AsyncIterator { +>ConstantIterator : ConstantIterator + + constructor(private constant: T) { +>constant : T + } + async next(value?: T): Promise> { +>next : (value?: T) => Promise> +>value : T + + if (value != null) { +>value != null : boolean +>value : T +>null : null + + throw new Error("ConstantIterator.prototype.next may not take any values"); +>new Error("ConstantIterator.prototype.next may not take any values") : Error +>Error : ErrorConstructor +>"ConstantIterator.prototype.next may not take any values" : "ConstantIterator.prototype.next may not take any values" + } + return { value: this.constant, done: false }; +>{ value: this.constant, done: false } : { value: T; done: false; } +>value : T +>this.constant : T +>this : this +>constant : T +>done : false +>false : false + } +} diff --git a/tests/baselines/reference/types.asyncGenerators.es2018.1.symbols b/tests/baselines/reference/types.asyncGenerators.es2018.1.symbols index 3a0e33ce1b1..5cf681477e5 100644 --- a/tests/baselines/reference/types.asyncGenerators.es2018.1.symbols +++ b/tests/baselines/reference/types.asyncGenerators.es2018.1.symbols @@ -289,4 +289,13 @@ async function * awaitedType2() { >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) >resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) } +async function * nextType1(): { next(...args: [] | [number | PromiseLike]): any } { +>nextType1 : Symbol(nextType1, Decl(types.asyncGenerators.es2018.1.ts, 122, 1)) +>next : Symbol(next, Decl(types.asyncGenerators.es2018.1.ts, 123, 31)) +>args : Symbol(args, Decl(types.asyncGenerators.es2018.1.ts, 123, 37)) +>PromiseLike : Symbol(PromiseLike, Decl(lib.es5.d.ts, --, --)) + + const x = yield; // `number | PromiseLike` (should not await TNext) +>x : Symbol(x, Decl(types.asyncGenerators.es2018.1.ts, 124, 9)) +} diff --git a/tests/baselines/reference/types.asyncGenerators.es2018.1.types b/tests/baselines/reference/types.asyncGenerators.es2018.1.types index 54db9b890ec..3c6e51c56d2 100644 --- a/tests/baselines/reference/types.asyncGenerators.es2018.1.types +++ b/tests/baselines/reference/types.asyncGenerators.es2018.1.types @@ -430,4 +430,13 @@ async function * awaitedType2() { >resolve : { (value: T | PromiseLike): Promise; (): Promise; } >1 : 1 } +async function * nextType1(): { next(...args: [] | [number | PromiseLike]): any } { +>nextType1 : () => { next(...args: [] | [number | PromiseLike]): any; } +>next : (...args: [] | [number | PromiseLike]) => any +>args : [] | [number | PromiseLike] + + const x = yield; // `number | PromiseLike` (should not await TNext) +>x : number | PromiseLike +>yield : number | PromiseLike +} diff --git a/tests/baselines/reference/types.asyncGenerators.es2018.2.errors.txt b/tests/baselines/reference/types.asyncGenerators.es2018.2.errors.txt index d7ec011bced..9f22060b9e9 100644 --- a/tests/baselines/reference/types.asyncGenerators.es2018.2.errors.txt +++ b/tests/baselines/reference/types.asyncGenerators.es2018.2.errors.txt @@ -3,7 +3,7 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(10,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterableIterator'. Type 'AsyncGenerator' is not assignable to type 'AsyncIterableIterator'. Types of property 'next' are incompatible. - Type '(...args: [] | [PromiseLike]) => Promise>' is not assignable to type '(...args: [] | [PromiseLike]) => Promise>'. + Type '(...args: [] | [undefined]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. Type 'Promise>' is not assignable to type 'Promise>'. Type 'IteratorResult' is not assignable to type 'IteratorResult'. Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. @@ -14,7 +14,7 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(16,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterableIterator'. Type 'AsyncGenerator' is not assignable to type 'AsyncIterableIterator'. Types of property 'next' are incompatible. - Type '(...args: [] | [unknown]) => Promise>' is not assignable to type '(...args: [] | [PromiseLike]) => Promise>'. + Type '(...args: [] | [unknown]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. Type 'Promise>' is not assignable to type 'Promise>'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(19,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterable'. Type 'AsyncGenerator' is not assignable to type 'AsyncIterable'. @@ -22,7 +22,7 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterator'. Type 'AsyncGenerator' is not assignable to type 'AsyncIterator'. Types of property 'next' are incompatible. - Type '(...args: [] | [PromiseLike]) => Promise>' is not assignable to type '(...args: [] | [PromiseLike]) => Promise>'. + Type '(...args: [] | [undefined]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. Type 'Promise>' is not assignable to type 'Promise>'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(22,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterable'. Type 'AsyncGenerator' is not assignable to type 'AsyncIterable'. @@ -32,7 +32,7 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterator'. Type 'AsyncGenerator' is not assignable to type 'AsyncIterator'. Types of property 'next' are incompatible. - Type '(...args: [] | [unknown]) => Promise>' is not assignable to type '(...args: [] | [PromiseLike]) => Promise>'. + Type '(...args: [] | [unknown]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. Type 'Promise>' is not assignable to type 'Promise>'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(28,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterator'. Type 'AsyncGenerator' is not assignable to type 'AsyncIterator'. @@ -53,7 +53,7 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(67,42): error TS2741: Property '[Symbol.iterator]' is missing in type 'AsyncGenerator' but required in type 'Iterable'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(70,42): error TS2322: Type 'AsyncGenerator' is not assignable to type 'Iterator'. Types of property 'next' are incompatible. - Type '(...args: [] | [PromiseLike]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. + Type '(...args: [] | [undefined]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. Type 'Promise>' is not assignable to type 'IteratorResult'. Property 'value' is missing in type 'Promise>' but required in type 'IteratorYieldResult'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(74,12): error TS2504: Type '{}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator. @@ -79,7 +79,7 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( !!! error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterableIterator'. !!! error TS2322: Type 'AsyncGenerator' is not assignable to type 'AsyncIterableIterator'. !!! error TS2322: Types of property 'next' are incompatible. -!!! error TS2322: Type '(...args: [] | [PromiseLike]) => Promise>' is not assignable to type '(...args: [] | [PromiseLike]) => Promise>'. +!!! error TS2322: Type '(...args: [] | [undefined]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. !!! error TS2322: Type 'Promise>' is not assignable to type 'Promise>'. !!! error TS2322: Type 'IteratorResult' is not assignable to type 'IteratorResult'. !!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. @@ -98,7 +98,7 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( !!! error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterableIterator'. !!! error TS2322: Type 'AsyncGenerator' is not assignable to type 'AsyncIterableIterator'. !!! error TS2322: Types of property 'next' are incompatible. -!!! error TS2322: Type '(...args: [] | [unknown]) => Promise>' is not assignable to type '(...args: [] | [PromiseLike]) => Promise>'. +!!! error TS2322: Type '(...args: [] | [unknown]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. !!! error TS2322: Type 'Promise>' is not assignable to type 'Promise>'. yield* (async function * () { yield "a"; })(); }; @@ -110,7 +110,7 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( !!! error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterator'. !!! error TS2322: Type 'AsyncGenerator' is not assignable to type 'AsyncIterator'. !!! error TS2322: Types of property 'next' are incompatible. -!!! error TS2322: Type '(...args: [] | [PromiseLike]) => Promise>' is not assignable to type '(...args: [] | [PromiseLike]) => Promise>'. +!!! error TS2322: Type '(...args: [] | [undefined]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. !!! error TS2322: Type 'Promise>' is not assignable to type 'Promise>'. yield "a"; }; @@ -128,7 +128,7 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( !!! error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterator'. !!! error TS2322: Type 'AsyncGenerator' is not assignable to type 'AsyncIterator'. !!! error TS2322: Types of property 'next' are incompatible. -!!! error TS2322: Type '(...args: [] | [unknown]) => Promise>' is not assignable to type '(...args: [] | [PromiseLike]) => Promise>'. +!!! error TS2322: Type '(...args: [] | [unknown]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. !!! error TS2322: Type 'Promise>' is not assignable to type 'Promise>'. yield* (async function * () { yield "a"; })(); }; @@ -211,7 +211,7 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( ~~~~~~~~~~~~~~~~ !!! error TS2322: Type 'AsyncGenerator' is not assignable to type 'Iterator'. !!! error TS2322: Types of property 'next' are incompatible. -!!! error TS2322: Type '(...args: [] | [PromiseLike]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. +!!! error TS2322: Type '(...args: [] | [undefined]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. !!! error TS2322: Type 'Promise>' is not assignable to type 'IteratorResult'. !!! error TS2322: Property 'value' is missing in type 'Promise>' but required in type 'IteratorYieldResult'. !!! related TS2728 /.ts/lib.es2015.iterable.d.ts:33:5: 'value' is declared here. diff --git a/tests/cases/compiler/customAsyncIterator.ts b/tests/cases/compiler/customAsyncIterator.ts new file mode 100644 index 00000000000..dcd1140f6b5 --- /dev/null +++ b/tests/cases/compiler/customAsyncIterator.ts @@ -0,0 +1,13 @@ +// @target: esnext + +// GH: https://github.com/microsoft/TypeScript/issues/33239 +class ConstantIterator implements AsyncIterator { + constructor(private constant: T) { + } + async next(value?: T): Promise> { + if (value != null) { + throw new Error("ConstantIterator.prototype.next may not take any values"); + } + return { value: this.constant, done: false }; + } +} \ No newline at end of file diff --git a/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.1.ts b/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.1.ts index f31f453ba5f..6d39be9cef7 100644 --- a/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.1.ts +++ b/tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.1.ts @@ -124,3 +124,6 @@ async function * awaitedType1() { async function * awaitedType2() { const x = await Promise.resolve(1); } +async function * nextType1(): { next(...args: [] | [number | PromiseLike]): any } { + const x = yield; // `number | PromiseLike` (should not await TNext) +} From ba30fdc4ae961298d1ac6a3e0b6fc3d1ac1c0e74 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 18 Sep 2019 06:36:51 -0700 Subject: [PATCH 113/159] Attach flow nodes only when allowUnreachableCode !== true --- src/compiler/binder.ts | 2 +- src/compiler/checker.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index cf93ee17ebd..c9d3d15b9af 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -672,7 +672,7 @@ namespace ts { bindJSDoc(node); return; } - if (node.kind >= SyntaxKind.FirstStatement && node.kind <= SyntaxKind.LastStatement) { + if (node.kind >= SyntaxKind.FirstStatement && node.kind <= SyntaxKind.LastStatement && !options.allowUnreachableCode) { node.flowNode = currentFlow; } switch (node.kind) { diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 9e331dd0854..7e9e8bd4b0e 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -30539,8 +30539,7 @@ namespace ts { cancellationToken.throwIfCancellationRequested(); } } - if (kind >= SyntaxKind.FirstStatement && kind <= SyntaxKind.LastStatement && - !compilerOptions.allowUnreachableCode && node.flowNode && !isReachableFlowNode(node.flowNode)) { + if (kind >= SyntaxKind.FirstStatement && kind <= SyntaxKind.LastStatement && node.flowNode && !isReachableFlowNode(node.flowNode)) { errorOrSuggestion(compilerOptions.allowUnreachableCode === false, node, Diagnostics.Unreachable_code_detected); } From 1c20aa0b1abdfe60efa6cb08ad667f328daf74a8 Mon Sep 17 00:00:00 2001 From: Jack Williams Date: Wed, 18 Sep 2019 18:54:42 +0100 Subject: [PATCH 114/159] Narrow unknown under inequality when assumed false (#33488) --- src/compiler/checker.ts | 2 +- .../reference/unknownType2.errors.txt | 37 ++++++ tests/baselines/reference/unknownType2.js | 63 ++++++++++ .../baselines/reference/unknownType2.symbols | 105 ++++++++++++++++ tests/baselines/reference/unknownType2.types | 118 ++++++++++++++++++ .../conformance/types/unknown/unknownType2.ts | 37 ++++++ 6 files changed, 361 insertions(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 9a8cf2f8038..c5787c3b29d 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -17453,7 +17453,7 @@ namespace ts { assumeTrue = !assumeTrue; } const valueType = getTypeOfExpression(value); - if ((type.flags & TypeFlags.Unknown) && (operator === SyntaxKind.EqualsEqualsEqualsToken) && assumeTrue) { + if ((type.flags & TypeFlags.Unknown) && assumeTrue && (operator === SyntaxKind.EqualsEqualsEqualsToken || operator === SyntaxKind.ExclamationEqualsEqualsToken)) { if (valueType.flags & (TypeFlags.Primitive | TypeFlags.NonPrimitive)) { return valueType; } diff --git a/tests/baselines/reference/unknownType2.errors.txt b/tests/baselines/reference/unknownType2.errors.txt index 5f08804b9e0..1469526182b 100644 --- a/tests/baselines/reference/unknownType2.errors.txt +++ b/tests/baselines/reference/unknownType2.errors.txt @@ -228,4 +228,41 @@ tests/cases/conformance/types/unknown/unknownType2.ts(216,13): error TS2322: Typ // Arguably this should be never. type End = isTrue> } + + // Repro from #33483 + + function f2(x: unknown): string | undefined { + if (x !== undefined && typeof x !== 'string') { + throw new Error(); + } + return x; + } + + function notNotEquals(u: unknown) { + if (u !== NumberEnum) { } + else { + const o: object = u; + } + + if (u !== NumberEnum.A) { } + else { + const a: NumberEnum.A = u; + } + + + if (u !== NumberEnum.A && u !== NumberEnum.B && u !== StringEnum.A) { } + else { + const aOrB: NumberEnum.A | NumberEnum.B | StringEnum.A = u; + } + + // equivalent to + if (!(u === NumberEnum.A || u === NumberEnum.B || u === StringEnum.A)) { } + else { + const aOrB: NumberEnum.A | NumberEnum.B | StringEnum.A = u; + } + } + + + + \ No newline at end of file diff --git a/tests/baselines/reference/unknownType2.js b/tests/baselines/reference/unknownType2.js index 2ec5b3ed205..cb1b0a58029 100644 --- a/tests/baselines/reference/unknownType2.js +++ b/tests/baselines/reference/unknownType2.js @@ -221,6 +221,43 @@ function switchResponseWrong(x: unknown): SomeResponse { // Arguably this should be never. type End = isTrue> } + +// Repro from #33483 + +function f2(x: unknown): string | undefined { + if (x !== undefined && typeof x !== 'string') { + throw new Error(); + } + return x; +} + +function notNotEquals(u: unknown) { + if (u !== NumberEnum) { } + else { + const o: object = u; + } + + if (u !== NumberEnum.A) { } + else { + const a: NumberEnum.A = u; + } + + + if (u !== NumberEnum.A && u !== NumberEnum.B && u !== StringEnum.A) { } + else { + const aOrB: NumberEnum.A | NumberEnum.B | StringEnum.A = u; + } + + // equivalent to + if (!(u === NumberEnum.A || u === NumberEnum.B || u === StringEnum.A)) { } + else { + const aOrB: NumberEnum.A | NumberEnum.B | StringEnum.A = u; + } +} + + + + //// [unknownType2.js] @@ -388,3 +425,29 @@ function switchResponseWrong(x) { throw new Error('Can you repeat the question?'); } } +// Repro from #33483 +function f2(x) { + if (x !== undefined && typeof x !== 'string') { + throw new Error(); + } + return x; +} +function notNotEquals(u) { + if (u !== NumberEnum) { } + else { + var o = u; + } + if (u !== NumberEnum.A) { } + else { + var a = u; + } + if (u !== NumberEnum.A && u !== NumberEnum.B && u !== StringEnum.A) { } + else { + var aOrB = u; + } + // equivalent to + if (!(u === NumberEnum.A || u === NumberEnum.B || u === StringEnum.A)) { } + else { + var aOrB = u; + } +} diff --git a/tests/baselines/reference/unknownType2.symbols b/tests/baselines/reference/unknownType2.symbols index 6e871bd4de4..19a1c7fca6e 100644 --- a/tests/baselines/reference/unknownType2.symbols +++ b/tests/baselines/reference/unknownType2.symbols @@ -582,3 +582,108 @@ function switchResponseWrong(x: unknown): SomeResponse { >x : Symbol(x, Decl(unknownType2.ts, 210, 29)) } +// Repro from #33483 + +function f2(x: unknown): string | undefined { +>f2 : Symbol(f2, Decl(unknownType2.ts, 221, 1)) +>x : Symbol(x, Decl(unknownType2.ts, 225, 12)) + + if (x !== undefined && typeof x !== 'string') { +>x : Symbol(x, Decl(unknownType2.ts, 225, 12)) +>undefined : Symbol(undefined) +>x : Symbol(x, Decl(unknownType2.ts, 225, 12)) + + throw new Error(); +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + } + return x; +>x : Symbol(x, Decl(unknownType2.ts, 225, 12)) +} + +function notNotEquals(u: unknown) { +>notNotEquals : Symbol(notNotEquals, Decl(unknownType2.ts, 230, 1)) +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) + + if (u !== NumberEnum) { } +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) +>NumberEnum : Symbol(NumberEnum, Decl(unknownType2.ts, 90, 1)) + + else { + const o: object = u; +>o : Symbol(o, Decl(unknownType2.ts, 235, 13)) +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) + } + + if (u !== NumberEnum.A) { } +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) +>NumberEnum.A : Symbol(NumberEnum.A, Decl(unknownType2.ts, 92, 17)) +>NumberEnum : Symbol(NumberEnum, Decl(unknownType2.ts, 90, 1)) +>A : Symbol(NumberEnum.A, Decl(unknownType2.ts, 92, 17)) + + else { + const a: NumberEnum.A = u; +>a : Symbol(a, Decl(unknownType2.ts, 240, 13)) +>NumberEnum : Symbol(NumberEnum, Decl(unknownType2.ts, 90, 1)) +>A : Symbol(NumberEnum.A, Decl(unknownType2.ts, 92, 17)) +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) + } + + + if (u !== NumberEnum.A && u !== NumberEnum.B && u !== StringEnum.A) { } +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) +>NumberEnum.A : Symbol(NumberEnum.A, Decl(unknownType2.ts, 92, 17)) +>NumberEnum : Symbol(NumberEnum, Decl(unknownType2.ts, 90, 1)) +>A : Symbol(NumberEnum.A, Decl(unknownType2.ts, 92, 17)) +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) +>NumberEnum.B : Symbol(NumberEnum.B, Decl(unknownType2.ts, 93, 6)) +>NumberEnum : Symbol(NumberEnum, Decl(unknownType2.ts, 90, 1)) +>B : Symbol(NumberEnum.B, Decl(unknownType2.ts, 93, 6)) +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) +>StringEnum.A : Symbol(StringEnum.A, Decl(unknownType2.ts, 98, 17)) +>StringEnum : Symbol(StringEnum, Decl(unknownType2.ts, 96, 1)) +>A : Symbol(StringEnum.A, Decl(unknownType2.ts, 98, 17)) + + else { + const aOrB: NumberEnum.A | NumberEnum.B | StringEnum.A = u; +>aOrB : Symbol(aOrB, Decl(unknownType2.ts, 246, 13)) +>NumberEnum : Symbol(NumberEnum, Decl(unknownType2.ts, 90, 1)) +>A : Symbol(NumberEnum.A, Decl(unknownType2.ts, 92, 17)) +>NumberEnum : Symbol(NumberEnum, Decl(unknownType2.ts, 90, 1)) +>B : Symbol(NumberEnum.B, Decl(unknownType2.ts, 93, 6)) +>StringEnum : Symbol(StringEnum, Decl(unknownType2.ts, 96, 1)) +>A : Symbol(StringEnum.A, Decl(unknownType2.ts, 98, 17)) +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) + } + + // equivalent to + if (!(u === NumberEnum.A || u === NumberEnum.B || u === StringEnum.A)) { } +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) +>NumberEnum.A : Symbol(NumberEnum.A, Decl(unknownType2.ts, 92, 17)) +>NumberEnum : Symbol(NumberEnum, Decl(unknownType2.ts, 90, 1)) +>A : Symbol(NumberEnum.A, Decl(unknownType2.ts, 92, 17)) +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) +>NumberEnum.B : Symbol(NumberEnum.B, Decl(unknownType2.ts, 93, 6)) +>NumberEnum : Symbol(NumberEnum, Decl(unknownType2.ts, 90, 1)) +>B : Symbol(NumberEnum.B, Decl(unknownType2.ts, 93, 6)) +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) +>StringEnum.A : Symbol(StringEnum.A, Decl(unknownType2.ts, 98, 17)) +>StringEnum : Symbol(StringEnum, Decl(unknownType2.ts, 96, 1)) +>A : Symbol(StringEnum.A, Decl(unknownType2.ts, 98, 17)) + + else { + const aOrB: NumberEnum.A | NumberEnum.B | StringEnum.A = u; +>aOrB : Symbol(aOrB, Decl(unknownType2.ts, 252, 13)) +>NumberEnum : Symbol(NumberEnum, Decl(unknownType2.ts, 90, 1)) +>A : Symbol(NumberEnum.A, Decl(unknownType2.ts, 92, 17)) +>NumberEnum : Symbol(NumberEnum, Decl(unknownType2.ts, 90, 1)) +>B : Symbol(NumberEnum.B, Decl(unknownType2.ts, 93, 6)) +>StringEnum : Symbol(StringEnum, Decl(unknownType2.ts, 96, 1)) +>A : Symbol(StringEnum.A, Decl(unknownType2.ts, 98, 17)) +>u : Symbol(u, Decl(unknownType2.ts, 232, 22)) + } +} + + + + + diff --git a/tests/baselines/reference/unknownType2.types b/tests/baselines/reference/unknownType2.types index 7fc3c3d1038..ce3332138d5 100644 --- a/tests/baselines/reference/unknownType2.types +++ b/tests/baselines/reference/unknownType2.types @@ -627,3 +627,121 @@ function switchResponseWrong(x: unknown): SomeResponse { >x : unknown } +// Repro from #33483 + +function f2(x: unknown): string | undefined { +>f2 : (x: unknown) => string | undefined +>x : unknown + + if (x !== undefined && typeof x !== 'string') { +>x !== undefined && typeof x !== 'string' : boolean +>x !== undefined : boolean +>x : unknown +>undefined : undefined +>typeof x !== 'string' : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : unknown +>'string' : "string" + + throw new Error(); +>new Error() : Error +>Error : ErrorConstructor + } + return x; +>x : string | undefined +} + +function notNotEquals(u: unknown) { +>notNotEquals : (u: unknown) => void +>u : unknown + + if (u !== NumberEnum) { } +>u !== NumberEnum : boolean +>u : unknown +>NumberEnum : typeof NumberEnum + + else { + const o: object = u; +>o : object +>u : object + } + + if (u !== NumberEnum.A) { } +>u !== NumberEnum.A : boolean +>u : unknown +>NumberEnum.A : NumberEnum.A +>NumberEnum : typeof NumberEnum +>A : NumberEnum.A + + else { + const a: NumberEnum.A = u; +>a : NumberEnum.A +>NumberEnum : any +>u : NumberEnum.A + } + + + if (u !== NumberEnum.A && u !== NumberEnum.B && u !== StringEnum.A) { } +>u !== NumberEnum.A && u !== NumberEnum.B && u !== StringEnum.A : boolean +>u !== NumberEnum.A && u !== NumberEnum.B : boolean +>u !== NumberEnum.A : boolean +>u : unknown +>NumberEnum.A : NumberEnum.A +>NumberEnum : typeof NumberEnum +>A : NumberEnum.A +>u !== NumberEnum.B : boolean +>u : unknown +>NumberEnum.B : NumberEnum.B +>NumberEnum : typeof NumberEnum +>B : NumberEnum.B +>u !== StringEnum.A : boolean +>u : unknown +>StringEnum.A : StringEnum.A +>StringEnum : typeof StringEnum +>A : StringEnum.A + + else { + const aOrB: NumberEnum.A | NumberEnum.B | StringEnum.A = u; +>aOrB : NumberEnum.A | NumberEnum.B | StringEnum.A +>NumberEnum : any +>NumberEnum : any +>StringEnum : any +>u : NumberEnum.A | NumberEnum.B | StringEnum.A + } + + // equivalent to + if (!(u === NumberEnum.A || u === NumberEnum.B || u === StringEnum.A)) { } +>!(u === NumberEnum.A || u === NumberEnum.B || u === StringEnum.A) : boolean +>(u === NumberEnum.A || u === NumberEnum.B || u === StringEnum.A) : boolean +>u === NumberEnum.A || u === NumberEnum.B || u === StringEnum.A : boolean +>u === NumberEnum.A || u === NumberEnum.B : boolean +>u === NumberEnum.A : boolean +>u : unknown +>NumberEnum.A : NumberEnum.A +>NumberEnum : typeof NumberEnum +>A : NumberEnum.A +>u === NumberEnum.B : boolean +>u : unknown +>NumberEnum.B : NumberEnum.B +>NumberEnum : typeof NumberEnum +>B : NumberEnum.B +>u === StringEnum.A : boolean +>u : unknown +>StringEnum.A : StringEnum.A +>StringEnum : typeof StringEnum +>A : StringEnum.A + + else { + const aOrB: NumberEnum.A | NumberEnum.B | StringEnum.A = u; +>aOrB : NumberEnum.A | NumberEnum.B | StringEnum.A +>NumberEnum : any +>NumberEnum : any +>StringEnum : any +>u : NumberEnum.A | NumberEnum.B | StringEnum.A + } +} + + + + + diff --git a/tests/cases/conformance/types/unknown/unknownType2.ts b/tests/cases/conformance/types/unknown/unknownType2.ts index b3d16654b80..7da3093634e 100644 --- a/tests/cases/conformance/types/unknown/unknownType2.ts +++ b/tests/cases/conformance/types/unknown/unknownType2.ts @@ -222,3 +222,40 @@ function switchResponseWrong(x: unknown): SomeResponse { // Arguably this should be never. type End = isTrue> } + +// Repro from #33483 + +function f2(x: unknown): string | undefined { + if (x !== undefined && typeof x !== 'string') { + throw new Error(); + } + return x; +} + +function notNotEquals(u: unknown) { + if (u !== NumberEnum) { } + else { + const o: object = u; + } + + if (u !== NumberEnum.A) { } + else { + const a: NumberEnum.A = u; + } + + + if (u !== NumberEnum.A && u !== NumberEnum.B && u !== StringEnum.A) { } + else { + const aOrB: NumberEnum.A | NumberEnum.B | StringEnum.A = u; + } + + // equivalent to + if (!(u === NumberEnum.A || u === NumberEnum.B || u === StringEnum.A)) { } + else { + const aOrB: NumberEnum.A | NumberEnum.B | StringEnum.A = u; + } +} + + + + From 683e2810403079c1b99ac39c09698e61a84c70ce Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Wed, 18 Sep 2019 13:14:39 -0700 Subject: [PATCH 115/159] Reintroduce cloneInferredPartOfContext to fix overloaded inferences with returnMappers (#33478) --- src/compiler/checker.ts | 9 +- .../twiceNestedKeyofIndexInference.js | 43 ++++++ .../twiceNestedKeyofIndexInference.symbols | 139 ++++++++++++++++++ .../twiceNestedKeyofIndexInference.types | 76 ++++++++++ .../twiceNestedKeyofIndexInference.ts | 32 ++++ 5 files changed, 298 insertions(+), 1 deletion(-) create mode 100644 tests/baselines/reference/twiceNestedKeyofIndexInference.js create mode 100644 tests/baselines/reference/twiceNestedKeyofIndexInference.symbols create mode 100644 tests/baselines/reference/twiceNestedKeyofIndexInference.types create mode 100644 tests/cases/compiler/twiceNestedKeyofIndexInference.ts diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c5787c3b29d..3273b7cb185 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -15408,6 +15408,13 @@ namespace ts { }; } + function cloneInferredPartOfContext(context: InferenceContext): InferenceContext | undefined { + const inferences = filter(context.inferences, hasInferenceCandidates); + return inferences.length ? + createInferenceContextWorker(map(inferences, cloneInferenceInfo), context.signature, context.flags, context.compareTypes) : + undefined; + } + function getMapperFromContext(context: T): TypeMapper | T & undefined { return context && context.mapper; } @@ -21465,7 +21472,7 @@ namespace ts { const returnContext = createInferenceContext(signature.typeParameters!, signature, context.flags); const returnSourceType = instantiateType(contextualType, outerContext && outerContext.returnMapper); inferTypes(returnContext.inferences, returnSourceType, inferenceTargetType); - context.returnMapper = some(returnContext.inferences, hasInferenceCandidates) ? getMapperFromContext(returnContext) : undefined; + context.returnMapper = some(returnContext.inferences, hasInferenceCandidates) ? getMapperFromContext(cloneInferredPartOfContext(returnContext)) : undefined; } } diff --git a/tests/baselines/reference/twiceNestedKeyofIndexInference.js b/tests/baselines/reference/twiceNestedKeyofIndexInference.js new file mode 100644 index 00000000000..ed4f0c6bfb5 --- /dev/null +++ b/tests/baselines/reference/twiceNestedKeyofIndexInference.js @@ -0,0 +1,43 @@ +//// [twiceNestedKeyofIndexInference.ts] +type Set1 = T extends any[] ? T : Pick> & { + [SK1 in K1]-?: Required>; +}[K1]; + +type Set2 = T extends any[] ? T : Pick> & { + [SK1 in K1]-?: Required<{ + [key in K1]: Set1; + }>; +}[K1]; + +declare function set(source: T, path: [K1], value: T[K1]): Set1; + +declare function set(source: T, path: [K1, K2], value: T[K1][K2]): Set2; + + +interface State { + a: { + b: string; + c: number; + }; + d: boolean; +} + +const state: State = { + a: { + b: "", + c: 0, + }, + d: false, +}; + +const newState: State = set(state, ["a", 'b'], 'why'); // shouldn't be an error + +//// [twiceNestedKeyofIndexInference.js] +var state = { + a: { + b: "", + c: 0 + }, + d: false +}; +var newState = set(state, ["a", 'b'], 'why'); // shouldn't be an error diff --git a/tests/baselines/reference/twiceNestedKeyofIndexInference.symbols b/tests/baselines/reference/twiceNestedKeyofIndexInference.symbols new file mode 100644 index 00000000000..57fa8e738b2 --- /dev/null +++ b/tests/baselines/reference/twiceNestedKeyofIndexInference.symbols @@ -0,0 +1,139 @@ +=== tests/cases/compiler/twiceNestedKeyofIndexInference.ts === +type Set1 = T extends any[] ? T : Pick> & { +>Set1 : Symbol(Set1, Decl(twiceNestedKeyofIndexInference.ts, 0, 0)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 0, 10)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 0, 12)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 0, 10)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 0, 10)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 0, 10)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 0, 10)) +>Exclude : Symbol(Exclude, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 0, 10)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 0, 12)) + + [SK1 in K1]-?: Required>; +>SK1 : Symbol(SK1, Decl(twiceNestedKeyofIndexInference.ts, 1, 5)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 0, 12)) +>Required : Symbol(Required, Decl(lib.es5.d.ts, --, --)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 0, 10)) +>SK1 : Symbol(SK1, Decl(twiceNestedKeyofIndexInference.ts, 1, 5)) + +}[K1]; +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 0, 12)) + +type Set2 = T extends any[] ? T : Pick> & { +>Set2 : Symbol(Set2, Decl(twiceNestedKeyofIndexInference.ts, 2, 6)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 4, 10)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 4, 12)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 4, 10)) +>K2 : Symbol(K2, Decl(twiceNestedKeyofIndexInference.ts, 4, 32)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 4, 10)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 4, 12)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 4, 10)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 4, 10)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 4, 10)) +>Exclude : Symbol(Exclude, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 4, 10)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 4, 12)) + + [SK1 in K1]-?: Required<{ +>SK1 : Symbol(SK1, Decl(twiceNestedKeyofIndexInference.ts, 5, 5)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 4, 12)) +>Required : Symbol(Required, Decl(lib.es5.d.ts, --, --)) + + [key in K1]: Set1; +>key : Symbol(key, Decl(twiceNestedKeyofIndexInference.ts, 6, 9)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 4, 12)) +>Set1 : Symbol(Set1, Decl(twiceNestedKeyofIndexInference.ts, 0, 0)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 4, 10)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 4, 12)) +>K2 : Symbol(K2, Decl(twiceNestedKeyofIndexInference.ts, 4, 32)) + + }>; +}[K1]; +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 4, 12)) + +declare function set(source: T, path: [K1], value: T[K1]): Set1; +>set : Symbol(set, Decl(twiceNestedKeyofIndexInference.ts, 8, 6), Decl(twiceNestedKeyofIndexInference.ts, 10, 94)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 10, 21)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 10, 23)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 10, 21)) +>source : Symbol(source, Decl(twiceNestedKeyofIndexInference.ts, 10, 44)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 10, 21)) +>path : Symbol(path, Decl(twiceNestedKeyofIndexInference.ts, 10, 54)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 10, 23)) +>value : Symbol(value, Decl(twiceNestedKeyofIndexInference.ts, 10, 66)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 10, 21)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 10, 23)) +>Set1 : Symbol(Set1, Decl(twiceNestedKeyofIndexInference.ts, 0, 0)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 10, 21)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 10, 23)) + +declare function set(source: T, path: [K1, K2], value: T[K1][K2]): Set2; +>set : Symbol(set, Decl(twiceNestedKeyofIndexInference.ts, 8, 6), Decl(twiceNestedKeyofIndexInference.ts, 10, 94)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 12, 21)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 12, 23)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 12, 21)) +>K2 : Symbol(K2, Decl(twiceNestedKeyofIndexInference.ts, 12, 43)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 12, 21)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 12, 23)) +>source : Symbol(source, Decl(twiceNestedKeyofIndexInference.ts, 12, 68)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 12, 21)) +>path : Symbol(path, Decl(twiceNestedKeyofIndexInference.ts, 12, 78)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 12, 23)) +>K2 : Symbol(K2, Decl(twiceNestedKeyofIndexInference.ts, 12, 43)) +>value : Symbol(value, Decl(twiceNestedKeyofIndexInference.ts, 12, 94)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 12, 21)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 12, 23)) +>K2 : Symbol(K2, Decl(twiceNestedKeyofIndexInference.ts, 12, 43)) +>Set2 : Symbol(Set2, Decl(twiceNestedKeyofIndexInference.ts, 2, 6)) +>T : Symbol(T, Decl(twiceNestedKeyofIndexInference.ts, 12, 21)) +>K1 : Symbol(K1, Decl(twiceNestedKeyofIndexInference.ts, 12, 23)) +>K2 : Symbol(K2, Decl(twiceNestedKeyofIndexInference.ts, 12, 43)) + + +interface State { +>State : Symbol(State, Decl(twiceNestedKeyofIndexInference.ts, 12, 130)) + + a: { +>a : Symbol(State.a, Decl(twiceNestedKeyofIndexInference.ts, 15, 17)) + + b: string; +>b : Symbol(b, Decl(twiceNestedKeyofIndexInference.ts, 16, 8)) + + c: number; +>c : Symbol(c, Decl(twiceNestedKeyofIndexInference.ts, 17, 18)) + + }; + d: boolean; +>d : Symbol(State.d, Decl(twiceNestedKeyofIndexInference.ts, 19, 6)) +} + +const state: State = { +>state : Symbol(state, Decl(twiceNestedKeyofIndexInference.ts, 23, 5)) +>State : Symbol(State, Decl(twiceNestedKeyofIndexInference.ts, 12, 130)) + + a: { +>a : Symbol(a, Decl(twiceNestedKeyofIndexInference.ts, 23, 22)) + + b: "", +>b : Symbol(b, Decl(twiceNestedKeyofIndexInference.ts, 24, 8)) + + c: 0, +>c : Symbol(c, Decl(twiceNestedKeyofIndexInference.ts, 25, 14)) + + }, + d: false, +>d : Symbol(d, Decl(twiceNestedKeyofIndexInference.ts, 27, 6)) + +}; + +const newState: State = set(state, ["a", 'b'], 'why'); // shouldn't be an error +>newState : Symbol(newState, Decl(twiceNestedKeyofIndexInference.ts, 31, 5)) +>State : Symbol(State, Decl(twiceNestedKeyofIndexInference.ts, 12, 130)) +>set : Symbol(set, Decl(twiceNestedKeyofIndexInference.ts, 8, 6), Decl(twiceNestedKeyofIndexInference.ts, 10, 94)) +>state : Symbol(state, Decl(twiceNestedKeyofIndexInference.ts, 23, 5)) + diff --git a/tests/baselines/reference/twiceNestedKeyofIndexInference.types b/tests/baselines/reference/twiceNestedKeyofIndexInference.types new file mode 100644 index 00000000000..68622038e72 --- /dev/null +++ b/tests/baselines/reference/twiceNestedKeyofIndexInference.types @@ -0,0 +1,76 @@ +=== tests/cases/compiler/twiceNestedKeyofIndexInference.ts === +type Set1 = T extends any[] ? T : Pick> & { +>Set1 : Set1 + + [SK1 in K1]-?: Required>; +}[K1]; + +type Set2 = T extends any[] ? T : Pick> & { +>Set2 : Set2 + + [SK1 in K1]-?: Required<{ + [key in K1]: Set1; + }>; +}[K1]; + +declare function set(source: T, path: [K1], value: T[K1]): Set1; +>set : { (source: T, path: [K1], value: T[K1]): Set1; (source: T, path: [K1, K2], value: T[K1][K2]): Set2; } +>source : T +>path : [K1] +>value : T[K1] + +declare function set(source: T, path: [K1, K2], value: T[K1][K2]): Set2; +>set : { (source: T, path: [K1], value: T[K1]): Set1; (source: T, path: [K1, K2], value: T[K1][K2]): Set2; } +>source : T +>path : [K1, K2] +>value : T[K1][K2] + + +interface State { + a: { +>a : { b: string; c: number; } + + b: string; +>b : string + + c: number; +>c : number + + }; + d: boolean; +>d : boolean +} + +const state: State = { +>state : State +>{ a: { b: "", c: 0, }, d: false,} : { a: { b: string; c: number; }; d: false; } + + a: { +>a : { b: string; c: number; } +>{ b: "", c: 0, } : { b: string; c: number; } + + b: "", +>b : string +>"" : "" + + c: 0, +>c : number +>0 : 0 + + }, + d: false, +>d : false +>false : false + +}; + +const newState: State = set(state, ["a", 'b'], 'why'); // shouldn't be an error +>newState : State +>set(state, ["a", 'b'], 'why') : Pick & Required<{ a: Pick<{ b: string; c: number; }, "c"> & Required>; }> +>set : { (source: T, path: [K1], value: T[K1]): Set1; (source: T, path: [K1, K2], value: T[K1][K2]): Set2; } +>state : State +>["a", 'b'] : ["a", "b"] +>"a" : "a" +>'b' : "b" +>'why' : "why" + diff --git a/tests/cases/compiler/twiceNestedKeyofIndexInference.ts b/tests/cases/compiler/twiceNestedKeyofIndexInference.ts new file mode 100644 index 00000000000..35fb39b009e --- /dev/null +++ b/tests/cases/compiler/twiceNestedKeyofIndexInference.ts @@ -0,0 +1,32 @@ +type Set1 = T extends any[] ? T : Pick> & { + [SK1 in K1]-?: Required>; +}[K1]; + +type Set2 = T extends any[] ? T : Pick> & { + [SK1 in K1]-?: Required<{ + [key in K1]: Set1; + }>; +}[K1]; + +declare function set(source: T, path: [K1], value: T[K1]): Set1; + +declare function set(source: T, path: [K1, K2], value: T[K1][K2]): Set2; + + +interface State { + a: { + b: string; + c: number; + }; + d: boolean; +} + +const state: State = { + a: { + b: "", + c: 0, + }, + d: false, +}; + +const newState: State = set(state, ["a", 'b'], 'why'); // shouldn't be an error \ No newline at end of file From 5e06bea48155d3ffea13917a3bda72b09bf18488 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Wed, 18 Sep 2019 13:56:24 -0700 Subject: [PATCH 116/159] =?UTF-8?q?getConstraintDeclaration=20gets=20the?= =?UTF-8?q?=20first=20declaration=20with=20a=20constraint=E2=80=A6=20(#334?= =?UTF-8?q?26)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * getConstraintDeclaration gets the first declaration with a constraint, rather than just the first declaration * Add type annotation * Update comment --- src/compiler/checker.ts | 14 +++-- ...UnconstrainedNoErrorIrrespectiveOfOrder.js | 28 ++++++++++ ...strainedNoErrorIrrespectiveOfOrder.symbols | 51 +++++++++++++++++++ ...onstrainedNoErrorIrrespectiveOfOrder.types | 27 ++++++++++ ...erfacesWithDifferentConstraints.errors.txt | 10 +--- ...nericInterfacesWithDifferentConstraints.js | 2 +- ...InterfacesWithDifferentConstraints.symbols | 2 +- ...icInterfacesWithDifferentConstraints.types | 2 +- ...UnconstrainedNoErrorIrrespectiveOfOrder.ts | 19 +++++++ ...nericInterfacesWithDifferentConstraints.ts | 2 +- 10 files changed, 137 insertions(+), 20 deletions(-) create mode 100644 tests/baselines/reference/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.js create mode 100644 tests/baselines/reference/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.symbols create mode 100644 tests/baselines/reference/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.types create mode 100644 tests/cases/compiler/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.ts diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 3273b7cb185..463d00c13e2 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -8971,9 +8971,8 @@ namespace ts { return undefined; } - function getConstraintDeclaration(type: TypeParameter) { - const decl = type.symbol && getDeclarationOfKind(type.symbol, SyntaxKind.TypeParameter); - return decl && getEffectiveConstraintOfTypeParameter(decl); + function getConstraintDeclaration(type: TypeParameter): TypeNode | undefined { + return mapDefined(filter(type.symbol && type.symbol.declarations, isTypeParameterDeclaration), getEffectiveConstraintOfTypeParameter)[0]; } function getInferredTypeParameterConstraint(typeParameter: TypeParameter) { @@ -29242,11 +29241,10 @@ namespace ts { const constraint = getEffectiveConstraintOfTypeParameter(source); const sourceConstraint = constraint && getTypeFromTypeNode(constraint); const targetConstraint = getConstraintOfTypeParameter(target); - if (sourceConstraint) { - // relax check if later interface augmentation has no constraint - if (!targetConstraint || !isTypeIdenticalTo(sourceConstraint, targetConstraint)) { - return false; - } + // relax check if later interface augmentation has no constraint, it's more broad and is OK to merge with + // a more constrained interface (this could be generalized to a full heirarchy check, but that's maybe overkill) + if (sourceConstraint && targetConstraint && !isTypeIdenticalTo(sourceConstraint, targetConstraint)) { + return false; } // If the type parameter node has a default and it is not identical to the default diff --git a/tests/baselines/reference/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.js b/tests/baselines/reference/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.js new file mode 100644 index 00000000000..a4241186639 --- /dev/null +++ b/tests/baselines/reference/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.js @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.ts] //// + +//// [working.ts] +// minmal samples from #33395 +export namespace ns { + interface Function any> { + throttle(): Function; + } + interface Function { + unary(): Function<() => ReturnType>; + } +} +//// [regression.ts] +export namespace ns { + interface Function { + unary(): Function<() => ReturnType>; + } + interface Function any> { + throttle(): Function; + } +} + +//// [working.js] +"use strict"; +exports.__esModule = true; +//// [regression.js] +"use strict"; +exports.__esModule = true; diff --git a/tests/baselines/reference/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.symbols b/tests/baselines/reference/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.symbols new file mode 100644 index 00000000000..5dc01da7c48 --- /dev/null +++ b/tests/baselines/reference/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.symbols @@ -0,0 +1,51 @@ +=== tests/cases/compiler/working.ts === +// minmal samples from #33395 +export namespace ns { +>ns : Symbol(ns, Decl(working.ts, 0, 0)) + + interface Function any> { +>Function : Symbol(Function, Decl(working.ts, 1, 21), Decl(working.ts, 4, 5)) +>T : Symbol(T, Decl(working.ts, 2, 23), Decl(working.ts, 5, 23)) +>args : Symbol(args, Decl(working.ts, 2, 34)) + + throttle(): Function; +>throttle : Symbol(Function.throttle, Decl(working.ts, 2, 57)) +>Function : Symbol(Function, Decl(working.ts, 1, 21), Decl(working.ts, 4, 5)) +>T : Symbol(T, Decl(working.ts, 2, 23), Decl(working.ts, 5, 23)) + } + interface Function { +>Function : Symbol(Function, Decl(working.ts, 1, 21), Decl(working.ts, 4, 5)) +>T : Symbol(T, Decl(working.ts, 2, 23), Decl(working.ts, 5, 23)) + + unary(): Function<() => ReturnType>; +>unary : Symbol(Function.unary, Decl(working.ts, 5, 27)) +>Function : Symbol(Function, Decl(working.ts, 1, 21), Decl(working.ts, 4, 5)) +>ReturnType : Symbol(ReturnType, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(working.ts, 2, 23), Decl(working.ts, 5, 23)) + } +} +=== tests/cases/compiler/regression.ts === +export namespace ns { +>ns : Symbol(ns, Decl(regression.ts, 0, 0)) + + interface Function { +>Function : Symbol(Function, Decl(regression.ts, 0, 21), Decl(regression.ts, 3, 5)) +>T : Symbol(T, Decl(regression.ts, 1, 23), Decl(regression.ts, 4, 23)) + + unary(): Function<() => ReturnType>; +>unary : Symbol(Function.unary, Decl(regression.ts, 1, 27)) +>Function : Symbol(Function, Decl(regression.ts, 0, 21), Decl(regression.ts, 3, 5)) +>ReturnType : Symbol(ReturnType, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(regression.ts, 1, 23), Decl(regression.ts, 4, 23)) + } + interface Function any> { +>Function : Symbol(Function, Decl(regression.ts, 0, 21), Decl(regression.ts, 3, 5)) +>T : Symbol(T, Decl(regression.ts, 1, 23), Decl(regression.ts, 4, 23)) +>args : Symbol(args, Decl(regression.ts, 4, 34)) + + throttle(): Function; +>throttle : Symbol(Function.throttle, Decl(regression.ts, 4, 57)) +>Function : Symbol(Function, Decl(regression.ts, 0, 21), Decl(regression.ts, 3, 5)) +>T : Symbol(T, Decl(regression.ts, 1, 23), Decl(regression.ts, 4, 23)) + } +} diff --git a/tests/baselines/reference/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.types b/tests/baselines/reference/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.types new file mode 100644 index 00000000000..e42e438c983 --- /dev/null +++ b/tests/baselines/reference/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.types @@ -0,0 +1,27 @@ +=== tests/cases/compiler/working.ts === +// minmal samples from #33395 +export namespace ns { + interface Function any> { +>args : any + + throttle(): Function; +>throttle : () => Function + } + interface Function { + unary(): Function<() => ReturnType>; +>unary : () => Function<() => ReturnType> + } +} +=== tests/cases/compiler/regression.ts === +export namespace ns { + interface Function { + unary(): Function<() => ReturnType>; +>unary : () => Function<() => ReturnType> + } + interface Function any> { +>args : any + + throttle(): Function; +>throttle : () => Function + } +} diff --git a/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.errors.txt b/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.errors.txt index 21a35e0553b..edc33d6b1ba 100644 --- a/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.errors.txt +++ b/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.errors.txt @@ -4,11 +4,9 @@ tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDi tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDifferentConstraints.ts(14,15): error TS2428: All declarations of 'B' must have identical type parameters. tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDifferentConstraints.ts(32,22): error TS2428: All declarations of 'A' must have identical type parameters. tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDifferentConstraints.ts(38,22): error TS2428: All declarations of 'A' must have identical type parameters. -tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDifferentConstraints.ts(53,11): error TS2428: All declarations of 'C' must have identical type parameters. -tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDifferentConstraints.ts(57,11): error TS2428: All declarations of 'C' must have identical type parameters. -==== tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDifferentConstraints.ts (8 errors) ==== +==== tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDifferentConstraints.ts (6 errors) ==== interface A { ~ !!! error TS2428: All declarations of 'A' must have identical type parameters. @@ -74,14 +72,10 @@ tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDi } interface C { - ~ -!!! error TS2428: All declarations of 'C' must have identical type parameters. x: T; } - interface C { // error - ~ -!!! error TS2428: All declarations of 'C' must have identical type parameters. + interface C { // ok y: T; } diff --git a/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.js b/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.js index 5b1964b2891..7e62915cb54 100644 --- a/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.js +++ b/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.js @@ -55,7 +55,7 @@ interface C { x: T; } -interface C { // error +interface C { // ok y: T; } diff --git a/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.symbols b/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.symbols index a1ad41441bd..6dd5de33354 100644 --- a/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.symbols +++ b/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.symbols @@ -137,7 +137,7 @@ interface C { >T : Symbol(T, Decl(twoGenericInterfacesWithDifferentConstraints.ts, 52, 12), Decl(twoGenericInterfacesWithDifferentConstraints.ts, 56, 12)) } -interface C { // error +interface C { // ok >C : Symbol(C, Decl(twoGenericInterfacesWithDifferentConstraints.ts, 50, 1), Decl(twoGenericInterfacesWithDifferentConstraints.ts, 54, 1)) >T : Symbol(T, Decl(twoGenericInterfacesWithDifferentConstraints.ts, 52, 12), Decl(twoGenericInterfacesWithDifferentConstraints.ts, 56, 12)) diff --git a/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.types b/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.types index 70a8be8cb3a..87877311b53 100644 --- a/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.types +++ b/tests/baselines/reference/twoGenericInterfacesWithDifferentConstraints.types @@ -70,7 +70,7 @@ interface C { >x : T } -interface C { // error +interface C { // ok y: T; >y : T } diff --git a/tests/cases/compiler/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.ts b/tests/cases/compiler/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.ts new file mode 100644 index 00000000000..7bbce8e8b03 --- /dev/null +++ b/tests/cases/compiler/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.ts @@ -0,0 +1,19 @@ +// @filename: working.ts +// minmal samples from #33395 +export namespace ns { + interface Function any> { + throttle(): Function; + } + interface Function { + unary(): Function<() => ReturnType>; + } +} +// @filename: regression.ts +export namespace ns { + interface Function { + unary(): Function<() => ReturnType>; + } + interface Function any> { + throttle(): Function; + } +} \ No newline at end of file diff --git a/tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDifferentConstraints.ts b/tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDifferentConstraints.ts index 4c698626eb0..6963277915a 100644 --- a/tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDifferentConstraints.ts +++ b/tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDifferentConstraints.ts @@ -54,7 +54,7 @@ interface C { x: T; } -interface C { // error +interface C { // ok y: T; } From e430f2a81cafb3fe31a32c42321c769a3d084056 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 18 Sep 2019 14:02:41 -0700 Subject: [PATCH 117/159] Add output file names api for supporting ts-loader --- src/compiler/builder.ts | 4 +- src/compiler/emitter.ts | 90 +++++++++++++------ src/compiler/program.ts | 4 +- src/compiler/tsbuild.ts | 2 +- src/compiler/watch.ts | 2 +- .../reference/api/tsserverlibrary.d.ts | 2 + tests/baselines/reference/api/typescript.d.ts | 2 + 7 files changed, 71 insertions(+), 35 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 653832c8dbd..a67a6a246cc 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -257,7 +257,7 @@ namespace ts { function convertToDiagnostics(diagnostics: readonly ReusableDiagnostic[], newProgram: Program, getCanonicalFileName: GetCanonicalFileName): readonly Diagnostic[] { if (!diagnostics.length) return emptyArray; - const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getOutputPathForBuildInfo(newProgram.getCompilerOptions())!, newProgram.getCurrentDirectory())); + const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions())!, newProgram.getCurrentDirectory())); return diagnostics.map(diagnostic => { const result: Diagnostic = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath); result.reportsUnnecessary = diagnostic.reportsUnnecessary; @@ -656,7 +656,7 @@ namespace ts { function getProgramBuildInfo(state: Readonly, getCanonicalFileName: GetCanonicalFileName): ProgramBuildInfo | undefined { if (state.compilerOptions.outFile || state.compilerOptions.out) return undefined; const currentDirectory = Debug.assertDefined(state.program).getCurrentDirectory(); - const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getOutputPathForBuildInfo(state.compilerOptions)!, currentDirectory)); + const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions)!, currentDirectory)); const fileInfos: MapLike = {}; state.fileInfos.forEach((value, key) => { const signature = state.currentAffectedFilesSignatures && state.currentAffectedFilesSignatures.get(key); diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 91df5402be3..7bad8359b26 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -45,14 +45,13 @@ namespace ts { } } if (includeBuildInfo) { - const buildInfoPath = getOutputPathForBuildInfo(host.getCompilerOptions()); + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(host.getCompilerOptions()); if (buildInfoPath) return action({ buildInfoPath }, /*sourceFileOrBundle*/ undefined); } } } - /*@internal*/ - export function getOutputPathForBuildInfo(options: CompilerOptions) { + export function getTsBuildInfoEmitOutputFilePath(options: CompilerOptions) { const configFile = options.configFilePath; if (!isIncrementalCompilation(options)) return undefined; if (options.tsBuildInfoFile) return options.tsBuildInfoFile; @@ -80,7 +79,7 @@ namespace ts { const sourceMapFilePath = jsFilePath && getSourceMapFilePath(jsFilePath, options); const declarationFilePath = (forceDtsPaths || getEmitDeclarations(options)) ? removeFileExtension(outPath) + Extension.Dts : undefined; const declarationMapPath = declarationFilePath && getAreDeclarationMapsEnabled(options) ? declarationFilePath + ".map" : undefined; - const buildInfoPath = getOutputPathForBuildInfo(options); + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options); return { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath }; } @@ -170,38 +169,71 @@ namespace ts { undefined; } + function createAddOutput() { + let outputs: string[] | undefined; + return { addOutput, getOutputs }; + function addOutput(path: string | undefined) { + if (path) { + (outputs || (outputs = [])).push(path); + } + } + function getOutputs(): readonly string[] { + return outputs || emptyArray; + } + } + + function getSingleOutputFileNames(configFile: ParsedCommandLine, addOutput: ReturnType["addOutput"]) { + const { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath } = getOutputPathsForBundle(configFile.options, /*forceDtsPaths*/ false); + addOutput(jsFilePath); + addOutput(sourceMapFilePath); + addOutput(declarationFilePath); + addOutput(declarationMapPath); + addOutput(buildInfoPath); + } + + function getOwnOutputFileNames(configFile: ParsedCommandLine, inputFileName: string, ignoreCase: boolean, addOutput: ReturnType["addOutput"]) { + if (fileExtensionIs(inputFileName, Extension.Dts)) return; + const js = getOutputJSFileName(inputFileName, configFile, ignoreCase); + addOutput(js); + if (fileExtensionIs(inputFileName, Extension.Json)) return; + if (js && configFile.options.sourceMap) { + addOutput(`${js}.map`); + } + if (getEmitDeclarations(configFile.options) && hasTSFileExtension(inputFileName)) { + const dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase); + addOutput(dts); + if (configFile.options.declarationMap) { + addOutput(`${dts}.map`); + } + } + } + /*@internal*/ export function getAllProjectOutputs(configFile: ParsedCommandLine, ignoreCase: boolean): readonly string[] { - let outputs: string[] | undefined; - const addOutput = (path: string | undefined) => path && (outputs || (outputs = [])).push(path); + const { addOutput, getOutputs } = createAddOutput(); if (configFile.options.outFile || configFile.options.out) { - const { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath } = getOutputPathsForBundle(configFile.options, /*forceDtsPaths*/ false); - addOutput(jsFilePath); - addOutput(sourceMapFilePath); - addOutput(declarationFilePath); - addOutput(declarationMapPath); - addOutput(buildInfoPath); + getSingleOutputFileNames(configFile, addOutput); } else { for (const inputFileName of configFile.fileNames) { - if (fileExtensionIs(inputFileName, Extension.Dts)) continue; - const js = getOutputJSFileName(inputFileName, configFile, ignoreCase); - addOutput(js); - if (fileExtensionIs(inputFileName, Extension.Json)) continue; - if (js && configFile.options.sourceMap) { - addOutput(`${js}.map`); - } - if (getEmitDeclarations(configFile.options) && hasTSFileExtension(inputFileName)) { - const dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase); - addOutput(dts); - if (configFile.options.declarationMap) { - addOutput(`${dts}.map`); - } - } + getOwnOutputFileNames(configFile, inputFileName, ignoreCase, addOutput); } - addOutput(getOutputPathForBuildInfo(configFile.options)); + addOutput(getTsBuildInfoEmitOutputFilePath(configFile.options)); } - return outputs || emptyArray; + return getOutputs(); + } + + export function getOutputFileNames(commandLine: ParsedCommandLine, inputFileName: string, ignoreCase: boolean): readonly string[] { + inputFileName = normalizePath(inputFileName); + Debug.assert(contains(commandLine.fileNames, inputFileName), `Expected fileName to be present in command line`); + const { addOutput, getOutputs } = createAddOutput(); + if (commandLine.options.outFile || commandLine.options.out) { + getSingleOutputFileNames(commandLine, addOutput); + } + else { + getOwnOutputFileNames(commandLine, inputFileName, ignoreCase, addOutput); + } + return getOutputs(); } /*@internal*/ @@ -220,7 +252,7 @@ namespace ts { return getOutputDeclarationFileName(inputFileName, configFile, ignoreCase); } } - const buildInfoPath = getOutputPathForBuildInfo(configFile.options); + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(configFile.options); if (buildInfoPath) return buildInfoPath; return Debug.fail(`project ${configFile.options.configFilePath} expected to have at least one output`); } diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 68eccdff307..427ab577bf3 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -3108,7 +3108,7 @@ namespace ts { } function verifyProjectReferences() { - const buildInfoPath = !options.noEmit && !options.suppressOutputPathCheck ? getOutputPathForBuildInfo(options) : undefined; + const buildInfoPath = !options.noEmit && !options.suppressOutputPathCheck ? getTsBuildInfoEmitOutputFilePath(options) : undefined; forEachProjectReference(projectReferences, resolvedProjectReferences, (resolvedRef, index, parent) => { const ref = (parent ? parent.commandLine.projectReferences : projectReferences)![index]; const parentFile = parent && parent.sourceFile as JsonSourceFile; @@ -3135,7 +3135,7 @@ namespace ts { createDiagnosticForReference(parentFile, index, Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set, ref.path); } } - if (!parent && buildInfoPath && buildInfoPath === getOutputPathForBuildInfo(options)) { + if (!parent && buildInfoPath && buildInfoPath === getTsBuildInfoEmitOutputFilePath(options)) { createDiagnosticForReference(parentFile, index, Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1, buildInfoPath, ref.path); hasEmitBlockingDiagnostics.set(toPath(buildInfoPath), true); } diff --git a/src/compiler/tsbuild.ts b/src/compiler/tsbuild.ts index d572fc9dad8..69b90135fd0 100644 --- a/src/compiler/tsbuild.ts +++ b/src/compiler/tsbuild.ts @@ -1621,7 +1621,7 @@ namespace ts { if (!state.buildInfoChecked.has(resolvedPath)) { state.buildInfoChecked.set(resolvedPath, true); - const buildInfoPath = getOutputPathForBuildInfo(project.options); + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(project.options); if (buildInfoPath) { const value = state.readFileWithCache(buildInfoPath); const buildInfo = value && getBuildInfo(value); diff --git a/src/compiler/watch.ts b/src/compiler/watch.ts index b3b4739a2c6..652b85d000d 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -447,7 +447,7 @@ namespace ts { } export function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost) { if (compilerOptions.out || compilerOptions.outFile) return undefined; - const buildInfoPath = getOutputPathForBuildInfo(compilerOptions); + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(compilerOptions); if (!buildInfoPath) return undefined; const content = host.readFile(buildInfoPath); if (!content) return undefined; diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 58d513b2e0a..79450ca83c9 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -4289,6 +4289,8 @@ declare namespace ts { function visitEachChild(node: T | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor?: typeof visitNodes, tokenVisitor?: Visitor): T | undefined; } declare namespace ts { + function getTsBuildInfoEmitOutputFilePath(options: CompilerOptions): string | undefined; + function getOutputFileNames(commandLine: ParsedCommandLine, inputFileName: string, ignoreCase: boolean): readonly string[]; function createPrinter(printerOptions?: PrinterOptions, handlers?: PrintHandlers): Printer; } declare namespace ts { diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index bc71eaffa37..f0ae718d570 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -4289,6 +4289,8 @@ declare namespace ts { function visitEachChild(node: T | undefined, visitor: Visitor, context: TransformationContext, nodesVisitor?: typeof visitNodes, tokenVisitor?: Visitor): T | undefined; } declare namespace ts { + function getTsBuildInfoEmitOutputFilePath(options: CompilerOptions): string | undefined; + function getOutputFileNames(commandLine: ParsedCommandLine, inputFileName: string, ignoreCase: boolean): readonly string[]; function createPrinter(printerOptions?: PrinterOptions, handlers?: PrintHandlers): Printer; } declare namespace ts { From cafec556f338b1ef9bc06f88eb324a28df5b1d9b Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 18 Sep 2019 15:20:20 -0700 Subject: [PATCH 118/159] Properly handle try-finally statements in isReachableFlowNode --- src/compiler/checker.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 7e9e8bd4b0e..77814ccc544 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -17003,6 +17003,10 @@ namespace ts { return result; } + function isUnlockedReachableFlowNode(flow: FlowNode) { + return !(flow.flags & FlowFlags.PreFinally && (flow).lock.locked) && isReachableFlowNodeWorker(flow, /*skipCacheCheck*/ false); + } + function isReachableFlowNodeWorker(flow: FlowNode, noCacheCheck: boolean): boolean { while (true) { if (flow === lastFlowNode) { @@ -17017,8 +17021,8 @@ namespace ts { } noCacheCheck = false; } - if (flags & (FlowFlags.Assignment | FlowFlags.Condition | FlowFlags.ArrayMutation | FlowFlags.PreFinally | FlowFlags.AfterFinally)) { - flow = (flow).antecedent; + if (flags & (FlowFlags.Assignment | FlowFlags.Condition | FlowFlags.ArrayMutation | FlowFlags.PreFinally)) { + flow = (flow).antecedent; } else if (flags & FlowFlags.Call) { const signature = getEffectsSignature((flow).node); @@ -17029,7 +17033,7 @@ namespace ts { } else if (flags & FlowFlags.BranchLabel) { // A branching point is reachable if any branch is reachable. - return some((flow).antecedents, isReachableFlowNode); + return some((flow).antecedents, isUnlockedReachableFlowNode); } else if (flags & FlowFlags.LoopLabel) { // A loop is reachable if the control flow path that leads to the top is reachable. @@ -17043,6 +17047,14 @@ namespace ts { } flow = (flow).antecedent; } + else if (flags & FlowFlags.AfterFinally) { + // Cache is unreliable once we start locking nodes + lastFlowNode = undefined; + (flow).locked = true; + const result = isReachableFlowNodeWorker((flow).antecedent, /*skipCacheCheck*/ false); + (flow).locked = false; + return result; + } else { return !(flags & FlowFlags.Unreachable); } From 940231785e8b99df9af1ba39433ba10b120e51ca Mon Sep 17 00:00:00 2001 From: Nathan Fenner Date: Tue, 17 Sep 2019 15:00:37 -0700 Subject: [PATCH 119/159] report error on extra jsx prop instead of component name --- src/compiler/checker.ts | 10 ++++++++ .../checkJsxChildrenProperty15.errors.txt | 4 ++-- ...StringLiteralsInJsxAttributes02.errors.txt | 24 +++++++++---------- .../tsxAttributeResolution1.errors.txt | 12 +++++----- .../tsxAttributeResolution11.errors.txt | 4 ++-- .../tsxAttributeResolution15.errors.txt | 4 ++-- .../tsxElementResolution11.errors.txt | 4 ++-- .../tsxElementResolution3.errors.txt | 4 ++-- .../tsxElementResolution4.errors.txt | 4 ++-- .../tsxLibraryManagedAttributes.errors.txt | 16 ++++++------- ...tsxSpreadAttributesResolution14.errors.txt | 4 ++-- .../tsxSpreadAttributesResolution2.errors.txt | 4 ++-- ...elessFunctionComponentOverload4.errors.txt | 16 ++++++------- ...elessFunctionComponentOverload5.errors.txt | 4 ++-- ...tsxStatelessFunctionComponents1.errors.txt | 16 ++++++------- ...tsxStatelessFunctionComponents2.errors.txt | 4 ++-- .../reference/tsxUnionElementType4.errors.txt | 8 +++---- .../reference/tsxUnionElementType6.errors.txt | 4 ++-- 18 files changed, 78 insertions(+), 68 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 463d00c13e2..f361657e2f8 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -13040,6 +13040,16 @@ namespace ts { // JsxAttributes has an object-literal flag and undergo same type-assignablity check as normal object-literal. // However, using an object-literal error message will be very confusing to the users so we give different a message. // TODO: Spelling suggestions for excess jsx attributes (needs new diagnostic messages) + + if (errorNode && isJsxOpeningLikeElement(errorNode.parent)) { + const attributes = errorNode.parent.attributes; + for (const jsxProperty of attributes.properties) { + if (jsxProperty.kind === SyntaxKind.JsxAttribute && jsxProperty.name.escapedText === prop.escapedName) { + // Move the error node to the actual JSX property, instead of pointing to the identifier in the JSX element. + errorNode = jsxProperty; + } + } + } reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(prop), typeToString(errorTarget)); } else { diff --git a/tests/baselines/reference/checkJsxChildrenProperty15.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty15.errors.txt index 605a293ffaa..fa034be0f18 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty15.errors.txt +++ b/tests/baselines/reference/checkJsxChildrenProperty15.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/jsx/file.tsx(10,13): error TS2322: Type '{ children: Element; }' is not assignable to type 'IntrinsicAttributes'. +tests/cases/conformance/jsx/file.tsx(10,17): error TS2322: Type '{ children: Element; }' is not assignable to type 'IntrinsicAttributes'. Property 'children' does not exist on type 'IntrinsicAttributes'. tests/cases/conformance/jsx/file.tsx(11,13): error TS2322: Type '{ children: Element; key: string; }' is not assignable to type 'IntrinsicAttributes'. Property 'children' does not exist on type 'IntrinsicAttributes'. @@ -17,7 +17,7 @@ tests/cases/conformance/jsx/file.tsx(12,13): error TS2322: Type '{ children: Ele // Not OK (excess children) const k3 = } />; - ~~~ + ~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2322: Type '{ children: Element; }' is not assignable to type 'IntrinsicAttributes'. !!! error TS2322: Property 'children' does not exist on type 'IntrinsicAttributes'. const k4 =
; diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt index ff2ec7e5106..b66975fdb73 100644 --- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt +++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt @@ -1,34 +1,34 @@ -tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(27,13): error TS2769: No overload matches this call. +tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(27,64): error TS2769: No overload matches this call. Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. -tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(28,13): error TS2769: No overload matches this call. +tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(28,12): error TS2769: No overload matches this call. Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'. -tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(29,13): error TS2769: No overload matches this call. +tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(29,43): error TS2769: No overload matches this call. Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ extra: true; goTo: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. Type '{ extra: true; goTo: "home"; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. -tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(30,13): error TS2769: No overload matches this call. +tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(30,12): error TS2769: No overload matches this call. Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ goTo: string; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. Property 'goTo' does not exist on type 'IntrinsicAttributes & ButtonProps'. Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. -tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(33,13): error TS2322: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(33,65): error TS2322: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. -tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,13): error TS2322: Type '{ extra: true; goTo: "home"; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. +tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,44): error TS2322: Type '{ extra: true; goTo: "home"; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. @@ -60,7 +60,7 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,13): err } const b0 = {console.log(k)}}} extra />; // k has type "left" | "right" - ~~~~~~~~~~ + ~~~~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. !!! error TS2769: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. @@ -69,7 +69,7 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,13): err !!! error TS2769: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. !!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. const b2 = {console.log(k)}} extra />; // k has type "left" | "right" - ~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. !!! error TS2769: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. @@ -78,7 +78,7 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,13): err !!! error TS2769: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. !!! error TS2769: Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'. const b3 = ; // goTo has type"home" | "contact" - ~~~~~~~~~~ + ~~~~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. !!! error TS2769: Type '{ extra: true; goTo: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. @@ -87,7 +87,7 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,13): err !!! error TS2769: Type '{ extra: true; goTo: "home"; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. !!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. const b4 = ; // goTo has type "home" | "contact" - ~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. !!! error TS2769: Type '{ goTo: string; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. @@ -98,13 +98,13 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,13): err export function NoOverload(buttonProps: ButtonProps): JSX.Element { return undefined } const c1 = {console.log(k)}}} extra />; // k has type any - ~~~~~~~~~~ + ~~~~~ !!! error TS2322: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. !!! error TS2322: Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. export function NoOverload1(linkProps: LinkProps): JSX.Element { return undefined } const d1 = ; // goTo has type "home" | "contact" - ~~~~~~~~~~~ + ~~~~~ !!! error TS2322: Type '{ extra: true; goTo: "home"; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. !!! error TS2322: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. \ No newline at end of file diff --git a/tests/baselines/reference/tsxAttributeResolution1.errors.txt b/tests/baselines/reference/tsxAttributeResolution1.errors.txt index 9fc3e8f94da..00e35caf3a2 100644 --- a/tests/baselines/reference/tsxAttributeResolution1.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution1.errors.txt @@ -1,10 +1,10 @@ tests/cases/conformance/jsx/file.tsx(23,8): error TS2322: Type 'string' is not assignable to type 'number'. -tests/cases/conformance/jsx/file.tsx(24,2): error TS2322: Type '{ y: number; }' is not assignable to type 'Attribs1'. +tests/cases/conformance/jsx/file.tsx(24,8): error TS2322: Type '{ y: number; }' is not assignable to type 'Attribs1'. Property 'y' does not exist on type 'Attribs1'. -tests/cases/conformance/jsx/file.tsx(25,2): error TS2322: Type '{ y: string; }' is not assignable to type 'Attribs1'. +tests/cases/conformance/jsx/file.tsx(25,8): error TS2322: Type '{ y: string; }' is not assignable to type 'Attribs1'. Property 'y' does not exist on type 'Attribs1'. tests/cases/conformance/jsx/file.tsx(26,8): error TS2322: Type 'string' is not assignable to type 'number'. -tests/cases/conformance/jsx/file.tsx(27,2): error TS2322: Type '{ var: string; }' is not assignable to type 'Attribs1'. +tests/cases/conformance/jsx/file.tsx(27,8): error TS2322: Type '{ var: string; }' is not assignable to type 'Attribs1'. Property 'var' does not exist on type 'Attribs1'. tests/cases/conformance/jsx/file.tsx(29,2): error TS2741: Property 'reqd' is missing in type '{}' but required in type '{ reqd: string; }'. tests/cases/conformance/jsx/file.tsx(30,8): error TS2322: Type 'number' is not assignable to type 'string'. @@ -38,11 +38,11 @@ tests/cases/conformance/jsx/file.tsx(30,8): error TS2322: Type 'number' is not a !!! error TS2322: Type 'string' is not assignable to type 'number'. !!! related TS6500 tests/cases/conformance/jsx/file.tsx:10:2: The expected type comes from property 'x' which is declared here on type 'Attribs1' ; // Error, no property "y" - ~~~~~ + ~~~~~ !!! error TS2322: Type '{ y: number; }' is not assignable to type 'Attribs1'. !!! error TS2322: Property 'y' does not exist on type 'Attribs1'. ; // Error, no property "y" - ~~~~~ + ~~~~~~~ !!! error TS2322: Type '{ y: string; }' is not assignable to type 'Attribs1'. !!! error TS2322: Property 'y' does not exist on type 'Attribs1'. ; // Error, "32" is not number @@ -50,7 +50,7 @@ tests/cases/conformance/jsx/file.tsx(30,8): error TS2322: Type 'number' is not a !!! error TS2322: Type 'string' is not assignable to type 'number'. !!! related TS6500 tests/cases/conformance/jsx/file.tsx:10:2: The expected type comes from property 'x' which is declared here on type 'Attribs1' ; // Error, no 'var' property - ~~~~~ + ~~~~~~~~ !!! error TS2322: Type '{ var: string; }' is not assignable to type 'Attribs1'. !!! error TS2322: Property 'var' does not exist on type 'Attribs1'. diff --git a/tests/baselines/reference/tsxAttributeResolution11.errors.txt b/tests/baselines/reference/tsxAttributeResolution11.errors.txt index 6c6a23a9b70..163932ce2e0 100644 --- a/tests/baselines/reference/tsxAttributeResolution11.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution11.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/jsx/file.tsx(11,10): error TS2322: Type '{ bar: string; }' is not assignable to type 'IntrinsicAttributes & { ref?: string; }'. +tests/cases/conformance/jsx/file.tsx(11,22): error TS2322: Type '{ bar: string; }' is not assignable to type 'IntrinsicAttributes & { ref?: string; }'. Property 'bar' does not exist on type 'IntrinsicAttributes & { ref?: string; }'. @@ -27,7 +27,7 @@ tests/cases/conformance/jsx/file.tsx(11,10): error TS2322: Type '{ bar: string; // Should be an OK var x = ; - ~~~~~~~~~~~ + ~~~~~~~~~~~ !!! error TS2322: Type '{ bar: string; }' is not assignable to type 'IntrinsicAttributes & { ref?: string; }'. !!! error TS2322: Property 'bar' does not exist on type 'IntrinsicAttributes & { ref?: string; }'. diff --git a/tests/baselines/reference/tsxAttributeResolution15.errors.txt b/tests/baselines/reference/tsxAttributeResolution15.errors.txt index ca86178b578..b147464b840 100644 --- a/tests/baselines/reference/tsxAttributeResolution15.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution15.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/jsx/file.tsx(11,10): error TS2322: Type '{ prop1: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. +tests/cases/conformance/jsx/file.tsx(11,21): error TS2322: Type '{ prop1: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. Property 'prop1' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. tests/cases/conformance/jsx/file.tsx(14,44): error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature. @@ -15,7 +15,7 @@ tests/cases/conformance/jsx/file.tsx(14,44): error TS7017: Element implicitly ha // Error let a = - ~~~~~~~~~~ + ~~~~~~~~~~~~~ !!! error TS2322: Type '{ prop1: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. !!! error TS2322: Property 'prop1' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. diff --git a/tests/baselines/reference/tsxElementResolution11.errors.txt b/tests/baselines/reference/tsxElementResolution11.errors.txt index d08a6ed2721..59ce93a4ccf 100644 --- a/tests/baselines/reference/tsxElementResolution11.errors.txt +++ b/tests/baselines/reference/tsxElementResolution11.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/jsx/file.tsx(17,2): error TS2322: Type '{ x: number; }' is not assignable to type '{ q?: number; }'. +tests/cases/conformance/jsx/file.tsx(17,7): error TS2322: Type '{ x: number; }' is not assignable to type '{ q?: number; }'. Property 'x' does not exist on type '{ q?: number; }'. @@ -20,7 +20,7 @@ tests/cases/conformance/jsx/file.tsx(17,2): error TS2322: Type '{ x: number; }' } var Obj2: Obj2type; ; // Error - ~~~~ + ~~~~~~ !!! error TS2322: Type '{ x: number; }' is not assignable to type '{ q?: number; }'. !!! error TS2322: Property 'x' does not exist on type '{ q?: number; }'. diff --git a/tests/baselines/reference/tsxElementResolution3.errors.txt b/tests/baselines/reference/tsxElementResolution3.errors.txt index f220dbd8a5b..c5a11b9cbc1 100644 --- a/tests/baselines/reference/tsxElementResolution3.errors.txt +++ b/tests/baselines/reference/tsxElementResolution3.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/jsx/file.tsx(12,2): error TS2322: Type '{ w: string; }' is not assignable to type '{ n: string; }'. +tests/cases/conformance/jsx/file.tsx(12,7): error TS2322: Type '{ w: string; }' is not assignable to type '{ n: string; }'. Property 'w' does not exist on type '{ n: string; }'. @@ -15,6 +15,6 @@ tests/cases/conformance/jsx/file.tsx(12,2): error TS2322: Type '{ w: string; }' // Error ; - ~~~~ + ~~~~~~~ !!! error TS2322: Type '{ w: string; }' is not assignable to type '{ n: string; }'. !!! error TS2322: Property 'w' does not exist on type '{ n: string; }'. \ No newline at end of file diff --git a/tests/baselines/reference/tsxElementResolution4.errors.txt b/tests/baselines/reference/tsxElementResolution4.errors.txt index f76925030f2..ea2ae7b0073 100644 --- a/tests/baselines/reference/tsxElementResolution4.errors.txt +++ b/tests/baselines/reference/tsxElementResolution4.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/jsx/file.tsx(16,2): error TS2322: Type '{ q: string; }' is not assignable to type '{ m: string; }'. +tests/cases/conformance/jsx/file.tsx(16,7): error TS2322: Type '{ q: string; }' is not assignable to type '{ m: string; }'. Property 'q' does not exist on type '{ m: string; }'. @@ -19,7 +19,7 @@ tests/cases/conformance/jsx/file.tsx(16,2): error TS2322: Type '{ q: string; }' // Error ; - ~~~~ + ~~~~ !!! error TS2322: Type '{ q: string; }' is not assignable to type '{ m: string; }'. !!! error TS2322: Property 'q' does not exist on type '{ m: string; }'. \ No newline at end of file diff --git a/tests/baselines/reference/tsxLibraryManagedAttributes.errors.txt b/tests/baselines/reference/tsxLibraryManagedAttributes.errors.txt index b34ee77d1fb..6bf817f0c7d 100644 --- a/tests/baselines/reference/tsxLibraryManagedAttributes.errors.txt +++ b/tests/baselines/reference/tsxLibraryManagedAttributes.errors.txt @@ -1,22 +1,22 @@ tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(55,12): error TS2322: Type '{ foo: number; }' is not assignable to type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: number; }>'. Type '{ foo: number; }' is missing the following properties from type '{ bar: string | number | ReactComponent<{}, {}> | null | undefined; baz: string; }': bar, baz -tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(57,12): error TS2322: Type '{ bar: string; baz: string; bat: string; }' is not assignable to type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: number; }>'. +tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(57,41): error TS2322: Type '{ bar: string; baz: string; bat: string; }' is not assignable to type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: number; }>'. Property 'bat' does not exist on type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: number; }>'. tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(59,42): error TS2322: Type 'null' is not assignable to type 'string'. tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(69,26): error TS2322: Type 'string' is not assignable to type 'number | null | undefined'. tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(71,35): error TS2322: Type 'null' is not assignable to type 'ReactNode'. -tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(80,12): error TS2322: Type '{ foo: number; bar: string; }' is not assignable to type 'Defaultize<{}, { foo: number; }>'. +tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(80,38): error TS2322: Type '{ foo: number; bar: string; }' is not assignable to type 'Defaultize<{}, { foo: number; }>'. Property 'bar' does not exist on type 'Defaultize<{}, { foo: number; }>'. tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(81,29): error TS2322: Type 'string' is not assignable to type 'number | undefined'. tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(98,12): error TS2322: Type '{ foo: string; }' is not assignable to type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: string; }>'. Type '{ foo: string; }' is missing the following properties from type '{ bar: string | number | ReactComponent<{}, {}> | null | undefined; baz: number; }': bar, baz -tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(100,12): error TS2322: Type '{ bar: string; baz: number; bat: string; }' is not assignable to type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: string; }>'. +tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(100,56): error TS2322: Type '{ bar: string; baz: number; bat: string; }' is not assignable to type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: string; }>'. Property 'bat' does not exist on type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: string; }>'. tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(102,57): error TS2322: Type 'null' is not assignable to type 'number'. tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(111,46): error TS2322: Type 'number' is not assignable to type 'string'. tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(112,46): error TS2322: Type 'null' is not assignable to type 'string'. tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(113,57): error TS2322: Type 'null' is not assignable to type 'ReactNode'. -tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(122,12): error TS2322: Type '{ foo: string; bar: string; }' is not assignable to type 'Defaultize'. +tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(122,58): error TS2322: Type '{ foo: string; bar: string; }' is not assignable to type 'Defaultize'. Property 'bar' does not exist on type 'Defaultize'. tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(123,49): error TS2322: Type 'number' is not assignable to type 'string | undefined'. @@ -82,7 +82,7 @@ tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(123,49): error TS232 !!! error TS2322: Type '{ foo: number; }' is missing the following properties from type '{ bar: string | number | ReactComponent<{}, {}> | null | undefined; baz: string; }': bar, baz const c = ; const d = ; // Error, baz not a valid prop - ~~~~~~~~~ + ~~~~~~~~~~ !!! error TS2322: Type '{ bar: string; baz: string; bat: string; }' is not assignable to type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: number; }>'. !!! error TS2322: Property 'bat' does not exist on type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: number; }>'. const e = ; // bar is nullable/undefinable since it's not marked `isRequired` @@ -116,7 +116,7 @@ tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(123,49): error TS232 const k = ; const l = ; // error, no prop named bar - ~~~~~~~~~~~~~~~~ + ~~~~~~~~ !!! error TS2322: Type '{ foo: number; bar: string; }' is not assignable to type 'Defaultize<{}, { foo: number; }>'. !!! error TS2322: Property 'bar' does not exist on type 'Defaultize<{}, { foo: number; }>'. const m = ; // error, wrong type @@ -145,7 +145,7 @@ tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(123,49): error TS232 !!! error TS2322: Type '{ foo: string; }' is missing the following properties from type '{ bar: string | number | ReactComponent<{}, {}> | null | undefined; baz: number; }': bar, baz const p = ; const q = ; // Error, baz not a valid prop - ~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~ !!! error TS2322: Type '{ bar: string; baz: number; bat: string; }' is not assignable to type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: string; }>'. !!! error TS2322: Property 'bat' does not exist on type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: string; }>'. const r = ; // bar is nullable/undefinable since it's not marked `isRequired` @@ -181,7 +181,7 @@ tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(123,49): error TS232 const x = ; const y = ; // error, no prop named bar - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~ !!! error TS2322: Type '{ foo: string; bar: string; }' is not assignable to type 'Defaultize'. !!! error TS2322: Property 'bar' does not exist on type 'Defaultize'. const z = ; // error, wrong type diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution14.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution14.errors.txt index 67beb30ccb0..f000257b9d5 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution14.errors.txt +++ b/tests/baselines/reference/tsxSpreadAttributesResolution14.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/jsx/file.tsx(11,10): error TS2322: Type '{ Property1: true; property1: string; property2: number; }' is not assignable to type 'IntrinsicAttributes & AnotherComponentProps'. +tests/cases/conformance/jsx/file.tsx(11,38): error TS2322: Type '{ Property1: true; property1: string; property2: number; }' is not assignable to type 'IntrinsicAttributes & AnotherComponentProps'. Property 'Property1' does not exist on type 'IntrinsicAttributes & AnotherComponentProps'. @@ -14,7 +14,7 @@ tests/cases/conformance/jsx/file.tsx(11,10): error TS2322: Type '{ Property1: tr return ( // Error extra property - ~~~~~~~~~~~~~~~~ + ~~~~~~~~~ !!! error TS2322: Type '{ Property1: true; property1: string; property2: number; }' is not assignable to type 'IntrinsicAttributes & AnotherComponentProps'. !!! error TS2322: Property 'Property1' does not exist on type 'IntrinsicAttributes & AnotherComponentProps'. ); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt index d9748382f25..e46732e0cde 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt +++ b/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt @@ -5,7 +5,7 @@ tests/cases/conformance/jsx/file.tsx(22,21): error TS2322: Type 'true' is not as tests/cases/conformance/jsx/file.tsx(23,10): error TS2322: Type '{ x: number; y: "2"; }' is not assignable to type 'PoisonedProp'. Types of property 'x' are incompatible. Type 'number' is not assignable to type 'string'. -tests/cases/conformance/jsx/file.tsx(24,11): error TS2322: Type '{ X: string; x: number; y: "2"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & PoisonedProp & { children?: ReactNode; }'. +tests/cases/conformance/jsx/file.tsx(24,40): error TS2322: Type '{ X: string; x: number; y: "2"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & PoisonedProp & { children?: ReactNode; }'. Property 'X' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & PoisonedProp & { children?: ReactNode; }'. @@ -48,6 +48,6 @@ tests/cases/conformance/jsx/file.tsx(24,11): error TS2322: Type '{ X: string; x: !!! error TS2322: Types of property 'x' are incompatible. !!! error TS2322: Type 'number' is not assignable to type 'string'. let w1 = ; - ~~~~~~~~ + ~~~~~~ !!! error TS2322: Type '{ X: string; x: number; y: "2"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & PoisonedProp & { children?: ReactNode; }'. !!! error TS2322: Property 'X' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & PoisonedProp & { children?: ReactNode; }'. \ No newline at end of file diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt index 5318c77efae..43935105d84 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt @@ -1,23 +1,23 @@ -tests/cases/conformance/jsx/file.tsx(12,13): error TS2769: No overload matches this call. +tests/cases/conformance/jsx/file.tsx(12,22): error TS2769: No overload matches this call. Overload 1 of 2, '(): Element', gave the following error. Type '{ extraProp: true; }' is not assignable to type 'IntrinsicAttributes'. Property 'extraProp' does not exist on type 'IntrinsicAttributes'. Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. Type '{ extraProp: true; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'. Property 'extraProp' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'. -tests/cases/conformance/jsx/file.tsx(13,13): error TS2769: No overload matches this call. +tests/cases/conformance/jsx/file.tsx(13,12): error TS2769: No overload matches this call. Overload 1 of 2, '(): Element', gave the following error. Type '{ yy: number; }' is not assignable to type 'IntrinsicAttributes'. Property 'yy' does not exist on type 'IntrinsicAttributes'. Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. Property 'yy1' is missing in type '{ yy: number; }' but required in type '{ yy: number; yy1: string; }'. -tests/cases/conformance/jsx/file.tsx(14,12): error TS2769: No overload matches this call. +tests/cases/conformance/jsx/file.tsx(14,31): error TS2769: No overload matches this call. Overload 1 of 2, '(): Element', gave the following error. Type '{ yy1: true; yy: number; }' is not assignable to type 'IntrinsicAttributes'. Property 'yy1' does not exist on type 'IntrinsicAttributes'. Overload 2 of 2, '(l: { yy: number; yy1: string; }): Element', gave the following error. Type 'true' is not assignable to type 'string'. -tests/cases/conformance/jsx/file.tsx(16,13): error TS2769: No overload matches this call. +tests/cases/conformance/jsx/file.tsx(16,31): error TS2769: No overload matches this call. Overload 1 of 2, '(): Element', gave the following error. Type '{ y1: number; yy: number; yy1: string; }' is not assignable to type 'IntrinsicAttributes'. Property 'y1' does not exist on type 'IntrinsicAttributes'. @@ -89,7 +89,7 @@ tests/cases/conformance/jsx/file.tsx(36,12): error TS2769: No overload matches t // Error const c0 = ; // extra property; - ~~~~~~~~ + ~~~~~~~~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(): Element', gave the following error. !!! error TS2769: Type '{ extraProp: true; }' is not assignable to type 'IntrinsicAttributes'. @@ -98,7 +98,7 @@ tests/cases/conformance/jsx/file.tsx(36,12): error TS2769: No overload matches t !!! error TS2769: Type '{ extraProp: true; }' is not assignable to type 'IntrinsicAttributes & { yy: number; yy1: string; }'. !!! error TS2769: Property 'extraProp' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'. const c1 = ; // missing property; - ~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(): Element', gave the following error. !!! error TS2769: Type '{ yy: number; }' is not assignable to type 'IntrinsicAttributes'. @@ -107,7 +107,7 @@ tests/cases/conformance/jsx/file.tsx(36,12): error TS2769: No overload matches t !!! error TS2769: Property 'yy1' is missing in type '{ yy: number; }' but required in type '{ yy: number; yy1: string; }'. !!! related TS2728 tests/cases/conformance/jsx/file.tsx:3:43: 'yy1' is declared here. const c2 = ; // type incompatible; - ~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(): Element', gave the following error. !!! error TS2769: Type '{ yy1: true; yy: number; }' is not assignable to type 'IntrinsicAttributes'. @@ -117,7 +117,7 @@ tests/cases/conformance/jsx/file.tsx(36,12): error TS2769: No overload matches t !!! related TS6500 tests/cases/conformance/jsx/file.tsx:3:43: The expected type comes from property 'yy1' which is declared here on type 'IntrinsicAttributes & { yy: number; yy1: string; }' const c3 = ; // This is OK becuase all attribute are spread const c4 = ; // extra property; - ~~~~~~~~ + ~~~~~~~~~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(): Element', gave the following error. !!! error TS2769: Type '{ y1: number; yy: number; yy1: string; }' is not assignable to type 'IntrinsicAttributes'. diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt index faf129dda4b..aa2e4fe19c6 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/jsx/file.tsx(48,13): error TS2769: No overload matches this call. +tests/cases/conformance/jsx/file.tsx(48,12): error TS2769: No overload matches this call. Overload 1 of 3, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. Property 'to' does not exist on type 'IntrinsicAttributes & ButtonProps'. @@ -80,7 +80,7 @@ tests/cases/conformance/jsx/file.tsx(56,12): error TS2769: No overload matches t // Error const b0 = {}}>GO; // extra property; - ~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 3, '(buttonProps: ButtonProps): Element', gave the following error. !!! error TS2769: Type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt index 2ca7adfbc3e..a8ba635f7a7 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt @@ -1,12 +1,12 @@ -tests/cases/conformance/jsx/file.tsx(19,10): error TS2322: Type '{ naaame: string; }' is not assignable to type 'IntrinsicAttributes & { name: string; }'. +tests/cases/conformance/jsx/file.tsx(19,16): error TS2322: Type '{ naaame: string; }' is not assignable to type 'IntrinsicAttributes & { name: string; }'. Property 'naaame' does not exist on type 'IntrinsicAttributes & { name: string; }'. tests/cases/conformance/jsx/file.tsx(27,15): error TS2322: Type 'number' is not assignable to type 'string'. -tests/cases/conformance/jsx/file.tsx(29,10): error TS2322: Type '{ naaaaaaame: string; }' is not assignable to type 'IntrinsicAttributes & { name?: string; }'. +tests/cases/conformance/jsx/file.tsx(29,15): error TS2322: Type '{ naaaaaaame: string; }' is not assignable to type 'IntrinsicAttributes & { name?: string; }'. Property 'naaaaaaame' does not exist on type 'IntrinsicAttributes & { name?: string; }'. tests/cases/conformance/jsx/file.tsx(34,10): error TS2741: Property '"prop-name"' is missing in type '{ extra-prop-name: string; }' but required in type '{ "prop-name": string; }'. -tests/cases/conformance/jsx/file.tsx(37,10): error TS2322: Type '{ prop1: true; }' is not assignable to type 'IntrinsicAttributes'. +tests/cases/conformance/jsx/file.tsx(37,23): error TS2322: Type '{ prop1: true; }' is not assignable to type 'IntrinsicAttributes'. Property 'prop1' does not exist on type 'IntrinsicAttributes'. -tests/cases/conformance/jsx/file.tsx(38,11): error TS2322: Type '{ ref: (x: any) => any; }' is not assignable to type 'IntrinsicAttributes'. +tests/cases/conformance/jsx/file.tsx(38,24): error TS2322: Type '{ ref: (x: any) => any; }' is not assignable to type 'IntrinsicAttributes'. Property 'ref' does not exist on type 'IntrinsicAttributes'. tests/cases/conformance/jsx/file.tsx(41,16): error TS1005: ',' expected. tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolean; }' has no properties in common with type 'IntrinsicAttributes'. @@ -32,7 +32,7 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea let a1 = ; // Error let b = ; - ~~~~~ + ~~~~~~~~~~~~~~ !!! error TS2322: Type '{ naaame: string; }' is not assignable to type 'IntrinsicAttributes & { name: string; }'. !!! error TS2322: Property 'naaame' does not exist on type 'IntrinsicAttributes & { name: string; }'. @@ -47,7 +47,7 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea !!! error TS2322: Type 'number' is not assignable to type 'string'. // Error let f = ; - ~~~~ + ~~~~~~~~~~~~~~~ !!! error TS2322: Type '{ naaaaaaame: string; }' is not assignable to type 'IntrinsicAttributes & { name?: string; }'. !!! error TS2322: Property 'naaaaaaame' does not exist on type 'IntrinsicAttributes & { name?: string; }'. @@ -61,11 +61,11 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea // Error let i = - ~~~~~~~~~~~~ + ~~~~~ !!! error TS2322: Type '{ prop1: true; }' is not assignable to type 'IntrinsicAttributes'. !!! error TS2322: Property 'prop1' does not exist on type 'IntrinsicAttributes'. let i1 = x.greeting.substr(10)} /> - ~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ !!! error TS2322: Type '{ ref: (x: any) => any; }' is not assignable to type 'IntrinsicAttributes'. !!! error TS2322: Property 'ref' does not exist on type 'IntrinsicAttributes'. diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt index 551d0e72523..57ef8c2efbf 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/jsx/file.tsx(19,10): error TS2322: Type '{ ref: string; }' is not assignable to type 'IntrinsicAttributes & { name?: string; }'. +tests/cases/conformance/jsx/file.tsx(19,16): error TS2322: Type '{ ref: string; }' is not assignable to type 'IntrinsicAttributes & { name?: string; }'. Property 'ref' does not exist on type 'IntrinsicAttributes & { name?: string; }'. tests/cases/conformance/jsx/file.tsx(25,42): error TS2551: Property 'subtr' does not exist on type 'string'. Did you mean 'substr'? tests/cases/conformance/jsx/file.tsx(27,33): error TS2339: Property 'notARealProperty' does not exist on type 'BigGreeter'. @@ -25,7 +25,7 @@ tests/cases/conformance/jsx/file.tsx(35,26): error TS2339: Property 'propertyNot let b = ; // Error - not allowed to specify 'ref' on SFCs let c = ; - ~~~~~ + ~~~~~~~~~~~ !!! error TS2322: Type '{ ref: string; }' is not assignable to type 'IntrinsicAttributes & { name?: string; }'. !!! error TS2322: Property 'ref' does not exist on type 'IntrinsicAttributes & { name?: string; }'. diff --git a/tests/baselines/reference/tsxUnionElementType4.errors.txt b/tests/baselines/reference/tsxUnionElementType4.errors.txt index bca0229de54..2048b100c11 100644 --- a/tests/baselines/reference/tsxUnionElementType4.errors.txt +++ b/tests/baselines/reference/tsxUnionElementType4.errors.txt @@ -1,7 +1,7 @@ tests/cases/conformance/jsx/file.tsx(32,17): error TS2322: Type 'true' is not assignable to type 'never'. -tests/cases/conformance/jsx/file.tsx(33,10): error TS2322: Type '{ x: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. +tests/cases/conformance/jsx/file.tsx(33,21): error TS2322: Type '{ x: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. Property 'x' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. -tests/cases/conformance/jsx/file.tsx(34,10): error TS2322: Type '{ prop: true; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. +tests/cases/conformance/jsx/file.tsx(34,22): error TS2322: Type '{ prop: true; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. Property 'prop' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. @@ -42,11 +42,11 @@ tests/cases/conformance/jsx/file.tsx(34,10): error TS2322: Type '{ prop: true; } !!! error TS2322: Type 'true' is not assignable to type 'never'. !!! related TS6500 tests/cases/conformance/jsx/file.tsx:3:36: The expected type comes from property 'x' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes & { x: number; } & { children?: ReactNode; } & { x: string; } & { children?: ReactNode; }' let b = - ~~~~~~~~~~ + ~~~~~~ !!! error TS2322: Type '{ x: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. !!! error TS2322: Property 'x' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. let c = ; - ~~~~~~~~~~~ + ~~~~ !!! error TS2322: Type '{ prop: true; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. !!! error TS2322: Property 'prop' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. \ No newline at end of file diff --git a/tests/baselines/reference/tsxUnionElementType6.errors.txt b/tests/baselines/reference/tsxUnionElementType6.errors.txt index 790285f2978..cad93a38ae9 100644 --- a/tests/baselines/reference/tsxUnionElementType6.errors.txt +++ b/tests/baselines/reference/tsxUnionElementType6.errors.txt @@ -1,4 +1,4 @@ -tests/cases/conformance/jsx/file.tsx(18,10): error TS2322: Type '{ x: true; }' is not assignable to type 'IntrinsicAttributes'. +tests/cases/conformance/jsx/file.tsx(18,23): error TS2322: Type '{ x: true; }' is not assignable to type 'IntrinsicAttributes'. Property 'x' does not exist on type 'IntrinsicAttributes'. tests/cases/conformance/jsx/file.tsx(19,27): error TS2322: Type 'string' is not assignable to type 'boolean'. tests/cases/conformance/jsx/file.tsx(20,10): error TS2741: Property 'x' is missing in type '{}' but required in type '{ x: boolean; }'. @@ -24,7 +24,7 @@ tests/cases/conformance/jsx/file.tsx(21,10): error TS2741: Property 'x' is missi var SFC2AndEmptyComp = SFC2 || EmptySFC1; // Error let a = ; - ~~~~~~~~~~~~ + ~ !!! error TS2322: Type '{ x: true; }' is not assignable to type 'IntrinsicAttributes'. !!! error TS2322: Property 'x' does not exist on type 'IntrinsicAttributes'. let b = ; From dbc17229f79d19a07ad087e5f36f221f4b351e8d Mon Sep 17 00:00:00 2001 From: Nathan Fenner Date: Wed, 18 Sep 2019 14:42:38 -0700 Subject: [PATCH 120/159] report extraneous jsx attribute error on attribute name instead of entire attribute assignment --- src/compiler/checker.ts | 13 ++++--------- .../reference/tsxAttributeResolution1.errors.txt | 6 +++--- .../reference/tsxAttributeResolution11.errors.txt | 2 +- .../reference/tsxAttributeResolution15.errors.txt | 2 +- .../reference/tsxElementResolution11.errors.txt | 2 +- .../reference/tsxElementResolution3.errors.txt | 2 +- .../reference/tsxElementResolution4.errors.txt | 2 +- .../tsxLibraryManagedAttributes.errors.txt | 8 ++++---- .../tsxSpreadAttributesResolution2.errors.txt | 2 +- ...sxStatelessFunctionComponentOverload4.errors.txt | 2 +- .../tsxStatelessFunctionComponents1.errors.txt | 6 +++--- .../tsxStatelessFunctionComponents2.errors.txt | 2 +- 12 files changed, 22 insertions(+), 27 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index f361657e2f8..5833d2e9c8c 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -13040,15 +13040,10 @@ namespace ts { // JsxAttributes has an object-literal flag and undergo same type-assignablity check as normal object-literal. // However, using an object-literal error message will be very confusing to the users so we give different a message. // TODO: Spelling suggestions for excess jsx attributes (needs new diagnostic messages) - - if (errorNode && isJsxOpeningLikeElement(errorNode.parent)) { - const attributes = errorNode.parent.attributes; - for (const jsxProperty of attributes.properties) { - if (jsxProperty.kind === SyntaxKind.JsxAttribute && jsxProperty.name.escapedText === prop.escapedName) { - // Move the error node to the actual JSX property, instead of pointing to the identifier in the JSX element. - errorNode = jsxProperty; - } - } + if (prop.valueDeclaration && isNamedDeclaration(prop.valueDeclaration) && prop.valueDeclaration.name && prop.valueDeclaration.name.pos !== -1) { + // If the "children" attribute is extraneous `extra` then the declaration's name has no location. + // In that case, do not update the error location, since there's no name to point to. + errorNode = prop.valueDeclaration.name; } reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(prop), typeToString(errorTarget)); } diff --git a/tests/baselines/reference/tsxAttributeResolution1.errors.txt b/tests/baselines/reference/tsxAttributeResolution1.errors.txt index 00e35caf3a2..46ccb39e704 100644 --- a/tests/baselines/reference/tsxAttributeResolution1.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution1.errors.txt @@ -38,11 +38,11 @@ tests/cases/conformance/jsx/file.tsx(30,8): error TS2322: Type 'number' is not a !!! error TS2322: Type 'string' is not assignable to type 'number'. !!! related TS6500 tests/cases/conformance/jsx/file.tsx:10:2: The expected type comes from property 'x' which is declared here on type 'Attribs1' ; // Error, no property "y" - ~~~~~ + ~ !!! error TS2322: Type '{ y: number; }' is not assignable to type 'Attribs1'. !!! error TS2322: Property 'y' does not exist on type 'Attribs1'. ; // Error, no property "y" - ~~~~~~~ + ~ !!! error TS2322: Type '{ y: string; }' is not assignable to type 'Attribs1'. !!! error TS2322: Property 'y' does not exist on type 'Attribs1'. ; // Error, "32" is not number @@ -50,7 +50,7 @@ tests/cases/conformance/jsx/file.tsx(30,8): error TS2322: Type 'number' is not a !!! error TS2322: Type 'string' is not assignable to type 'number'. !!! related TS6500 tests/cases/conformance/jsx/file.tsx:10:2: The expected type comes from property 'x' which is declared here on type 'Attribs1' ; // Error, no 'var' property - ~~~~~~~~ + ~~~ !!! error TS2322: Type '{ var: string; }' is not assignable to type 'Attribs1'. !!! error TS2322: Property 'var' does not exist on type 'Attribs1'. diff --git a/tests/baselines/reference/tsxAttributeResolution11.errors.txt b/tests/baselines/reference/tsxAttributeResolution11.errors.txt index 163932ce2e0..d490faad314 100644 --- a/tests/baselines/reference/tsxAttributeResolution11.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution11.errors.txt @@ -27,7 +27,7 @@ tests/cases/conformance/jsx/file.tsx(11,22): error TS2322: Type '{ bar: string; // Should be an OK var x = ; - ~~~~~~~~~~~ + ~~~ !!! error TS2322: Type '{ bar: string; }' is not assignable to type 'IntrinsicAttributes & { ref?: string; }'. !!! error TS2322: Property 'bar' does not exist on type 'IntrinsicAttributes & { ref?: string; }'. diff --git a/tests/baselines/reference/tsxAttributeResolution15.errors.txt b/tests/baselines/reference/tsxAttributeResolution15.errors.txt index b147464b840..7ec97ba4675 100644 --- a/tests/baselines/reference/tsxAttributeResolution15.errors.txt +++ b/tests/baselines/reference/tsxAttributeResolution15.errors.txt @@ -15,7 +15,7 @@ tests/cases/conformance/jsx/file.tsx(14,44): error TS7017: Element implicitly ha // Error let a = - ~~~~~~~~~~~~~ + ~~~~~ !!! error TS2322: Type '{ prop1: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. !!! error TS2322: Property 'prop1' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. diff --git a/tests/baselines/reference/tsxElementResolution11.errors.txt b/tests/baselines/reference/tsxElementResolution11.errors.txt index 59ce93a4ccf..cc032610e2b 100644 --- a/tests/baselines/reference/tsxElementResolution11.errors.txt +++ b/tests/baselines/reference/tsxElementResolution11.errors.txt @@ -20,7 +20,7 @@ tests/cases/conformance/jsx/file.tsx(17,7): error TS2322: Type '{ x: number; }' } var Obj2: Obj2type; ; // Error - ~~~~~~ + ~ !!! error TS2322: Type '{ x: number; }' is not assignable to type '{ q?: number; }'. !!! error TS2322: Property 'x' does not exist on type '{ q?: number; }'. diff --git a/tests/baselines/reference/tsxElementResolution3.errors.txt b/tests/baselines/reference/tsxElementResolution3.errors.txt index c5a11b9cbc1..8f8679b3857 100644 --- a/tests/baselines/reference/tsxElementResolution3.errors.txt +++ b/tests/baselines/reference/tsxElementResolution3.errors.txt @@ -15,6 +15,6 @@ tests/cases/conformance/jsx/file.tsx(12,7): error TS2322: Type '{ w: string; }' // Error ; - ~~~~~~~ + ~ !!! error TS2322: Type '{ w: string; }' is not assignable to type '{ n: string; }'. !!! error TS2322: Property 'w' does not exist on type '{ n: string; }'. \ No newline at end of file diff --git a/tests/baselines/reference/tsxElementResolution4.errors.txt b/tests/baselines/reference/tsxElementResolution4.errors.txt index ea2ae7b0073..235adbb199a 100644 --- a/tests/baselines/reference/tsxElementResolution4.errors.txt +++ b/tests/baselines/reference/tsxElementResolution4.errors.txt @@ -19,7 +19,7 @@ tests/cases/conformance/jsx/file.tsx(16,7): error TS2322: Type '{ q: string; }' // Error ; - ~~~~ + ~ !!! error TS2322: Type '{ q: string; }' is not assignable to type '{ m: string; }'. !!! error TS2322: Property 'q' does not exist on type '{ m: string; }'. \ No newline at end of file diff --git a/tests/baselines/reference/tsxLibraryManagedAttributes.errors.txt b/tests/baselines/reference/tsxLibraryManagedAttributes.errors.txt index 6bf817f0c7d..4b4448e42f6 100644 --- a/tests/baselines/reference/tsxLibraryManagedAttributes.errors.txt +++ b/tests/baselines/reference/tsxLibraryManagedAttributes.errors.txt @@ -82,7 +82,7 @@ tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(123,49): error TS232 !!! error TS2322: Type '{ foo: number; }' is missing the following properties from type '{ bar: string | number | ReactComponent<{}, {}> | null | undefined; baz: string; }': bar, baz const c = ; const d = ; // Error, baz not a valid prop - ~~~~~~~~~~ + ~~~ !!! error TS2322: Type '{ bar: string; baz: string; bat: string; }' is not assignable to type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: number; }>'. !!! error TS2322: Property 'bat' does not exist on type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: number; }>'. const e = ; // bar is nullable/undefinable since it's not marked `isRequired` @@ -116,7 +116,7 @@ tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(123,49): error TS232 const k = ; const l = ; // error, no prop named bar - ~~~~~~~~ + ~~~ !!! error TS2322: Type '{ foo: number; bar: string; }' is not assignable to type 'Defaultize<{}, { foo: number; }>'. !!! error TS2322: Property 'bar' does not exist on type 'Defaultize<{}, { foo: number; }>'. const m = ; // error, wrong type @@ -145,7 +145,7 @@ tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(123,49): error TS232 !!! error TS2322: Type '{ foo: string; }' is missing the following properties from type '{ bar: string | number | ReactComponent<{}, {}> | null | undefined; baz: number; }': bar, baz const p = ; const q = ; // Error, baz not a valid prop - ~~~~~~~~~~ + ~~~ !!! error TS2322: Type '{ bar: string; baz: number; bat: string; }' is not assignable to type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: string; }>'. !!! error TS2322: Property 'bat' does not exist on type 'Defaultize; bar: PropTypeChecker; baz: PropTypeChecker; }>, { foo: string; }>'. const r = ; // bar is nullable/undefinable since it's not marked `isRequired` @@ -181,7 +181,7 @@ tests/cases/conformance/jsx/tsxLibraryManagedAttributes.tsx(123,49): error TS232 const x = ; const y = ; // error, no prop named bar - ~~~~~~~~ + ~~~ !!! error TS2322: Type '{ foo: string; bar: string; }' is not assignable to type 'Defaultize'. !!! error TS2322: Property 'bar' does not exist on type 'Defaultize'. const z = ; // error, wrong type diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt index e46732e0cde..a5f36e5ed08 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt +++ b/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt @@ -48,6 +48,6 @@ tests/cases/conformance/jsx/file.tsx(24,40): error TS2322: Type '{ X: string; x: !!! error TS2322: Types of property 'x' are incompatible. !!! error TS2322: Type 'number' is not assignable to type 'string'. let w1 = ; - ~~~~~~ + ~ !!! error TS2322: Type '{ X: string; x: number; y: "2"; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & PoisonedProp & { children?: ReactNode; }'. !!! error TS2322: Property 'X' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & PoisonedProp & { children?: ReactNode; }'. \ No newline at end of file diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt index 43935105d84..3a47e329162 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt @@ -117,7 +117,7 @@ tests/cases/conformance/jsx/file.tsx(36,12): error TS2769: No overload matches t !!! related TS6500 tests/cases/conformance/jsx/file.tsx:3:43: The expected type comes from property 'yy1' which is declared here on type 'IntrinsicAttributes & { yy: number; yy1: string; }' const c3 = ; // This is OK becuase all attribute are spread const c4 = ; // extra property; - ~~~~~~~~~~ + ~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(): Element', gave the following error. !!! error TS2769: Type '{ y1: number; yy: number; yy1: string; }' is not assignable to type 'IntrinsicAttributes'. diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt index a8ba635f7a7..7827c0625a4 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt @@ -32,7 +32,7 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea let a1 = ; // Error let b = ; - ~~~~~~~~~~~~~~ + ~~~~~~ !!! error TS2322: Type '{ naaame: string; }' is not assignable to type 'IntrinsicAttributes & { name: string; }'. !!! error TS2322: Property 'naaame' does not exist on type 'IntrinsicAttributes & { name: string; }'. @@ -47,7 +47,7 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea !!! error TS2322: Type 'number' is not assignable to type 'string'. // Error let f = ; - ~~~~~~~~~~~~~~~ + ~~~~~~~~~~ !!! error TS2322: Type '{ naaaaaaame: string; }' is not assignable to type 'IntrinsicAttributes & { name?: string; }'. !!! error TS2322: Property 'naaaaaaame' does not exist on type 'IntrinsicAttributes & { name?: string; }'. @@ -65,7 +65,7 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea !!! error TS2322: Type '{ prop1: true; }' is not assignable to type 'IntrinsicAttributes'. !!! error TS2322: Property 'prop1' does not exist on type 'IntrinsicAttributes'. let i1 = x.greeting.substr(10)} /> - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~ !!! error TS2322: Type '{ ref: (x: any) => any; }' is not assignable to type 'IntrinsicAttributes'. !!! error TS2322: Property 'ref' does not exist on type 'IntrinsicAttributes'. diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt index 57ef8c2efbf..b6727eb5ca8 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt @@ -25,7 +25,7 @@ tests/cases/conformance/jsx/file.tsx(35,26): error TS2339: Property 'propertyNot let b = ; // Error - not allowed to specify 'ref' on SFCs let c = ; - ~~~~~~~~~~~ + ~~~ !!! error TS2322: Type '{ ref: string; }' is not assignable to type 'IntrinsicAttributes & { name?: string; }'. !!! error TS2322: Property 'ref' does not exist on type 'IntrinsicAttributes & { name?: string; }'. From 7b77b497810273c2a58f812d5082fab05333893e Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Thu, 19 Sep 2019 08:26:52 -0700 Subject: [PATCH 121/159] Enable caching for control flow paths that precede loops --- src/compiler/checker.ts | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 463d00c13e2..19ffdf46ae0 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -17309,24 +17309,31 @@ namespace ts { const antecedentTypes: Type[] = []; let subtypeReduction = false; let firstAntecedentType: FlowType | undefined; - flowLoopNodes[flowLoopCount] = flow; - flowLoopKeys[flowLoopCount] = key; - flowLoopTypes[flowLoopCount] = antecedentTypes; for (const antecedent of flow.antecedents!) { - flowLoopCount++; - const flowType = getTypeAtFlowNode(antecedent); - flowLoopCount--; + let flowType; if (!firstAntecedentType) { - firstAntecedentType = flowType; + // The first antecedent of a loop junction is always the non-looping control + // flow path that leads to the top. + flowType = firstAntecedentType = getTypeAtFlowNode(antecedent); + } + else { + // All but the first antecedent are the looping control flow paths that lead + // back to the loop junction. We track these on the flow loop stack. + flowLoopNodes[flowLoopCount] = flow; + flowLoopKeys[flowLoopCount] = key; + flowLoopTypes[flowLoopCount] = antecedentTypes; + flowLoopCount++; + flowType = getTypeAtFlowNode(antecedent); + flowLoopCount--; + // If we see a value appear in the cache it is a sign that control flow analysis + // was restarted and completed by checkExpressionCached. We can simply pick up + // the resulting type and bail out. + const cached = cache.get(key); + if (cached) { + return cached; + } } const type = getTypeFromFlowType(flowType); - // If we see a value appear in the cache it is a sign that control flow analysis - // was restarted and completed by checkExpressionCached. We can simply pick up - // the resulting type and bail out. - const cached = cache.get(key); - if (cached) { - return cached; - } pushIfUnique(antecedentTypes, type); // If an antecedent type is not a subset of the declared type, we need to perform // subtype reduction. This happens when a "foreign" type is injected into the control From 78057a64ac02a2d6b364fade502ff63edec2cc3e Mon Sep 17 00:00:00 2001 From: Jack Bates Date: Fri, 23 Aug 2019 12:57:44 -0700 Subject: [PATCH 122/159] Allow readonly arguments to Promise.all(), etc. --- src/lib/es2015.promise.d.ts | 22 +++++++++---------- .../reference/correctOrderOfPromiseMethod.js | 5 +++-- .../correctOrderOfPromiseMethod.symbols | 3 ++- .../correctOrderOfPromiseMethod.types | 14 +++++++----- ...inferFromGenericFunctionReturnTypes3.types | 4 ++-- .../baselines/reference/inferenceLimit.types | 4 ++-- .../compiler/correctOrderOfPromiseMethod.ts | 4 ++-- 7 files changed, 30 insertions(+), 26 deletions(-) diff --git a/src/lib/es2015.promise.d.ts b/src/lib/es2015.promise.d.ts index 83776137c33..45b0fa5dc59 100644 --- a/src/lib/es2015.promise.d.ts +++ b/src/lib/es2015.promise.d.ts @@ -18,7 +18,7 @@ interface PromiseConstructor { * @param values An array of Promises. * @returns A new Promise. */ - all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; + all(values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; /** * Creates a Promise that is resolved with an array of results when all of the provided Promises @@ -26,7 +26,7 @@ interface PromiseConstructor { * @param values An array of Promises. * @returns A new Promise. */ - all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; + all(values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; /** * Creates a Promise that is resolved with an array of results when all of the provided Promises @@ -34,7 +34,7 @@ interface PromiseConstructor { * @param values An array of Promises. * @returns A new Promise. */ - all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; + all(values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; /** * Creates a Promise that is resolved with an array of results when all of the provided Promises @@ -42,7 +42,7 @@ interface PromiseConstructor { * @param values An array of Promises. * @returns A new Promise. */ - all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; + all(values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; /** * Creates a Promise that is resolved with an array of results when all of the provided Promises @@ -50,7 +50,7 @@ interface PromiseConstructor { * @param values An array of Promises. * @returns A new Promise. */ - all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; + all(values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; /** * Creates a Promise that is resolved with an array of results when all of the provided Promises @@ -58,7 +58,7 @@ interface PromiseConstructor { * @param values An array of Promises. * @returns A new Promise. */ - all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; + all(values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike , T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; /** * Creates a Promise that is resolved with an array of results when all of the provided Promises @@ -66,7 +66,7 @@ interface PromiseConstructor { * @param values An array of Promises. * @returns A new Promise. */ - all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike ]): Promise<[T1, T2, T3, T4]>; + all(values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike ]): Promise<[T1, T2, T3, T4]>; /** * Creates a Promise that is resolved with an array of results when all of the provided Promises @@ -74,7 +74,7 @@ interface PromiseConstructor { * @param values An array of Promises. * @returns A new Promise. */ - all(values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; + all(values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; /** * Creates a Promise that is resolved with an array of results when all of the provided Promises @@ -82,7 +82,7 @@ interface PromiseConstructor { * @param values An array of Promises. * @returns A new Promise. */ - all(values: [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; + all(values: readonly [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; /** * Creates a Promise that is resolved with an array of results when all of the provided Promises @@ -90,7 +90,7 @@ interface PromiseConstructor { * @param values An array of Promises. * @returns A new Promise. */ - all(values: (T | PromiseLike)[]): Promise; + all(values: readonly (T | PromiseLike)[]): Promise; /** * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved @@ -98,7 +98,7 @@ interface PromiseConstructor { * @param values An array of Promises. * @returns A new Promise. */ - race(values: T[]): Promise ? U : T>; + race(values: readonly T[]): Promise ? U : T>; /** * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved diff --git a/tests/baselines/reference/correctOrderOfPromiseMethod.js b/tests/baselines/reference/correctOrderOfPromiseMethod.js index 58c98189a43..fadda95374f 100644 --- a/tests/baselines/reference/correctOrderOfPromiseMethod.js +++ b/tests/baselines/reference/correctOrderOfPromiseMethod.js @@ -15,7 +15,7 @@ async function countEverything(): Promise { const [resultA, resultB] = await Promise.all([ providerA(), providerB(), - ]); + ] as const); const dataA: A[] = resultA; const dataB: B[] = resultB; @@ -23,7 +23,8 @@ async function countEverything(): Promise { return dataA.length + dataB.length; } return 0; -} +} + //// [correctOrderOfPromiseMethod.js] var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { diff --git a/tests/baselines/reference/correctOrderOfPromiseMethod.symbols b/tests/baselines/reference/correctOrderOfPromiseMethod.symbols index 290b482e5c7..1e67e9444c6 100644 --- a/tests/baselines/reference/correctOrderOfPromiseMethod.symbols +++ b/tests/baselines/reference/correctOrderOfPromiseMethod.symbols @@ -43,7 +43,7 @@ async function countEverything(): Promise { providerB(), >providerB : Symbol(providerB, Decl(correctOrderOfPromiseMethod.ts, 11, 9)) - ]); + ] as const); const dataA: A[] = resultA; >dataA : Symbol(dataA, Decl(correctOrderOfPromiseMethod.ts, 18, 9)) @@ -69,3 +69,4 @@ async function countEverything(): Promise { } return 0; } + diff --git a/tests/baselines/reference/correctOrderOfPromiseMethod.types b/tests/baselines/reference/correctOrderOfPromiseMethod.types index 5e8eaa72f42..a6f2c46782e 100644 --- a/tests/baselines/reference/correctOrderOfPromiseMethod.types +++ b/tests/baselines/reference/correctOrderOfPromiseMethod.types @@ -28,12 +28,13 @@ async function countEverything(): Promise { const [resultA, resultB] = await Promise.all([ >resultA : A[] >resultB : B[] ->await Promise.all([ providerA(), providerB(), ]) : [A[], B[]] ->Promise.all([ providerA(), providerB(), ]) : Promise<[A[], B[]]> ->Promise.all : { (values: Iterable>): Promise; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike]): Promise<[T1, T2, T3, T4]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; (values: [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; (values: (T | PromiseLike)[]): Promise; } +>await Promise.all([ providerA(), providerB(), ] as const) : [A[], B[]] +>Promise.all([ providerA(), providerB(), ] as const) : Promise<[A[], B[]]> +>Promise.all : { (values: Iterable>): Promise; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike]): Promise<[T1, T2, T3, T4]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; (values: readonly (T | PromiseLike)[]): Promise; } >Promise : PromiseConstructor ->all : { (values: Iterable>): Promise; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike]): Promise<[T1, T2, T3, T4]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; (values: [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; (values: (T | PromiseLike)[]): Promise; } ->[ providerA(), providerB(), ] : [Promise, Promise] +>all : { (values: Iterable>): Promise; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike]): Promise<[T1, T2, T3, T4]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; (values: readonly (T | PromiseLike)[]): Promise; } +>[ providerA(), providerB(), ] as const : readonly [Promise, Promise] +>[ providerA(), providerB(), ] : readonly [Promise, Promise] providerA(), >providerA() : Promise @@ -43,7 +44,7 @@ async function countEverything(): Promise { >providerB() : Promise >providerB : () => Promise - ]); + ] as const); const dataA: A[] = resultA; >dataA : A[] @@ -70,3 +71,4 @@ async function countEverything(): Promise { return 0; >0 : 0 } + diff --git a/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.types b/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.types index 4c56070fd3c..f9192dd11ba 100644 --- a/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.types +++ b/tests/baselines/reference/inferFromGenericFunctionReturnTypes3.types @@ -413,9 +413,9 @@ const f1: F = () => { return Promise.all([ >Promise.all([ { name: "David Gomes", age: 23, position: "GOALKEEPER", }, { name: "Cristiano Ronaldo", age: 33, position: "STRIKER", } ]) : Promise<[{ name: string; age: number; position: "GOALKEEPER"; }, { name: string; age: number; position: "STRIKER"; }]> ->Promise.all : { (values: Iterable>): Promise; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike]): Promise<[T1, T2, T3, T4]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; (values: [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; (values: (T | PromiseLike)[]): Promise; } +>Promise.all : { (values: Iterable>): Promise; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike]): Promise<[T1, T2, T3, T4]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; (values: readonly (T | PromiseLike)[]): Promise; } >Promise : PromiseConstructor ->all : { (values: Iterable>): Promise; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike]): Promise<[T1, T2, T3, T4]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; (values: [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; (values: (T | PromiseLike)[]): Promise; } +>all : { (values: Iterable>): Promise; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike]): Promise<[T1, T2, T3, T4]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; (values: readonly (T | PromiseLike)[]): Promise; } >[ { name: "David Gomes", age: 23, position: "GOALKEEPER", }, { name: "Cristiano Ronaldo", age: 33, position: "STRIKER", } ] : [{ name: string; age: number; position: "GOALKEEPER"; }, { name: string; age: number; position: "STRIKER"; }] { >{ name: "David Gomes", age: 23, position: "GOALKEEPER", } : { name: string; age: number; position: "GOALKEEPER"; } diff --git a/tests/baselines/reference/inferenceLimit.types b/tests/baselines/reference/inferenceLimit.types index 6aa7ab501ea..fc2836e6dea 100644 --- a/tests/baselines/reference/inferenceLimit.types +++ b/tests/baselines/reference/inferenceLimit.types @@ -76,9 +76,9 @@ export class BrokenClass { >Promise.all(result.map(populateItems)) .then((orders: Array) => { resolve(orders); }) : Promise >Promise.all(result.map(populateItems)) .then : (onfulfilled?: (value: unknown[]) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >Promise.all(result.map(populateItems)) : Promise ->Promise.all : { (values: Iterable>): Promise; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike]): Promise<[T1, T2, T3, T4]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; (values: [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; (values: (T | PromiseLike)[]): Promise; } +>Promise.all : { (values: Iterable>): Promise; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike]): Promise<[T1, T2, T3, T4]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; (values: readonly (T | PromiseLike)[]): Promise; } >Promise : PromiseConstructor ->all : { (values: Iterable>): Promise; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike]): Promise<[T1, T2, T3, T4]>; (values: [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; (values: [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; (values: (T | PromiseLike)[]): Promise; } +>all : { (values: Iterable>): Promise; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike, T10 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike, T9 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike, T8 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike, T7 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6, T7]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike, T6 | PromiseLike]): Promise<[T1, T2, T3, T4, T5, T6]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike, T5 | PromiseLike]): Promise<[T1, T2, T3, T4, T5]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike, T4 | PromiseLike]): Promise<[T1, T2, T3, T4]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike, T3 | PromiseLike]): Promise<[T1, T2, T3]>; (values: readonly [T1 | PromiseLike, T2 | PromiseLike]): Promise<[T1, T2]>; (values: readonly (T | PromiseLike)[]): Promise; } >result.map(populateItems) : Promise[] >result.map : (callbackfn: (value: MyModule.MyModel, index: number, array: MyModule.MyModel[]) => U, thisArg?: any) => U[] >result : MyModule.MyModel[] diff --git a/tests/cases/compiler/correctOrderOfPromiseMethod.ts b/tests/cases/compiler/correctOrderOfPromiseMethod.ts index 85f4be9843c..70c730c6b20 100644 --- a/tests/cases/compiler/correctOrderOfPromiseMethod.ts +++ b/tests/cases/compiler/correctOrderOfPromiseMethod.ts @@ -17,7 +17,7 @@ async function countEverything(): Promise { const [resultA, resultB] = await Promise.all([ providerA(), providerB(), - ]); + ] as const); const dataA: A[] = resultA; const dataB: B[] = resultB; @@ -25,4 +25,4 @@ async function countEverything(): Promise { return dataA.length + dataB.length; } return 0; -} \ No newline at end of file +} From 816e3f32ea39320281965ebbda390fde2c0ed667 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Thu, 19 Sep 2019 11:35:19 -0700 Subject: [PATCH 123/159] Fix ESLint extension config (#33501) * Fix ESLint extension config * Delete workingDirectories --- .vscode/settings.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 4f481751900..14f7984e7e9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,8 +6,7 @@ } ], "eslint.options": { - "rulePaths": ["../scripts/eslint/built/rules/"], + "rulePaths": ["./scripts/eslint/built/rules/"], "ext": [".ts"] - }, - "eslint.workingDirectories": ["./src", "./scripts"] + } } \ No newline at end of file From e60d28e6f76e7bbb25e06a1742dc9a24fd7a1f16 Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Thu, 19 Sep 2019 14:09:54 -0700 Subject: [PATCH 124/159] Update user baselines (#33508) --- .../baselines/reference/docker/azure-sdk.log | 20 +++---- .../reference/docker/office-ui-fabric.log | 5 +- tests/baselines/reference/user/jimp.log | 52 ------------------- 3 files changed, 14 insertions(+), 63 deletions(-) delete mode 100644 tests/baselines/reference/user/jimp.log diff --git a/tests/baselines/reference/docker/azure-sdk.log b/tests/baselines/reference/docker/azure-sdk.log index fb911c5a367..a7ec47a5a84 100644 --- a/tests/baselines/reference/docker/azure-sdk.log +++ b/tests/baselines/reference/docker/azure-sdk.log @@ -9,11 +9,12 @@ XX of XX: [@azure/abort-controller] completed successfully in ? seconds XX of XX: [@azure/core-auth] completed successfully in ? seconds XX of XX: [@azure/core-tracing] completed successfully in ? seconds XX of XX: [@azure/core-http] completed successfully in ? seconds +XX of XX: [@azure/identity] completed successfully in ? seconds +XX of XX: [@azure/core-amqp] completed successfully in ? seconds XX of XX: [@azure/core-arm] completed successfully in ? seconds XX of XX: [@azure/core-paging] completed successfully in ? seconds -XX of XX: [@azure/identity] completed successfully in ? seconds XX of XX: [@azure/test-utils-recorder] completed successfully in ? seconds -XX of XX: [@azure/core-amqp] completed successfully in ? seconds +XX of XX: [@azure/event-hubs] completed successfully in ? seconds XX of XX: [@azure/event-processor-host] completed successfully in ? seconds XX of XX: [@azure/keyvault-keys] completed successfully in ? seconds XX of XX: [@azure/keyvault-secrets] completed successfully in ? seconds @@ -23,7 +24,7 @@ Warning: You have changed the public API signature for this project. Updating re dist-esm/index.js → dist/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency -tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) +tslib (imported by dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/auth.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) @azure/cosmos-sign (imported by dist-esm/auth.js) universal-user-agent (imported by dist-esm/common/platform.js) uuid/v4 (imported by dist-esm/ClientContext.js, dist-esm/client/Item/Items.js) @@ -38,7 +39,7 @@ crypto-hash (imported by dist-esm/queryExecutionContext/EndpointComponent/Ordere fast-json-stable-stringify (imported by dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js) (!) Missing global variable names Use output.globals to specify browser global variable names corresponding to external modules -universal-user-agent (guessing 'userAgent') +universal-user-agent (guessing 'universalUserAgent') tslib (guessing 'tslib') @azure/cosmos-sign (guessing 'cosmosSign') debug (guessing 'debugLib') @@ -55,7 +56,6 @@ atob (guessing 'atob') (!) Circular dependency: dist-esm/index.js -> dist-esm/CosmosClient.js -> dist-esm/client/Database/index.js -> dist-esm/client/Database/Database.js -> dist-esm/client/Container/index.js -> dist-esm/client/Container/Container.js -> dist-esm/client/Script/Scripts.js -> dist-esm/index.js (!) Circular dependency: dist-esm/request/RequestHandler.js -> dist-esm/retry/retryUtility.js -> dist-esm/request/RequestHandler.js created dist/index.js in ?s -XX of XX: [@azure/event-hubs] completed successfully in ? seconds XX of XX: [@azure/eventhubs-checkpointstore-blob] completed successfully in ? seconds XX of XX: [@azure/keyvault-certificates] completed successfully in ? seconds Warning: You have changed the public API signature for this project. Updating review/service-bus.api.md @@ -70,17 +70,17 @@ SUCCESS (22) @azure/core-auth (? seconds) @azure/core-tracing (? seconds) @azure/core-http (? seconds) +@azure/identity (? seconds) +@azure/core-amqp (? seconds) @azure/core-arm (? seconds) @azure/core-paging (? seconds) -@azure/identity (? seconds) @azure/test-utils-recorder (? seconds) -@azure/core-amqp (? seconds) +@azure/event-hubs (? seconds) @azure/event-processor-host (? seconds) @azure/keyvault-keys (? seconds) @azure/keyvault-secrets (? seconds) @azure/app-configuration (? seconds) @azure/core-asynciterator-polyfill (? seconds) -@azure/event-hubs (? seconds) @azure/eventhubs-checkpointstore-blob (? seconds) @azure/keyvault-certificates (? seconds) @azure/storage-blob (? seconds) @@ -96,7 +96,7 @@ Warning: You have changed the public API signature for this project. Updating re dist-esm/index.js → dist/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency -tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) +tslib (imported by dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/auth.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) @azure/cosmos-sign (imported by dist-esm/auth.js) universal-user-agent (imported by dist-esm/common/platform.js) uuid/v4 (imported by dist-esm/ClientContext.js, dist-esm/client/Item/Items.js) @@ -111,7 +111,7 @@ crypto-hash (imported by dist-esm/queryExecutionContext/EndpointComponent/Ordere fast-json-stable-stringify (imported by dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js) (!) Missing global variable names Use output.globals to specify browser global variable names corresponding to external modules -universal-user-agent (guessing 'userAgent') +universal-user-agent (guessing 'universalUserAgent') tslib (guessing 'tslib') @azure/cosmos-sign (guessing 'cosmosSign') debug (guessing 'debugLib') diff --git a/tests/baselines/reference/docker/office-ui-fabric.log b/tests/baselines/reference/docker/office-ui-fabric.log index 56cc33c98c6..30424b5874c 100644 --- a/tests/baselines/reference/docker/office-ui-fabric.log +++ b/tests/baselines/reference/docker/office-ui-fabric.log @@ -36,7 +36,9 @@ Standard output: @uifabric/migration: Done in ?s. @uifabric/monaco-editor: yarn run vX.X.X @uifabric/monaco-editor: $ just-scripts build --production --lint -@uifabric/monaco-editor: [XX:XX:XX XM] ■ Removing [lib] +@uifabric/monaco-editor: [XX:XX:XX XM] ■ Removing [esm, lib] +@uifabric/monaco-editor: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/monaco-editor/tsconfig.json +@uifabric/monaco-editor: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --inlineSources --sourceRoot "../src" --outDir lib --module esnext --project "/office-ui-fabric-react/packages/monaco-editor/tsconfig.json" @uifabric/monaco-editor: Done in ?s. @uifabric/set-version: yarn run vX.X.X @uifabric/set-version: $ just-scripts build --production --lint @@ -88,6 +90,7 @@ Standard output: @uifabric/merge-styles: PASS src/Stylesheet.test.ts @uifabric/merge-styles: PASS src/extractStyleParts.test.ts @uifabric/merge-styles: PASS src/server.test.ts +@uifabric/merge-styles: PASS src/fontFace.test.ts @uifabric/merge-styles: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/merge-styles/lib/index.d.ts' @uifabric/merge-styles: Done in ?s. @uifabric/jest-serializer-merge-styles: yarn run vX.X.X diff --git a/tests/baselines/reference/user/jimp.log b/tests/baselines/reference/user/jimp.log deleted file mode 100644 index 8aa96e8bb82..00000000000 --- a/tests/baselines/reference/user/jimp.log +++ /dev/null @@ -1,52 +0,0 @@ -Exit Code: 1 -Standard output: -node_modules/@jimp/bmp/index.d.ts(1,38): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/gif/index.d.ts(1,27): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/jpeg/index.d.ts(1,59): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-blit/index.d.ts(1,54): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-blur/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-color/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-contain/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-cover/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-crop/index.d.ts(1,37): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-displace/index.d.ts(1,54): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-dither/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-flip/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-gaussian/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-invert/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-mask/index.d.ts(1,54): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-normalize/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-print/index.d.ts(1,54): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-resize/index.d.ts(1,37): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-rotate/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/plugin-scale/index.d.ts(1,31): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/png/index.d.ts(1,59): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/@jimp/tiff/index.d.ts(1,38): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` -node_modules/jimp/types/ts3.1/index.d.ts(16,8): error TS7016: Could not find a declaration file for module '@jimp/core'. '../../../tests/cases/user/jimp/node_modules/@jimp/core/dist/index.js' implicitly has an 'any' type. - Try `npm install @types/jimp__core` if it exists or add a new declaration (.d.ts) file containing `declare module '@jimp/core';` - - - -Standard error: From d4ad0d53dcb9b5fc529f6455074fad1230522f66 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 20 Sep 2019 06:47:42 -0700 Subject: [PATCH 125/159] Cheaper caching scheme --- src/compiler/checker.ts | 54 ++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 19ffdf46ae0..b1d7a00bd48 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -819,6 +819,7 @@ namespace ts { let flowLoopCount = 0; let sharedFlowCount = 0; let flowAnalysisDisabled = false; + let flowInvocationCount = 0; const emptyStringType = getLiteralType(""); const zeroType = getLiteralType(0); @@ -834,8 +835,7 @@ namespace ts { const symbolLinks: SymbolLinks[] = []; const nodeLinks: NodeLinks[] = []; const flowLoopCaches: Map[] = []; - const flowAssignmentKeys: string[] = []; - const flowAssignmentTypes: FlowType[] = []; + const flowAssignmentTypes: Type[] = []; const flowLoopNodes: FlowNode[] = []; const flowLoopKeys: string[] = []; const flowLoopTypes: Type[][] = []; @@ -16698,12 +16698,6 @@ namespace ts { getInitialTypeOfBindingElement(node); } - function getInitialOrAssignedType(node: VariableDeclaration | BindingElement | Expression, reference: Node) { - return getConstraintForLocation(node.kind === SyntaxKind.VariableDeclaration || node.kind === SyntaxKind.BindingElement ? - getInitialType(node) : - getAssignedType(node), reference); - } - function isEmptyArrayAssignment(node: VariableDeclaration | BindingElement | Expression) { return node.kind === SyntaxKind.VariableDeclaration && (node).initializer && isEmptyArrayLiteral((node).initializer!) || @@ -16990,6 +16984,7 @@ namespace ts { if (!reference.flowNode || !couldBeUninitialized && !(declaredType.flags & TypeFlags.Narrowable)) { return declaredType; } + flowInvocationCount++; const sharedFlowStart = sharedFlowCount; const evolvedType = getTypeFromFlowType(getTypeAtFlowNode(reference.flowNode)); sharedFlowCount = sharedFlowStart; @@ -17022,15 +17017,6 @@ namespace ts { flowDepth++; while (true) { const flags = flow.flags; - if (flags & FlowFlags.Cached) { - const key = getOrSetCacheKey(); - if (key) { - const id = getFlowNodeId(flow); - if (flowAssignmentKeys[id] === key) { - return flowAssignmentTypes[id]; - } - } - } if (flags & FlowFlags.Shared) { // We cache results of flow type resolution for shared nodes that were previously visited in // the same getFlowTypeOfReference invocation. A node is considered shared when it is the @@ -17061,15 +17047,6 @@ namespace ts { flow = (flow).antecedent; continue; } - else if (flowLoopCount === flowLoopStart) { // Only cache assignments when not within loop analysis - const key = getOrSetCacheKey(); - if (key && !isIncomplete(type)) { - flow.flags |= FlowFlags.Cached; - const id = getFlowNodeId(flow); - flowAssignmentKeys[id] = key; - flowAssignmentTypes[id] = type; - } - } } else if (flags & FlowFlags.Condition) { type = getTypeAtFlowCondition(flow); @@ -17122,6 +17099,27 @@ namespace ts { } } + function getInitialOrAssignedType(flow: FlowAssignment, reference: Node) { + const node = flow.node; + if (flow.flags & FlowFlags.Cached) { + const cached = flowAssignmentTypes[getNodeId(node)]; + if (cached) { + return cached; + } + } + const startInvocationCount = flowInvocationCount; + const type = getConstraintForLocation(node.kind === SyntaxKind.VariableDeclaration || node.kind === SyntaxKind.BindingElement ? + getInitialType(node) : + getAssignedType(node), reference); + // We cache the assigned type when getFlowTypeOfReference was recursively invoked in the + // resolution of the assigned type and we're not within loop analysis. + if (flowInvocationCount !== startInvocationCount && flowLoopCount === flowLoopStart) { + flow.flags |= FlowFlags.Cached; + flowAssignmentTypes[getNodeId(node)] = type; + } + return type; + } + function getTypeAtFlowAssignment(flow: FlowAssignment) { const node = flow.node; // Assignments only narrow the computed type if the declared type is a union type. Thus, we @@ -17135,11 +17133,11 @@ namespace ts { if (isEmptyArrayAssignment(node)) { return getEvolvingArrayType(neverType); } - const assignedType = getBaseTypeOfLiteralType(getInitialOrAssignedType(node, reference)); + const assignedType = getBaseTypeOfLiteralType(getInitialOrAssignedType(flow, reference)); return isTypeAssignableTo(assignedType, declaredType) ? assignedType : anyArrayType; } if (declaredType.flags & TypeFlags.Union) { - return getAssignmentReducedType(declaredType, getInitialOrAssignedType(node, reference)); + return getAssignmentReducedType(declaredType, getInitialOrAssignedType(flow, reference)); } return declaredType; } From 7573a6d0f81bafe626bc11f55b46b431ddafbd7a Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Fri, 20 Sep 2019 09:17:19 -0700 Subject: [PATCH 126/159] Update user baselines (#33534) --- tests/baselines/reference/docker/azure-sdk.log | 14 ++++++++------ .../reference/docker/office-ui-fabric.log | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/baselines/reference/docker/azure-sdk.log b/tests/baselines/reference/docker/azure-sdk.log index a7ec47a5a84..ba878ab443a 100644 --- a/tests/baselines/reference/docker/azure-sdk.log +++ b/tests/baselines/reference/docker/azure-sdk.log @@ -18,13 +18,13 @@ XX of XX: [@azure/event-hubs] completed successfully in ? seconds XX of XX: [@azure/event-processor-host] completed successfully in ? seconds XX of XX: [@azure/keyvault-keys] completed successfully in ? seconds XX of XX: [@azure/keyvault-secrets] completed successfully in ? seconds -XX of XX: [@azure/app-configuration] completed successfully in ? seconds +Warning: You have changed the public API signature for this project. Updating review/app-configuration.api.md XX of XX: [@azure/core-asynciterator-polyfill] completed successfully in ? seconds Warning: You have changed the public API signature for this project. Updating review/cosmos.api.md dist-esm/index.js → dist/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency -tslib (imported by dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/auth.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) +tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) @azure/cosmos-sign (imported by dist-esm/auth.js) universal-user-agent (imported by dist-esm/common/platform.js) uuid/v4 (imported by dist-esm/ClientContext.js, dist-esm/client/Item/Items.js) @@ -64,7 +64,7 @@ XX of XX: [@azure/storage-file] completed successfully in ? seconds XX of XX: [@azure/storage-queue] completed successfully in ? seconds XX of XX: [@azure/template] completed successfully in ? seconds XX of XX: [testhub] completed successfully in ? seconds -SUCCESS (22) +SUCCESS (21) ================================ @azure/abort-controller (? seconds) @azure/core-auth (? seconds) @@ -79,7 +79,6 @@ SUCCESS (22) @azure/event-processor-host (? seconds) @azure/keyvault-keys (? seconds) @azure/keyvault-secrets (? seconds) -@azure/app-configuration (? seconds) @azure/core-asynciterator-polyfill (? seconds) @azure/eventhubs-checkpointstore-blob (? seconds) @azure/keyvault-certificates (? seconds) @@ -89,14 +88,16 @@ SUCCESS (22) @azure/template (? seconds) testhub (? seconds) ================================ -SUCCESS WITH WARNINGS (2) +SUCCESS WITH WARNINGS (3) ================================ +@azure/app-configuration (? seconds) +Warning: You have changed the public API signature for this project. Updating review/app-configuration.api.md @azure/cosmos (? seconds) Warning: You have changed the public API signature for this project. Updating review/cosmos.api.md dist-esm/index.js → dist/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency -tslib (imported by dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/auth.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) +tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) @azure/cosmos-sign (imported by dist-esm/auth.js) universal-user-agent (imported by dist-esm/common/platform.js) uuid/v4 (imported by dist-esm/ClientContext.js, dist-esm/client/Item/Items.js) @@ -136,6 +137,7 @@ rush rebuild ( ? seconds) Standard error: +XX of XX: [@azure/app-configuration] completed with warnings in ? seconds XX of XX: [@azure/cosmos] completed with warnings in ? seconds XX of XX: [@azure/service-bus] completed with warnings in ? seconds Project(s) succeeded with warnings diff --git a/tests/baselines/reference/docker/office-ui-fabric.log b/tests/baselines/reference/docker/office-ui-fabric.log index 30424b5874c..7bd402b8327 100644 --- a/tests/baselines/reference/docker/office-ui-fabric.log +++ b/tests/baselines/reference/docker/office-ui-fabric.log @@ -90,7 +90,7 @@ Standard output: @uifabric/merge-styles: PASS src/Stylesheet.test.ts @uifabric/merge-styles: PASS src/extractStyleParts.test.ts @uifabric/merge-styles: PASS src/server.test.ts -@uifabric/merge-styles: PASS src/fontFace.test.ts +@uifabric/merge-styles: PASS src/concatStyleSetsWithProps.test.ts @uifabric/merge-styles: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/merge-styles/lib/index.d.ts' @uifabric/merge-styles: Done in ?s. @uifabric/jest-serializer-merge-styles: yarn run vX.X.X From 007b4b1e31623aa8a108219262819d07ba63202a Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 20 Sep 2019 10:24:02 -0700 Subject: [PATCH 127/159] Minor simplification --- src/compiler/checker.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index b1d7a00bd48..28e20febdcd 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -17099,7 +17099,7 @@ namespace ts { } } - function getInitialOrAssignedType(flow: FlowAssignment, reference: Node) { + function getInitialOrAssignedType(flow: FlowAssignment) { const node = flow.node; if (flow.flags & FlowFlags.Cached) { const cached = flowAssignmentTypes[getNodeId(node)]; @@ -17133,11 +17133,11 @@ namespace ts { if (isEmptyArrayAssignment(node)) { return getEvolvingArrayType(neverType); } - const assignedType = getBaseTypeOfLiteralType(getInitialOrAssignedType(flow, reference)); + const assignedType = getBaseTypeOfLiteralType(getInitialOrAssignedType(flow)); return isTypeAssignableTo(assignedType, declaredType) ? assignedType : anyArrayType; } if (declaredType.flags & TypeFlags.Union) { - return getAssignmentReducedType(declaredType, getInitialOrAssignedType(flow, reference)); + return getAssignmentReducedType(declaredType, getInitialOrAssignedType(flow)); } return declaredType; } From 26c816f932a0177ffda094dc4b4b46a4b5f582f2 Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Fri, 20 Sep 2019 15:20:10 -0400 Subject: [PATCH 128/159] When a packed version of TypeScript ios requested, also send a request to create a build of monaco for the playground --- scripts/post-vsts-artifact-comment.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/post-vsts-artifact-comment.js b/scripts/post-vsts-artifact-comment.js index 6d84294bcfe..5b1685ae040 100644 --- a/scripts/post-vsts-artifact-comment.js +++ b/scripts/post-vsts-artifact-comment.js @@ -28,6 +28,10 @@ async function main() { type: "token", token: process.argv[2] }); + + // Please keep the strings "an installable tgz" and "packed" in this message, as well as the devDependencies section, + // so that the playgrounds deployment process can find these comments. + await gh.issues.createComment({ number: +process.env.SOURCE_ISSUE, owner: "Microsoft", @@ -43,6 +47,9 @@ async function main() { and then running \`npm install\`. ` }); + + // Send a ping to https://github.com/orta/make-monaco-builds#pull-request-builds + await gh.request("POST /repos/orta/make-monaco-builds/dispatches", { event_type: +process.env.SOURCE_ISSUE }) } main().catch(async e => { @@ -61,4 +68,4 @@ main().catch(async e => { body: `Hey @${process.env.REQUESTING_USER}, something went wrong when looking for the build artifact. ([You can check the log here](https://typescript.visualstudio.com/TypeScript/_build/index?buildId=${process.env.BUILD_BUILDID}&_a=summary)).` }); } -}); \ No newline at end of file +}); From cc3ee3013d419908daf92f4b2b0b7b0cc381fe36 Mon Sep 17 00:00:00 2001 From: Nuno Arruda Date: Fri, 20 Sep 2019 22:11:22 +0200 Subject: [PATCH 129/159] Fix grammar issues on CONTRIBUTING.md (#33535) --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 18c0a352cbd..4b804414ab5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -71,7 +71,7 @@ Design changes will not be accepted at this time. If you have a design change pr You will need to complete a Contributor License Agreement (CLA). Briefly, this agreement testifies that you are granting us permission to use the submitted change according to the terms of the project's license, and that the work being submitted is under appropriate copyright. -Please submit a Contributor License Agreement (CLA) before submitting a pull request. You may visit https://cla.microsoft.com to sign digitally. Alternatively, download the agreement ([Microsoft Contribution License Agreement.pdf](https://opensource.microsoft.com/pdf/microsoft-contribution-license-agreement.pdf)), sign, scan, and email it back to . Be sure to include your github user name along with the agreement. Once we have received the signed CLA, we'll review the request. +Please submit a Contributor License Agreement (CLA) before submitting a pull request. You may visit https://cla.microsoft.com to sign digitally. Alternatively, download the agreement ([Microsoft Contribution License Agreement.pdf](https://opensource.microsoft.com/pdf/microsoft-contribution-license-agreement.pdf)), sign, scan, and email it back to . Be sure to include your GitHub user name along with the agreement. Once we have received the signed CLA, we'll review the request. ## Housekeeping @@ -148,7 +148,7 @@ You will probably only want to debug one test at a time: gulp runtests-browser --tests=2dArrays ``` -You can specify which browser to use for debugging. Currently Chrome and IE are supported: +You can specify which browser to use for debugging. Currently, Chrome and IE are supported: ```Shell gulp runtests-browser --tests=2dArrays --browser=chrome From 1cad8edfa74ce97d1e868b071997a5354f16f93e Mon Sep 17 00:00:00 2001 From: Nathan Fenner Date: Fri, 20 Sep 2019 14:00:11 -0700 Subject: [PATCH 130/159] check for SyntaxKind.JSXAttribute instead of located-ness of name prop --- src/compiler/checker.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 5833d2e9c8c..e7954aa5d63 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -13040,9 +13040,9 @@ namespace ts { // JsxAttributes has an object-literal flag and undergo same type-assignablity check as normal object-literal. // However, using an object-literal error message will be very confusing to the users so we give different a message. // TODO: Spelling suggestions for excess jsx attributes (needs new diagnostic messages) - if (prop.valueDeclaration && isNamedDeclaration(prop.valueDeclaration) && prop.valueDeclaration.name && prop.valueDeclaration.name.pos !== -1) { - // If the "children" attribute is extraneous `extra` then the declaration's name has no location. - // In that case, do not update the error location, since there's no name to point to. + if (prop.valueDeclaration && isJsxAttribute(prop.valueDeclaration)) { + // Note that extraneous children (as in `extra`) don't pass this check, + // since `children` is a SyntaxKind.PropertySignature instead of a SyntaxKind.JsxAttribute. errorNode = prop.valueDeclaration.name; } reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(prop), typeToString(errorTarget)); From 4786279fb07634a8ad06e6134ab245ac1456a380 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 12 Sep 2019 10:54:40 -0700 Subject: [PATCH 131/159] Expose method to baseline fs --- src/testRunner/unittests/tsbuild/helpers.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 126b8d2f7d5..73832cc254c 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -283,10 +283,14 @@ interface Symbol { return { fs, actualReadFileMap, host, builder, writtenFiles }; } - function generateBaseline(fs: vfs.FileSystem, proj: string, scenario: string, subScenario: string, baseFs: vfs.FileSystem) { + export function baselineFs(fs: vfs.FileSystem, baseFs: vfs.FileSystem, baselineFolder: string, scenario: string, subScenario: string) { const patch = fs.diff(baseFs, { includeChangedFileWithSameContent: true }); // eslint-disable-next-line no-null/no-null - Harness.Baseline.runBaseline(`tsbuild/${proj}/${subScenario.split(" ").join("-")}/${scenario.split(" ").join("-")}.js`, patch ? vfs.formatPatch(patch) : null); + Harness.Baseline.runBaseline(`${baselineFolder}/${scenario.split(" ").join("-")}/${subScenario.split(" ").join("-")}.js`, patch ? vfs.formatPatch(patch) : null); + } + + function generateBaseline(fs: vfs.FileSystem, proj: string, scenario: string, subScenario: string, baseFs: vfs.FileSystem) { + baselineFs(fs, baseFs, `tsbuild/${proj}`, subScenario, scenario); } function verifyReadFileCalls(actualReadFileMap: Map, expectedReadFiles: ReadonlyMap) { From b76277092cead8a128a169c1bd6b9965e2016739 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 12 Sep 2019 13:02:10 -0700 Subject: [PATCH 132/159] Add test to verify tsc like command line input --- src/compiler/sys.ts | 2 + src/compiler/tsbuild.ts | 2 +- src/harness/fakes.ts | 58 +- src/testRunner/tsconfig.json | 1 + .../unittests/tsbuild/amdModulesWithOut.ts | 76 ++- .../tsbuild/containerOnlyReferenced.ts | 2 +- src/testRunner/unittests/tsbuild/demo.ts | 2 +- .../unittests/tsbuild/emitDeclarationOnly.ts | 91 ++-- .../unittests/tsbuild/emptyFiles.ts | 4 +- .../unittests/tsbuild/graphOrdering.ts | 2 +- src/testRunner/unittests/tsbuild/helpers.ts | 281 +++------- .../inferredTypeFromTransitiveModule.ts | 89 ++-- .../unittests/tsbuild/lateBoundSymbol.ts | 32 +- .../unittests/tsbuild/missingExtendedFile.ts | 2 +- .../unittests/tsbuild/moduleSpecifiers.ts | 27 +- src/testRunner/unittests/tsbuild/outFile.ts | 315 +++-------- .../tsbuild/referencesWithRootDirInParent.ts | 8 +- .../unittests/tsbuild/resolveJsonModule.ts | 8 +- src/testRunner/unittests/tsbuild/sample.ts | 418 ++++----------- .../unittests/tsbuild/transitiveReferences.ts | 2 +- src/testRunner/unittests/tsc/helpers.ts | 240 +++++++++ .../modules-and-globals-mixed-in-amd.js | 19 + .../multiple-emitHelpers-in-all-projects.js | 19 + .../multiple-prologues-in-all-projects.js | 19 + .../shebang-in-all-projects.js | 19 + .../stripInternal.js | 19 + .../triple-slash-refs-in-all-projects.js | 19 + .../multiple-emitHelpers-in-all-projects.js | 19 + .../multiple-prologues-in-all-projects.js | 19 + .../stripInternal.js | 17 + .../modules-and-globals-mixed-in-amd.js | 17 + .../multiple-emitHelpers-in-all-projects.js | 17 + .../multiple-prologues-in-all-projects.js | 17 + .../initial-Build/shebang-in-all-projects.js | 17 + .../initial-Build/stripInternal.js | 17 + .../triple-slash-refs-in-all-projects.js | 17 + ...e-resolution-finds-original-source-file.js | 17 + ...-emitDeclarationOnly-and-declarationMap.js | 12 + ...import-project-with-emitDeclarationOnly.js | 12 + ...mports-project-with-emitDeclarationOnly.js | 12 + ...mports-project-with-emitDeclarationOnly.js | 14 + ...-emitDeclarationOnly-and-declarationMap.js | 12 + ...import-project-with-emitDeclarationOnly.js | 12 + ...mports-project-with-emitDeclarationOnly.js | 12 + ...-transitive-module-with-isolatedModules.js | 14 + .../inferred-type-from-transitive-module.js | 14 + ...hange-in-signature-with-isolatedModules.js | 24 + ...-transitive-module-with-isolatedModules.js | 12 + .../inferred-type-from-transitive-module.js | 12 + ...hange-in-signature-with-isolatedModules.js | 163 ++++++ ...s-merged-and-contains-late-bound-member.js | 14 + ...s-merged-and-contains-late-bound-member.js | 12 + ...zed-module-specifiers-resolve-correctly.js | 24 + .../baseline-sectioned-sourcemaps.js | 39 ++ .../emitHelpers-in-all-projects.js | 39 ++ .../multiple-prologues-in-all-projects.js | 39 ++ .../shebang-in-all-projects.js | 39 ++ .../strict-in-all-projects.js | 39 ++ ...en-one-two-three-are-prepended-in-order.js | 43 ++ .../stripInternal.js | 39 ++ .../triple-slash-refs-in-all-projects.js | 42 ++ .../baseline-sectioned-sourcemaps.js | 44 ++ .../emitHelpers-in-all-projects.js | 44 ++ ...tHelpers-in-only-one-dependency-project.js | 22 + .../multiple-emitHelpers-in-all-projects.js | 22 + ...tiple-emitHelpers-in-different-projects.js | 22 + .../multiple-prologues-in-all-projects.js | 44 ++ ...ultiple-prologues-in-different-projects.js | 22 + .../shebang-in-all-projects.js | 44 ++ .../shebang-in-only-one-dependency-project.js | 22 + .../strict-in-all-projects.js | 44 ++ .../strict-in-one-dependency.js | 22 + ...en-one-two-three-are-prepended-in-order.js | 26 + .../stripInternal-jsdoc-style-comment.js | 22 + ...en-one-two-three-are-prepended-in-order.js | 26 + ...-jsdoc-style-with-comments-emit-enabled.js | 22 + ...en-one-two-three-are-prepended-in-order.js | 48 ++ ...en-one-two-three-are-prepended-in-order.js | 26 + ...tripInternal-with-comments-emit-enabled.js | 22 + .../stripInternal.js | 44 ++ .../triple-slash-refs-in-all-projects.js | 45 ++ .../triple-slash-refs-in-one-project.js | 22 + ...t-composite-but-uses-project-references.js | 20 + ...-source-files-are-empty-in-the-own-file.js | 22 + .../emitHelpers-in-all-projects.js | 44 ++ ...tHelpers-in-only-one-dependency-project.js | 22 + .../multiple-emitHelpers-in-all-projects.js | 22 + ...tiple-emitHelpers-in-different-projects.js | 22 + .../multiple-prologues-in-all-projects.js | 44 ++ ...ultiple-prologues-in-different-projects.js | 22 + .../strict-in-all-projects.js | 44 ++ .../strict-in-one-dependency.js | 22 + ...en-one-two-three-are-prepended-in-order.js | 26 + .../stripInternal-jsdoc-style-comment.js | 22 + ...en-one-two-three-are-prepended-in-order.js | 48 ++ ...en-one-two-three-are-prepended-in-order.js | 26 + ...tripInternal-with-comments-emit-enabled.js | 22 + .../stripInternal.js | 44 ++ .../baseline-sectioned-sourcemaps.js | 42 ++ .../declarationMap-and-sourceMap-disabled.js | 22 + .../emitHelpers-in-all-projects.js | 42 ++ ...tHelpers-in-only-one-dependency-project.js | 22 + .../multiple-emitHelpers-in-all-projects.js | 22 + ...tiple-emitHelpers-in-different-projects.js | 22 + .../multiple-prologues-in-all-projects.js | 42 ++ ...ultiple-prologues-in-different-projects.js | 22 + .../initial-Build/shebang-in-all-projects.js | 42 ++ .../shebang-in-only-one-dependency-project.js | 22 + .../initial-Build/strict-in-all-projects.js | 42 ++ .../initial-Build/strict-in-one-dependency.js | 22 + ...hen-internal-is-inside-another-internal.js | 22 + ...en-one-two-three-are-prepended-in-order.js | 22 + .../stripInternal-jsdoc-style-comment.js | 22 + ...en-one-two-three-are-prepended-in-order.js | 22 + ...-jsdoc-style-with-comments-emit-enabled.js | 22 + ...l-when-few-members-of-enum-are-internal.js | 22 + ...en-one-two-three-are-prepended-in-order.js | 42 ++ ...en-one-two-three-are-prepended-in-order.js | 22 + ...tripInternal-with-comments-emit-enabled.js | 22 + .../initial-Build/stripInternal.js | 42 ++ .../triple-slash-refs-in-all-projects.js | 45 ++ .../triple-slash-refs-in-one-project.js | 22 + ...roject-is-not-composite-but-incremental.js | 22 + ...t-composite-but-uses-project-references.js | 22 + ...final-project-specifies-tsBuildInfoFile.js | 22 + ...-source-files-are-empty-in-the-own-file.js | 22 + .../incremental-declaration-changes/sample.js | 40 ++ .../when-declaration-option-changes.js | 12 + .../when-esModuleInterop-option-changes.js | 18 + ...en-logic-config-changes-declaration-dir.js | 33 ++ .../when-module-option-changes.js | 12 + .../when-target-option-changes.js | 20 + .../sample.js | 35 ++ .../tsbuild/sample1/initial-Build/sample.js | 37 ++ .../when-declaration-option-changes.js | 12 + .../when-esModuleInterop-option-changes.js | 22 + ...en-logic-config-changes-declaration-dir.js | 494 ------------------ .../when-logic-specifies-tsBuildInfoFile.js | 37 ++ .../when-module-option-changes.js | 12 + .../when-target-option-changes.js | 20 + 140 files changed, 3834 insertions(+), 1520 deletions(-) create mode 100644 src/testRunner/unittests/tsc/helpers.ts create mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js create mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-config-changes-declaration-dir.js diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 2d6286a379e..06d08c388ab 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -651,6 +651,8 @@ namespace ts { base64decode?(input: string): string; base64encode?(input: string): string; /*@internal*/ bufferFrom?(input: string, encoding?: string): Buffer; + // For testing + /*@internal*/ now?(): Date; } export interface FileWatcher { diff --git a/src/compiler/tsbuild.ts b/src/compiler/tsbuild.ts index 69b90135fd0..8be92079a5f 100644 --- a/src/compiler/tsbuild.ts +++ b/src/compiler/tsbuild.ts @@ -316,7 +316,7 @@ namespace ts { */ export function createBuilderStatusReporter(system: System, pretty?: boolean): DiagnosticReporter { return diagnostic => { - let output = pretty ? `[${formatColorAndReset(new Date().toLocaleTimeString(), ForegroundColorEscapeSequences.Grey)}] ` : `${new Date().toLocaleTimeString()} - `; + let output = pretty ? `[${formatColorAndReset((system.now ? system.now() : new Date()).toLocaleTimeString(), ForegroundColorEscapeSequences.Grey)}] ` : `${(system.now ? system.now() : new Date()).toLocaleTimeString()} - `; output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${system.newLine + system.newLine}`; system.write(output); }; diff --git a/src/harness/fakes.ts b/src/harness/fakes.ts index 63426bddb48..adcaef55471 100644 --- a/src/harness/fakes.ts +++ b/src/harness/fakes.ts @@ -140,7 +140,7 @@ namespace fakes { } public createHash(data: string): string { - return data; + return `${ts.generateDjb2Hash(data)}-${data}`; } public realpath(path: string) { @@ -164,6 +164,10 @@ namespace fakes { return undefined; } } + + now() { + return new Date(this.vfs.time()); + } } /** @@ -520,39 +524,51 @@ ${indentText}${text}`; export const version = "FakeTSVersion"; - export class SolutionBuilderHost extends CompilerHost implements ts.SolutionBuilderHost { - createProgram: ts.CreateProgram; - - constructor(sys: System | vfs.FileSystem, options?: ts.CompilerOptions, setParentNodes?: boolean, createProgram?: ts.CreateProgram) { - super(sys, options, setParentNodes); - this.createProgram = createProgram || ts.createEmitAndSemanticDiagnosticsBuilderProgram; - } - - readFile(path: string) { - const value = super.readFile(path); + export function patchSolutionBuilderHost(host: ts.SolutionBuilderHost, sys: System) { + const originalReadFile = host.readFile; + host.readFile = (path, encoding) => { + const value = originalReadFile.call(host, path, encoding); if (!value || !ts.isBuildInfoFile(path)) return value; const buildInfo = ts.getBuildInfo(value); ts.Debug.assert(buildInfo.version === version); buildInfo.version = ts.version; return ts.getBuildInfoText(buildInfo); + }; + + if (host.writeFile) { + const originalWriteFile = host.writeFile; + host.writeFile = (fileName, content, writeByteOrderMark) => { + if (!ts.isBuildInfoFile(fileName)) return originalWriteFile.call(host, fileName, content, writeByteOrderMark); + const buildInfo = ts.getBuildInfo(content); + sanitizeBuildInfoProgram(buildInfo); + buildInfo.version = version; + originalWriteFile.call(host, fileName, ts.getBuildInfoText(buildInfo), writeByteOrderMark); + }; } - public writeFile(fileName: string, content: string, writeByteOrderMark: boolean) { - if (!ts.isBuildInfoFile(fileName)) return super.writeFile(fileName, content, writeByteOrderMark); - const buildInfo = ts.getBuildInfo(content); - sanitizeBuildInfoProgram(buildInfo); - buildInfo.version = version; - super.writeFile(fileName, ts.getBuildInfoText(buildInfo), writeByteOrderMark); + ts.Debug.assert(host.now === undefined); + host.now = () => new Date(sys.vfs.time()); + ts.Debug.assertDefined(host.createHash); + } + + export class SolutionBuilderHost extends CompilerHost implements ts.SolutionBuilderHost { + createProgram: ts.CreateProgram; + + private constructor(sys: System | vfs.FileSystem, options?: ts.CompilerOptions, setParentNodes?: boolean, createProgram?: ts.CreateProgram) { + super(sys, options, setParentNodes); + this.createProgram = createProgram || ts.createEmitAndSemanticDiagnosticsBuilderProgram; + } + + static create(sys: System | vfs.FileSystem, options?: ts.CompilerOptions, setParentNodes?: boolean, createProgram?: ts.CreateProgram) { + const host = new SolutionBuilderHost(sys, options, setParentNodes, createProgram); + patchSolutionBuilderHost(host, host.sys); + return host; } createHash(data: string) { return `${ts.generateDjb2Hash(data)}-${data}`; } - now() { - return new Date(this.sys.vfs.time()); - } - diagnostics: SolutionBuilderDiagnostic[] = []; reportDiagnostic(diagnostic: ts.Diagnostic) { diff --git a/src/testRunner/tsconfig.json b/src/testRunner/tsconfig.json index db9e96e1ad2..5f8b3e87ec9 100644 --- a/src/testRunner/tsconfig.json +++ b/src/testRunner/tsconfig.json @@ -38,6 +38,7 @@ "unittests/services/extract/helpers.ts", "unittests/tsbuild/helpers.ts", + "unittests/tsc/helpers.ts", "unittests/tscWatch/helpers.ts", "unittests/tsserver/helpers.ts", diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts index 8a62972288d..eef93265a7e 100644 --- a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -32,47 +32,46 @@ namespace ts { }); interface VerifyOutFileScenarioInput { - scenario: string; - modifyFs: (fs: vfs.FileSystem) => void; + subScenario: string; + modifyFs?: (fs: vfs.FileSystem) => void; modifyAgainFs?: (fs: vfs.FileSystem) => void; } function verifyOutFileScenario({ - scenario, + subScenario, modifyFs, modifyAgainFs }: VerifyOutFileScenarioInput) { - verifyTsbuildOutput({ - scenario, - projFs: () => outFileFs, - time, + verifyTscIncrementalEdits({ + scenario: "amdModulesWithOut", + subScenario, + fs: () => outFileFs, tick, - proj: "amdModulesWithOut", - rootNames: ["/src/app"], + commandLineArgs: ["--b", "/src/app", "--verbose"], baselineSourceMap: true, - initialBuild: { - modifyFs - }, - incrementalDtsUnchangedBuild: { - modifyFs: fs => appendText(fs, relName(sources[project.lib][source.ts][1]), "console.log(x);") - }, - incrementalHeaderChangedBuild: modifyAgainFs ? { - modifyFs: modifyAgainFs - } : undefined, - baselineOnly: true + modifyFs, + incrementalScenarios: [ + { + buildKind: BuildKind.IncrementalDtsUnchanged, + modifyFs: fs => appendText(fs, relName(sources[project.lib][source.ts][1]), "console.log(x);") + }, + ...(modifyAgainFs ? [{ + buildKind: BuildKind.IncrementalHeadersChange, + modifyFs: modifyAgainFs + }] : emptyArray), + ] }); } describe("Prepend output with .tsbuildinfo", () => { verifyOutFileScenario({ - scenario: "modules and globals mixed in amd", - modifyFs: noop + subScenario: "modules and globals mixed in amd", }); // Prologues describe("Prologues", () => { verifyOutFileScenario({ - scenario: "multiple prologues in all projects", + subScenario: "multiple prologues in all projects", modifyFs: fs => { enableStrict(fs, sources[project.lib][source.config]); addTestPrologue(fs, sources[project.lib][source.ts][0], `"myPrologue"`); @@ -90,7 +89,7 @@ namespace ts { describe("Shebang", () => { // changes declaration because its emitted in .d.ts file verifyOutFileScenario({ - scenario: "shebang in all projects", + subScenario: "shebang in all projects", modifyFs: fs => { addShebang(fs, "lib", "file0"); addShebang(fs, "lib", "file1"); @@ -102,7 +101,7 @@ namespace ts { // emitHelpers describe("emitHelpers", () => { verifyOutFileScenario({ - scenario: "multiple emitHelpers in all projects", + subScenario: "multiple emitHelpers in all projects", modifyFs: fs => { addSpread(fs, "lib", "file0"); addRest(fs, "lib", "file1"); @@ -117,7 +116,7 @@ namespace ts { describe("triple slash refs", () => { // changes declaration because its emitted in .d.ts file verifyOutFileScenario({ - scenario: "triple slash refs in all projects", + subScenario: "triple slash refs in all projects", modifyFs: fs => { addTripleSlashRef(fs, "lib", "file0"); addTripleSlashRef(fs, "app", "file4"); @@ -161,7 +160,7 @@ ${internal} export enum internalEnum { a, b, c }`); // Verify initial + incremental edits verifyOutFileScenario({ - scenario: "stripInternal", + subScenario: "stripInternal", modifyFs: stripInternalScenario, modifyAgainFs: fs => replaceText(fs, sources[project.lib][source.ts][1], `export const`, `/*@internal*/ export const`), }); @@ -175,26 +174,13 @@ ${internal} export enum internalEnum { a, b, c }`); replaceText(fs, sources[project.app][source.ts][0], "file1", "lib/file1"); } - verifyTsbuildOutput({ - scenario: "when the module resolution finds original source file", - projFs: () => outFileFs, - time, - tick, - proj: "amdModulesWithOut", - rootNames: ["/src/app"], + verifyTsc({ + scenario: "amdModulesWithOut", + subScenario: "when the module resolution finds original source file", + fs: () => outFileFs, + commandLineArgs: ["-b", "/src/app", "--verbose"], + modifyFs, baselineSourceMap: true, - initialBuild: { - modifyFs, - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/lib/tsconfig.json", "src/app/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/lib/tsconfig.json", "src/module.js"], - [Diagnostics.Building_project_0, sources[project.lib][source.config]], - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/app/tsconfig.json", "src/app/module.js"], - [Diagnostics.Building_project_0, sources[project.app][source.config]], - ] - }, - baselineOnly: true, - verifyDiagnostics: true }); }); }); diff --git a/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts b/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts index 425dbf2e20f..f621d956621 100644 --- a/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts +++ b/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts @@ -19,7 +19,7 @@ namespace ts { it("verify that subsequent builds after initial build doesnt build anything", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); createSolutionBuilder(host, ["/src"], { verbose: true }).build(); host.assertDiagnosticMessages( getExpectedDiagnosticForProjectsInBuild("src/src/folder/tsconfig.json", "src/src/folder2/tsconfig.json", "src/src/tsconfig.json", "src/tests/tsconfig.json", "src/tsconfig.json"), diff --git a/src/testRunner/unittests/tsbuild/demo.ts b/src/testRunner/unittests/tsbuild/demo.ts index c345ad1e372..baa50e69076 100644 --- a/src/testRunner/unittests/tsbuild/demo.ts +++ b/src/testRunner/unittests/tsbuild/demo.ts @@ -49,7 +49,7 @@ namespace ts { function verifyBuild({ modifyDiskLayout, expectedExitStatus, expectedDiagnostics, expectedOutputs, notExpectedOutputs }: VerifyBuild) { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); modifyDiskLayout(fs); const builder = createSolutionBuilder(host, ["/src/tsconfig.json"], { verbose: true }); const exitStatus = builder.build(); diff --git a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts index e9ce4b46024..90aca9016e9 100644 --- a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts +++ b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts @@ -10,76 +10,47 @@ namespace ts { }); function verifyEmitDeclarationOnly(disableMap?: true) { - verifyTsbuildOutput({ - scenario: `only dts output in circular import project with emitDeclarationOnly${disableMap ? "" : " and declarationMap"}`, - projFs: () => projFs, - time, + verifyTscIncrementalEdits({ + subScenario: `only dts output in circular import project with emitDeclarationOnly${disableMap ? "" : " and declarationMap"}`, + fs: () => projFs, tick, - proj: "emitDeclarationOnly", - rootNames: ["/src"], - initialBuild: { - modifyFs: disableMap ? - (fs => replaceText(fs, "/src/tsconfig.json", `"declarationMap": true,`, "")) : - noop, - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/tsconfig.json", "src/lib/a.d.ts"], - [Diagnostics.Building_project_0, "/src/tsconfig.json"] - ] - }, - incrementalDtsChangedBuild: { + scenario: "emitDeclarationOnly", + commandLineArgs: ["--b", "/src", "--verbose"], + modifyFs: disableMap ? + (fs => replaceText(fs, "/src/tsconfig.json", `"declarationMap": true,`, "")) : + undefined, + incrementalScenarios: [{ + buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => replaceText(fs, "/src/src/a.ts", "b: B;", "b: B; foo: any;"), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/tsconfig.json", "src/lib/a.d.ts", "src/src/a.ts"], - [Diagnostics.Building_project_0, "/src/tsconfig.json"] - ] - }, - baselineOnly: true, - verifyDiagnostics: true + }], }); } verifyEmitDeclarationOnly(); verifyEmitDeclarationOnly(/*disableMap*/ true); - verifyTsbuildOutput({ - scenario: `only dts output in non circular imports project with emitDeclarationOnly`, - projFs: () => projFs, - time, + verifyTscIncrementalEdits({ + subScenario: `only dts output in non circular imports project with emitDeclarationOnly`, + fs: () => projFs, tick, - proj: "emitDeclarationOnly", - rootNames: ["/src"], - initialBuild: { - modifyFs: fs => { - fs.rimrafSync("/src/src/index.ts"); - replaceText(fs, "/src/src/a.ts", `import { B } from "./b";`, `export class B { prop = "hello"; }`); + scenario: "emitDeclarationOnly", + commandLineArgs: ["--b", "/src", "--verbose"], + modifyFs: fs => { + fs.rimrafSync("/src/src/index.ts"); + replaceText(fs, "/src/src/a.ts", `import { B } from "./b";`, `export class B { prop = "hello"; }`); + }, + incrementalScenarios: [ + { + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => replaceText(fs, "/src/src/a.ts", "b: B;", "b: B; foo: any;"), + }, - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/tsconfig.json", "src/lib/a.d.ts"], - [Diagnostics.Building_project_0, "/src/tsconfig.json"] - ] - }, - incrementalDtsChangedBuild: { - modifyFs: fs => replaceText(fs, "/src/src/a.ts", "b: B;", "b: B; foo: any;"), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/tsconfig.json", "src/lib/a.d.ts", "src/src/a.ts"], - [Diagnostics.Building_project_0, "/src/tsconfig.json"] - ] - }, - incrementalDtsUnchangedBuild: { - modifyFs: fs => replaceText(fs, "/src/src/a.ts", "export interface A {", `class C { } + { + buildKind: BuildKind.IncrementalDtsUnchanged, + modifyFs: fs => replaceText(fs, "/src/src/a.ts", "export interface A {", `class C { } export interface A {`), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/tsconfig.json", "src/lib/a.d.ts", "src/src/a.ts"], - [Diagnostics.Building_project_0, "/src/tsconfig.json"], - [Diagnostics.Updating_unchanged_output_timestamps_of_project_0, "/src/tsconfig.json"] - ] - }, - baselineOnly: true, - verifyDiagnostics: true + + }, + ], }); }); } diff --git a/src/testRunner/unittests/tsbuild/emptyFiles.ts b/src/testRunner/unittests/tsbuild/emptyFiles.ts index a2e7aedf290..6e09b5871f9 100644 --- a/src/testRunner/unittests/tsbuild/emptyFiles.ts +++ b/src/testRunner/unittests/tsbuild/emptyFiles.ts @@ -10,7 +10,7 @@ namespace ts { describe("unittests:: tsbuild - empty files option in tsconfig", () => { it("has empty files diagnostic when files is empty and no references are provided", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/no-references"], { dry: false, force: false, verbose: false }); host.clearDiagnostics(); @@ -26,7 +26,7 @@ namespace ts { it("does not have empty files diagnostic when files is empty and references are provided", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/with-references"], { dry: false, force: false, verbose: false }); host.clearDiagnostics(); diff --git a/src/testRunner/unittests/tsbuild/graphOrdering.ts b/src/testRunner/unittests/tsbuild/graphOrdering.ts index d2fa94abd03..79ddd80d67b 100644 --- a/src/testRunner/unittests/tsbuild/graphOrdering.ts +++ b/src/testRunner/unittests/tsbuild/graphOrdering.ts @@ -17,7 +17,7 @@ namespace ts { before(() => { const fs = new vfs.FileSystem(false); - host = new fakes.SolutionBuilderHost(fs); + host = fakes.SolutionBuilderHost.create(fs); writeProjects(fs, ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"], deps); }); diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 73832cc254c..55c0831a861 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -164,7 +164,7 @@ interface Symbol { } } - function generateSourceMapBaselineFiles(fs: vfs.FileSystem, mapFileNames: Iterator) { + export function generateSourceMapBaselineFiles(fs: vfs.FileSystem, mapFileNames: Iterator) { while (true) { const { value: mapFile, done } = mapFileNames.next(); if (done) break; @@ -230,255 +230,114 @@ interface Symbol { } } - export interface BuildInput { - fs: vfs.FileSystem; - tick: () => void; - rootNames: readonly string[]; - modifyFs: (fs: vfs.FileSystem) => void; - baselineSourceMap?: true; - baselineBuildInfo?: true; - } - - export function tscBuild({ fs, tick, rootNames, modifyFs, baselineSourceMap, baselineBuildInfo }: BuildInput) { - const actualReadFileMap = createMap(); - modifyFs(fs); - tick(); - - const host = new fakes.SolutionBuilderHost(fs); - const writtenFiles = createMap(); - const originalWriteFile = host.writeFile; - host.writeFile = (fileName, content, writeByteOrderMark) => { - assert.isFalse(writtenFiles.has(fileName)); - writtenFiles.set(fileName, true); - return originalWriteFile.call(host, fileName, content, writeByteOrderMark); - }; - const builder = createSolutionBuilder(host, rootNames, { dry: false, force: false, verbose: true }); - host.clearDiagnostics(); - const originalReadFile = host.readFile; - host.readFile = path => { - // Dont record libs - if (path.startsWith("/src/")) { - actualReadFileMap.set(path, (actualReadFileMap.get(path) || 0) + 1); - } - return originalReadFile.call(host, path); - }; - builder.build(); - if (baselineSourceMap) generateSourceMapBaselineFiles(fs, mapDefinedIterator(writtenFiles.keys(), f => f.endsWith(".map") ? f : undefined)); - if (baselineBuildInfo) { - let expectedBuildInfoFiles: BuildInfoSectionBaselineFiles[] | undefined; - for (const { options } of builder.getAllParsedConfigs()) { - const out = options.outFile || options.out; - if (out) { - const { jsFilePath, declarationFilePath, buildInfoPath } = getOutputPathsForBundle(options, /*forceDts*/ false); - if (buildInfoPath && writtenFiles.has(buildInfoPath)) { - (expectedBuildInfoFiles || (expectedBuildInfoFiles = [])).push( - [buildInfoPath, jsFilePath, declarationFilePath] - ); - } + export function baselineBuildInfo( + configs: readonly ParsedCommandLine[], + fs: vfs.FileSystem, + writtenFiles: Map + ) { + let expectedBuildInfoFiles: BuildInfoSectionBaselineFiles[] | undefined; + for (const { options } of configs) { + const out = options.outFile || options.out; + if (out) { + const { jsFilePath, declarationFilePath, buildInfoPath } = getOutputPathsForBundle(options, /*forceDts*/ false); + if (buildInfoPath && writtenFiles.has(buildInfoPath)) { + (expectedBuildInfoFiles || (expectedBuildInfoFiles = [])).push( + [buildInfoPath, jsFilePath, declarationFilePath] + ); } } - if (expectedBuildInfoFiles) generateBuildInfoSectionBaselineFiles(fs, expectedBuildInfoFiles); } - fs.makeReadonly(); - return { fs, actualReadFileMap, host, builder, writtenFiles }; + if (expectedBuildInfoFiles) generateBuildInfoSectionBaselineFiles(fs, expectedBuildInfoFiles); } - export function baselineFs(fs: vfs.FileSystem, baseFs: vfs.FileSystem, baselineFolder: string, scenario: string, subScenario: string) { - const patch = fs.diff(baseFs, { includeChangedFileWithSameContent: true }); - // eslint-disable-next-line no-null/no-null - Harness.Baseline.runBaseline(`${baselineFolder}/${scenario.split(" ").join("-")}/${subScenario.split(" ").join("-")}.js`, patch ? vfs.formatPatch(patch) : null); - } - - function generateBaseline(fs: vfs.FileSystem, proj: string, scenario: string, subScenario: string, baseFs: vfs.FileSystem) { - baselineFs(fs, baseFs, `tsbuild/${proj}`, subScenario, scenario); - } - - function verifyReadFileCalls(actualReadFileMap: Map, expectedReadFiles: ReadonlyMap) { - TestFSWithWatch.verifyMapSize("readFileCalls", actualReadFileMap, arrayFrom(expectedReadFiles.keys())); - expectedReadFiles.forEach((expected, expectedFile) => { - const actual = actualReadFileMap.get(expectedFile); - assert.equal(actual, expected, `Mismatch in read file call number for: ${expectedFile} -Not in Actual: ${JSON.stringify(arrayFrom(mapDefinedIterator(expectedReadFiles.keys(), f => actualReadFileMap.has(f) ? undefined : f)))} -Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIterator(actualReadFileMap.entries(), ([p, v]) => expectedReadFiles.get(p) !== v ? [p, v, expectedReadFiles.get(p) || 0] : undefined)))}`); - }); - } - - export function getReadFilesMap(filesReadOnce: readonly string[], ...filesWithTwoReadCalls: string[]) { - const map = arrayToMap(filesReadOnce, identity, () => 1); - for (const fileWithTwoReadCalls of filesWithTwoReadCalls) { - map.set(fileWithTwoReadCalls, 2); - } - return map; - } - - export interface ExpectedBuildOutput { - expectedDiagnostics?: readonly fakes.ExpectedDiagnostic[]; - expectedReadFiles?: ReadonlyMap; - } - - export interface BuildState extends ExpectedBuildOutput { + export interface TscIncremental { + buildKind: BuildKind; modifyFs: (fs: vfs.FileSystem) => void; + subScenario?: string; } - export interface VerifyTsBuildInput { - scenario: string; - projFs: () => vfs.FileSystem; - time: () => number; + export interface VerifyTsBuildInput extends TscCompile { tick: () => void; - proj: string; - rootNames: readonly string[]; - initialBuild: BuildState; - incrementalDtsChangedBuild?: BuildState; - incrementalDtsUnchangedBuild?: BuildState; - incrementalHeaderChangedBuild?: BuildState; - baselineOnly?: true; - verifyDiagnostics?: true; - baselineSourceMap?: true; + incrementalScenarios: TscIncremental[]; } - export function verifyTsbuildOutput({ - scenario, projFs, time, tick, proj, rootNames, - baselineOnly, verifyDiagnostics, baselineSourceMap, - initialBuild, incrementalDtsChangedBuild, incrementalDtsUnchangedBuild, incrementalHeaderChangedBuild + export function verifyTscIncrementalEdits({ + subScenario, fs, tick, scenario, commandLineArgs, + baselineSourceMap, modifyFs, baselineReadFileCalls, + incrementalScenarios }: VerifyTsBuildInput) { - describe(`tsc --b ${proj}:: ${scenario}`, () => { - let fs: vfs.FileSystem; - let actualReadFileMap: Map; - let firstBuildTime: number; - let host: fakes.SolutionBuilderHost; - let initialWrittenFiles: Map; + describe(`tsc --b ${scenario}:: ${subScenario}`, () => { + let sys: TscCompileSystem; before(() => { - const result = tscBuild({ - fs: projFs().shadow(), - tick, - rootNames, - modifyFs: initialBuild.modifyFs, + sys = tscCompile({ + scenario, + subScenario, + fs, + commandLineArgs, + modifyFs: fs => { + if (modifyFs) modifyFs(fs); + tick(); + }, baselineSourceMap, - baselineBuildInfo: true, + baselineReadFileCalls }); - ({ fs, actualReadFileMap, host, writtenFiles: initialWrittenFiles } = result); - firstBuildTime = time(); + Debug.assert(!!incrementalScenarios.length, `${scenario}/${subScenario}:: No incremental scenarios, you probably want to use verifyTsc instead.`); }); after(() => { - fs = undefined!; - actualReadFileMap = undefined!; - host = undefined!; - initialWrittenFiles = undefined!; + sys = undefined!; }); describe("initialBuild", () => { - if (!baselineOnly || verifyDiagnostics) { - it(`verify diagnostics`, () => { - host.assertDiagnosticMessages(...(initialBuild.expectedDiagnostics || emptyArray)); - }); - } - it(`Generates files matching the baseline`, () => { - generateBaseline(fs, proj, scenario, "initial Build", projFs()); - }); - if (!baselineOnly) { - it("verify readFile calls", () => { - verifyReadFileCalls(actualReadFileMap, Debug.assertDefined(initialBuild.expectedReadFiles)); - }); - } + verifyTscBaseline(() => sys); }); - function incrementalBuild(subScenario: string, incrementalModifyFs: (fs: vfs.FileSystem) => void, incrementalExpectedDiagnostics: readonly fakes.ExpectedDiagnostic[] | undefined, incrementalExpectedReadFiles: ReadonlyMap | undefined) { - describe(subScenario, () => { - let newFs: vfs.FileSystem; - let actualReadFileMap: Map; - let host: fakes.SolutionBuilderHost; - let beforeBuildTime: number; - let afterBuildTime: number; + for (const { buildKind, modifyFs, subScenario: incrementalSubScenario } of incrementalScenarios) { + describe(incrementalSubScenario || buildKind, () => { + let newSys: TscCompileSystem; before(() => { - const lastProjectOutput = last(arrayFrom(initialWrittenFiles.keys())); - beforeBuildTime = fs.statSync(lastProjectOutput).mtimeMs; + Debug.assert(buildKind !== BuildKind.Initial, "Incremental edit cannot be initial compilation"); tick(); - newFs = fs.shadow(); - tick(); - ({ actualReadFileMap, host } = tscBuild({ - fs: newFs, - tick, - rootNames, - modifyFs: incrementalModifyFs, + newSys = tscCompile({ + scenario, + subScenario: incrementalSubScenario || subScenario, + buildKind, + fs: () => sys.vfs, + commandLineArgs, + modifyFs: fs => { + tick(); + modifyFs(fs); + tick(); + }, baselineSourceMap, - baselineBuildInfo: true, - })); - afterBuildTime = newFs.statSync(lastProjectOutput).mtimeMs; + baselineReadFileCalls + }); }); after(() => { - newFs = undefined!; - actualReadFileMap = undefined!; - host = undefined!; + newSys = undefined!; }); - it("verify build output times", () => { - assert.equal(beforeBuildTime, firstBuildTime, "First build timestamp is correct"); - assert.equal(afterBuildTime, time(), "Second build timestamp is correct"); - }); - if (!baselineOnly || verifyDiagnostics) { - it(`verify diagnostics`, () => { - host.assertDiagnosticMessages(...(incrementalExpectedDiagnostics || emptyArray)); - }); - } - else { - // Build should pass without errors if not verifying diagnostics - it(`verify no errors`, () => { - host.assertErrors(/*empty*/); - }); - } - it(`Generates files matching the baseline`, () => { - generateBaseline(newFs, proj, scenario, subScenario, fs); - }); - if (!baselineOnly) { - it("verify readFile calls", () => { - verifyReadFileCalls(actualReadFileMap, Debug.assertDefined(incrementalExpectedReadFiles)); - }); - } + verifyTscBaseline(() => newSys); it(`Verify emit output file text is same when built clean`, () => { - const { fs, writtenFiles } = tscBuild({ - fs: newFs.shadow(), - tick, - rootNames, + const sys = tscCompile({ + scenario, + subScenario, + fs: () => newSys.vfs, + commandLineArgs, modifyFs: fs => { + tick(); // Delete output files - const host = new fakes.SolutionBuilderHost(fs); - const builder = createSolutionBuilder(host, rootNames, { clean: true }); + const host = fakes.SolutionBuilderHost.create(fs); + const builder = createSolutionBuilder(host, commandLineArgs, { clean: true }); builder.clean(); }, }); - for (const outputFile of arrayFrom(writtenFiles.keys())) { - const expectedText = fs.existsSync(outputFile) ? fs.readFileSync(outputFile, "utf8") : undefined; - const actualText = newFs.existsSync(outputFile) ? newFs.readFileSync(outputFile, "utf8") : undefined; + for (const outputFile of arrayFrom(sys.writtenFiles.keys())) { + const expectedText = sys.readFile(outputFile); + const actualText = newSys.readFile(outputFile); assert.equal(actualText, expectedText, `File: ${outputFile}`); } }); }); } - if (incrementalDtsChangedBuild) { - incrementalBuild( - "incremental declaration changes", - incrementalDtsChangedBuild.modifyFs, - incrementalDtsChangedBuild.expectedDiagnostics, - incrementalDtsChangedBuild.expectedReadFiles, - ); - } - - if (incrementalDtsUnchangedBuild) { - incrementalBuild( - "incremental declaration doesnt change", - incrementalDtsUnchangedBuild.modifyFs, - incrementalDtsUnchangedBuild.expectedDiagnostics, - incrementalDtsUnchangedBuild.expectedReadFiles - ); - } - - if (incrementalHeaderChangedBuild) { - incrementalBuild( - "incremental headers change without dts changes", - incrementalHeaderChangedBuild.modifyFs, - incrementalHeaderChangedBuild.expectedDiagnostics, - incrementalHeaderChangedBuild.expectedReadFiles - ); - } }); } diff --git a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts index 5383b7d32be..d135343a221 100644 --- a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts +++ b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts @@ -9,74 +9,47 @@ namespace ts { projFs = undefined!; }); - verifyTsbuildOutput({ - scenario: "inferred type from transitive module", - projFs: () => projFs, - time, + verifyTscIncrementalEdits({ + scenario: "inferredTypeFromTransitiveModule", + subScenario: "inferred type from transitive module", + fs: () => projFs, tick, - proj: "inferredTypeFromTransitiveModule", - rootNames: ["/src"], - initialBuild: { - modifyFs: noop, - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/tsconfig.json", "src/obj/bar.js"], - [Diagnostics.Building_project_0, "/src/tsconfig.json"] - ] - }, - incrementalDtsChangedBuild: { + commandLineArgs: ["--b", "/src", "--verbose"], + incrementalScenarios: [{ + buildKind: BuildKind.IncrementalDtsChange, modifyFs: changeBarParam, - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/tsconfig.json", "src/obj/bar.js", "src/bar.ts"], - [Diagnostics.Building_project_0, "/src/tsconfig.json"], - [Diagnostics.Updating_unchanged_output_timestamps_of_project_0, "/src/tsconfig.json"] - ] - }, - baselineOnly: true, - verifyDiagnostics: true + }], }); - verifyTsbuildOutput({ - scenario: "inferred type from transitive module with isolatedModules", - projFs: () => projFs, - time, + verifyTscIncrementalEdits({ + subScenario: "inferred type from transitive module with isolatedModules", + fs: () => projFs, tick, - proj: "inferredTypeFromTransitiveModule", - rootNames: ["/src"], - initialBuild: { modifyFs: changeToIsolatedModules }, - incrementalDtsChangedBuild: { modifyFs: changeBarParam }, - baselineOnly: true, + scenario: "inferredTypeFromTransitiveModule", + commandLineArgs: ["--b", "/src", "--verbose"], + modifyFs: changeToIsolatedModules, + incrementalScenarios: [{ + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: changeBarParam + }] }); - it("reports errors in files affected by change in signature", () => { - const { fs, host } = tscBuild({ - fs: projFs.shadow(), - tick, - rootNames: ["/src"], - modifyFs: fs => { - changeToIsolatedModules(fs); - appendText(fs, "/src/lazyIndex.ts", ` + verifyTscIncrementalEdits({ + scenario: "inferredTypeFromTransitiveModule", + subScenario: "reports errors in files affected by change in signature with isolatedModules", + fs: () => projFs, + tick, + commandLineArgs: ["--b", "/src", "--verbose"], + modifyFs: fs => { + changeToIsolatedModules(fs); + appendText(fs, "/src/lazyIndex.ts", ` import { default as bar } from './bar'; bar("hello");`); - } - }); - host.assertErrors(/*empty*/); - - tick(); - const { fs: newFs, host: newHost, writtenFiles } = tscBuild({ - fs: fs.shadow(), - tick, - rootNames: ["/src"], + }, + incrementalScenarios: [{ + buildKind: BuildKind.IncrementalDtsChange, modifyFs: changeBarParam - }); - // Has errors - newHost.assertErrors({ - message: [Diagnostics.Expected_0_arguments_but_got_1, 0, 1], - location: expectedLocationIndexOf(newFs, "/src/lazyIndex.ts", `"hello"`) - }); - // No written files - assert.equal(writtenFiles.size, 0); + }] }); }); diff --git a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts index 02224b3fa88..fe4cf9c30e5 100644 --- a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts +++ b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts @@ -9,32 +9,16 @@ namespace ts { projFs = undefined!; // Release the contents }); - verifyTsbuildOutput({ - scenario: "interface is merged and contains late bound member", - projFs: () => projFs, - time, + verifyTscIncrementalEdits({ + subScenario: "interface is merged and contains late bound member", + fs: () => projFs, tick, - proj: "lateBoundSymbol", - rootNames: ["/src/tsconfig.json"], - initialBuild: { - modifyFs: noop, - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/tsconfig.json", "src/src/hkt.js"], - [Diagnostics.Building_project_0, "/src/tsconfig.json"] - ] - }, - incrementalDtsUnchangedBuild: { + scenario: "lateBoundSymbol", + commandLineArgs: ["--b", "/src/tsconfig.json", "--verbose"], + incrementalScenarios: [{ + buildKind: BuildKind.IncrementalDtsUnchanged, modifyFs: fs => replaceText(fs, "/src/src/main.ts", "const x = 10;", ""), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/tsconfig.json", "src/src/hkt.js", "src/src/main.ts"], - [Diagnostics.Building_project_0, "/src/tsconfig.json"], - [Diagnostics.Updating_unchanged_output_timestamps_of_project_0, "/src/tsconfig.json"] - ] - }, - baselineOnly: true, - verifyDiagnostics: true + }] }); }); } diff --git a/src/testRunner/unittests/tsbuild/missingExtendedFile.ts b/src/testRunner/unittests/tsbuild/missingExtendedFile.ts index 907ed9202fa..7fa3352da26 100644 --- a/src/testRunner/unittests/tsbuild/missingExtendedFile.ts +++ b/src/testRunner/unittests/tsbuild/missingExtendedFile.ts @@ -3,7 +3,7 @@ namespace ts { it("unittests:: tsbuild - when tsconfig extends the missing file", () => { const projFs = loadProjectFromDisk("tests/projects/missingExtendedConfig"); const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tsconfig.json"], {}); builder.build(); host.assertDiagnosticMessages( diff --git a/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts b/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts index 86328788a3b..629e8f2dea0 100644 --- a/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts +++ b/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts @@ -1,10 +1,11 @@ namespace ts { // https://github.com/microsoft/TypeScript/issues/31696 describe("unittests:: tsbuild:: moduleSpecifiers:: synthesized module specifiers to referenced projects resolve correctly", () => { - let projFs: vfs.FileSystem; - const { time, tick } = getTime(); - before(() => { - projFs = loadProjectFromFiles({ + const { time } = getTime(); + verifyTsc({ + scenario: "moduleSpecifiers", + subScenario: `synthesized module specifiers resolve correctly`, + fs: () => loadProjectFromFiles({ "/src/common/nominal.ts": utils.dedent` export declare type Nominal = T & { [Symbol.species]: Name; @@ -84,22 +85,8 @@ namespace ts { ], "include": [] }` - }, time, symbolLibContent); - }); - after(() => { - projFs = undefined!; - }); - verifyTsbuildOutput({ - scenario: `synthesized module specifiers resolve correctly`, - projFs: () => projFs, - time, - tick, - proj: "moduleSpecifiers", - rootNames: ["/"], - initialBuild: { - modifyFs: noop, - }, - baselineOnly: true + }, time, symbolLibContent), + commandLineArgs: ["-b", "/", "--verbose"] }); }); } diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index fa89e4a8ae9..2c85b0b268b 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -71,101 +71,6 @@ namespace ts { [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, relSources[project.third][source.config], relOutputFiles[project.third][ext.js]], [Diagnostics.Building_project_0, sources[project.third][source.config]] ]; - let initialExpectedReadFiles: ReadonlyMap = getReadFilesMap( - [ - // Configs - sources[project.first][source.config], - sources[project.second][source.config], - sources[project.third][source.config], - - // Source files - ...sources[project.first][source.ts], - ...sources[project.second][source.ts], - ...sources[project.third][source.ts], - - // outputs - ...outputFiles[project.first], - ...outputFiles[project.second], - ] - ); - - let dtsChangedExpectedDiagnostics: readonly fakes.ExpectedDiagnostic[] = [ - getExpectedDiagnosticForProjectsInBuild(relSources[project.first][source.config], relSources[project.second][source.config], relSources[project.third][source.config]), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, relSources[project.first][source.config], relOutputFiles[project.first][ext.js], relSources[project.first][source.ts][part.one]], - [Diagnostics.Building_project_0, sources[project.first][source.config]], - [Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2, relSources[project.second][source.config], relSources[project.second][source.ts][part.one], relOutputFiles[project.second][ext.js]], - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, relSources[project.third][source.config], relOutputFiles[project.third][ext.js], "src/first"], - [Diagnostics.Building_project_0, sources[project.third][source.config]] - ]; - let dtsChangedExpectedReadFiles: ReadonlyMap = getReadFilesMap( - [ - // Configs - sources[project.first][source.config], - sources[project.second][source.config], - sources[project.third][source.config], - - // Source files - ...sources[project.first][source.ts], - ...sources[project.third][source.ts], - - // outputs - ...outputFiles[project.first], - ...outputFiles[project.second], - outputFiles[project.third][ext.dts], - ], - outputFiles[project.first][ext.dts], // dts changes so once read old content, and once new (to emit third) - ); - - let dtsChangedExpectedDiagnosticsDependOrdered: readonly fakes.ExpectedDiagnostic[] = [ - getExpectedDiagnosticForProjectsInBuild(relSources[project.first][source.config], relSources[project.second][source.config], relSources[project.third][source.config]), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, relSources[project.first][source.config], relOutputFiles[project.first][ext.js], relSources[project.first][source.ts][part.one]], - [Diagnostics.Building_project_0, sources[project.first][source.config]], - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, relSources[project.second][source.config], relOutputFiles[project.second][ext.js], "src/first"], - [Diagnostics.Building_project_0, sources[project.second][source.config]], - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, relSources[project.third][source.config], relOutputFiles[project.third][ext.js], "src/second"], - [Diagnostics.Building_project_0, sources[project.third][source.config]] - ]; - let dtsChangedExpectedReadFilesDependOrdered: ReadonlyMap = getDtsChangedReadFilesDependOrdered(); - - let dtsUnchangedExpectedDiagnostics: readonly fakes.ExpectedDiagnostic[] = [ - getExpectedDiagnosticForProjectsInBuild(relSources[project.first][source.config], relSources[project.second][source.config], relSources[project.third][source.config]), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, relSources[project.first][source.config], relOutputFiles[project.first][ext.js], relSources[project.first][source.ts][part.one]], - [Diagnostics.Building_project_0, sources[project.first][source.config]], - [Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2, relSources[project.second][source.config], relSources[project.second][source.ts][part.one], relOutputFiles[project.second][ext.js]], - [Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed, relSources[project.third][source.config], "src/first"], - [Diagnostics.Updating_output_of_project_0, sources[project.third][source.config]], - [Diagnostics.Updating_unchanged_output_timestamps_of_project_0, sources[project.third][source.config]], - ]; - let dtsUnchangedExpectedReadFiles: ReadonlyMap = getReadFilesMap( - [ - // Configs - sources[project.first][source.config], - sources[project.second][source.config], - sources[project.third][source.config], - - // Source files - ...sources[project.first][source.ts], - - // outputs to prepend - ...outputFiles[project.first], - ...outputFiles[project.second], - ...outputFiles[project.third], - ] - ); - - let dtsUnchangedExpectedDiagnosticsDependOrdered: readonly fakes.ExpectedDiagnostic[] = [ - getExpectedDiagnosticForProjectsInBuild(relSources[project.first][source.config], relSources[project.second][source.config], relSources[project.third][source.config]), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, relSources[project.first][source.config], relOutputFiles[project.first][ext.js], relSources[project.first][source.ts][part.one]], - [Diagnostics.Building_project_0, sources[project.first][source.config]], - [Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed, relSources[project.second][source.config], "src/first"], - [Diagnostics.Updating_output_of_project_0, sources[project.second][source.config]], - [Diagnostics.Updating_unchanged_output_timestamps_of_project_0, sources[project.second][source.config]], - [Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed, relSources[project.third][source.config], "src/second"], - [Diagnostics.Updating_output_of_project_0, sources[project.third][source.config]], - [Diagnostics.Updating_unchanged_output_timestamps_of_project_0, sources[project.third][source.config]], - ]; - let dtsUnchangedExpectedReadFilesDependOrdered: ReadonlyMap = getDtsUnchangedExpectedReadFilesDependOrdered(); - before(() => { outFileFs = loadProjectFromDisk("tests/projects/outfile-concat", time); }); @@ -173,140 +78,72 @@ namespace ts { outFileFs = undefined!; expectedOutputFiles = undefined!; initialExpectedDiagnostics = undefined!; - initialExpectedReadFiles = undefined!; - dtsChangedExpectedDiagnostics = undefined!; - dtsChangedExpectedReadFiles = undefined!; - dtsChangedExpectedDiagnosticsDependOrdered = undefined!; - dtsChangedExpectedReadFilesDependOrdered = undefined!; - dtsUnchangedExpectedDiagnostics = undefined!; - dtsUnchangedExpectedReadFiles = undefined!; - dtsUnchangedExpectedDiagnosticsDependOrdered = undefined!; - dtsUnchangedExpectedReadFilesDependOrdered = undefined!; }); function createSolutionBuilder(host: fakes.SolutionBuilderHost, baseOptions?: BuildOptions) { return ts.createSolutionBuilder(host, ["/src/third"], { dry: false, force: false, verbose: true, ...(baseOptions || {}) }); } - function getInitialExpectedReadFiles(additionalSourceFiles?: readonly string[]) { - if (!additionalSourceFiles) return initialExpectedReadFiles; - const expectedReadFiles = cloneMap(initialExpectedReadFiles); - for (const path of additionalSourceFiles) { - expectedReadFiles.set(path, 1); - } - return expectedReadFiles; - } - - function getDtsChangedReadFilesDependOrdered() { - const value = cloneMap(dtsChangedExpectedReadFiles); - for (const path of sources[project.second][source.ts]) { - value.set(path, 1); - } - value.set(outputFiles[project.second][ext.dts], 2); // dts changes so once read old content, and once new (to emit third) - return value; - } - - function getDtsChangedReadFiles(dependOrdered?: boolean, additionalSourceFiles?: readonly string[]) { - const value = dependOrdered ? dtsChangedExpectedReadFilesDependOrdered : dtsChangedExpectedReadFiles; - if (!additionalSourceFiles) return value; - const expectedReadFiles = cloneMap(value); - for (const path of additionalSourceFiles) { - expectedReadFiles.set(path, 1); - } - return expectedReadFiles; - } - - function getDtsUnchangedExpectedReadFilesDependOrdered() { - const value = cloneMap(dtsUnchangedExpectedReadFiles); - // Since this changes too - for (const path of outputFiles[project.second]) { - value.set(path, 2); - } - return value; - } - - function getDtsUnchangedReadFiles(dependOrdered?: boolean, additionalSourceFiles?: readonly string[]) { - const value = dependOrdered ? dtsUnchangedExpectedReadFilesDependOrdered : dtsUnchangedExpectedReadFiles; - if (!additionalSourceFiles || additionalSourceFiles.length !== 3) return value; - const expectedReadFiles = cloneMap(value); - // Additional source Files - expectedReadFiles.set(additionalSourceFiles[project.first], 1); - return expectedReadFiles; - } - interface VerifyOutFileScenarioInput { - scenario: string; - modifyFs: (fs: vfs.FileSystem) => void; + subScenario: string; + modifyFs?: (fs: vfs.FileSystem) => void; modifyAgainFs?: (fs: vfs.FileSystem) => void; - additionalSourceFiles?: readonly string[]; - dependOrdered?: true; ignoreDtsChanged?: true; ignoreDtsUnchanged?: true; baselineOnly?: true; } function verifyOutFileScenario({ - scenario, + subScenario, modifyFs, modifyAgainFs, - additionalSourceFiles, - dependOrdered, ignoreDtsChanged, ignoreDtsUnchanged, baselineOnly }: VerifyOutFileScenarioInput) { - const initialExpectedReadFiles = !baselineOnly ? getInitialExpectedReadFiles(additionalSourceFiles) : undefined; - const dtsChangedReadFiles = !baselineOnly && !ignoreDtsChanged ? getDtsChangedReadFiles(dependOrdered, additionalSourceFiles) : undefined; - const dtsUnchanged: ExpectedBuildOutput | undefined = !baselineOnly && (!ignoreDtsUnchanged || !modifyAgainFs) ? { - expectedDiagnostics: dependOrdered ? - dtsUnchangedExpectedDiagnosticsDependOrdered : - dtsUnchangedExpectedDiagnostics, - expectedReadFiles: getDtsUnchangedReadFiles(dependOrdered, additionalSourceFiles) - } : undefined; - - verifyTsbuildOutput({ - scenario, - projFs: () => outFileFs, - time, - tick, - proj: "outfile-concat", - rootNames: ["/src/third"], - baselineSourceMap: true, - initialBuild: { - modifyFs, - expectedDiagnostics: initialExpectedDiagnostics, - expectedReadFiles: initialExpectedReadFiles - }, - incrementalDtsChangedBuild: !ignoreDtsChanged ? { + const incrementalScenarios: TscIncremental[] = []; + if (!ignoreDtsChanged) { + incrementalScenarios.push({ + buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => replaceText(fs, relSources[project.first][source.ts][part.one], "Hello", "Hola"), - expectedDiagnostics: dependOrdered ? - dtsChangedExpectedDiagnosticsDependOrdered : - dtsChangedExpectedDiagnostics, - expectedReadFiles: dtsChangedReadFiles - } : undefined, - incrementalDtsUnchangedBuild: !ignoreDtsUnchanged ? { + }); + } + if (!ignoreDtsUnchanged) { + incrementalScenarios.push({ + buildKind: BuildKind.IncrementalDtsUnchanged, modifyFs: fs => appendText(fs, relSources[project.first][source.ts][part.one], "console.log(s);"), - expectedDiagnostics: dtsUnchanged && dtsUnchanged.expectedDiagnostics, - expectedReadFiles: dtsUnchanged && dtsUnchanged.expectedReadFiles - } : undefined, - incrementalHeaderChangedBuild: modifyAgainFs ? { - modifyFs: modifyAgainFs, - expectedDiagnostics: dtsUnchanged && dtsUnchanged.expectedDiagnostics, - expectedReadFiles: dtsUnchanged && dtsUnchanged.expectedReadFiles - } : undefined, - baselineOnly - }); + }); + } + if (modifyAgainFs) { + incrementalScenarios.push({ + buildKind: BuildKind.IncrementalHeadersChange, + modifyFs: modifyAgainFs + }); + } + const input: VerifyTsBuildInput = { + subScenario, + fs: () => outFileFs, + tick, + scenario: "outfile-concat", + commandLineArgs: ["--b", "/src/third", "--verbose"], + baselineSourceMap: true, + modifyFs, + baselineReadFileCalls: !baselineOnly, + incrementalScenarios, + }; + return incrementalScenarios.length ? + verifyTscIncrementalEdits(input) : + verifyTsc(input); } // Verify initial + incremental edits verifyOutFileScenario({ - scenario: "baseline sectioned sourcemaps", - modifyFs: noop + subScenario: "baseline sectioned sourcemaps", }); // Verify baseline with build info + dts unChanged verifyOutFileScenario({ - scenario: "when final project is not composite but uses project references", + subScenario: "when final project is not composite but uses project references", modifyFs: fs => replaceText(fs, sources[project.third][source.config], `"composite": true,`, ""), ignoreDtsChanged: true, baselineOnly: true @@ -314,7 +151,7 @@ namespace ts { // Verify baseline with build info verifyOutFileScenario({ - scenario: "when final project is not composite but incremental", + subScenario: "when final project is not composite but incremental", modifyFs: fs => replaceText(fs, sources[project.third][source.config], `"composite": true,`, `"incremental": true,`), ignoreDtsChanged: true, ignoreDtsUnchanged: true, @@ -323,7 +160,7 @@ namespace ts { // Verify baseline with build info verifyOutFileScenario({ - scenario: "when final project specifies tsBuildInfoFile", + subScenario: "when final project specifies tsBuildInfoFile", modifyFs: fs => replaceText(fs, sources[project.third][source.config], `"composite": true,`, `"composite": true, "tsBuildInfoFile": "./thirdjs/output/third.tsbuildinfo",`), ignoreDtsChanged: true, @@ -338,7 +175,7 @@ namespace ts { ...outputFiles[project.second], ...outputFiles[project.third] ]; - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host); builder.build(); host.assertDiagnosticMessages(...initialExpectedDiagnostics); @@ -360,7 +197,7 @@ namespace ts { ...outputFiles[project.second], ...outputFiles[project.third] ]; - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host); builder.build(); host.assertDiagnosticMessages(...initialExpectedDiagnostics); @@ -384,7 +221,7 @@ namespace ts { it("verify that if incremental is set to false, tsbuildinfo is not generated", () => { const fs = outFileFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); replaceText(fs, sources[project.third][source.config], `"composite": true,`, ""); const builder = createSolutionBuilder(host); builder.build(); @@ -396,7 +233,7 @@ namespace ts { it("rebuilds completely when version in tsbuildinfo doesnt match ts version", () => { const fs = outFileFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host); builder.build(); host.assertDiagnosticMessages(...initialExpectedDiagnostics); @@ -421,7 +258,7 @@ namespace ts { replaceText(fs, sources[project.third][source.config], `"composite": true,`, ""); // Build with command line incremental - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host, { incremental: true }); builder.build(); host.assertDiagnosticMessages(...initialExpectedDiagnostics); @@ -460,7 +297,7 @@ namespace ts { it("builds till project specified", () => { const fs = outFileFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, { verbose: false }); const result = builder.build(sources[project.second][source.config]); host.assertDiagnosticMessages(/*empty*/); @@ -473,7 +310,7 @@ namespace ts { it("cleans till project specified", () => { const fs = outFileFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, { verbose: false }); builder.build(); const result = builder.clean(sources[project.second][source.config]); @@ -490,7 +327,7 @@ namespace ts { describe("Prologues", () => { // Verify initial + incremental edits verifyOutFileScenario({ - scenario: "strict in all projects", + subScenario: "strict in all projects", modifyFs: fs => { enableStrict(fs, sources[project.first][source.config]); enableStrict(fs, sources[project.second][source.config]); @@ -501,7 +338,7 @@ namespace ts { // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "strict in one dependency", + subScenario: "strict in one dependency", modifyFs: fs => enableStrict(fs, sources[project.second][source.config]), modifyAgainFs: fs => addTestPrologue(fs, "src/first/first_PART1.ts", `"myPrologue"`), ignoreDtsChanged: true, @@ -510,7 +347,7 @@ namespace ts { // Verify initial + incremental edits - sourcemap verification verifyOutFileScenario({ - scenario: "multiple prologues in all projects", + subScenario: "multiple prologues in all projects", modifyFs: fs => { enableStrict(fs, sources[project.first][source.config]); addTestPrologue(fs, sources[project.first][source.ts][part.one], `"myPrologue"`); @@ -526,7 +363,7 @@ namespace ts { // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "multiple prologues in different projects", + subScenario: "multiple prologues in different projects", modifyFs: fs => { enableStrict(fs, sources[project.first][source.config]); addTestPrologue(fs, sources[project.second][source.ts][part.one], `"myPrologue"`); @@ -544,7 +381,7 @@ namespace ts { // changes declaration because its emitted in .d.ts file // Verify initial + incremental edits verifyOutFileScenario({ - scenario: "shebang in all projects", + subScenario: "shebang in all projects", modifyFs: fs => { addShebang(fs, "first", "first_PART1"); addShebang(fs, "first", "first_part2"); @@ -555,7 +392,7 @@ namespace ts { // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "shebang in only one dependency project", + subScenario: "shebang in only one dependency project", modifyFs: fs => addShebang(fs, "second", "second_part1"), ignoreDtsChanged: true, baselineOnly: true @@ -566,7 +403,7 @@ namespace ts { describe("emitHelpers", () => { // Verify initial + incremental edits verifyOutFileScenario({ - scenario: "emitHelpers in all projects", + subScenario: "emitHelpers in all projects", modifyFs: fs => { addRest(fs, "first", "first_PART1"); addRest(fs, "second", "second_part1"); @@ -577,7 +414,7 @@ namespace ts { // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "emitHelpers in only one dependency project", + subScenario: "emitHelpers in only one dependency project", modifyFs: fs => { addStubFoo(fs, "first", "first_PART1"); addRest(fs, "second", "second_part1"); @@ -589,7 +426,7 @@ namespace ts { // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "multiple emitHelpers in all projects", + subScenario: "multiple emitHelpers in all projects", modifyFs: fs => { addRest(fs, "first", "first_PART1"); addSpread(fs, "first", "first_part3"); @@ -605,7 +442,7 @@ namespace ts { // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "multiple emitHelpers in different projects", + subScenario: "multiple emitHelpers in different projects", modifyFs: fs => { addRest(fs, "first", "first_PART1"); addSpread(fs, "second", "second_part1"); @@ -622,24 +459,18 @@ namespace ts { // changes declaration because its emitted in .d.ts file // Verify initial + incremental edits verifyOutFileScenario({ - scenario: "triple slash refs in all projects", + subScenario: "triple slash refs in all projects", modifyFs: fs => { addTripleSlashRef(fs, "first", "first_part2"); addTripleSlashRef(fs, "second", "second_part1"); addTripleSlashRef(fs, "third", "third_part1"); - }, - additionalSourceFiles: [ - getTripleSlashRef("first"), getTripleSlashRef("second"), getTripleSlashRef("third") - ] + } }); // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "triple slash refs in one project", + subScenario: "triple slash refs in one project", modifyFs: fs => addTripleSlashRef(fs, "second", "second_part1"), - additionalSourceFiles: [ - getTripleSlashRef("second") - ], ignoreDtsChanged: true, baselineOnly: true }); @@ -698,14 +529,14 @@ ${internal} enum internalEnum { a, b, c }`); // Verify initial + incremental edits verifyOutFileScenario({ - scenario: "stripInternal", + subScenario: "stripInternal", modifyFs: stripInternalScenario, modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/*@internal*/ interface`, "interface"), }); // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "stripInternal with comments emit enabled", + subScenario: "stripInternal with comments emit enabled", modifyFs: fs => stripInternalScenario(fs, /*removeCommentsDisabled*/ true), modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/*@internal*/ interface`, "interface"), ignoreDtsChanged: true, @@ -714,7 +545,7 @@ ${internal} enum internalEnum { a, b, c }`); // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "stripInternal jsdoc style comment", + subScenario: "stripInternal jsdoc style comment", modifyFs: fs => stripInternalScenario(fs, /*removeCommentsDisabled*/ false, /*jsDocStyle*/ true), modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/**@internal*/ interface`, "interface"), ignoreDtsChanged: true, @@ -723,7 +554,7 @@ ${internal} enum internalEnum { a, b, c }`); // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "stripInternal jsdoc style with comments emit enabled", + subScenario: "stripInternal jsdoc style with comments emit enabled", modifyFs: fs => stripInternalScenario(fs, /*removeCommentsDisabled*/ true, /*jsDocStyle*/ true), ignoreDtsChanged: true, baselineOnly: true @@ -743,37 +574,33 @@ ${internal} enum internalEnum { a, b, c }`); // Verify initial + incremental edits verifyOutFileScenario({ - scenario: "stripInternal when one-two-three are prepended in order", + subScenario: "stripInternal when one-two-three are prepended in order", modifyFs: stripInternalWithDependentOrder, modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/*@internal*/ interface`, "interface"), - dependOrdered: true, }); // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "stripInternal with comments emit enabled when one-two-three are prepended in order", + subScenario: "stripInternal with comments emit enabled when one-two-three are prepended in order", modifyFs: fs => stripInternalWithDependentOrder(fs, /*removeCommentsDisabled*/ true), modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/*@internal*/ interface`, "interface"), - dependOrdered: true, ignoreDtsChanged: true, baselineOnly: true }); // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "stripInternal jsdoc style comment when one-two-three are prepended in order", + subScenario: "stripInternal jsdoc style comment when one-two-three are prepended in order", modifyFs: fs => stripInternalWithDependentOrder(fs, /*removeCommentsDisabled*/ false, /*jsDocStyle*/ true), modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/**@internal*/ interface`, "interface"), - dependOrdered: true, ignoreDtsChanged: true, baselineOnly: true }); // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "stripInternal jsdoc style with comments emit enabled when one-two-three are prepended in order", + subScenario: "stripInternal jsdoc style with comments emit enabled when one-two-three are prepended in order", modifyFs: fs => stripInternalWithDependentOrder(fs, /*removeCommentsDisabled*/ true, /*jsDocStyle*/ true), - dependOrdered: true, ignoreDtsChanged: true, baselineOnly: true }); @@ -781,7 +608,7 @@ ${internal} enum internalEnum { a, b, c }`); // only baseline verifyOutFileScenario({ - scenario: "stripInternal baseline when internal is inside another internal", + subScenario: "stripInternal baseline when internal is inside another internal", modifyFs: fs => { stripInternalOfThird(fs); prependText(fs, sources[project.first][source.ts][part.one], `namespace ts { @@ -820,7 +647,7 @@ ${internal} enum internalEnum { a, b, c }`); // only baseline verifyOutFileScenario({ - scenario: "stripInternal when few members of enum are internal", + subScenario: "stripInternal when few members of enum are internal", modifyFs: fs => { stripInternalOfThird(fs); prependText(fs, sources[project.first][source.ts][part.one], `enum TokenFlags { @@ -860,7 +687,7 @@ ${internal} enum internalEnum { a, b, c }`); // Verify ignore dtsChanged verifyOutFileScenario({ - scenario: "when source files are empty in the own file", + subScenario: "when source files are empty in the own file", modifyFs: makeThirdEmptySourceFile, ignoreDtsChanged: true, baselineOnly: true @@ -868,7 +695,7 @@ ${internal} enum internalEnum { a, b, c }`); // only baseline verifyOutFileScenario({ - scenario: "declarationMap and sourceMap disabled", + subScenario: "declarationMap and sourceMap disabled", modifyFs: fs => { makeThirdEmptySourceFile(fs); replaceText(fs, sources[project.third][source.config], `"composite": true,`, ""); @@ -898,7 +725,7 @@ ${internal} enum internalEnum { a, b, c }`); replaceText(fs, sources[project.second][source.config], `"outFile": "../2/second-output.js",`, ""); replaceText(fs, sources[project.third][source.config], `"outFile": "./thirdjs/output/third-output.js",`, ""); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host); builder.build(); host.assertDiagnosticMessages( diff --git a/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts b/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts index 79cc34ce016..d81e5f3f947 100644 --- a/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts +++ b/src/testRunner/unittests/tsbuild/referencesWithRootDirInParent.ts @@ -16,7 +16,7 @@ namespace ts { "/src/dist/main/b.js", "/src/dist/main/b.d.ts" ]; const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/src/main", "/src/src/other"], {}); builder.build(); host.assertDiagnosticMessages(/*empty*/); @@ -34,7 +34,7 @@ namespace ts { ]; const fs = projFs.shadow(); replaceText(fs, "/src/tsconfig.base.json", `"rootDir": "./src/",`, ""); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/src/main"], { verbose: true }); builder.build(); host.assertDiagnosticMessages( @@ -69,7 +69,7 @@ namespace ts { fs.writeFileSync("/src/src/other/tsconfig.json", JSON.stringify({ compilerOptions: { composite: true, outDir: "../../dist/" }, })); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/src/main"], { verbose: true }); builder.build(); host.assertDiagnosticMessages( @@ -105,7 +105,7 @@ namespace ts { fs.writeFileSync("/src/src/other/tsconfig.other.json", JSON.stringify({ compilerOptions: { composite: true, outDir: "../../dist/" }, })); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/src/main/tsconfig.main.json"], { verbose: true }); builder.build(); host.assertDiagnosticMessages( diff --git a/src/testRunner/unittests/tsbuild/resolveJsonModule.ts b/src/testRunner/unittests/tsbuild/resolveJsonModule.ts index f1ea08324f6..5e33afcc5ed 100644 --- a/src/testRunner/unittests/tsbuild/resolveJsonModule.ts +++ b/src/testRunner/unittests/tsbuild/resolveJsonModule.ts @@ -17,7 +17,7 @@ namespace ts { } function verifyProjectWithResolveJsonModuleWithFs(fs: vfs.FileSystem, configFile: string, allExpectedOutputs: readonly string[], ...expectedDiagnosticMessages: fakes.ExpectedDiagnostic[]) { - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, [configFile], { dry: false, force: false, verbose: false }); builder.build(); host.assertDiagnosticMessages(...expectedDiagnosticMessages); @@ -68,7 +68,7 @@ export default hello.hello`); const fs = projFs.shadow(); const configFile = "src/tsconfig_withFiles.json"; replaceText(fs, configFile, `"composite": true,`, `"composite": true, "sourceMap": true,`); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host, [configFile], { verbose: true }); builder.build(); host.assertDiagnosticMessages( @@ -91,7 +91,7 @@ export default hello.hello`); const fs = projFs.shadow(); const configFile = "src/tsconfig_withFiles.json"; replaceText(fs, configFile, `"outDir": "dist",`, ""); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host, [configFile], { verbose: true }); builder.build(); host.assertDiagnosticMessages( @@ -128,7 +128,7 @@ export default hello.hello`); const configFile = "src/tsconfig.json"; const stringsConfigFile = "src/strings/tsconfig.json"; const mainConfigFile = "src/main/tsconfig.json"; - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host, [configFile], { verbose: true }); builder.build(); host.assertDiagnosticMessages( diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index d95ba5e514a..29a3af1224c 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -18,7 +18,7 @@ namespace ts { describe("sanity check of clean build of 'sample1' project", () => { it("can build the sample project 'sample1' without error", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], { dry: false, force: false, verbose: false }); host.clearDiagnostics(); @@ -36,7 +36,7 @@ namespace ts { references: [{ path: "../core" }] })); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], {}); builder.build(); host.assertDiagnosticMessages(/*empty*/); @@ -52,7 +52,7 @@ namespace ts { references: [{ path: "../core" }] })); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], {}); builder.build(); host.assertDiagnosticMessages(/*empty*/); @@ -64,7 +64,7 @@ namespace ts { it("builds correctly when project is not composite or doesnt have any references", () => { const fs = projFs.shadow(); replaceText(fs, "/src/core/tsconfig.json", `"composite": true,`, ""); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/core"], { verbose: true }); builder.build(); host.assertDiagnosticMessages( @@ -79,7 +79,7 @@ namespace ts { describe("dry builds", () => { it("doesn't write any files in a dry build", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], { dry: true, force: false, verbose: false }); builder.build(); host.assertDiagnosticMessages( @@ -94,7 +94,7 @@ namespace ts { it("indicates that it would skip builds during a dry build", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host, ["/src/tests"], { dry: false, force: false, verbose: false }); builder.build(); @@ -114,7 +114,7 @@ namespace ts { describe("clean builds", () => { it("removes all files it built", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], { dry: false, force: false, verbose: false }); builder.build(); @@ -136,7 +136,7 @@ namespace ts { it("cleans till project specified", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], {}); builder.build(); const result = builder.clean("/src/logic"); @@ -148,7 +148,7 @@ namespace ts { it("cleaning project in not build order doesnt throw error", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], {}); builder.build(); const result = builder.clean("/src/logic2"); @@ -161,7 +161,7 @@ namespace ts { describe("force builds", () => { it("always builds under --force", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host, ["/src/tests"], { dry: false, force: true, verbose: false }); builder.build(); @@ -188,7 +188,7 @@ namespace ts { describe("can detect when and what to rebuild", () => { function initializeWithBuild(opts?: BuildOptions) { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host, ["/src/tests"], { verbose: true }); builder.build(); host.clearDiagnostics(); @@ -199,7 +199,7 @@ namespace ts { it("Builds the project", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], { verbose: true }); builder.build(); host.assertDiagnosticMessages( @@ -274,7 +274,7 @@ namespace ts { it("does not rebuild if there is no program and bundle in the ts build info event if version doesnt match ts version", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs, /*options*/ undefined, /*setParentNodes*/ undefined, createAbstractBuilder); + const host = fakes.SolutionBuilderHost.create(fs, /*options*/ undefined, /*setParentNodes*/ undefined, createAbstractBuilder); let builder = createSolutionBuilder(host, ["/src/tests"], { verbose: true }); builder.build(); host.assertDiagnosticMessages( @@ -332,7 +332,7 @@ namespace ts { const fs = projFs.shadow(); fs.writeFileSync("/src/tests/tsconfig.base.json", JSON.stringify({ compilerOptions: { target: "es3" } })); replaceText(fs, "/src/tests/tsconfig.json", `"references": [`, `"extends": "./tsconfig.base.json", "references": [`); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host, ["/src/tests"], { verbose: true }); builder.build(); host.assertDiagnosticMessages( @@ -360,7 +360,7 @@ namespace ts { it("builds till project specified", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], {}); const result = builder.build("/src/logic"); host.assertDiagnosticMessages(/*empty*/); @@ -371,7 +371,7 @@ namespace ts { it("building project in not build order doesnt throw error", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], {}); const result = builder.build("/src/logic2"); host.assertDiagnosticMessages(/*empty*/); @@ -386,7 +386,7 @@ namespace ts { } const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], {}); verifyBuildNextResult({ project: "/src/core/tsconfig.json" as ResolvedConfigFileName, @@ -420,7 +420,7 @@ namespace ts { it("building using buildReferencedProject", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], { verbose: true }); builder.buildReferences("/src/tests"); host.assertDiagnosticMessages( @@ -438,7 +438,7 @@ namespace ts { describe("downstream-blocked compilations", () => { it("won't build downstream projects if upstream projects have errors", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], { dry: false, force: false, verbose: true }); // Induce an error in the middle project @@ -463,7 +463,7 @@ namespace ts { describe("project invalidation", () => { it("invalidates projects correctly", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], { dry: false, force: false, verbose: false }); builder.build(); @@ -518,7 +518,7 @@ export class cNew {}`); describe("lists files", () => { it("listFiles", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], { listFiles: true }); builder.build(); assert.deepEqual(host.traces, [ @@ -545,7 +545,7 @@ export class cNew {}`); it("listEmittedFiles", () => { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], { listEmittedFiles: true }); builder.build(); assert.deepEqual(host.traces, [ @@ -568,266 +568,76 @@ export class cNew {}`); }); describe("emit output", () => { - const initialBuild: BuildState = { - modifyFs: noop, - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/core/tsconfig.json", "src/logic/tsconfig.json", "src/tests/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/core/tsconfig.json", "src/core/anotherModule.js"], - [Diagnostics.Building_project_0, "/src/core/tsconfig.json"], - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/logic/tsconfig.json", "src/logic/index.js"], - [Diagnostics.Building_project_0, "/src/logic/tsconfig.json"], - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/tests/tsconfig.json", "src/tests/index.js"], - [Diagnostics.Building_project_0, "/src/tests/tsconfig.json"] - ], - expectedReadFiles: getReadFilesMap( - [ - // Configs - "/src/core/tsconfig.json", - "/src/logic/tsconfig.json", - "/src/tests/tsconfig.json", - - // Source files - "/src/core/anotherModule.ts", - "/src/core/index.ts", - "/src/core/some_decl.d.ts", - "/src/logic/index.ts", - "/src/tests/index.ts", - - // Modules of generated files - "/src/core/anotherModule.d.ts", - "/src/core/index.d.ts", - "/src/logic/index.d.ts", - - // build info - "/src/core/tsconfig.tsbuildinfo", - "/src/logic/tsconfig.tsbuildinfo", - "/src/tests/tsconfig.tsbuildinfo" - ] - ) - }; - verifyTsbuildOutput({ - scenario: "sample", - projFs: () => projFs, - time, + verifyTscIncrementalEdits({ + subScenario: "sample", + fs: () => projFs, tick, - proj: "sample1", - rootNames: ["/src/tests"], + scenario: "sample1", + commandLineArgs: ["--b", "/src/tests", "--verbose"], baselineSourceMap: true, - initialBuild, - incrementalDtsChangedBuild: { - modifyFs: fs => appendText(fs, "/src/core/index.ts", ` + baselineReadFileCalls: true, + incrementalScenarios: [ + { + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => appendText(fs, "/src/core/index.ts", ` export class someClass { }`), - expectedDiagnostics: [ - // Emits only partial core instead of all outputs - getExpectedDiagnosticForProjectsInBuild("src/core/tsconfig.json", "src/logic/tsconfig.json", "src/tests/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/core/tsconfig.json", "src/core/anotherModule.js", "src/core/index.ts"], - [Diagnostics.Building_project_0, "/src/core/tsconfig.json"], - [Diagnostics.Updating_unchanged_output_timestamps_of_project_0, "/src/core/tsconfig.json"], - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/logic/tsconfig.json", "src/logic/index.js", "src/core"], - [Diagnostics.Building_project_0, "/src/logic/tsconfig.json"], - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/tests/tsconfig.json", "src/tests/index.js", "src/core"], - [Diagnostics.Building_project_0, "/src/tests/tsconfig.json"], - ], - expectedReadFiles: getReadFilesMap( - [ - // Configs - "/src/core/tsconfig.json", - "/src/logic/tsconfig.json", - "/src/tests/tsconfig.json", - - // Source files - "/src/core/anotherModule.ts", - "/src/core/index.ts", - "/src/core/some_decl.d.ts", - "/src/logic/index.ts", - "/src/tests/index.ts", - - // Modules of generated files - "/src/core/anotherModule.d.ts", - "/src/core/index.d.ts", - "/src/logic/index.d.ts", - - // build info - "/src/core/tsconfig.tsbuildinfo", - "/src/logic/tsconfig.tsbuildinfo", - "/src/tests/tsconfig.tsbuildinfo", - - "/src/tests/index.d.ts", // to check if d.ts has changed - ], - "/src/core/index.d.ts", // to check if changed, and to build other projects after change - ), - }, - incrementalDtsUnchangedBuild: { - modifyFs: fs => appendText(fs, "/src/core/index.ts", ` + }, + { + buildKind: BuildKind.IncrementalDtsUnchanged, + modifyFs: fs => appendText(fs, "/src/core/index.ts", ` class someClass { }`), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/core/tsconfig.json", "src/logic/tsconfig.json", "src/tests/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/core/tsconfig.json", "src/core/anotherModule.js", "src/core/index.ts"], - [Diagnostics.Building_project_0, "/src/core/tsconfig.json"], - [Diagnostics.Updating_unchanged_output_timestamps_of_project_0, "/src/core/tsconfig.json"], - [Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies, "src/logic/tsconfig.json"], - [Diagnostics.Updating_output_timestamps_of_project_0, "/src/logic/tsconfig.json"], - [Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies, "src/tests/tsconfig.json"], - [Diagnostics.Updating_output_timestamps_of_project_0, "/src/tests/tsconfig.json"] - ], - expectedReadFiles: getReadFilesMap( - [ - // Configs - "/src/core/tsconfig.json", - "/src/logic/tsconfig.json", - "/src/tests/tsconfig.json", - - // Source files - "/src/core/anotherModule.ts", - "/src/core/index.ts", - "/src/core/some_decl.d.ts", - - // to check if changed - "/src/core/index.d.ts", - - // build info - "/src/core/tsconfig.tsbuildinfo", - "/src/logic/tsconfig.tsbuildinfo", - "/src/tests/tsconfig.tsbuildinfo", - ], - ) - }, - }); - - verifyTsbuildOutput({ - scenario: "when logic config changes declaration dir", - projFs: () => projFs, - time, - tick, - proj: "sample1", - rootNames: ["/src/tests"], - baselineSourceMap: true, - initialBuild, - incrementalDtsChangedBuild: { - modifyFs: fs => replaceText(fs, "/src/logic/tsconfig.json", `"declaration": true,`, `"declaration": true, + }, + { + subScenario: "when logic config changes declaration dir", + buildKind: BuildKind.IncrementalDtsChange, + modifyFs: fs => replaceText(fs, "/src/logic/tsconfig.json", `"declaration": true,`, `"declaration": true, "declarationDir": "decls",`), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/core/tsconfig.json", "src/logic/tsconfig.json", "src/tests/tsconfig.json"), - [Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2, "src/core/tsconfig.json", "src/core/anotherModule.ts", "src/core/anotherModule.js"], - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/logic/tsconfig.json", "src/logic/decls/index.d.ts"], - [Diagnostics.Building_project_0, "/src/logic/tsconfig.json"], - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/tests/tsconfig.json", "src/tests/index.js", "src/logic"], - [Diagnostics.Building_project_0, "/src/tests/tsconfig.json"], - ], - expectedReadFiles: getReadFilesMap( - [ - // Configs - "/src/core/tsconfig.json", - "/src/logic/tsconfig.json", - "/src/tests/tsconfig.json", - - // Source files - "/src/logic/index.ts", - "/src/tests/index.ts", - - // Modules of generated files - "/src/core/anotherModule.d.ts", - "/src/core/index.d.ts", - "/src/logic/decls/index.d.ts", - - // build info - "/src/core/tsconfig.tsbuildinfo", - "/src/logic/tsconfig.tsbuildinfo", - "/src/tests/tsconfig.tsbuildinfo", - - "/src/tests/index.d.ts", // to check if d.ts has changed - ] - ) - }, + } + ], }); - verifyTsbuildOutput({ - scenario: "when logic specifies tsBuildInfoFile", - projFs: () => projFs, - time, - tick, - proj: "sample1", - rootNames: ["/src/tests"], - baselineSourceMap: true, - initialBuild: { - modifyFs: fs => replaceText(fs, "/src/logic/tsconfig.json", `"composite": true,`, `"composite": true, + verifyTsc({ + scenario: "sample1", + subScenario: "when logic specifies tsBuildInfoFile", + fs: () => projFs, + modifyFs: fs => replaceText(fs, "/src/logic/tsconfig.json", `"composite": true,`, `"composite": true, "tsBuildInfoFile": "ownFile.tsbuildinfo",`), - expectedDiagnostics: initialBuild.expectedDiagnostics, - expectedReadFiles: getReadFilesMap( - [ - // Configs - "/src/core/tsconfig.json", - "/src/logic/tsconfig.json", - "/src/tests/tsconfig.json", - - // Source files - "/src/core/anotherModule.ts", - "/src/core/index.ts", - "/src/core/some_decl.d.ts", - "/src/logic/index.ts", - "/src/tests/index.ts", - - // Modules of generated files - "/src/core/anotherModule.d.ts", - "/src/core/index.d.ts", - "/src/logic/index.d.ts", - - // build info - "/src/core/tsconfig.tsbuildinfo", - "/src/logic/ownFile.tsbuildinfo", - "/src/tests/tsconfig.tsbuildinfo" - ] - ) - }, + commandLineArgs: ["--b", "/src/tests", "--verbose"], + baselineSourceMap: true, + baselineReadFileCalls: true }); - verifyTsbuildOutput({ - scenario: "when declaration option changes", - projFs: () => projFs, - time, + verifyTscIncrementalEdits({ + subScenario: "when declaration option changes", + fs: () => projFs, tick, - proj: "sample1", - rootNames: ["/src/core"], - initialBuild: { - modifyFs: fs => fs.writeFileSync("/src/core/tsconfig.json", `{ + scenario: "sample1", + commandLineArgs: ["--b", "/src/core", "--verbose"], + modifyFs: fs => fs.writeFileSync("/src/core/tsconfig.json", `{ "compilerOptions": { "incremental": true, "skipDefaultLibCheck": true } }`), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/core/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/core/tsconfig.json", "src/core/anotherModule.js"], - [Diagnostics.Building_project_0, "/src/core/tsconfig.json"], - ] - }, - incrementalDtsChangedBuild: { + incrementalScenarios: [{ + buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", `"incremental": true,`, `"incremental": true, "declaration": true,`), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/core/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/core/tsconfig.json", "src/core/anotherModule.d.ts"], - [Diagnostics.Building_project_0, "/src/core/tsconfig.json"] - ] - }, - baselineOnly: true, - verifyDiagnostics: true + }], }); - verifyTsbuildOutput({ - scenario: "when target option changes", - projFs: () => projFs, - time, + verifyTscIncrementalEdits({ + subScenario: "when target option changes", + fs: () => projFs, tick, - proj: "sample1", - rootNames: ["/src/core"], - initialBuild: { - modifyFs: fs => { - fs.writeFileSync("/lib/lib.esnext.full.d.ts", `/// + scenario: "sample1", + commandLineArgs: ["--b", "/src/core", "--verbose"], + modifyFs: fs => { + fs.writeFileSync("/lib/lib.esnext.full.d.ts", `/// /// `); - fs.writeFileSync("/lib/lib.esnext.d.ts", libContent); - fs.writeFileSync("/lib/lib.d.ts", `/// + fs.writeFileSync("/lib/lib.esnext.d.ts", libContent); + fs.writeFileSync("/lib/lib.d.ts", `/// /// `); - fs.writeFileSync("/src/core/tsconfig.json", `{ + fs.writeFileSync("/src/core/tsconfig.json", `{ "compilerOptions": { "incremental": true, "listFiles": true, @@ -835,66 +645,38 @@ class someClass { }`), "target": "esnext", } }`); - }, - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/core/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/core/tsconfig.json", "src/core/anotherModule.js"], - [Diagnostics.Building_project_0, "/src/core/tsconfig.json"], - ] }, - incrementalDtsChangedBuild: { + incrementalScenarios: [{ + buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", "esnext", "es5"), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/core/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/core/tsconfig.json", "src/core/anotherModule.js", "src/core/tsconfig.json"], - [Diagnostics.Building_project_0, "/src/core/tsconfig.json"] - ] - }, - baselineOnly: true, - verifyDiagnostics: true + }], }); - verifyTsbuildOutput({ - scenario: "when module option changes", - projFs: () => projFs, - time, + verifyTscIncrementalEdits({ + subScenario: "when module option changes", + fs: () => projFs, tick, - proj: "sample1", - rootNames: ["/src/core"], - initialBuild: { - modifyFs: fs => fs.writeFileSync("/src/core/tsconfig.json", `{ + scenario: "sample1", + commandLineArgs: ["--b", "/src/core", "--verbose"], + modifyFs: fs => fs.writeFileSync("/src/core/tsconfig.json", `{ "compilerOptions": { "incremental": true, "module": "commonjs" } }`), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/core/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/core/tsconfig.json", "src/core/anotherModule.js"], - [Diagnostics.Building_project_0, "/src/core/tsconfig.json"], - ] - }, - incrementalDtsChangedBuild: { + incrementalScenarios: [{ + buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", `"module": "commonjs"`, `"module": "amd"`), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/core/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/core/tsconfig.json", "src/core/anotherModule.js", "src/core/tsconfig.json"], - [Diagnostics.Building_project_0, "/src/core/tsconfig.json"] - ] - }, - baselineOnly: true, - verifyDiagnostics: true + }], }); - verifyTsbuildOutput({ - scenario: "when esModuleInterop option changes", - projFs: () => projFs, - time, + verifyTscIncrementalEdits({ + subScenario: "when esModuleInterop option changes", + fs: () => projFs, tick, - proj: "sample1", - rootNames: ["/src/tests"], - initialBuild: { - modifyFs: fs => fs.writeFileSync("/src/tests/tsconfig.json", `{ + scenario: "sample1", + commandLineArgs: ["--b", "/src/tests", "--verbose"], + modifyFs: fs => fs.writeFileSync("/src/tests/tsconfig.json", `{ "references": [ { "path": "../core" }, { "path": "../logic" } @@ -908,28 +690,10 @@ class someClass { }`), "esModuleInterop": false } }`), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/core/tsconfig.json", "src/logic/tsconfig.json", "src/tests/tsconfig.json"), - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/core/tsconfig.json", "src/core/anotherModule.js"], - [Diagnostics.Building_project_0, "/src/core/tsconfig.json"], - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/logic/tsconfig.json", "src/logic/index.js"], - [Diagnostics.Building_project_0, "/src/logic/tsconfig.json"], - [Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, "src/tests/tsconfig.json", "src/tests/index.js"], - [Diagnostics.Building_project_0, "/src/tests/tsconfig.json"] - ] - }, - incrementalDtsChangedBuild: { + incrementalScenarios: [{ + buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => replaceText(fs, "/src/tests/tsconfig.json", `"esModuleInterop": false`, `"esModuleInterop": true`), - expectedDiagnostics: [ - getExpectedDiagnosticForProjectsInBuild("src/core/tsconfig.json", "src/logic/tsconfig.json", "src/tests/tsconfig.json"), - [Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2, "src/core/tsconfig.json", "src/core/anotherModule.ts", "src/core/anotherModule.js"], - [Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2, "src/logic/tsconfig.json", "src/logic/index.ts", "src/logic/index.js"], - [Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, "src/tests/tsconfig.json", "src/tests/index.js", "src/tests/tsconfig.json"], - [Diagnostics.Building_project_0, "/src/tests/tsconfig.json"] - ] - }, - baselineOnly: true, - verifyDiagnostics: true + }], }); }); }); diff --git a/src/testRunner/unittests/tsbuild/transitiveReferences.ts b/src/testRunner/unittests/tsbuild/transitiveReferences.ts index d661ba0c798..99fcd75d087 100644 --- a/src/testRunner/unittests/tsbuild/transitiveReferences.ts +++ b/src/testRunner/unittests/tsbuild/transitiveReferences.ts @@ -27,7 +27,7 @@ namespace ts { function verifyBuild(modifyDiskLayout: (fs: vfs.FileSystem) => void, allExpectedOutputs: readonly string[], expectedFileTraces: readonly string[], ...expectedDiagnostics: fakes.ExpectedDiagnostic[]) { const fs = projFs.shadow(); - const host = new fakes.SolutionBuilderHost(fs); + const host = fakes.SolutionBuilderHost.create(fs); modifyDiskLayout(fs); const builder = createSolutionBuilder(host, ["/src/tsconfig.c.json"], { listFiles: true }); builder.build(); diff --git a/src/testRunner/unittests/tsc/helpers.ts b/src/testRunner/unittests/tsc/helpers.ts new file mode 100644 index 00000000000..7cf071ee9b7 --- /dev/null +++ b/src/testRunner/unittests/tsc/helpers.ts @@ -0,0 +1,240 @@ +namespace ts { + export type TscCompileSystem = fakes.System & { + writtenFiles: Map; + baseLine(): void; + }; + function executeCommandLine(sys: TscCompileSystem, commandLineArgs: readonly string[]) { + if (isBuild(commandLineArgs)) { + return performBuild(sys, commandLineArgs.slice(1)); + } + + const reportDiagnostic = createDiagnosticReporter(sys); + const commandLine = parseCommandLine(commandLineArgs, path => sys.readFile(path)); + if (commandLine.options.build) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.Option_build_must_be_the_first_command_line_argument)); + return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped); + } + + if (commandLine.errors.length > 0) { + commandLine.errors.forEach(reportDiagnostic); + return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped); + } + + let configFileName: string | undefined; + if (commandLine.options.project) { + if (commandLine.fileNames.length !== 0) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)); + return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped); + } + + const fileOrDirectory = normalizePath(commandLine.options.project); + if (!fileOrDirectory /* current directory "." */ || sys.directoryExists(fileOrDirectory)) { + configFileName = combinePaths(fileOrDirectory, "tsconfig.json"); + if (!sys.fileExists(configFileName)) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0, commandLine.options.project)); + return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped); + } + } + else { + configFileName = fileOrDirectory; + if (!sys.fileExists(configFileName)) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.The_specified_path_does_not_exist_Colon_0, commandLine.options.project)); + return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped); + } + } + } + else if (commandLine.fileNames.length === 0) { + const searchPath = normalizePath(sys.getCurrentDirectory()); + configFileName = findConfigFile(searchPath, sys.fileExists); + } + + Debug.assert(commandLine.fileNames.length !== 0 || !!configFileName); + + if (configFileName) { + const configParseResult = Debug.assertDefined(parseConfigFileWithSystem(configFileName, commandLine.options, sys, reportDiagnostic)); + if (isIncrementalCompilation(configParseResult.options)) { + performIncrementalCompilation(sys, configParseResult); + } + else { + performCompilation(sys, configParseResult); + } + } + else { + if (isIncrementalCompilation(commandLine.options)) { + performIncrementalCompilation(sys, commandLine); + } + else { + performCompilation(sys, commandLine); + } + } + } + + function createReportErrorSummary(options: CompilerOptions): ReportEmitErrorSummary | undefined { + return options.pretty ? + errorCount => sys.write(getErrorSummaryText(errorCount, sys.newLine)) : + undefined; + } + + function performCompilation(sys: TscCompileSystem, config: ParsedCommandLine) { + const { fileNames, options, projectReferences } = config; + const reportDiagnostic = createDiagnosticReporter(sys, options.pretty); + const host = createCompilerHostWorker(options, /*setParentPos*/ undefined, sys); + const currentDirectory = host.getCurrentDirectory(); + const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); + changeCompilerHostLikeToUseCache(host, fileName => toPath(fileName, currentDirectory, getCanonicalFileName)); + const program = createProgram({ + rootNames: fileNames, + options, + projectReferences, + host, + configFileParsingDiagnostics: getConfigFileParsingDiagnostics(config) + }); + const exitStatus = emitFilesAndReportErrorsAndGetExitStatus( + program, + reportDiagnostic, + s => sys.write(s + sys.newLine), + createReportErrorSummary(options) + ); + baselineBuildInfo([config], sys.vfs, sys.writtenFiles); + return sys.exit(exitStatus); + } + + function performIncrementalCompilation(sys: TscCompileSystem, config: ParsedCommandLine) { + const reportDiagnostic = createDiagnosticReporter(sys, config.options.pretty); + const { options, fileNames, projectReferences } = config; + const exitCode = ts.performIncrementalCompilation({ + system: sys, + rootNames: fileNames, + options, + configFileParsingDiagnostics: getConfigFileParsingDiagnostics(config), + projectReferences, + reportDiagnostic, + reportErrorSummary: createReportErrorSummary(options), + }); + baselineBuildInfo([config], sys.vfs, sys.writtenFiles); + return sys.exit(exitCode); + } + + function performBuild(sys: TscCompileSystem, args: string[]) { + const { buildOptions, projects, errors } = parseBuildCommand(args); + const reportDiagnostic = createDiagnosticReporter(sys, buildOptions.pretty); + + if (errors.length > 0) { + errors.forEach(reportDiagnostic); + return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped); + } + + Debug.assert(projects.length !== 0); + + const buildHost = createSolutionBuilderHost( + sys, + /*createProgram*/ undefined, + reportDiagnostic, + createBuilderStatusReporter(sys, buildOptions.pretty), + createReportErrorSummary(buildOptions) + ); + fakes.patchSolutionBuilderHost(buildHost, sys); + const builder = createSolutionBuilder(buildHost, projects, buildOptions); + const exitCode = buildOptions.clean ? builder.clean() : builder.build(); + baselineBuildInfo(builder.getAllParsedConfigs(), sys.vfs, sys.writtenFiles); + return sys.exit(exitCode); + } + + function isBuild(commandLineArgs: readonly string[]) { + if (commandLineArgs.length > 0 && commandLineArgs[0].charCodeAt(0) === CharacterCodes.minus) { + const firstOption = commandLineArgs[0].slice(commandLineArgs[0].charCodeAt(1) === CharacterCodes.minus ? 2 : 1).toLowerCase(); + return firstOption === "build" || firstOption === "b"; + } + return false; + } + + export enum BuildKind { + Initial = "initial-build", + IncrementalDtsChange = "incremental-declaration-changes", + IncrementalDtsUnchanged = "incremental-declaration-doesnt-change", + IncrementalHeadersChange = "incremental-headers-change-without-dts-changes" + } + + export interface TscCompile { + scenario: string; + subScenario: string; + buildKind?: BuildKind; // Should be defined for tsc --b + fs: () => vfs.FileSystem; + commandLineArgs: readonly string[]; + + modifyFs?: (fs: vfs.FileSystem) => void; + baselineSourceMap?: boolean; + baselineReadFileCalls?: boolean; + } + + export function tscCompile(input: TscCompile) { + const baseFs = input.fs(); + const fs = baseFs.shadow(); + const { + scenario, subScenario, buildKind, + commandLineArgs, modifyFs, + baselineSourceMap, baselineReadFileCalls + } = input; + if (modifyFs) modifyFs(fs); + + // Create system + const sys = new fakes.System(fs, { executingFilePath: "/lib/tsc" }) as TscCompileSystem; + const writtenFiles = sys.writtenFiles = createMap(); + const originalWriteFile = sys.writeFile; + sys.writeFile = (fileName, content, writeByteOrderMark) => { + assert.isFalse(writtenFiles.has(fileName)); + writtenFiles.set(fileName, true); + return originalWriteFile.call(sys, fileName, content, writeByteOrderMark); + }; + const actualReadFileMap: MapLike = {}; + const originalReadFile = sys.readFile; + sys.readFile = path => { + // Dont record libs + if (path.startsWith("/src/")) { + actualReadFileMap[path] = (getProperty(actualReadFileMap, path) || 0) + 1; + } + return originalReadFile.call(sys, path); + }; + + sys.write(`${sys.getExecutingFilePath()} ${commandLineArgs.join(" ")}\n`); + sys.exit = exitCode => sys.exitCode = exitCode; + executeCommandLine(sys, commandLineArgs); + sys.write(`exitCode:: ${sys.exitCode}\n`); + if (baselineReadFileCalls) { + sys.write(`readFiles:: ${JSON.stringify(actualReadFileMap, /*replacer*/ undefined, " ")} `); + } + if (baselineSourceMap) generateSourceMapBaselineFiles(fs, mapDefinedIterator(writtenFiles.keys(), f => f.endsWith(".map") ? f : undefined)); + + // Baseline the errors + fs.writeFileSync(`/lib/${buildKind || BuildKind.Initial}Output.txt`, sys.output.join("")); + fs.makeReadonly(); + + sys.baseLine = () => { + const patch = fs.diff(baseFs, { includeChangedFileWithSameContent: true }); + // eslint-disable-next-line no-null/no-null + Harness.Baseline.runBaseline(`${isBuild(commandLineArgs) ? "tsbuild" : "tsc"}/${scenario}/${buildKind || BuildKind.Initial}/${subScenario.split(" ").join("-")}.js`, patch ? vfs.formatPatch(patch) : null); + }; + return sys; + } + + export function verifyTscBaseline(sys: () => TscCompileSystem) { + it(`Generates files matching the baseline`, () => { + sys().baseLine(); + }); + } + + export function verifyTsc(input: TscCompile) { + describe(input.scenario, () => { + describe(input.subScenario, () => { + let sys: TscCompileSystem; + before(() => { + sys = tscCompile(input); + }); + after(() => { + sys = undefined!; + }); + verifyTscBaseline(() => sys); + }); + }); + } +} diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js index 87ace04e448..d84e3661d87 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js @@ -1,3 +1,22 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/app --verbose +4:04:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:04:00 PM - Building project '/src/lib/tsconfig.json'... + +4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/module.js] var myGlob = 20; define("file1", ["require", "exports"], function (require, exports) { diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js index 2b4e0a0a838..b9a16cd511d 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -1,3 +1,22 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/app --verbose +4:23:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:23:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:23:00 PM - Building project '/src/lib/tsconfig.json'... + +4:23:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:23:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:23:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/module.js] var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js index f7252e6dcbc..027626780b2 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js @@ -1,3 +1,22 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/app --verbose +4:09:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:09:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:09:00 PM - Building project '/src/lib/tsconfig.json'... + +4:09:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:09:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:09:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/module.js] "use strict"; "myPrologue"; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js index 3cf10ffbe19..c412a25c3c7 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js @@ -1,3 +1,22 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/app --verbose +4:18:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:18:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:18:00 PM - Building project '/src/lib/tsconfig.json'... + +4:18:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:18:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:18:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/module.js] #!someshebang lib file0 var myGlob = 20; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js index 4de45c6d0ec..88eafccd030 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js @@ -1,3 +1,22 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/app --verbose +4:37:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:37:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:37:00 PM - Building project '/src/lib/tsconfig.json'... + +4:37:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:37:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:37:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/module.js] /*@internal*/ var myGlob = 20; define("file1", ["require", "exports"], function (require, exports) { diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js index 479ea723921..059cc8fb5da 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js @@ -1,3 +1,22 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/app --verbose +4:32:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:32:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:32:00 PM - Building project '/src/lib/tsconfig.json'... + +4:32:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:32:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:32:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/module.js] /// var file0Const = new libfile0(); diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js index 54c0b8fe21e..f7e8c93e8e1 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -1,3 +1,22 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/app --verbose +4:27:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:27:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:27:00 PM - Building project '/src/lib/tsconfig.json'... + +4:27:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:27:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:27:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/module.js] var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js index ad401641be8..ca69e7daf20 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js @@ -1,3 +1,22 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/app --verbose +4:13:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:13:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:13:00 PM - Building project '/src/lib/tsconfig.json'... + +4:13:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:13:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:13:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/module.d.ts.map] {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js index 218681bea8f..cec358794ab 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js @@ -1,3 +1,20 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/app --verbose +4:41:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:41:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:41:00 PM - Building project '/src/lib/tsconfig.json'... + +4:41:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:41:00 PM - Updating output of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/module.d.ts] declare module "file1" { export class normalC { diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/modules-and-globals-mixed-in-amd.js index 4106601d1e3..2773ed36d67 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/modules-and-globals-mixed-in-amd.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/modules-and-globals-mixed-in-amd.js @@ -1,3 +1,20 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/app --verbose +4:01:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist + +4:01:00 PM - Building project '/src/lib/tsconfig.json'... + +4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:01:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/module.d.ts] declare const myGlob = 20; declare module "file1" { diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js index eeb57b9cf9e..fe2dc60c063 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js @@ -1,3 +1,20 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/app --verbose +4:20:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:20:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist + +4:20:00 PM - Building project '/src/lib/tsconfig.json'... + +4:20:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:20:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/file3.ts] export const z = 30; import { x } from "file1";function forappfile3Rest() { diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js index 4835019b1f9..682b938a5a6 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js @@ -1,3 +1,20 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/app --verbose +4:06:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:06:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist + +4:06:00 PM - Building project '/src/lib/tsconfig.json'... + +4:06:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:06:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/file3.ts] "myPrologue" export const z = 30; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js index eb0407a5b17..1a9f492b35a 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js @@ -1,3 +1,20 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/app --verbose +4:15:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:15:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist + +4:15:00 PM - Building project '/src/lib/tsconfig.json'... + +4:15:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:15:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/file3.ts] #!someshebang app file3 export const z = 30; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js index dcac12cae9f..e331aa605d1 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js @@ -1,3 +1,20 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/app --verbose +4:34:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:34:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist + +4:34:00 PM - Building project '/src/lib/tsconfig.json'... + +4:34:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:34:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/module.d.ts] declare module "file1" { export const x = 10; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js index 30f8da909cd..009eac2b5e9 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js @@ -1,3 +1,20 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/app --verbose +4:29:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:29:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist + +4:29:00 PM - Building project '/src/lib/tsconfig.json'... + +4:29:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:29:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/file4.ts] /// const file4Const = new appfile4(); diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js index 3611d355563..0114958750b 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js @@ -1,3 +1,20 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc -b /src/app --verbose +4:42:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:42:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/module.js' does not exist + +4:42:00 PM - Building project '/src/lib/tsconfig.json'... + +4:42:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:42:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + //// [/src/app/file3.ts] export const z = 30; import { x } from "lib/file1"; diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js index f4675cfcd15..f6c9acc7f49 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js @@ -1,3 +1,15 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src --verbose +4:04:00 PM - Projects in this build: + * src/tsconfig.json + +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' + +4:04:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/lib/a.d.ts] import { B } from "./b"; export interface A { diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js index a1297732a88..07a9d7d5f30 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -1,3 +1,15 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src --verbose +4:09:00 PM - Projects in this build: + * src/tsconfig.json + +4:09:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' + +4:09:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/lib/a.d.ts] import { B } from "./b"; export interface A { diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index c5eb746e843..f31e622e19e 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -1,3 +1,15 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src --verbose +4:14:00 PM - Projects in this build: + * src/tsconfig.json + +4:14:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' + +4:14:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/lib/a.d.ts] export declare class B { prop: string; diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index 0eb46f39556..ad416738b6f 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -1,3 +1,17 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src --verbose +4:18:00 PM - Projects in this build: + * src/tsconfig.json + +4:18:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' + +4:18:00 PM - Building project '/src/tsconfig.json'... + +4:18:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/lib/a.d.ts] file written with same contents //// [/src/lib/a.d.ts.map] {"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js index 838bf28950f..516bc472994 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js @@ -1,3 +1,15 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src --verbose +4:01:00 PM - Projects in this build: + * src/tsconfig.json + +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist + +4:01:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/lib/a.d.ts] import { B } from "./b"; export interface A { diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js index d07b0914c32..847deaf3f98 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -1,3 +1,15 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src --verbose +4:06:00 PM - Projects in this build: + * src/tsconfig.json + +4:06:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist + +4:06:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/lib/a.d.ts] import { B } from "./b"; export interface A { diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index 86f7dc6e8bc..4bf544fa8f8 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -1,3 +1,15 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src --verbose +4:11:00 PM - Projects in this build: + * src/tsconfig.json + +4:11:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist + +4:11:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/lib/a.d.ts] export declare class B { prop: string; diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js index f8dfdc7e146..85eb3a1aaa6 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js @@ -1,3 +1,17 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src --verbose +4:09:00 PM - Projects in this build: + * src/tsconfig.json + +4:09:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' + +4:09:00 PM - Building project '/src/tsconfig.json'... + +4:09:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/bar.ts] interface RawAction { (...args: any[]): Promise | void; diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js index 556f32082f5..391ee8b2b0a 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js @@ -1,3 +1,17 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src --verbose +4:04:00 PM - Projects in this build: + * src/tsconfig.json + +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' + +4:04:00 PM - Building project '/src/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/bar.ts] interface RawAction { (...args: any[]): Promise | void; diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js new file mode 100644 index 00000000000..97fc039e4be --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -0,0 +1,24 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src --verbose +4:14:00 PM - Projects in this build: + * src/tsconfig.json + +4:14:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' + +4:14:00 PM - Building project '/src/tsconfig.json'... + +src/lazyIndex.ts(4,5): error TS2554: Expected 0 arguments, but got 1. +exitCode:: 1 + + +//// [/src/bar.ts] +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js index 568116485a4..71ce669c39e 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js @@ -1,3 +1,15 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src --verbose +4:06:00 PM - Projects in this build: + * src/tsconfig.json + +4:06:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist + +4:06:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/obj/bar.d.ts] declare const _default: (param: string) => void; export default _default; diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module.js index a04669bd971..c97faefa51b 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module.js @@ -1,3 +1,15 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src --verbose +4:01:00 PM - Projects in this build: + * src/tsconfig.json + +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist + +4:01:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/obj/bar.d.ts] declare const _default: (param: string) => void; export default _default; diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js new file mode 100644 index 00000000000..8b0ffb0d8b0 --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -0,0 +1,163 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src --verbose +4:11:00 PM - Projects in this build: + * src/tsconfig.json + +4:11:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist + +4:11:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/lazyIndex.ts] +export { default as bar } from './bar'; + +import { default as bar } from './bar'; +bar("hello"); + +//// [/src/obj/bar.d.ts] +declare const _default: (param: string) => void; +export default _default; + + +//// [/src/obj/bar.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + + +//// [/src/obj/bundling.d.ts] +export declare class LazyModule { + private importCallback; + constructor(importCallback: () => Promise); +} +export declare class LazyAction any, TModule> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); +} + + +//// [/src/obj/bundling.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var LazyModule = /** @class */ (function () { + function LazyModule(importCallback) { + this.importCallback = importCallback; + } + return LazyModule; +}()); +exports.LazyModule = LazyModule; +var LazyAction = /** @class */ (function () { + function LazyAction(_lazyModule, _getter) { + } + return LazyAction; +}()); +exports.LazyAction = LazyAction; + + +//// [/src/obj/index.d.ts] +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + + +//// [/src/obj/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var bundling_1 = require("./bundling"); +var lazyModule = new bundling_1.LazyModule(function () { + return Promise.resolve().then(function () { return require('./lazyIndex'); }); +}); +exports.lazyBar = new bundling_1.LazyAction(lazyModule, function (m) { return m.bar; }); + + +//// [/src/obj/lazyIndex.d.ts] +export { default as bar } from './bar'; + + +//// [/src/obj/lazyIndex.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var bar_1 = require("./bar"); +exports.bar = bar_1.default; +var bar_2 = require("./bar"); +bar_2.default("hello"); + + +//// [/src/obj/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../bar.ts": { + "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "signature": "11191036521-declare const _default: (param: string) => void;\r\nexport default _default;\r\n" + }, + "../bundling.ts": { + "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" + }, + "../global.d.ts": { + "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" + }, + "../lazyindex.ts": { + "version": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", + "signature": "-6224542381-export { default as bar } from './bar';\r\n" + }, + "../index.ts": { + "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "18468008756-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\r\n" + } + }, + "options": { + "target": 1, + "declaration": true, + "outDir": "./", + "incremental": true, + "isolatedModules": true, + "configFilePath": "../tsconfig.json" + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "exportedModulesMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../index.ts", + "../lazyindex.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, "isolatedModules": true + } +} + diff --git a/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js b/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js index bdd69739968..8b430f96e07 100644 --- a/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js +++ b/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js @@ -1,3 +1,17 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/tsconfig.json --verbose +4:04:00 PM - Projects in this build: + * src/tsconfig.json + +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/src/hkt.js' is older than newest input 'src/src/main.ts' + +4:04:00 PM - Building project '/src/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/src/main.js] "use strict"; exports.__esModule = true; diff --git a/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-Build/interface-is-merged-and-contains-late-bound-member.js b/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-Build/interface-is-merged-and-contains-late-bound-member.js index 949eb773431..1138bdc9f23 100644 --- a/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-Build/interface-is-merged-and-contains-late-bound-member.js +++ b/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-Build/interface-is-merged-and-contains-late-bound-member.js @@ -1,3 +1,15 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/tsconfig.json --verbose +4:01:00 PM - Projects in this build: + * src/tsconfig.json + +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/src/hkt.js' does not exist + +4:01:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + //// [/src/src/hkt.js] "use strict"; exports.__esModule = true; diff --git a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-Build/synthesized-module-specifiers-resolve-correctly.js b/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-Build/synthesized-module-specifiers-resolve-correctly.js index cd12638d637..55daa38318a 100644 --- a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-Build/synthesized-module-specifiers-resolve-correctly.js +++ b/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-Build/synthesized-module-specifiers-resolve-correctly.js @@ -1,3 +1,27 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc -b / --verbose +4:00:00 PM - Projects in this build: + * src/common/tsconfig.json + * src/sub-project/tsconfig.json + * src/sub-project-2/tsconfig.json + * src/tsconfig.json + * tsconfig.json + +4:00:00 PM - Project 'src/common/tsconfig.json' is out of date because output file 'lib/src/common/nominal.js' does not exist + +4:00:00 PM - Building project '/src/common/tsconfig.json'... + +4:00:00 PM - Project 'src/sub-project/tsconfig.json' is out of date because output file 'lib/src/sub-project/index.js' does not exist + +4:00:00 PM - Building project '/src/sub-project/tsconfig.json'... + +4:00:00 PM - Project 'src/sub-project-2/tsconfig.json' is out of date because output file 'lib/src/sub-project-2/index.js' does not exist + +4:00:00 PM - Building project '/src/sub-project-2/tsconfig.json'... + +exitCode:: 0 + + //// [/lib/src/common/nominal.d.ts] export declare type Nominal = T & { [Symbol.species]: Name; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js index b8705b1b03d..b431c88cafc 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js @@ -1,3 +1,42 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:06:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:06:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:06:00 PM - Building project '/src/first/tsconfig.json'... + +4:06:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:06:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +4:06:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + //// [/src/first/bin/first-output.d.ts] interface TheFirst { none: any; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js index f3a11792c1f..a594bfe6e3c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js @@ -1,3 +1,42 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +5:18:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:18:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:18:00 PM - Building project '/src/first/tsconfig.json'... + +5:18:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:18:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +5:18:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + //// [/src/first/bin/first-output.d.ts] interface TheFirst { none: any; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js index 3b3e6b136dc..5548b80206e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js @@ -1,3 +1,42 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:42:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:42:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:42:00 PM - Building project '/src/first/tsconfig.json'... + +4:42:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:42:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +4:42:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + //// [/src/first/bin/first-output.d.ts] interface TheFirst { none: any; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js index 5dc312d58ce..2f00e763d2d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js @@ -1,3 +1,42 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +5:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:04:00 PM - Building project '/src/first/tsconfig.json'... + +5:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +5:04:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + //// [/src/first/bin/first-output.d.ts] #!someshebang first first_PART1 interface TheFirst { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js index 84d8de40064..8a8c99e609a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js @@ -1,3 +1,42 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:20:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:20:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:20:00 PM - Building project '/src/first/tsconfig.json'... + +4:20:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:20:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +4:20:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + //// [/src/first/bin/first-output.d.ts] interface TheFirst { none: any; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js index 0b7ac11a100..0e56e0a0d7d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1,3 +1,46 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +6:48:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:48:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:48:00 PM - Building project '/src/first/tsconfig.json'... + +6:48:00 PM - Project 'src/second/tsconfig.json' is out of date because oldest output 'src/2/second-output.js' is older than newest input 'src/first' + +6:48:00 PM - Building project '/src/second/tsconfig.json'... + +6:48:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/second' + +6:48:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts": 2, + "/src/third/third_part1.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.js": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + //// [/src/2/second-output.d.ts] interface TheFirst { none: any; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js index 031180b66ce..773a38e6cde 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js @@ -1,3 +1,42 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +6:12:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:12:00 PM - Building project '/src/first/tsconfig.json'... + +6:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +6:12:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +6:12:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + //// [/src/first/bin/first-output.d.ts] interface TheFirst { none: any; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js index 837220d8dd1..db6e9ac1ead 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js @@ -1,3 +1,45 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +5:58:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:58:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:58:00 PM - Building project '/src/first/tsconfig.json'... + +5:58:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:58:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +5:58:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/second/tripleRef.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/third/tripleRef.d.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + //// [/src/first/bin/first-output.d.ts] /// interface TheFirst { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js index 0c1de645252..b207068186b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js @@ -1,3 +1,47 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:10:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:10:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:10:00 PM - Building project '/src/first/tsconfig.json'... + +4:10:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:10:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:10:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:10:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js index 4049a658d5d..f2b11d2a3f4 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js @@ -1,3 +1,47 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +5:22:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:22:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:22:00 PM - Building project '/src/first/tsconfig.json'... + +5:22:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:22:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +5:22:00 PM - Updating output of project '/src/third/tsconfig.json'... + +5:22:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js index 91d63e81d93..f2997a1a964 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +5:31:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:31:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:31:00 PM - Building project '/src/first/tsconfig.json'... + +5:31:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:31:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +5:31:00 PM - Updating output of project '/src/third/tsconfig.json'... + +5:31:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js index 4ea169f5940..1b9b44d62fc 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +5:40:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:40:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:40:00 PM - Building project '/src/first/tsconfig.json'... + +5:40:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:40:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +5:40:00 PM - Updating output of project '/src/third/tsconfig.json'... + +5:40:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js index ac94261ec5b..4464319d6fc 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +5:49:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:49:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:49:00 PM - Building project '/src/first/tsconfig.json'... + +5:49:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:49:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +5:49:00 PM - Updating output of project '/src/third/tsconfig.json'... + +5:49:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js index a1075353f3e..9343ab267c3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js @@ -1,3 +1,47 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:46:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:46:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:46:00 PM - Building project '/src/first/tsconfig.json'... + +4:46:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:46:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:46:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:46:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js index 75a66a9473f..0db1eb49ecd 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:55:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:55:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:55:00 PM - Building project '/src/first/tsconfig.json'... + +4:55:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:55:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:55:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:55:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js index 66cbcb79b2c..6b63042a53a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js @@ -1,3 +1,47 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +5:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:08:00 PM - Building project '/src/first/tsconfig.json'... + +5:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +5:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +5:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/2/second-output.d.ts": 1 +} + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js index 4771fa447ef..2fb81469905 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +5:13:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:13:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:13:00 PM - Building project '/src/first/tsconfig.json'... + +5:13:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:13:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +5:13:00 PM - Updating output of project '/src/third/tsconfig.json'... + +5:13:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js index 1e7436f9df8..ca5ea8c82a3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js @@ -1,3 +1,47 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:24:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:24:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:24:00 PM - Building project '/src/first/tsconfig.json'... + +4:24:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:24:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:24:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:24:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js index 654b18ce483..36ce6286c84 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:33:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:33:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:33:00 PM - Building project '/src/first/tsconfig.json'... + +4:33:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:33:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:33:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:33:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 6ec1100b4bd..5d4fa8ee0b7 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -1,3 +1,29 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +7:10:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +7:10:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +7:10:00 PM - Building project '/src/first/tsconfig.json'... + +7:10:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +7:10:00 PM - Updating output of project '/src/second/tsconfig.json'... + +7:10:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +7:10:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +7:10:00 PM - Updating output of project '/src/third/tsconfig.json'... + +7:10:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js index a21376924f6..2340b0e4eae 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +6:34:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:34:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:34:00 PM - Building project '/src/first/tsconfig.json'... + +6:34:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +6:34:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +6:34:00 PM - Updating output of project '/src/third/tsconfig.json'... + +6:34:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index d68b80c42a4..1ea7d406088 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,3 +1,29 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +7:19:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +7:19:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +7:19:00 PM - Building project '/src/first/tsconfig.json'... + +7:19:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +7:19:00 PM - Updating output of project '/src/second/tsconfig.json'... + +7:19:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +7:19:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +7:19:00 PM - Updating output of project '/src/third/tsconfig.json'... + +7:19:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js index b779dcffa53..24720d64a77 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +6:43:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:43:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:43:00 PM - Building project '/src/first/tsconfig.json'... + +6:43:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +6:43:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +6:43:00 PM - Updating output of project '/src/third/tsconfig.json'... + +6:43:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js index f312697a726..8251e1aa4ae 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1,3 +1,51 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +6:52:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:52:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:52:00 PM - Building project '/src/first/tsconfig.json'... + +6:52:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +6:52:00 PM - Updating output of project '/src/second/tsconfig.json'... + +6:52:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +6:52:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +6:52:00 PM - Updating output of project '/src/third/tsconfig.json'... + +6:52:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 2, + "/src/2/second-output.js": 2, + "/src/2/second-output.js.map": 2, + "/src/2/second-output.d.ts": 2, + "/src/2/second-output.d.ts.map": 2, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1 +} + //// [/src/2/second-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 4ccb69a5a8d..8398252d1a8 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,3 +1,29 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +7:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +7:01:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +7:01:00 PM - Building project '/src/first/tsconfig.json'... + +7:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +7:01:00 PM - Updating output of project '/src/second/tsconfig.json'... + +7:01:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +7:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +7:01:00 PM - Updating output of project '/src/third/tsconfig.json'... + +7:01:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.js] var s = "Hello, world"; console.log(s); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js index b64f0367708..c68bdde48bd 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +6:25:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:25:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:25:00 PM - Building project '/src/first/tsconfig.json'... + +6:25:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +6:25:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +6:25:00 PM - Updating output of project '/src/third/tsconfig.json'... + +6:25:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js index 2fc43e90ec5..c8e0c8e1b04 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js @@ -1,3 +1,47 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +6:16:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:16:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:16:00 PM - Building project '/src/first/tsconfig.json'... + +6:16:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +6:16:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +6:16:00 PM - Updating output of project '/src/third/tsconfig.json'... + +6:16:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js index 0303c231a2d..b5e50cda13a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js @@ -1,3 +1,48 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +6:02:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:02:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:02:00 PM - Building project '/src/first/tsconfig.json'... + +6:02:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +6:02:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +6:02:00 PM - Updating output of project '/src/third/tsconfig.json'... + +6:02:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js index d317b8f29b6..ac8dcf7bd97 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +6:07:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:07:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:07:00 PM - Building project '/src/first/tsconfig.json'... + +6:07:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +6:07:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +6:07:00 PM - Updating output of project '/src/third/tsconfig.json'... + +6:07:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js index 126759e3719..56228a2fd92 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js @@ -1,3 +1,23 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:15:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:15:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:15:00 PM - Building project '/src/first/tsconfig.json'... + +4:15:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:15:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:15:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js index a3b4c95b0f2..6eb21089f94 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +7:24:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +7:24:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +7:24:00 PM - Building project '/src/first/tsconfig.json'... + +7:24:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +7:24:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +7:24:00 PM - Updating output of project '/src/third/tsconfig.json'... + +7:24:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js index 40ab1fa6dd0..6d55545ee19 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js @@ -1,3 +1,47 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +5:26:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:26:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:26:00 PM - Building project '/src/first/tsconfig.json'... + +5:26:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:26:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +5:26:00 PM - Updating output of project '/src/third/tsconfig.json'... + +5:26:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js index 95c8bdbb672..42134302f36 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +5:35:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:35:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:35:00 PM - Building project '/src/first/tsconfig.json'... + +5:35:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:35:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +5:35:00 PM - Updating output of project '/src/third/tsconfig.json'... + +5:35:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js index d5a6f310b95..19b890c40f1 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +5:44:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:44:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:44:00 PM - Building project '/src/first/tsconfig.json'... + +5:44:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:44:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +5:44:00 PM - Updating output of project '/src/third/tsconfig.json'... + +5:44:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js index c7426fd026e..0a0a636d489 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +5:53:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:53:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +5:53:00 PM - Building project '/src/first/tsconfig.json'... + +5:53:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +5:53:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +5:53:00 PM - Updating output of project '/src/third/tsconfig.json'... + +5:53:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js index e31929fda61..9132feba97f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js @@ -1,3 +1,47 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:50:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:50:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:50:00 PM - Building project '/src/first/tsconfig.json'... + +4:50:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:50:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:50:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:50:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js index 441559cdf45..088741c1b73 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:59:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:59:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:59:00 PM - Building project '/src/first/tsconfig.json'... + +4:59:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:59:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:59:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:59:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js index 00e04704f80..e3119448dee 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js @@ -1,3 +1,47 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:28:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:28:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:28:00 PM - Building project '/src/first/tsconfig.json'... + +4:28:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:28:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:28:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:28:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js index 59205be8064..6e992bc185d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:37:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:37:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:37:00 PM - Building project '/src/first/tsconfig.json'... + +4:37:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:37:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:37:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:37:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 887c845e48b..bc9b94437a9 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -1,3 +1,29 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +7:14:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +7:14:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +7:14:00 PM - Building project '/src/first/tsconfig.json'... + +7:14:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +7:14:00 PM - Updating output of project '/src/second/tsconfig.json'... + +7:14:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +7:14:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +7:14:00 PM - Updating output of project '/src/third/tsconfig.json'... + +7:14:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts.map] {"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js index 3d722243740..1a106adf19c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +6:38:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:38:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:38:00 PM - Building project '/src/first/tsconfig.json'... + +6:38:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +6:38:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +6:38:00 PM - Updating output of project '/src/third/tsconfig.json'... + +6:38:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js index 5f9b856f99c..5e547185659 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1,3 +1,51 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +6:56:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:56:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:56:00 PM - Building project '/src/first/tsconfig.json'... + +6:56:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +6:56:00 PM - Updating output of project '/src/second/tsconfig.json'... + +6:56:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +6:56:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +6:56:00 PM - Updating output of project '/src/third/tsconfig.json'... + +6:56:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 2, + "/src/2/second-output.js": 2, + "/src/2/second-output.js.map": 2, + "/src/2/second-output.d.ts": 2, + "/src/2/second-output.d.ts.map": 2, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1 +} + //// [/src/2/second-output.d.ts.map] {"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index dcaa317a0d2..ff191dc3a7e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,3 +1,29 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +7:05:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +7:05:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +7:05:00 PM - Building project '/src/first/tsconfig.json'... + +7:05:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +7:05:00 PM - Updating output of project '/src/second/tsconfig.json'... + +7:05:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +7:05:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +7:05:00 PM - Updating output of project '/src/third/tsconfig.json'... + +7:05:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts.map] {"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;kBACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js index 93681166f46..5c771ba3a0b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js @@ -1,3 +1,25 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +6:29:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:29:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:29:00 PM - Building project '/src/first/tsconfig.json'... + +6:29:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +6:29:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +6:29:00 PM - Updating output of project '/src/third/tsconfig.json'... + +6:29:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js index 832ea5e5de0..a3581a937ed 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js @@ -1,3 +1,47 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +6:20:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:20:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +6:20:00 PM - Building project '/src/first/tsconfig.json'... + +6:20:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +6:20:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +6:20:00 PM - Updating output of project '/src/third/tsconfig.json'... + +6:20:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] {"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/baseline-sectioned-sourcemaps.js index dc954db7140..a951b2cb946 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/baseline-sectioned-sourcemaps.js @@ -1,3 +1,45 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:03:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:03:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:03:00 PM - Building project '/src/first/tsconfig.json'... + +4:03:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:03:00 PM - Building project '/src/second/tsconfig.json'... + +4:03:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:03:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/declarationMap-and-sourceMap-disabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/declarationMap-and-sourceMap-disabled.js index 71e66236a0a..5e580fb97ee 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/declarationMap-and-sourceMap-disabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/declarationMap-and-sourceMap-disabled.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +7:25:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +7:25:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +7:25:00 PM - Building project '/src/first/tsconfig.json'... + +7:25:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +7:25:00 PM - Building project '/src/second/tsconfig.json'... + +7:25:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +7:25:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js index f005ab7855c..e5c10192dce 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js @@ -1,3 +1,45 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +5:15:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:15:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +5:15:00 PM - Building project '/src/first/tsconfig.json'... + +5:15:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +5:15:00 PM - Building project '/src/second/tsconfig.json'... + +5:15:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +5:15:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js index a0903bec835..e1ae40062b0 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +5:28:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:28:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +5:28:00 PM - Building project '/src/first/tsconfig.json'... + +5:28:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +5:28:00 PM - Building project '/src/second/tsconfig.json'... + +5:28:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +5:28:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js index c9c46a61769..e4e8ee215d7 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +5:37:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:37:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +5:37:00 PM - Building project '/src/first/tsconfig.json'... + +5:37:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +5:37:00 PM - Building project '/src/second/tsconfig.json'... + +5:37:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +5:37:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js index a5a8082cb6e..7182bfe769f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +5:46:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:46:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +5:46:00 PM - Building project '/src/first/tsconfig.json'... + +5:46:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +5:46:00 PM - Building project '/src/second/tsconfig.json'... + +5:46:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +5:46:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-all-projects.js index 9f1174ea545..b4b83f79c3f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-all-projects.js @@ -1,3 +1,45 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:39:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:39:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:39:00 PM - Building project '/src/first/tsconfig.json'... + +4:39:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:39:00 PM - Building project '/src/second/tsconfig.json'... + +4:39:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:39:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-different-projects.js index ccd01c44d76..1ab05fa7b18 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-different-projects.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:52:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:52:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:52:00 PM - Building project '/src/first/tsconfig.json'... + +4:52:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:52:00 PM - Building project '/src/second/tsconfig.json'... + +4:52:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:52:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-all-projects.js index 8a9eddef3eb..fe0703e4775 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-all-projects.js @@ -1,3 +1,45 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +5:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +5:01:00 PM - Building project '/src/first/tsconfig.json'... + +5:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +5:01:00 PM - Building project '/src/second/tsconfig.json'... + +5:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +5:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/2/second-output.d.ts] #!someshebang second second_part1 declare namespace N { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-only-one-dependency-project.js index 6238d669fd9..82ba099392d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-only-one-dependency-project.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +5:10:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:10:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +5:10:00 PM - Building project '/src/first/tsconfig.json'... + +5:10:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +5:10:00 PM - Building project '/src/second/tsconfig.json'... + +5:10:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +5:10:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] #!someshebang second second_part1 declare namespace N { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-all-projects.js index a87a175f3f6..dc8faa1b228 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-all-projects.js @@ -1,3 +1,45 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:17:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:17:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:17:00 PM - Building project '/src/first/tsconfig.json'... + +4:17:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:17:00 PM - Building project '/src/second/tsconfig.json'... + +4:17:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:17:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-one-dependency.js index 5ad6a0c4742..309286ba7c1 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-one-dependency.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:30:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:30:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:30:00 PM - Building project '/src/first/tsconfig.json'... + +4:30:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:30:00 PM - Building project '/src/second/tsconfig.json'... + +4:30:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:30:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-baseline-when-internal-is-inside-another-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-baseline-when-internal-is-inside-another-internal.js index 8d6722f4b78..3e818c2e02d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-baseline-when-internal-is-inside-another-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-baseline-when-internal-is-inside-another-internal.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +7:20:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +7:20:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +7:20:00 PM - Building project '/src/first/tsconfig.json'... + +7:20:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +7:20:00 PM - Building project '/src/second/tsconfig.json'... + +7:20:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +7:20:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 7a5d6f628ed..04c0ab44444 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +7:07:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +7:07:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +7:07:00 PM - Building project '/src/first/tsconfig.json'... + +7:07:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +7:07:00 PM - Building project '/src/second/tsconfig.json'... + +7:07:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +7:07:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] interface TheFirst { none: any; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment.js index 6e4cd6c0d26..adc3d302937 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +6:31:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:31:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +6:31:00 PM - Building project '/src/first/tsconfig.json'... + +6:31:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +6:31:00 PM - Building project '/src/second/tsconfig.json'... + +6:31:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +6:31:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 0890b8d8188..b9ff3b044eb 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +7:16:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +7:16:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +7:16:00 PM - Building project '/src/first/tsconfig.json'... + +7:16:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +7:16:00 PM - Building project '/src/second/tsconfig.json'... + +7:16:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +7:16:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] /**@internal*/ interface TheFirst { none: any; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled.js index 87badd92039..6e5d9fb5d8a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +6:40:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:40:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +6:40:00 PM - Building project '/src/first/tsconfig.json'... + +6:40:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +6:40:00 PM - Building project '/src/second/tsconfig.json'... + +6:40:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +6:40:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-few-members-of-enum-are-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-few-members-of-enum-are-internal.js index 91558992f04..5bff1f01ba9 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-few-members-of-enum-are-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-few-members-of-enum-are-internal.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +7:20:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +7:20:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +7:20:00 PM - Building project '/src/first/tsconfig.json'... + +7:20:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +7:20:00 PM - Building project '/src/second/tsconfig.json'... + +7:20:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +7:20:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-one-two-three-are-prepended-in-order.js index 89862863170..3a8ac1e88a3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1,3 +1,45 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +6:45:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:45:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +6:45:00 PM - Building project '/src/first/tsconfig.json'... + +6:45:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +6:45:00 PM - Building project '/src/second/tsconfig.json'... + +6:45:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +6:45:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.js": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/2/second-output.d.ts] interface TheFirst { none: any; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 5d2941abca2..5e5fdf4270f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +6:58:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:58:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +6:58:00 PM - Building project '/src/first/tsconfig.json'... + +6:58:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +6:58:00 PM - Building project '/src/second/tsconfig.json'... + +6:58:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +6:58:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] interface TheFirst { none: any; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled.js index 2475d4e4eda..3627b2e3eac 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +6:22:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:22:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +6:22:00 PM - Building project '/src/first/tsconfig.json'... + +6:22:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +6:22:00 PM - Building project '/src/second/tsconfig.json'... + +6:22:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +6:22:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal.js index 7ac42063f7d..5a42ece8405 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal.js @@ -1,3 +1,45 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +6:09:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:09:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +6:09:00 PM - Building project '/src/first/tsconfig.json'... + +6:09:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +6:09:00 PM - Building project '/src/second/tsconfig.json'... + +6:09:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +6:09:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-all-projects.js index 9310b004ec3..90762184b5a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-all-projects.js @@ -1,3 +1,48 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +5:55:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +5:55:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +5:55:00 PM - Building project '/src/first/tsconfig.json'... + +5:55:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +5:55:00 PM - Building project '/src/second/tsconfig.json'... + +5:55:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +5:55:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/tripleRef.d.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/third/tripleRef.d.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + //// [/src/2/second-output.d.ts] /// declare const second_part1Const: secondsecond_part1; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-one-project.js index 9a0bc722742..53907dad2fa 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-one-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-one-project.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +6:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +6:04:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +6:04:00 PM - Building project '/src/first/tsconfig.json'... + +6:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +6:04:00 PM - Building project '/src/second/tsconfig.json'... + +6:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +6:04:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] /// declare const second_part1Const: secondsecond_part1; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-incremental.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-incremental.js index 77755214958..c5a0d34a649 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-incremental.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-incremental.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:16:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:16:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:16:00 PM - Building project '/src/first/tsconfig.json'... + +4:16:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:16:00 PM - Building project '/src/second/tsconfig.json'... + +4:16:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:16:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-uses-project-references.js index 2564a1ae67e..41678cfdadb 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-uses-project-references.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-uses-project-references.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:12:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:12:00 PM - Building project '/src/first/tsconfig.json'... + +4:12:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:12:00 PM - Building project '/src/second/tsconfig.json'... + +4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:12:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-specifies-tsBuildInfoFile.js index 288f507f70b..a133ea36bd0 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-specifies-tsBuildInfoFile.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:16:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:16:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:16:00 PM - Building project '/src/first/tsconfig.json'... + +4:16:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:16:00 PM - Building project '/src/second/tsconfig.json'... + +4:16:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:16:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-source-files-are-empty-in-the-own-file.js index 7269a7ca744..2026a80c7c6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-source-files-are-empty-in-the-own-file.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-source-files-are-empty-in-the-own-file.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +7:21:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +7:21:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +7:21:00 PM - Building project '/src/first/tsconfig.json'... + +7:21:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +7:21:00 PM - Building project '/src/second/tsconfig.json'... + +7:21:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +7:21:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + //// [/src/2/second-output.d.ts] declare namespace N { } diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js index 0a2ce56cb64..f8dfbb246a3 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js @@ -1,3 +1,43 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/tests --verbose +4:19:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:19:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' + +4:19:00 PM - Building project '/src/core/tsconfig.json'... + +4:19:00 PM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... + +4:19:00 PM - Project 'src/logic/tsconfig.json' is out of date because oldest output 'src/logic/index.js' is older than newest input 'src/core' + +4:19:00 PM - Building project '/src/logic/tsconfig.json'... + +4:19:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/core' + +4:19:00 PM - Building project '/src/tests/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/tests/tsconfig.json": 1, + "/src/core/tsconfig.json": 1, + "/src/logic/tsconfig.json": 1, + "/src/core/tsconfig.tsbuildinfo": 1, + "/src/core/anotherModule.ts": 1, + "/src/core/index.ts": 1, + "/src/core/some_decl.d.ts": 1, + "/src/core/index.d.ts": 2, + "/src/logic/tsconfig.tsbuildinfo": 1, + "/src/logic/index.ts": 1, + "/src/core/anotherModule.d.ts": 1, + "/src/logic/index.d.ts": 1, + "/src/tests/tsconfig.tsbuildinfo": 1, + "/src/tests/index.ts": 1, + "/src/tests/index.d.ts": 1 +} + //// [/src/core/index.d.ts] export declare const someString: string; export declare function leftPad(s: string, n: number): string; diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js index b3c22649712..236b9b805ca 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js @@ -1,3 +1,15 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/core --verbose +4:32:00 PM - Projects in this build: + * src/core/tsconfig.json + +4:32:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.d.ts' does not exist + +4:32:00 PM - Building project '/src/core/tsconfig.json'... + +exitCode:: 0 + + //// [/src/core/anotherModule.d.ts] export declare const World = "hello"; diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js index a701b09575a..16370626344 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js @@ -1,3 +1,21 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/tests --verbose +4:47:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:47:00 PM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' + +4:47:00 PM - Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than oldest output 'src/logic/index.js' + +4:47:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/tests/tsconfig.json' + +4:47:00 PM - Building project '/src/tests/tsconfig.json'... + +exitCode:: 0 + + //// [/src/tests/index.d.ts] file written with same contents //// [/src/tests/index.js] "use strict"; diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js index 701737ec3b5..a7e30496a60 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js @@ -1,3 +1,36 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/tests --verbose +4:27:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:27:00 PM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' + +4:27:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/decls/index.d.ts' does not exist + +4:27:00 PM - Building project '/src/logic/tsconfig.json'... + +4:27:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/logic' + +4:27:00 PM - Building project '/src/tests/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/tests/tsconfig.json": 1, + "/src/core/tsconfig.json": 1, + "/src/logic/tsconfig.json": 1, + "/src/core/tsconfig.tsbuildinfo": 1, + "/src/logic/tsconfig.tsbuildinfo": 1, + "/src/logic/index.ts": 1, + "/src/core/index.d.ts": 1, + "/src/core/anotherModule.d.ts": 1, + "/src/tests/tsconfig.tsbuildinfo": 1, + "/src/tests/index.ts": 1, + "/src/logic/decls/index.d.ts": 1, + "/src/tests/index.d.ts": 1 +} + //// [/src/logic/decls/index.d.ts] export declare function getSecondsInDay(): number; import * as mod from '../core/anotherModule'; diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js index d6c6fb4d877..a869296127b 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js @@ -1,3 +1,15 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/core --verbose +4:42:00 PM - Projects in this build: + * src/core/tsconfig.json + +4:42:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' + +4:42:00 PM - Building project '/src/core/tsconfig.json'... + +exitCode:: 0 + + //// [/src/core/anotherModule.js] define(["require", "exports"], function (require, exports) { "use strict"; diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js index 0dc8156158d..d6a9b6feaa7 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js @@ -1,3 +1,23 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/core --verbose +4:37:00 PM - Projects in this build: + * src/core/tsconfig.json + +4:37:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' + +4:37:00 PM - Building project '/src/core/tsconfig.json'... + +TSFILE: /src/core/anotherModule.js +TSFILE: /src/core/index.js +TSFILE: /src/core/tsconfig.tsbuildinfo +/lib/lib.d.ts +/lib/lib.esnext.d.ts +/src/core/anotherModule.ts +/src/core/index.ts +/src/core/some_decl.d.ts +exitCode:: 0 + + //// [/src/core/anotherModule.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js index 658377ce3a3..63beda515f6 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js @@ -1,3 +1,38 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/tests --verbose +4:23:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:23:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' + +4:23:00 PM - Building project '/src/core/tsconfig.json'... + +4:23:00 PM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... + +4:23:00 PM - Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies + +4:23:00 PM - Updating output timestamps of project '/src/logic/tsconfig.json'... + +4:23:00 PM - Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies + +4:23:00 PM - Updating output timestamps of project '/src/tests/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/tests/tsconfig.json": 1, + "/src/core/tsconfig.json": 1, + "/src/logic/tsconfig.json": 1, + "/src/core/tsconfig.tsbuildinfo": 1, + "/src/core/anotherModule.ts": 1, + "/src/core/index.ts": 1, + "/src/core/some_decl.d.ts": 1, + "/src/core/index.d.ts": 1, + "/src/logic/tsconfig.tsbuildinfo": 1, + "/src/tests/tsconfig.tsbuildinfo": 1 +} + //// [/src/core/index.d.ts] file written with same contents //// [/src/core/index.d.ts.map] file written with same contents //// [/src/core/index.d.ts.map.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/sample.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/sample.js index 7a9f9a2ea95..8290c68c568 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-Build/sample.js @@ -1,3 +1,40 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/tests --verbose +4:16:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:16:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist + +4:16:00 PM - Building project '/src/core/tsconfig.json'... + +4:16:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist + +4:16:00 PM - Building project '/src/logic/tsconfig.json'... + +4:16:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist + +4:16:00 PM - Building project '/src/tests/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/tests/tsconfig.json": 1, + "/src/core/tsconfig.json": 1, + "/src/logic/tsconfig.json": 1, + "/src/core/tsconfig.tsbuildinfo": 1, + "/src/core/anotherModule.ts": 1, + "/src/core/index.ts": 1, + "/src/core/some_decl.d.ts": 1, + "/src/logic/tsconfig.tsbuildinfo": 1, + "/src/logic/index.ts": 1, + "/src/core/index.d.ts": 1, + "/src/core/anotherModule.d.ts": 1, + "/src/tests/tsconfig.tsbuildinfo": 1, + "/src/tests/index.ts": 1, + "/src/logic/index.d.ts": 1 +} + //// [/src/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-declaration-option-changes.js index 61e87a815aa..4c3061e4442 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-declaration-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-declaration-option-changes.js @@ -1,3 +1,15 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/core --verbose +4:29:00 PM - Projects in this build: + * src/core/tsconfig.json + +4:29:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist + +4:29:00 PM - Building project '/src/core/tsconfig.json'... + +exitCode:: 0 + + //// [/src/core/anotherModule.js] "use strict"; exports.__esModule = true; diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-esModuleInterop-option-changes.js index e24ade14d9d..0a438a70cfa 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-esModuleInterop-option-changes.js @@ -1,3 +1,25 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/tests --verbose +4:44:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:44:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist + +4:44:00 PM - Building project '/src/core/tsconfig.json'... + +4:44:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist + +4:44:00 PM - Building project '/src/logic/tsconfig.json'... + +4:44:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist + +4:44:00 PM - Building project '/src/tests/tsconfig.json'... + +exitCode:: 0 + + //// [/src/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-config-changes-declaration-dir.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-config-changes-declaration-dir.js deleted file mode 100644 index 7a9f9a2ea95..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-config-changes-declaration-dir.js +++ /dev/null @@ -1,494 +0,0 @@ -//// [/src/core/anotherModule.d.ts] -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map - -//// [/src/core/anotherModule.d.ts.map] -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} - -//// [/src/core/anotherModule.d.ts.map.baseline.txt] -=================================================================== -JsFile: anotherModule.d.ts -mapUrl: anotherModule.d.ts.map -sourceRoot: -sources: anotherModule.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/core/anotherModule.d.ts -sourceFile:anotherModule.ts -------------------------------------------------------------------- ->>>export declare const World = "hello"; -1 > -2 >^^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -7 > ^^^^^-> -1 > -2 >export -3 > const -4 > World -5 > = "hello" -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 16) Source(1, 8) + SourceIndex(0) -3 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) -4 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) -5 >Emitted(1, 37) Source(1, 29) + SourceIndex(0) -6 >Emitted(1, 38) Source(1, 30) + SourceIndex(0) ---- ->>>//# sourceMappingURL=anotherModule.d.ts.map - -//// [/src/core/anotherModule.js] -"use strict"; -exports.__esModule = true; -exports.World = "hello"; - - -//// [/src/core/index.d.ts] -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map - -//// [/src/core/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} - -//// [/src/core/index.d.ts.map.baseline.txt] -=================================================================== -JsFile: index.d.ts -mapUrl: index.d.ts.map -sourceRoot: -sources: index.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/core/index.d.ts -sourceFile:index.ts -------------------------------------------------------------------- ->>>export declare const someString: string; -1 > -2 >^^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >export -3 > const -4 > someString -5 > : -6 > string = "HELLO WORLD" -7 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 16) Source(1, 8) + SourceIndex(0) -3 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) -4 >Emitted(1, 32) Source(1, 24) + SourceIndex(0) -5 >Emitted(1, 34) Source(1, 26) + SourceIndex(0) -6 >Emitted(1, 40) Source(1, 48) + SourceIndex(0) -7 >Emitted(1, 41) Source(1, 49) + SourceIndex(0) ---- ->>>export declare function leftPad(s: string, n: number): string; -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^^^^^ -12> ^^^^^^^^^^ -13> ^^-> -1-> - > -2 >export function -3 > leftPad -4 > ( -5 > s -6 > : -7 > string -8 > , -9 > n -10> : -11> number -12> ) { return s + n; } -1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 25) Source(2, 17) + SourceIndex(0) -3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) -4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) -5 >Emitted(2, 34) Source(2, 26) + SourceIndex(0) -6 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) -7 >Emitted(2, 42) Source(2, 34) + SourceIndex(0) -8 >Emitted(2, 44) Source(2, 36) + SourceIndex(0) -9 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) -10>Emitted(2, 47) Source(2, 39) + SourceIndex(0) -11>Emitted(2, 53) Source(2, 45) + SourceIndex(0) -12>Emitted(2, 63) Source(2, 64) + SourceIndex(0) ---- ->>>export declare function multiply(a: number, b: number): number; -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^ -4 > ^ -5 > ^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^^^^^ -12> ^^^^^^^^^^ -1-> - > -2 >export function -3 > multiply -4 > ( -5 > a -6 > : -7 > number -8 > , -9 > b -10> : -11> number -12> ) { return a * b; } -1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 25) Source(3, 17) + SourceIndex(0) -3 >Emitted(3, 33) Source(3, 25) + SourceIndex(0) -4 >Emitted(3, 34) Source(3, 26) + SourceIndex(0) -5 >Emitted(3, 35) Source(3, 27) + SourceIndex(0) -6 >Emitted(3, 37) Source(3, 29) + SourceIndex(0) -7 >Emitted(3, 43) Source(3, 35) + SourceIndex(0) -8 >Emitted(3, 45) Source(3, 37) + SourceIndex(0) -9 >Emitted(3, 46) Source(3, 38) + SourceIndex(0) -10>Emitted(3, 48) Source(3, 40) + SourceIndex(0) -11>Emitted(3, 54) Source(3, 46) + SourceIndex(0) -12>Emitted(3, 64) Source(3, 65) + SourceIndex(0) ---- ->>>//# sourceMappingURL=index.d.ts.map - -//// [/src/core/index.js] -"use strict"; -exports.__esModule = true; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -exports.leftPad = leftPad; -function multiply(a, b) { return a * b; } -exports.multiply = multiply; - - -//// [/src/core/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/logic/index.d.ts] -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - - -//// [/src/logic/index.js] -"use strict"; -exports.__esModule = true; -var c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -exports.getSecondsInDay = getSecondsInDay; -var mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map - -//// [/src/logic/index.js.map] -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} - -//// [/src/logic/index.js.map.baseline.txt] -=================================================================== -JsFile: index.js -mapUrl: index.js.map -sourceRoot: -sources: index.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/logic/index.js -sourceFile:index.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>exports.__esModule = true; ->>>var c = require("../core/index"); -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 >import * as c from '../core/index'; -1 >Emitted(3, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(3, 34) Source(1, 36) + SourceIndex(0) ---- ->>>function getSecondsInDay() { -1 > -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > -2 >export function -3 > getSecondsInDay -1 >Emitted(4, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(4, 10) Source(2, 17) + SourceIndex(0) -3 >Emitted(4, 25) Source(2, 32) + SourceIndex(0) ---- ->>> return c.multiply(10, 15); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^ -6 > ^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^ -1->() { - > -2 > return -3 > c -4 > . -5 > multiply -6 > ( -7 > 10 -8 > , -9 > 15 -10> ) -11> ; -1->Emitted(5, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(5, 12) Source(3, 12) + SourceIndex(0) -3 >Emitted(5, 13) Source(3, 13) + SourceIndex(0) -4 >Emitted(5, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(5, 22) Source(3, 22) + SourceIndex(0) -6 >Emitted(5, 23) Source(3, 23) + SourceIndex(0) -7 >Emitted(5, 25) Source(3, 25) + SourceIndex(0) -8 >Emitted(5, 27) Source(3, 27) + SourceIndex(0) -9 >Emitted(5, 29) Source(3, 29) + SourceIndex(0) -10>Emitted(5, 30) Source(3, 30) + SourceIndex(0) -11>Emitted(5, 31) Source(3, 31) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) ---- ->>>exports.getSecondsInDay = getSecondsInDay; -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^-> -1-> -2 >export function getSecondsInDay() { - > return c.multiply(10, 15); - >} -1->Emitted(7, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(7, 43) Source(4, 2) + SourceIndex(0) ---- ->>>var mod = require("../core/anotherModule"); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >import * as mod from '../core/anotherModule'; -1->Emitted(8, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(8, 44) Source(5, 46) + SourceIndex(0) ---- ->>>exports.m = mod; -1 > -2 >^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^-> -1 > - >export const -2 > -3 > m -4 > = -5 > mod -6 > ; -1 >Emitted(9, 1) Source(6, 14) + SourceIndex(0) -2 >Emitted(9, 9) Source(6, 14) + SourceIndex(0) -3 >Emitted(9, 10) Source(6, 15) + SourceIndex(0) -4 >Emitted(9, 13) Source(6, 18) + SourceIndex(0) -5 >Emitted(9, 16) Source(6, 21) + SourceIndex(0) -6 >Emitted(9, 17) Source(6, 22) + SourceIndex(0) ---- ->>>//# sourceMappingURL=index.js.map - -//// [/src/logic/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts" - ] - }, - "exportedModulesMap": { - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/tests/index.d.ts] -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - - -//// [/src/tests/index.js] -"use strict"; -exports.__esModule = true; -var c = require("../core/index"); -var logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -var mod = require("../core/anotherModule"); -exports.m = mod; - - -//// [/src/tests/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "../logic/index.ts": { - "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - }, - "./index.ts": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts", - "../logic/index.d.ts" - ] - }, - "exportedModulesMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-specifies-tsBuildInfoFile.js index b7623e1af56..383e6cc4524 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-specifies-tsBuildInfoFile.js @@ -1,3 +1,40 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/tests --verbose +4:28:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:28:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist + +4:28:00 PM - Building project '/src/core/tsconfig.json'... + +4:28:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist + +4:28:00 PM - Building project '/src/logic/tsconfig.json'... + +4:28:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist + +4:28:00 PM - Building project '/src/tests/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/tests/tsconfig.json": 1, + "/src/core/tsconfig.json": 1, + "/src/logic/tsconfig.json": 1, + "/src/core/tsconfig.tsbuildinfo": 1, + "/src/core/anotherModule.ts": 1, + "/src/core/index.ts": 1, + "/src/core/some_decl.d.ts": 1, + "/src/logic/ownFile.tsbuildinfo": 1, + "/src/logic/index.ts": 1, + "/src/core/index.d.ts": 1, + "/src/core/anotherModule.d.ts": 1, + "/src/tests/tsconfig.tsbuildinfo": 1, + "/src/tests/index.ts": 1, + "/src/logic/index.d.ts": 1 +} + //// [/src/core/anotherModule.d.ts] export declare const World = "hello"; //# sourceMappingURL=anotherModule.d.ts.map diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-module-option-changes.js index ad19329a2e0..1334ec16723 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-module-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-module-option-changes.js @@ -1,3 +1,15 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/core --verbose +4:39:00 PM - Projects in this build: + * src/core/tsconfig.json + +4:39:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist + +4:39:00 PM - Building project '/src/core/tsconfig.json'... + +exitCode:: 0 + + //// [/src/core/anotherModule.js] "use strict"; exports.__esModule = true; diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-target-option-changes.js index c8fc2b1fbde..a47a3cb18c7 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-target-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-target-option-changes.js @@ -1,3 +1,23 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/core --verbose +4:34:00 PM - Projects in this build: + * src/core/tsconfig.json + +4:34:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist + +4:34:00 PM - Building project '/src/core/tsconfig.json'... + +TSFILE: /src/core/anotherModule.js +TSFILE: /src/core/index.js +TSFILE: /src/core/tsconfig.tsbuildinfo +/lib/lib.esnext.d.ts +/lib/lib.esnext.full.d.ts +/src/core/anotherModule.ts +/src/core/index.ts +/src/core/some_decl.d.ts +exitCode:: 0 + + //// [/lib/lib.d.ts] /// /// From 21b5418cef70ac23a95570d38758b75b90684b72 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 20 Sep 2019 17:17:39 -0700 Subject: [PATCH 133/159] Add tests --- .../exhaustiveSwitchImplicitReturn.ts | 14 ++ .../controlFlow/assertionTypePredicates1.ts | 128 +++++++++++ .../exhaustiveSwitchStatements1.ts | 199 ++++++++++++++++++ .../controlFlow/neverReturningFunctions1.ts | 158 ++++++++++++++ .../assertionsAndNonReturningFunctions.ts | 65 ++++++ 5 files changed, 564 insertions(+) create mode 100644 tests/cases/conformance/controlFlow/assertionTypePredicates1.ts create mode 100644 tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts create mode 100644 tests/cases/conformance/controlFlow/neverReturningFunctions1.ts create mode 100644 tests/cases/conformance/jsdoc/assertionsAndNonReturningFunctions.ts diff --git a/tests/cases/compiler/exhaustiveSwitchImplicitReturn.ts b/tests/cases/compiler/exhaustiveSwitchImplicitReturn.ts index b87baffdaf9..7355a5dba30 100644 --- a/tests/cases/compiler/exhaustiveSwitchImplicitReturn.ts +++ b/tests/cases/compiler/exhaustiveSwitchImplicitReturn.ts @@ -40,3 +40,17 @@ function foo5(bar: "a" | "b"): number { return 1; } } + +function foo6(bar: "a", a: boolean, b: boolean): number { + if (a) { + switch (bar) { + case "a": return 1; + } + } + else { + switch (b) { + case true: return -1; + case false: return 0; + } + } +} diff --git a/tests/cases/conformance/controlFlow/assertionTypePredicates1.ts b/tests/cases/conformance/controlFlow/assertionTypePredicates1.ts new file mode 100644 index 00000000000..b20cd42414b --- /dev/null +++ b/tests/cases/conformance/controlFlow/assertionTypePredicates1.ts @@ -0,0 +1,128 @@ +// @strict: true +// @declaration: true + +declare function isString(value: unknown): value is string; +declare function isArrayOfStrings(value: unknown): value is string[]; + +const assert: (value: unknown) => asserts value = value => {} + +declare function assertIsString(value: unknown): asserts value is string; +declare function assertIsArrayOfStrings(value: unknown): asserts value is string[]; +declare function assertDefined(value: T): asserts value is NonNullable; + +function f01(x: unknown) { + if (!!true) { + assert(typeof x === "string"); + x.length; + } + if (!!true) { + assert(x instanceof Error); + x.message; + } + if (!!true) { + assert(typeof x === "boolean" || typeof x === "number"); + x.toLocaleString; + } + if (!!true) { + assert(isArrayOfStrings(x)); + x[0].length; + } + if (!!true) { + assertIsArrayOfStrings(x); + x[0].length; + } + if (!!true) { + assert(x === undefined || typeof x === "string"); + x; // string | undefined + assertDefined(x); + x; // string + } +} + +function f02(x: string | undefined) { + if (!!true) { + assert(x); + x.length; + } + if (!!true) { + assert(x !== undefined); + x.length; + } + if (!!true) { + assertDefined(x); + x.length; + } +} + +function f03(x: string | undefined, assert: (value: unknown) => asserts value) { + assert(x); + x.length; +} + +namespace Debug { + export declare function assert(value: unknown, message?: string): asserts value; + export declare function assertDefined(value: T): asserts value is NonNullable; +} + +function f10(x: string | undefined) { + if (!!true) { + Debug.assert(x); + x.length; + } + if (!!true) { + Debug.assert(x !== undefined); + x.length; + } + if (!!true) { + Debug.assertDefined(x); + x.length; + } +} + +class Test { + assert(value: unknown): asserts value { + if (value) return; + throw new Error(); + } + isTest2(): this is Test2 { + return this instanceof Test2; + } + assertIsTest2(): asserts this is Test2 { + if (this instanceof Test2) return; + throw new Error(); + } + assertThis(): asserts this { + if (!this) return; + throw new Error(); + } + bar() { + this.assertThis(); + this; + } + foo(x: unknown) { + this.assert(typeof x === "string"); + x.length; + if (this.isTest2()) { + this.z; + } + this.assertIsTest2(); + this.z; + } +} + +class Test2 extends Test { + z = 0; +} + +// Invalid constructs + +declare let Q1: new (x: unknown) => x is string; +declare let Q2: new (x: boolean) => asserts x; +declare let Q3: new (x: unknown) => asserts x is string; + +declare class Wat { + get p1(): this is string; + set p1(x: this is string); + get p2(): asserts this is string; + set p2(x: asserts this is string); +} diff --git a/tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts b/tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts new file mode 100644 index 00000000000..9fd0f608ddb --- /dev/null +++ b/tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts @@ -0,0 +1,199 @@ +// @strict: true +// @allowUnreachableCode: false +// @declaration: true + +function f1(x: 1 | 2): string { + if (!!true) { + switch (x) { + case 1: return 'a'; + case 2: return 'b'; + } + x; // Unreachable + } + else { + throw 0; + } +} + +function f2(x: 1 | 2) { + let z: number; + switch (x) { + case 1: z = 10; break; + case 2: z = 20; break; + } + z; // Definitely assigned +} + +function f3(x: 1 | 2) { + switch (x) { + case 1: return 10; + case 2: return 20; + // Default considered reachable to allow defensive coding + default: throw new Error("Bad input"); + } +} + +// Repro from #11572 + +enum E { A, B } + +function f(e: E): number { + switch (e) { + case E.A: return 0 + case E.B: return 1 + } +} + +function g(e: E): number { + if (!true) + return -1 + else + switch (e) { + case E.A: return 0 + case E.B: return 1 + } +} + +// Repro from #12668 + +interface Square { kind: "square"; size: number; } + +interface Rectangle { kind: "rectangle"; width: number; height: number; } + +interface Circle { kind: "circle"; radius: number; } + +interface Triangle { kind: "triangle"; side: number; } + +type Shape = Square | Rectangle | Circle | Triangle; + +function area(s: Shape): number { + let area; + switch (s.kind) { + case "square": area = s.size * s.size; break; + case "rectangle": area = s.width * s.height; break; + case "circle": area = Math.PI * s.radius * s.radius; break; + case "triangle": area = Math.sqrt(3) / 4 * s.side * s.side; break; + } + return area; +} + +function areaWrapped(s: Shape): number { + let area; + area = (() => { + switch (s.kind) { + case "square": return s.size * s.size; + case "rectangle": return s.width * s.height; + case "circle": return Math.PI * s.radius * s.radius; + case "triangle": return Math.sqrt(3) / 4 * s.side * s.side; + } + })(); + return area; +} + +// Repro from #13241 + +enum MyEnum { + A, + B +} + +function thisGivesError(e: MyEnum): string { + let s: string; + switch (e) { + case MyEnum.A: s = "it was A"; break; + case MyEnum.B: s = "it was B"; break; + } + return s; +} + +function good1(e: MyEnum): string { + let s: string; + switch (e) { + case MyEnum.A: s = "it was A"; break; + case MyEnum.B: s = "it was B"; break; + default: s = "it was something else"; break; + } + return s; +} + +function good2(e: MyEnum): string { + switch (e) { + case MyEnum.A: return "it was A"; + case MyEnum.B: return "it was B"; + } +} + +// Repro from #18362 + +enum Level { + One, + Two, +} + +const doSomethingWithLevel = (level: Level) => { + let next: Level; + switch (level) { + case Level.One: + next = Level.Two; + break; + case Level.Two: + next = Level.One; + break; + } + return next; +}; + +// Repro from #20409 + +interface Square2 { + kind: "square"; + size: number; +} + +interface Circle2 { + kind: "circle"; + radius: number; +} + +type Shape2 = Square2 | Circle2; + +function withDefault(s1: Shape2, s2: Shape2): string { + switch (s1.kind) { + case "square": + return "1"; + case "circle": + switch (s2.kind) { + case "square": + return "2"; + case "circle": + return "3"; + default: + return "never"; + } + } +} + +function withoutDefault(s1: Shape2, s2: Shape2): string { + switch (s1.kind) { + case "square": + return "1"; + case "circle": + switch (s2.kind) { + case "square": + return "2"; + case "circle": + return "3"; + } + } +} + +// Repro from #20823 + +function test4(value: 1 | 2) { + let x: string; + switch (value) { + case 1: x = "one"; break; + case 2: x = "two"; break; + } + return x; +} diff --git a/tests/cases/conformance/controlFlow/neverReturningFunctions1.ts b/tests/cases/conformance/controlFlow/neverReturningFunctions1.ts new file mode 100644 index 00000000000..63e7ecf786f --- /dev/null +++ b/tests/cases/conformance/controlFlow/neverReturningFunctions1.ts @@ -0,0 +1,158 @@ +// @strict: true +// @allowUnreachableCode: false +// @declaration: true + +function fail(message?: string): never { + throw new Error(message); +} + +function f01(x: string | undefined) { + if (x === undefined) fail("undefined argument"); + x.length; // string +} + +function f02(x: number): number { + if (x >= 0) return x; + fail("negative number"); + x; // Unreachable +} + +function f03(x: string) { + x; // string + fail(); + x; // Unreachable +} + +function f11(x: string | undefined, fail: (message?: string) => never) { + if (x === undefined) fail("undefined argument"); + x.length; // string +} + +function f12(x: number, fail: (message?: string) => never): number { + if (x >= 0) return x; + fail("negative number"); + x; // Unreachable +} + +function f13(x: string, fail: (message?: string) => never) { + x; // string + fail(); + x; // Unreachable +} + +namespace Debug { + export declare function fail(message?: string): never; +} + +function f21(x: string | undefined) { + if (x === undefined) Debug.fail("undefined argument"); + x.length; // string +} + +function f22(x: number): number { + if (x >= 0) return x; + Debug.fail("negative number"); + x; // Unreachable +} + +function f23(x: string) { + x; // string + Debug.fail(); + x; // Unreachable +} + +function f24(x: string) { + x; // string + ((Debug).fail)(); + x; // Unreachable +} + +class Test { + fail(message?: string): never { + throw new Error(message); + } + f1(x: string | undefined) { + if (x === undefined) this.fail("undefined argument"); + x.length; // string + } + f2(x: number): number { + if (x >= 0) return x; + this.fail("negative number"); + x; // Unreachable + } + f3(x: string) { + x; // string + this.fail(); + x; // Unreachable + } +} + +function f30(x: string | number | undefined) { + if (typeof x === "string") { + fail(); + x; // Unreachable + } + else { + x; // number | undefined + if (x !== undefined) { + x; // number + fail(); + x; // Unreachable + } + else { + x; // undefined + fail(); + x; // Unreachable + } + x; // Unreachable + } + x; // Unreachable +} + +function f31(x: { a: string | number }) { + if (typeof x.a === "string") { + fail(); + x; // Unreachable + x.a; // Unreachable + } + x; // { a: string | number } + x.a; // number +} + +function f40(x: number) { + try { + x; + fail(); + x; // Unreachable + } + finally { + x; + fail(); + x; // Unreachable + } + x; // Unreachable +} + +function f41(x: number) { + try { + x; + } + finally { + x; + fail(); + x; // Unreachable + } + x; // Unreachable +} + +function f42(x: number) { + try { + x; + fail(); + x; // Unreachable + } + finally { + x; + } + x; // Unreachable +} diff --git a/tests/cases/conformance/jsdoc/assertionsAndNonReturningFunctions.ts b/tests/cases/conformance/jsdoc/assertionsAndNonReturningFunctions.ts new file mode 100644 index 00000000000..9a15a5b5245 --- /dev/null +++ b/tests/cases/conformance/jsdoc/assertionsAndNonReturningFunctions.ts @@ -0,0 +1,65 @@ +// @allowJs: true +// @checkJs: true +// @noEmit: true +// @allowUnreachableCode: false +// @filename: assertionsAndNonReturningFunctions.js + +/** @typedef {(check: boolean) => asserts check} AssertFunc */ + +/** @type {AssertFunc} */ +const assert = check => { + if (!check) throw new Error(); +} + +/** @type {(x: unknown) => asserts x is string } */ +function assertIsString(x) { + if (!(typeof x === "string")) throw new Error(); +} + +/** + * @param {boolean} check + * @returns {asserts check} +*/ +function assert2(check) { + if (!check) throw new Error(); +} + +/** + * @returns {never} + */ +function fail() { + throw new Error(); +} + +/** + * @param {*} x + */ +function f1(x) { + if (!!true) { + assert(typeof x === "string"); + x.length; + } + if (!!true) { + assert2(typeof x === "string"); + x.length; + } + if (!!true) { + assertIsString(x); + x.length; + } + if (!!true) { + fail(); + x; // Unreachable + } +} + +/** + * @param {boolean} b + */ +function f2(b) { + switch (b) { + case true: return 1; + case false: return 0; + } + b; // Unreachable +} From 97d69d442d78b30caef06101b27758d7d97c8e3f Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 20 Sep 2019 17:18:08 -0700 Subject: [PATCH 134/159] Accept new baselines --- .../assertionTypePredicates1.errors.txt | 150 +++++ .../reference/assertionTypePredicates1.js | 289 +++++++++ .../assertionTypePredicates1.symbols | 359 +++++++++++ .../reference/assertionTypePredicates1.types | 438 +++++++++++++ ...ertionsAndNonReturningFunctions.errors.txt | 69 ++ ...assertionsAndNonReturningFunctions.symbols | 109 ++++ .../assertionsAndNonReturningFunctions.types | 152 +++++ .../exhaustiveSwitchImplicitReturn.errors.txt | 14 + .../exhaustiveSwitchImplicitReturn.js | 27 + .../exhaustiveSwitchImplicitReturn.symbols | 25 + .../exhaustiveSwitchImplicitReturn.types | 33 + .../exhaustiveSwitchStatements1.errors.txt | 202 ++++++ .../reference/exhaustiveSwitchStatements1.js | 437 +++++++++++++ .../exhaustiveSwitchStatements1.symbols | 503 +++++++++++++++ .../exhaustiveSwitchStatements1.types | 595 ++++++++++++++++++ .../neverReturningFunctions1.errors.txt | 227 +++++++ .../reference/neverReturningFunctions1.js | 337 ++++++++++ .../neverReturningFunctions1.symbols | 387 ++++++++++++ .../reference/neverReturningFunctions1.types | 439 +++++++++++++ 19 files changed, 4792 insertions(+) create mode 100644 tests/baselines/reference/assertionTypePredicates1.errors.txt create mode 100644 tests/baselines/reference/assertionTypePredicates1.js create mode 100644 tests/baselines/reference/assertionTypePredicates1.symbols create mode 100644 tests/baselines/reference/assertionTypePredicates1.types create mode 100644 tests/baselines/reference/assertionsAndNonReturningFunctions.errors.txt create mode 100644 tests/baselines/reference/assertionsAndNonReturningFunctions.symbols create mode 100644 tests/baselines/reference/assertionsAndNonReturningFunctions.types create mode 100644 tests/baselines/reference/exhaustiveSwitchStatements1.errors.txt create mode 100644 tests/baselines/reference/exhaustiveSwitchStatements1.js create mode 100644 tests/baselines/reference/exhaustiveSwitchStatements1.symbols create mode 100644 tests/baselines/reference/exhaustiveSwitchStatements1.types create mode 100644 tests/baselines/reference/neverReturningFunctions1.errors.txt create mode 100644 tests/baselines/reference/neverReturningFunctions1.js create mode 100644 tests/baselines/reference/neverReturningFunctions1.symbols create mode 100644 tests/baselines/reference/neverReturningFunctions1.types diff --git a/tests/baselines/reference/assertionTypePredicates1.errors.txt b/tests/baselines/reference/assertionTypePredicates1.errors.txt new file mode 100644 index 00000000000..91d2e869bd2 --- /dev/null +++ b/tests/baselines/reference/assertionTypePredicates1.errors.txt @@ -0,0 +1,150 @@ +tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(116,37): error TS1228: A type predicate is only allowed in return type position for functions and methods. +tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(117,37): error TS1228: A type predicate is only allowed in return type position for functions and methods. +tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(118,37): error TS1228: A type predicate is only allowed in return type position for functions and methods. +tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(121,15): error TS1228: A type predicate is only allowed in return type position for functions and methods. +tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(122,15): error TS1228: A type predicate is only allowed in return type position for functions and methods. +tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(123,15): error TS1228: A type predicate is only allowed in return type position for functions and methods. +tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(124,15): error TS1228: A type predicate is only allowed in return type position for functions and methods. + + +==== tests/cases/conformance/controlFlow/assertionTypePredicates1.ts (7 errors) ==== + declare function isString(value: unknown): value is string; + declare function isArrayOfStrings(value: unknown): value is string[]; + + const assert: (value: unknown) => asserts value = value => {} + + declare function assertIsString(value: unknown): asserts value is string; + declare function assertIsArrayOfStrings(value: unknown): asserts value is string[]; + declare function assertDefined(value: T): asserts value is NonNullable; + + function f01(x: unknown) { + if (!!true) { + assert(typeof x === "string"); + x.length; + } + if (!!true) { + assert(x instanceof Error); + x.message; + } + if (!!true) { + assert(typeof x === "boolean" || typeof x === "number"); + x.toLocaleString; + } + if (!!true) { + assert(isArrayOfStrings(x)); + x[0].length; + } + if (!!true) { + assertIsArrayOfStrings(x); + x[0].length; + } + if (!!true) { + assert(x === undefined || typeof x === "string"); + x; // string | undefined + assertDefined(x); + x; // string + } + } + + function f02(x: string | undefined) { + if (!!true) { + assert(x); + x.length; + } + if (!!true) { + assert(x !== undefined); + x.length; + } + if (!!true) { + assertDefined(x); + x.length; + } + } + + function f03(x: string | undefined, assert: (value: unknown) => asserts value) { + assert(x); + x.length; + } + + namespace Debug { + export declare function assert(value: unknown, message?: string): asserts value; + export declare function assertDefined(value: T): asserts value is NonNullable; + } + + function f10(x: string | undefined) { + if (!!true) { + Debug.assert(x); + x.length; + } + if (!!true) { + Debug.assert(x !== undefined); + x.length; + } + if (!!true) { + Debug.assertDefined(x); + x.length; + } + } + + class Test { + assert(value: unknown): asserts value { + if (value) return; + throw new Error(); + } + isTest2(): this is Test2 { + return this instanceof Test2; + } + assertIsTest2(): asserts this is Test2 { + if (this instanceof Test2) return; + throw new Error(); + } + assertThis(): asserts this { + if (!this) return; + throw new Error(); + } + bar() { + this.assertThis(); + this; + } + foo(x: unknown) { + this.assert(typeof x === "string"); + x.length; + if (this.isTest2()) { + this.z; + } + this.assertIsTest2(); + this.z; + } + } + + class Test2 extends Test { + z = 0; + } + + // Invalid constructs + + declare let Q1: new (x: unknown) => x is string; + ~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + declare let Q2: new (x: boolean) => asserts x; + ~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + declare let Q3: new (x: unknown) => asserts x is string; + ~~~~~~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + + declare class Wat { + get p1(): this is string; + ~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + set p1(x: this is string); + ~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + get p2(): asserts this is string; + ~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + set p2(x: asserts this is string); + ~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS1228: A type predicate is only allowed in return type position for functions and methods. + } + \ No newline at end of file diff --git a/tests/baselines/reference/assertionTypePredicates1.js b/tests/baselines/reference/assertionTypePredicates1.js new file mode 100644 index 00000000000..ad21d116b73 --- /dev/null +++ b/tests/baselines/reference/assertionTypePredicates1.js @@ -0,0 +1,289 @@ +//// [assertionTypePredicates1.ts] +declare function isString(value: unknown): value is string; +declare function isArrayOfStrings(value: unknown): value is string[]; + +const assert: (value: unknown) => asserts value = value => {} + +declare function assertIsString(value: unknown): asserts value is string; +declare function assertIsArrayOfStrings(value: unknown): asserts value is string[]; +declare function assertDefined(value: T): asserts value is NonNullable; + +function f01(x: unknown) { + if (!!true) { + assert(typeof x === "string"); + x.length; + } + if (!!true) { + assert(x instanceof Error); + x.message; + } + if (!!true) { + assert(typeof x === "boolean" || typeof x === "number"); + x.toLocaleString; + } + if (!!true) { + assert(isArrayOfStrings(x)); + x[0].length; + } + if (!!true) { + assertIsArrayOfStrings(x); + x[0].length; + } + if (!!true) { + assert(x === undefined || typeof x === "string"); + x; // string | undefined + assertDefined(x); + x; // string + } +} + +function f02(x: string | undefined) { + if (!!true) { + assert(x); + x.length; + } + if (!!true) { + assert(x !== undefined); + x.length; + } + if (!!true) { + assertDefined(x); + x.length; + } +} + +function f03(x: string | undefined, assert: (value: unknown) => asserts value) { + assert(x); + x.length; +} + +namespace Debug { + export declare function assert(value: unknown, message?: string): asserts value; + export declare function assertDefined(value: T): asserts value is NonNullable; +} + +function f10(x: string | undefined) { + if (!!true) { + Debug.assert(x); + x.length; + } + if (!!true) { + Debug.assert(x !== undefined); + x.length; + } + if (!!true) { + Debug.assertDefined(x); + x.length; + } +} + +class Test { + assert(value: unknown): asserts value { + if (value) return; + throw new Error(); + } + isTest2(): this is Test2 { + return this instanceof Test2; + } + assertIsTest2(): asserts this is Test2 { + if (this instanceof Test2) return; + throw new Error(); + } + assertThis(): asserts this { + if (!this) return; + throw new Error(); + } + bar() { + this.assertThis(); + this; + } + foo(x: unknown) { + this.assert(typeof x === "string"); + x.length; + if (this.isTest2()) { + this.z; + } + this.assertIsTest2(); + this.z; + } +} + +class Test2 extends Test { + z = 0; +} + +// Invalid constructs + +declare let Q1: new (x: unknown) => x is string; +declare let Q2: new (x: boolean) => asserts x; +declare let Q3: new (x: unknown) => asserts x is string; + +declare class Wat { + get p1(): this is string; + set p1(x: this is string); + get p2(): asserts this is string; + set p2(x: asserts this is string); +} + + +//// [assertionTypePredicates1.js] +"use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +var assert = function (value) { }; +function f01(x) { + if (!!true) { + assert(typeof x === "string"); + x.length; + } + if (!!true) { + assert(x instanceof Error); + x.message; + } + if (!!true) { + assert(typeof x === "boolean" || typeof x === "number"); + x.toLocaleString; + } + if (!!true) { + assert(isArrayOfStrings(x)); + x[0].length; + } + if (!!true) { + assertIsArrayOfStrings(x); + x[0].length; + } + if (!!true) { + assert(x === undefined || typeof x === "string"); + x; // string | undefined + assertDefined(x); + x; // string + } +} +function f02(x) { + if (!!true) { + assert(x); + x.length; + } + if (!!true) { + assert(x !== undefined); + x.length; + } + if (!!true) { + assertDefined(x); + x.length; + } +} +function f03(x, assert) { + assert(x); + x.length; +} +var Debug; +(function (Debug) { +})(Debug || (Debug = {})); +function f10(x) { + if (!!true) { + Debug.assert(x); + x.length; + } + if (!!true) { + Debug.assert(x !== undefined); + x.length; + } + if (!!true) { + Debug.assertDefined(x); + x.length; + } +} +var Test = /** @class */ (function () { + function Test() { + } + Test.prototype.assert = function (value) { + if (value) + return; + throw new Error(); + }; + Test.prototype.isTest2 = function () { + return this instanceof Test2; + }; + Test.prototype.assertIsTest2 = function () { + if (this instanceof Test2) + return; + throw new Error(); + }; + Test.prototype.assertThis = function () { + if (!this) + return; + throw new Error(); + }; + Test.prototype.bar = function () { + this.assertThis(); + this; + }; + Test.prototype.foo = function (x) { + this.assert(typeof x === "string"); + x.length; + if (this.isTest2()) { + this.z; + } + this.assertIsTest2(); + this.z; + }; + return Test; +}()); +var Test2 = /** @class */ (function (_super) { + __extends(Test2, _super); + function Test2() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.z = 0; + return _this; + } + return Test2; +}(Test)); + + +//// [assertionTypePredicates1.d.ts] +declare function isString(value: unknown): value is string; +declare function isArrayOfStrings(value: unknown): value is string[]; +declare const assert: (value: unknown) => asserts value; +declare function assertIsString(value: unknown): asserts value is string; +declare function assertIsArrayOfStrings(value: unknown): asserts value is string[]; +declare function assertDefined(value: T): asserts value is NonNullable; +declare function f01(x: unknown): void; +declare function f02(x: string | undefined): void; +declare function f03(x: string | undefined, assert: (value: unknown) => asserts value): void; +declare namespace Debug { + function assert(value: unknown, message?: string): asserts value; + function assertDefined(value: T): asserts value is NonNullable; +} +declare function f10(x: string | undefined): void; +declare class Test { + assert(value: unknown): asserts value; + isTest2(): this is Test2; + assertIsTest2(): asserts this is Test2; + assertThis(): asserts this; + bar(): void; + foo(x: unknown): void; +} +declare class Test2 extends Test { + z: number; +} +declare let Q1: new (x: unknown) => x is string; +declare let Q2: new (x: boolean) => asserts x; +declare let Q3: new (x: unknown) => asserts x is string; +declare class Wat { + get p1(): this is string; + set p1(x: this is string); + get p2(): asserts this is string; + set p2(x: asserts this is string); +} diff --git a/tests/baselines/reference/assertionTypePredicates1.symbols b/tests/baselines/reference/assertionTypePredicates1.symbols new file mode 100644 index 00000000000..c68a1926aff --- /dev/null +++ b/tests/baselines/reference/assertionTypePredicates1.symbols @@ -0,0 +1,359 @@ +=== tests/cases/conformance/controlFlow/assertionTypePredicates1.ts === +declare function isString(value: unknown): value is string; +>isString : Symbol(isString, Decl(assertionTypePredicates1.ts, 0, 0)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 0, 26)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 0, 26)) + +declare function isArrayOfStrings(value: unknown): value is string[]; +>isArrayOfStrings : Symbol(isArrayOfStrings, Decl(assertionTypePredicates1.ts, 0, 59)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 1, 34)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 1, 34)) + +const assert: (value: unknown) => asserts value = value => {} +>assert : Symbol(assert, Decl(assertionTypePredicates1.ts, 3, 5)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 3, 15)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 3, 15)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 3, 49)) + +declare function assertIsString(value: unknown): asserts value is string; +>assertIsString : Symbol(assertIsString, Decl(assertionTypePredicates1.ts, 3, 61)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 5, 32)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 5, 32)) + +declare function assertIsArrayOfStrings(value: unknown): asserts value is string[]; +>assertIsArrayOfStrings : Symbol(assertIsArrayOfStrings, Decl(assertionTypePredicates1.ts, 5, 73)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 6, 40)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 6, 40)) + +declare function assertDefined(value: T): asserts value is NonNullable; +>assertDefined : Symbol(assertDefined, Decl(assertionTypePredicates1.ts, 6, 83)) +>T : Symbol(T, Decl(assertionTypePredicates1.ts, 7, 31)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 7, 34)) +>T : Symbol(T, Decl(assertionTypePredicates1.ts, 7, 31)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 7, 34)) +>NonNullable : Symbol(NonNullable, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(assertionTypePredicates1.ts, 7, 31)) + +function f01(x: unknown) { +>f01 : Symbol(f01, Decl(assertionTypePredicates1.ts, 7, 77)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) + + if (!!true) { + assert(typeof x === "string"); +>assert : Symbol(assert, Decl(assertionTypePredicates1.ts, 3, 5)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + if (!!true) { + assert(x instanceof Error); +>assert : Symbol(assert, Decl(assertionTypePredicates1.ts, 3, 5)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + + x.message; +>x.message : Symbol(Error.message, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) +>message : Symbol(Error.message, Decl(lib.es5.d.ts, --, --)) + } + if (!!true) { + assert(typeof x === "boolean" || typeof x === "number"); +>assert : Symbol(assert, Decl(assertionTypePredicates1.ts, 3, 5)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) + + x.toLocaleString; +>x.toLocaleString : Symbol(toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) +>toLocaleString : Symbol(toLocaleString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + } + if (!!true) { + assert(isArrayOfStrings(x)); +>assert : Symbol(assert, Decl(assertionTypePredicates1.ts, 3, 5)) +>isArrayOfStrings : Symbol(isArrayOfStrings, Decl(assertionTypePredicates1.ts, 0, 59)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) + + x[0].length; +>x[0].length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + if (!!true) { + assertIsArrayOfStrings(x); +>assertIsArrayOfStrings : Symbol(assertIsArrayOfStrings, Decl(assertionTypePredicates1.ts, 5, 73)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) + + x[0].length; +>x[0].length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + if (!!true) { + assert(x === undefined || typeof x === "string"); +>assert : Symbol(assert, Decl(assertionTypePredicates1.ts, 3, 5)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) +>undefined : Symbol(undefined) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) + + x; // string | undefined +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) + + assertDefined(x); +>assertDefined : Symbol(assertDefined, Decl(assertionTypePredicates1.ts, 6, 83)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) + + x; // string +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 9, 13)) + } +} + +function f02(x: string | undefined) { +>f02 : Symbol(f02, Decl(assertionTypePredicates1.ts, 36, 1)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 38, 13)) + + if (!!true) { + assert(x); +>assert : Symbol(assert, Decl(assertionTypePredicates1.ts, 3, 5)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 38, 13)) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 38, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + if (!!true) { + assert(x !== undefined); +>assert : Symbol(assert, Decl(assertionTypePredicates1.ts, 3, 5)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 38, 13)) +>undefined : Symbol(undefined) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 38, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + if (!!true) { + assertDefined(x); +>assertDefined : Symbol(assertDefined, Decl(assertionTypePredicates1.ts, 6, 83)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 38, 13)) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 38, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } +} + +function f03(x: string | undefined, assert: (value: unknown) => asserts value) { +>f03 : Symbol(f03, Decl(assertionTypePredicates1.ts, 51, 1)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 53, 13)) +>assert : Symbol(assert, Decl(assertionTypePredicates1.ts, 53, 35)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 53, 45)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 53, 45)) + + assert(x); +>assert : Symbol(assert, Decl(assertionTypePredicates1.ts, 53, 35)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 53, 13)) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 53, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +} + +namespace Debug { +>Debug : Symbol(Debug, Decl(assertionTypePredicates1.ts, 56, 1)) + + export declare function assert(value: unknown, message?: string): asserts value; +>assert : Symbol(assert, Decl(assertionTypePredicates1.ts, 58, 17)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 59, 35)) +>message : Symbol(message, Decl(assertionTypePredicates1.ts, 59, 50)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 59, 35)) + + export declare function assertDefined(value: T): asserts value is NonNullable; +>assertDefined : Symbol(assertDefined, Decl(assertionTypePredicates1.ts, 59, 84)) +>T : Symbol(T, Decl(assertionTypePredicates1.ts, 60, 42)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 60, 45)) +>T : Symbol(T, Decl(assertionTypePredicates1.ts, 60, 42)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 60, 45)) +>NonNullable : Symbol(NonNullable, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(assertionTypePredicates1.ts, 60, 42)) +} + +function f10(x: string | undefined) { +>f10 : Symbol(f10, Decl(assertionTypePredicates1.ts, 61, 1)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 63, 13)) + + if (!!true) { + Debug.assert(x); +>Debug.assert : Symbol(Debug.assert, Decl(assertionTypePredicates1.ts, 58, 17)) +>Debug : Symbol(Debug, Decl(assertionTypePredicates1.ts, 56, 1)) +>assert : Symbol(Debug.assert, Decl(assertionTypePredicates1.ts, 58, 17)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 63, 13)) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 63, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + if (!!true) { + Debug.assert(x !== undefined); +>Debug.assert : Symbol(Debug.assert, Decl(assertionTypePredicates1.ts, 58, 17)) +>Debug : Symbol(Debug, Decl(assertionTypePredicates1.ts, 56, 1)) +>assert : Symbol(Debug.assert, Decl(assertionTypePredicates1.ts, 58, 17)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 63, 13)) +>undefined : Symbol(undefined) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 63, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + if (!!true) { + Debug.assertDefined(x); +>Debug.assertDefined : Symbol(Debug.assertDefined, Decl(assertionTypePredicates1.ts, 59, 84)) +>Debug : Symbol(Debug, Decl(assertionTypePredicates1.ts, 56, 1)) +>assertDefined : Symbol(Debug.assertDefined, Decl(assertionTypePredicates1.ts, 59, 84)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 63, 13)) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 63, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } +} + +class Test { +>Test : Symbol(Test, Decl(assertionTypePredicates1.ts, 76, 1)) + + assert(value: unknown): asserts value { +>assert : Symbol(Test.assert, Decl(assertionTypePredicates1.ts, 78, 12)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 79, 11)) +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 79, 11)) + + if (value) return; +>value : Symbol(value, Decl(assertionTypePredicates1.ts, 79, 11)) + + throw new Error(); +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + } + isTest2(): this is Test2 { +>isTest2 : Symbol(Test.isTest2, Decl(assertionTypePredicates1.ts, 82, 5)) +>Test2 : Symbol(Test2, Decl(assertionTypePredicates1.ts, 107, 1)) + + return this instanceof Test2; +>this : Symbol(Test, Decl(assertionTypePredicates1.ts, 76, 1)) +>Test2 : Symbol(Test2, Decl(assertionTypePredicates1.ts, 107, 1)) + } + assertIsTest2(): asserts this is Test2 { +>assertIsTest2 : Symbol(Test.assertIsTest2, Decl(assertionTypePredicates1.ts, 85, 5)) +>Test2 : Symbol(Test2, Decl(assertionTypePredicates1.ts, 107, 1)) + + if (this instanceof Test2) return; +>this : Symbol(Test, Decl(assertionTypePredicates1.ts, 76, 1)) +>Test2 : Symbol(Test2, Decl(assertionTypePredicates1.ts, 107, 1)) + + throw new Error(); +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + } + assertThis(): asserts this { +>assertThis : Symbol(Test.assertThis, Decl(assertionTypePredicates1.ts, 89, 5)) + + if (!this) return; +>this : Symbol(Test, Decl(assertionTypePredicates1.ts, 76, 1)) + + throw new Error(); +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + } + bar() { +>bar : Symbol(Test.bar, Decl(assertionTypePredicates1.ts, 93, 5)) + + this.assertThis(); +>this.assertThis : Symbol(Test.assertThis, Decl(assertionTypePredicates1.ts, 89, 5)) +>this : Symbol(Test, Decl(assertionTypePredicates1.ts, 76, 1)) +>assertThis : Symbol(Test.assertThis, Decl(assertionTypePredicates1.ts, 89, 5)) + + this; +>this : Symbol(Test, Decl(assertionTypePredicates1.ts, 76, 1)) + } + foo(x: unknown) { +>foo : Symbol(Test.foo, Decl(assertionTypePredicates1.ts, 97, 5)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 98, 8)) + + this.assert(typeof x === "string"); +>this.assert : Symbol(Test.assert, Decl(assertionTypePredicates1.ts, 78, 12)) +>this : Symbol(Test, Decl(assertionTypePredicates1.ts, 76, 1)) +>assert : Symbol(Test.assert, Decl(assertionTypePredicates1.ts, 78, 12)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 98, 8)) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 98, 8)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + + if (this.isTest2()) { +>this.isTest2 : Symbol(Test.isTest2, Decl(assertionTypePredicates1.ts, 82, 5)) +>this : Symbol(Test, Decl(assertionTypePredicates1.ts, 76, 1)) +>isTest2 : Symbol(Test.isTest2, Decl(assertionTypePredicates1.ts, 82, 5)) + + this.z; +>this.z : Symbol(Test2.z, Decl(assertionTypePredicates1.ts, 109, 26)) +>z : Symbol(Test2.z, Decl(assertionTypePredicates1.ts, 109, 26)) + } + this.assertIsTest2(); +>this.assertIsTest2 : Symbol(Test.assertIsTest2, Decl(assertionTypePredicates1.ts, 85, 5)) +>this : Symbol(Test, Decl(assertionTypePredicates1.ts, 76, 1)) +>assertIsTest2 : Symbol(Test.assertIsTest2, Decl(assertionTypePredicates1.ts, 85, 5)) + + this.z; +>this.z : Symbol(Test2.z, Decl(assertionTypePredicates1.ts, 109, 26)) +>z : Symbol(Test2.z, Decl(assertionTypePredicates1.ts, 109, 26)) + } +} + +class Test2 extends Test { +>Test2 : Symbol(Test2, Decl(assertionTypePredicates1.ts, 107, 1)) +>Test : Symbol(Test, Decl(assertionTypePredicates1.ts, 76, 1)) + + z = 0; +>z : Symbol(Test2.z, Decl(assertionTypePredicates1.ts, 109, 26)) +} + +// Invalid constructs + +declare let Q1: new (x: unknown) => x is string; +>Q1 : Symbol(Q1, Decl(assertionTypePredicates1.ts, 115, 11)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 115, 21)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 115, 21)) + +declare let Q2: new (x: boolean) => asserts x; +>Q2 : Symbol(Q2, Decl(assertionTypePredicates1.ts, 116, 11)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 116, 21)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 116, 21)) + +declare let Q3: new (x: unknown) => asserts x is string; +>Q3 : Symbol(Q3, Decl(assertionTypePredicates1.ts, 117, 11)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 117, 21)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 117, 21)) + +declare class Wat { +>Wat : Symbol(Wat, Decl(assertionTypePredicates1.ts, 117, 56)) + + get p1(): this is string; +>p1 : Symbol(Wat.p1, Decl(assertionTypePredicates1.ts, 119, 19), Decl(assertionTypePredicates1.ts, 120, 29)) + + set p1(x: this is string); +>p1 : Symbol(Wat.p1, Decl(assertionTypePredicates1.ts, 119, 19), Decl(assertionTypePredicates1.ts, 120, 29)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 121, 11)) + + get p2(): asserts this is string; +>p2 : Symbol(Wat.p2, Decl(assertionTypePredicates1.ts, 121, 30), Decl(assertionTypePredicates1.ts, 122, 37)) + + set p2(x: asserts this is string); +>p2 : Symbol(Wat.p2, Decl(assertionTypePredicates1.ts, 121, 30), Decl(assertionTypePredicates1.ts, 122, 37)) +>x : Symbol(x, Decl(assertionTypePredicates1.ts, 123, 11)) +} + diff --git a/tests/baselines/reference/assertionTypePredicates1.types b/tests/baselines/reference/assertionTypePredicates1.types new file mode 100644 index 00000000000..f72ec641013 --- /dev/null +++ b/tests/baselines/reference/assertionTypePredicates1.types @@ -0,0 +1,438 @@ +=== tests/cases/conformance/controlFlow/assertionTypePredicates1.ts === +declare function isString(value: unknown): value is string; +>isString : (value: unknown) => value is string +>value : unknown + +declare function isArrayOfStrings(value: unknown): value is string[]; +>isArrayOfStrings : (value: unknown) => value is string[] +>value : unknown + +const assert: (value: unknown) => asserts value = value => {} +>assert : (value: unknown) => asserts value +>value : unknown +>value => {} : (value: unknown) => void +>value : unknown + +declare function assertIsString(value: unknown): asserts value is string; +>assertIsString : (value: unknown) => asserts value is string +>value : unknown + +declare function assertIsArrayOfStrings(value: unknown): asserts value is string[]; +>assertIsArrayOfStrings : (value: unknown) => asserts value is string[] +>value : unknown + +declare function assertDefined(value: T): asserts value is NonNullable; +>assertDefined : (value: T) => asserts value is NonNullable +>value : T + +function f01(x: unknown) { +>f01 : (x: unknown) => void +>x : unknown + + if (!!true) { +>!!true : true +>!true : false +>true : true + + assert(typeof x === "string"); +>assert(typeof x === "string") : void +>assert : (value: unknown) => asserts value +>typeof x === "string" : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : unknown +>"string" : "string" + + x.length; +>x.length : number +>x : string +>length : number + } + if (!!true) { +>!!true : true +>!true : false +>true : true + + assert(x instanceof Error); +>assert(x instanceof Error) : void +>assert : (value: unknown) => asserts value +>x instanceof Error : boolean +>x : unknown +>Error : ErrorConstructor + + x.message; +>x.message : string +>x : Error +>message : string + } + if (!!true) { +>!!true : true +>!true : false +>true : true + + assert(typeof x === "boolean" || typeof x === "number"); +>assert(typeof x === "boolean" || typeof x === "number") : void +>assert : (value: unknown) => asserts value +>typeof x === "boolean" || typeof x === "number" : boolean +>typeof x === "boolean" : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : unknown +>"boolean" : "boolean" +>typeof x === "number" : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : unknown +>"number" : "number" + + x.toLocaleString; +>x.toLocaleString : ((locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined) => string) | (() => string) +>x : number | boolean +>toLocaleString : ((locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined) => string) | (() => string) + } + if (!!true) { +>!!true : true +>!true : false +>true : true + + assert(isArrayOfStrings(x)); +>assert(isArrayOfStrings(x)) : void +>assert : (value: unknown) => asserts value +>isArrayOfStrings(x) : boolean +>isArrayOfStrings : (value: unknown) => value is string[] +>x : unknown + + x[0].length; +>x[0].length : number +>x[0] : string +>x : string[] +>0 : 0 +>length : number + } + if (!!true) { +>!!true : true +>!true : false +>true : true + + assertIsArrayOfStrings(x); +>assertIsArrayOfStrings(x) : void +>assertIsArrayOfStrings : (value: unknown) => asserts value is string[] +>x : unknown + + x[0].length; +>x[0].length : number +>x[0] : string +>x : string[] +>0 : 0 +>length : number + } + if (!!true) { +>!!true : true +>!true : false +>true : true + + assert(x === undefined || typeof x === "string"); +>assert(x === undefined || typeof x === "string") : void +>assert : (value: unknown) => asserts value +>x === undefined || typeof x === "string" : boolean +>x === undefined : boolean +>x : unknown +>undefined : undefined +>typeof x === "string" : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : unknown +>"string" : "string" + + x; // string | undefined +>x : string | undefined + + assertDefined(x); +>assertDefined(x) : void +>assertDefined : (value: T) => asserts value is NonNullable +>x : string | undefined + + x; // string +>x : string + } +} + +function f02(x: string | undefined) { +>f02 : (x: string | undefined) => void +>x : string | undefined + + if (!!true) { +>!!true : true +>!true : false +>true : true + + assert(x); +>assert(x) : void +>assert : (value: unknown) => asserts value +>x : string | undefined + + x.length; +>x.length : number +>x : string +>length : number + } + if (!!true) { +>!!true : true +>!true : false +>true : true + + assert(x !== undefined); +>assert(x !== undefined) : void +>assert : (value: unknown) => asserts value +>x !== undefined : boolean +>x : string | undefined +>undefined : undefined + + x.length; +>x.length : number +>x : string +>length : number + } + if (!!true) { +>!!true : true +>!true : false +>true : true + + assertDefined(x); +>assertDefined(x) : void +>assertDefined : (value: T) => asserts value is NonNullable +>x : string | undefined + + x.length; +>x.length : number +>x : string +>length : number + } +} + +function f03(x: string | undefined, assert: (value: unknown) => asserts value) { +>f03 : (x: string | undefined, assert: (value: unknown) => asserts value) => void +>x : string | undefined +>assert : (value: unknown) => asserts value +>value : unknown + + assert(x); +>assert(x) : void +>assert : (value: unknown) => asserts value +>x : string | undefined + + x.length; +>x.length : number +>x : string +>length : number +} + +namespace Debug { +>Debug : typeof Debug + + export declare function assert(value: unknown, message?: string): asserts value; +>assert : (value: unknown, message?: string | undefined) => asserts value +>value : unknown +>message : string | undefined + + export declare function assertDefined(value: T): asserts value is NonNullable; +>assertDefined : (value: T) => asserts value is NonNullable +>value : T +} + +function f10(x: string | undefined) { +>f10 : (x: string | undefined) => void +>x : string | undefined + + if (!!true) { +>!!true : true +>!true : false +>true : true + + Debug.assert(x); +>Debug.assert(x) : void +>Debug.assert : (value: unknown, message?: string | undefined) => asserts value +>Debug : typeof Debug +>assert : (value: unknown, message?: string | undefined) => asserts value +>x : string | undefined + + x.length; +>x.length : number +>x : string +>length : number + } + if (!!true) { +>!!true : true +>!true : false +>true : true + + Debug.assert(x !== undefined); +>Debug.assert(x !== undefined) : void +>Debug.assert : (value: unknown, message?: string | undefined) => asserts value +>Debug : typeof Debug +>assert : (value: unknown, message?: string | undefined) => asserts value +>x !== undefined : boolean +>x : string | undefined +>undefined : undefined + + x.length; +>x.length : number +>x : string +>length : number + } + if (!!true) { +>!!true : true +>!true : false +>true : true + + Debug.assertDefined(x); +>Debug.assertDefined(x) : void +>Debug.assertDefined : (value: T) => asserts value is NonNullable +>Debug : typeof Debug +>assertDefined : (value: T) => asserts value is NonNullable +>x : string | undefined + + x.length; +>x.length : number +>x : string +>length : number + } +} + +class Test { +>Test : Test + + assert(value: unknown): asserts value { +>assert : (value: unknown) => asserts value +>value : unknown + + if (value) return; +>value : unknown + + throw new Error(); +>new Error() : Error +>Error : ErrorConstructor + } + isTest2(): this is Test2 { +>isTest2 : () => this is Test2 + + return this instanceof Test2; +>this instanceof Test2 : boolean +>this : this +>Test2 : typeof Test2 + } + assertIsTest2(): asserts this is Test2 { +>assertIsTest2 : () => asserts this is Test2 + + if (this instanceof Test2) return; +>this instanceof Test2 : boolean +>this : this +>Test2 : typeof Test2 + + throw new Error(); +>new Error() : Error +>Error : ErrorConstructor + } + assertThis(): asserts this { +>assertThis : () => asserts this + + if (!this) return; +>!this : false +>this : this + + throw new Error(); +>new Error() : Error +>Error : ErrorConstructor + } + bar() { +>bar : () => void + + this.assertThis(); +>this.assertThis() : void +>this.assertThis : () => asserts this +>this : this +>assertThis : () => asserts this + + this; +>this : this + } + foo(x: unknown) { +>foo : (x: unknown) => void +>x : unknown + + this.assert(typeof x === "string"); +>this.assert(typeof x === "string") : void +>this.assert : (value: unknown) => asserts value +>this : this +>assert : (value: unknown) => asserts value +>typeof x === "string" : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : unknown +>"string" : "string" + + x.length; +>x.length : number +>x : string +>length : number + + if (this.isTest2()) { +>this.isTest2() : boolean +>this.isTest2 : () => this is Test2 +>this : this +>isTest2 : () => this is Test2 + + this.z; +>this.z : number +>this : this & Test2 +>z : number + } + this.assertIsTest2(); +>this.assertIsTest2() : void +>this.assertIsTest2 : () => asserts this is Test2 +>this : this +>assertIsTest2 : () => asserts this is Test2 + + this.z; +>this.z : number +>this : this & Test2 +>z : number + } +} + +class Test2 extends Test { +>Test2 : Test2 +>Test : Test + + z = 0; +>z : number +>0 : 0 +} + +// Invalid constructs + +declare let Q1: new (x: unknown) => x is string; +>Q1 : new (x: unknown) => x is string +>x : unknown + +declare let Q2: new (x: boolean) => asserts x; +>Q2 : new (x: boolean) => asserts x +>x : boolean + +declare let Q3: new (x: unknown) => asserts x is string; +>Q3 : new (x: unknown) => asserts x is string +>x : unknown + +declare class Wat { +>Wat : Wat + + get p1(): this is string; +>p1 : boolean + + set p1(x: this is string); +>p1 : boolean +>x : boolean + + get p2(): asserts this is string; +>p2 : void + + set p2(x: asserts this is string); +>p2 : void +>x : void +} + diff --git a/tests/baselines/reference/assertionsAndNonReturningFunctions.errors.txt b/tests/baselines/reference/assertionsAndNonReturningFunctions.errors.txt new file mode 100644 index 00000000000..e1648d7643d --- /dev/null +++ b/tests/baselines/reference/assertionsAndNonReturningFunctions.errors.txt @@ -0,0 +1,69 @@ +tests/cases/conformance/jsdoc/assertionsAndNonReturningFunctions.js(46,9): error TS7027: Unreachable code detected. +tests/cases/conformance/jsdoc/assertionsAndNonReturningFunctions.js(58,5): error TS7027: Unreachable code detected. + + +==== tests/cases/conformance/jsdoc/assertionsAndNonReturningFunctions.js (2 errors) ==== + /** @typedef {(check: boolean) => asserts check} AssertFunc */ + + /** @type {AssertFunc} */ + const assert = check => { + if (!check) throw new Error(); + } + + /** @type {(x: unknown) => asserts x is string } */ + function assertIsString(x) { + if (!(typeof x === "string")) throw new Error(); + } + + /** + * @param {boolean} check + * @returns {asserts check} + */ + function assert2(check) { + if (!check) throw new Error(); + } + + /** + * @returns {never} + */ + function fail() { + throw new Error(); + } + + /** + * @param {*} x + */ + function f1(x) { + if (!!true) { + assert(typeof x === "string"); + x.length; + } + if (!!true) { + assert2(typeof x === "string"); + x.length; + } + if (!!true) { + assertIsString(x); + x.length; + } + if (!!true) { + fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + } + + /** + * @param {boolean} b + */ + function f2(b) { + switch (b) { + case true: return 1; + case false: return 0; + } + b; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + \ No newline at end of file diff --git a/tests/baselines/reference/assertionsAndNonReturningFunctions.symbols b/tests/baselines/reference/assertionsAndNonReturningFunctions.symbols new file mode 100644 index 00000000000..88931cffbd8 --- /dev/null +++ b/tests/baselines/reference/assertionsAndNonReturningFunctions.symbols @@ -0,0 +1,109 @@ +=== tests/cases/conformance/jsdoc/assertionsAndNonReturningFunctions.js === +/** @typedef {(check: boolean) => asserts check} AssertFunc */ + +/** @type {AssertFunc} */ +const assert = check => { +>assert : Symbol(assert, Decl(assertionsAndNonReturningFunctions.js, 3, 5)) +>check : Symbol(check, Decl(assertionsAndNonReturningFunctions.js, 3, 14)) + + if (!check) throw new Error(); +>check : Symbol(check, Decl(assertionsAndNonReturningFunctions.js, 3, 14)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +} + +/** @type {(x: unknown) => asserts x is string } */ +function assertIsString(x) { +>assertIsString : Symbol(assertIsString, Decl(assertionsAndNonReturningFunctions.js, 5, 1)) +>x : Symbol(x, Decl(assertionsAndNonReturningFunctions.js, 8, 24)) + + if (!(typeof x === "string")) throw new Error(); +>x : Symbol(x, Decl(assertionsAndNonReturningFunctions.js, 8, 24)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +} + +/** + * @param {boolean} check + * @returns {asserts check} +*/ +function assert2(check) { +>assert2 : Symbol(assert2, Decl(assertionsAndNonReturningFunctions.js, 10, 1)) +>check : Symbol(check, Decl(assertionsAndNonReturningFunctions.js, 16, 17)) + + if (!check) throw new Error(); +>check : Symbol(check, Decl(assertionsAndNonReturningFunctions.js, 16, 17)) +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +} + +/** + * @returns {never} + */ +function fail() { +>fail : Symbol(fail, Decl(assertionsAndNonReturningFunctions.js, 18, 1)) + + throw new Error(); +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +} + +/** + * @param {*} x + */ +function f1(x) { +>f1 : Symbol(f1, Decl(assertionsAndNonReturningFunctions.js, 25, 1)) +>x : Symbol(x, Decl(assertionsAndNonReturningFunctions.js, 30, 12)) + + if (!!true) { + assert(typeof x === "string"); +>assert : Symbol(assert, Decl(assertionsAndNonReturningFunctions.js, 3, 5)) +>x : Symbol(x, Decl(assertionsAndNonReturningFunctions.js, 30, 12)) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionsAndNonReturningFunctions.js, 30, 12)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + if (!!true) { + assert2(typeof x === "string"); +>assert2 : Symbol(assert2, Decl(assertionsAndNonReturningFunctions.js, 10, 1)) +>x : Symbol(x, Decl(assertionsAndNonReturningFunctions.js, 30, 12)) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionsAndNonReturningFunctions.js, 30, 12)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + if (!!true) { + assertIsString(x); +>assertIsString : Symbol(assertIsString, Decl(assertionsAndNonReturningFunctions.js, 5, 1)) +>x : Symbol(x, Decl(assertionsAndNonReturningFunctions.js, 30, 12)) + + x.length; +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(assertionsAndNonReturningFunctions.js, 30, 12)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + if (!!true) { + fail(); +>fail : Symbol(fail, Decl(assertionsAndNonReturningFunctions.js, 18, 1)) + + x; // Unreachable +>x : Symbol(x, Decl(assertionsAndNonReturningFunctions.js, 30, 12)) + } +} + +/** + * @param {boolean} b + */ +function f2(b) { +>f2 : Symbol(f2, Decl(assertionsAndNonReturningFunctions.js, 47, 1)) +>b : Symbol(b, Decl(assertionsAndNonReturningFunctions.js, 52, 12)) + + switch (b) { +>b : Symbol(b, Decl(assertionsAndNonReturningFunctions.js, 52, 12)) + + case true: return 1; + case false: return 0; + } + b; // Unreachable +>b : Symbol(b, Decl(assertionsAndNonReturningFunctions.js, 52, 12)) +} + diff --git a/tests/baselines/reference/assertionsAndNonReturningFunctions.types b/tests/baselines/reference/assertionsAndNonReturningFunctions.types new file mode 100644 index 00000000000..32100b6c3d2 --- /dev/null +++ b/tests/baselines/reference/assertionsAndNonReturningFunctions.types @@ -0,0 +1,152 @@ +=== tests/cases/conformance/jsdoc/assertionsAndNonReturningFunctions.js === +/** @typedef {(check: boolean) => asserts check} AssertFunc */ + +/** @type {AssertFunc} */ +const assert = check => { +>assert : (check: boolean) => asserts check +>check => { if (!check) throw new Error();} : (check: boolean) => asserts check +>check : boolean + + if (!check) throw new Error(); +>!check : boolean +>check : boolean +>new Error() : Error +>Error : ErrorConstructor +} + +/** @type {(x: unknown) => asserts x is string } */ +function assertIsString(x) { +>assertIsString : (x: unknown) => asserts x is string +>x : unknown + + if (!(typeof x === "string")) throw new Error(); +>!(typeof x === "string") : boolean +>(typeof x === "string") : boolean +>typeof x === "string" : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : unknown +>"string" : "string" +>new Error() : Error +>Error : ErrorConstructor +} + +/** + * @param {boolean} check + * @returns {asserts check} +*/ +function assert2(check) { +>assert2 : (check: boolean) => asserts check +>check : boolean + + if (!check) throw new Error(); +>!check : boolean +>check : boolean +>new Error() : Error +>Error : ErrorConstructor +} + +/** + * @returns {never} + */ +function fail() { +>fail : () => never + + throw new Error(); +>new Error() : Error +>Error : ErrorConstructor +} + +/** + * @param {*} x + */ +function f1(x) { +>f1 : (x: any) => void +>x : any + + if (!!true) { +>!!true : boolean +>!true : boolean +>true : true + + assert(typeof x === "string"); +>assert(typeof x === "string") : void +>assert : (check: boolean) => asserts check +>typeof x === "string" : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : any +>"string" : "string" + + x.length; +>x.length : number +>x : string +>length : number + } + if (!!true) { +>!!true : boolean +>!true : boolean +>true : true + + assert2(typeof x === "string"); +>assert2(typeof x === "string") : void +>assert2 : (check: boolean) => asserts check +>typeof x === "string" : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : any +>"string" : "string" + + x.length; +>x.length : number +>x : string +>length : number + } + if (!!true) { +>!!true : boolean +>!true : boolean +>true : true + + assertIsString(x); +>assertIsString(x) : void +>assertIsString : (x: unknown) => asserts x is string +>x : any + + x.length; +>x.length : number +>x : string +>length : number + } + if (!!true) { +>!!true : boolean +>!true : boolean +>true : true + + fail(); +>fail() : never +>fail : () => never + + x; // Unreachable +>x : any + } +} + +/** + * @param {boolean} b + */ +function f2(b) { +>f2 : (b: boolean) => 1 | 0 +>b : boolean + + switch (b) { +>b : boolean + + case true: return 1; +>true : true +>1 : 1 + + case false: return 0; +>false : false +>0 : 0 + } + b; // Unreachable +>b : never +} + diff --git a/tests/baselines/reference/exhaustiveSwitchImplicitReturn.errors.txt b/tests/baselines/reference/exhaustiveSwitchImplicitReturn.errors.txt index 43b5467f0d2..89daa42c268 100644 --- a/tests/baselines/reference/exhaustiveSwitchImplicitReturn.errors.txt +++ b/tests/baselines/reference/exhaustiveSwitchImplicitReturn.errors.txt @@ -44,4 +44,18 @@ tests/cases/compiler/exhaustiveSwitchImplicitReturn.ts(35,32): error TS7030: Not return 1; } } + + function foo6(bar: "a", a: boolean, b: boolean): number { + if (a) { + switch (bar) { + case "a": return 1; + } + } + else { + switch (b) { + case true: return -1; + case false: return 0; + } + } + } \ No newline at end of file diff --git a/tests/baselines/reference/exhaustiveSwitchImplicitReturn.js b/tests/baselines/reference/exhaustiveSwitchImplicitReturn.js index 5f8bf348c5f..9877f251993 100644 --- a/tests/baselines/reference/exhaustiveSwitchImplicitReturn.js +++ b/tests/baselines/reference/exhaustiveSwitchImplicitReturn.js @@ -39,6 +39,20 @@ function foo5(bar: "a" | "b"): number { return 1; } } + +function foo6(bar: "a", a: boolean, b: boolean): number { + if (a) { + switch (bar) { + case "a": return 1; + } + } + else { + switch (b) { + case true: return -1; + case false: return 0; + } + } +} //// [exhaustiveSwitchImplicitReturn.js] @@ -75,3 +89,16 @@ function foo5(bar) { return 1; } } +function foo6(bar, a, b) { + if (a) { + switch (bar) { + case "a": return 1; + } + } + else { + switch (b) { + case true: return -1; + case false: return 0; + } + } +} diff --git a/tests/baselines/reference/exhaustiveSwitchImplicitReturn.symbols b/tests/baselines/reference/exhaustiveSwitchImplicitReturn.symbols index d93a5228362..dcad190a9b3 100644 --- a/tests/baselines/reference/exhaustiveSwitchImplicitReturn.symbols +++ b/tests/baselines/reference/exhaustiveSwitchImplicitReturn.symbols @@ -69,3 +69,28 @@ function foo5(bar: "a" | "b"): number { } } +function foo6(bar: "a", a: boolean, b: boolean): number { +>foo6 : Symbol(foo6, Decl(exhaustiveSwitchImplicitReturn.ts, 39, 1)) +>bar : Symbol(bar, Decl(exhaustiveSwitchImplicitReturn.ts, 41, 14)) +>a : Symbol(a, Decl(exhaustiveSwitchImplicitReturn.ts, 41, 23)) +>b : Symbol(b, Decl(exhaustiveSwitchImplicitReturn.ts, 41, 35)) + + if (a) { +>a : Symbol(a, Decl(exhaustiveSwitchImplicitReturn.ts, 41, 23)) + + switch (bar) { +>bar : Symbol(bar, Decl(exhaustiveSwitchImplicitReturn.ts, 41, 14)) + + case "a": return 1; + } + } + else { + switch (b) { +>b : Symbol(b, Decl(exhaustiveSwitchImplicitReturn.ts, 41, 35)) + + case true: return -1; + case false: return 0; + } + } +} + diff --git a/tests/baselines/reference/exhaustiveSwitchImplicitReturn.types b/tests/baselines/reference/exhaustiveSwitchImplicitReturn.types index c868aa99b8f..c72b3b24477 100644 --- a/tests/baselines/reference/exhaustiveSwitchImplicitReturn.types +++ b/tests/baselines/reference/exhaustiveSwitchImplicitReturn.types @@ -85,3 +85,36 @@ function foo5(bar: "a" | "b"): number { } } +function foo6(bar: "a", a: boolean, b: boolean): number { +>foo6 : (bar: "a", a: boolean, b: boolean) => number +>bar : "a" +>a : boolean +>b : boolean + + if (a) { +>a : boolean + + switch (bar) { +>bar : "a" + + case "a": return 1; +>"a" : "a" +>1 : 1 + } + } + else { + switch (b) { +>b : boolean + + case true: return -1; +>true : true +>-1 : -1 +>1 : 1 + + case false: return 0; +>false : false +>0 : 0 + } + } +} + diff --git a/tests/baselines/reference/exhaustiveSwitchStatements1.errors.txt b/tests/baselines/reference/exhaustiveSwitchStatements1.errors.txt new file mode 100644 index 00000000000..4a54518413d --- /dev/null +++ b/tests/baselines/reference/exhaustiveSwitchStatements1.errors.txt @@ -0,0 +1,202 @@ +tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts(7,9): error TS7027: Unreachable code detected. + + +==== tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts (1 errors) ==== + function f1(x: 1 | 2): string { + if (!!true) { + switch (x) { + case 1: return 'a'; + case 2: return 'b'; + } + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + else { + throw 0; + } + } + + function f2(x: 1 | 2) { + let z: number; + switch (x) { + case 1: z = 10; break; + case 2: z = 20; break; + } + z; // Definitely assigned + } + + function f3(x: 1 | 2) { + switch (x) { + case 1: return 10; + case 2: return 20; + // Default considered reachable to allow defensive coding + default: throw new Error("Bad input"); + } + } + + // Repro from #11572 + + enum E { A, B } + + function f(e: E): number { + switch (e) { + case E.A: return 0 + case E.B: return 1 + } + } + + function g(e: E): number { + if (!true) + return -1 + else + switch (e) { + case E.A: return 0 + case E.B: return 1 + } + } + + // Repro from #12668 + + interface Square { kind: "square"; size: number; } + + interface Rectangle { kind: "rectangle"; width: number; height: number; } + + interface Circle { kind: "circle"; radius: number; } + + interface Triangle { kind: "triangle"; side: number; } + + type Shape = Square | Rectangle | Circle | Triangle; + + function area(s: Shape): number { + let area; + switch (s.kind) { + case "square": area = s.size * s.size; break; + case "rectangle": area = s.width * s.height; break; + case "circle": area = Math.PI * s.radius * s.radius; break; + case "triangle": area = Math.sqrt(3) / 4 * s.side * s.side; break; + } + return area; + } + + function areaWrapped(s: Shape): number { + let area; + area = (() => { + switch (s.kind) { + case "square": return s.size * s.size; + case "rectangle": return s.width * s.height; + case "circle": return Math.PI * s.radius * s.radius; + case "triangle": return Math.sqrt(3) / 4 * s.side * s.side; + } + })(); + return area; + } + + // Repro from #13241 + + enum MyEnum { + A, + B + } + + function thisGivesError(e: MyEnum): string { + let s: string; + switch (e) { + case MyEnum.A: s = "it was A"; break; + case MyEnum.B: s = "it was B"; break; + } + return s; + } + + function good1(e: MyEnum): string { + let s: string; + switch (e) { + case MyEnum.A: s = "it was A"; break; + case MyEnum.B: s = "it was B"; break; + default: s = "it was something else"; break; + } + return s; + } + + function good2(e: MyEnum): string { + switch (e) { + case MyEnum.A: return "it was A"; + case MyEnum.B: return "it was B"; + } + } + + // Repro from #18362 + + enum Level { + One, + Two, + } + + const doSomethingWithLevel = (level: Level) => { + let next: Level; + switch (level) { + case Level.One: + next = Level.Two; + break; + case Level.Two: + next = Level.One; + break; + } + return next; + }; + + // Repro from #20409 + + interface Square2 { + kind: "square"; + size: number; + } + + interface Circle2 { + kind: "circle"; + radius: number; + } + + type Shape2 = Square2 | Circle2; + + function withDefault(s1: Shape2, s2: Shape2): string { + switch (s1.kind) { + case "square": + return "1"; + case "circle": + switch (s2.kind) { + case "square": + return "2"; + case "circle": + return "3"; + default: + return "never"; + } + } + } + + function withoutDefault(s1: Shape2, s2: Shape2): string { + switch (s1.kind) { + case "square": + return "1"; + case "circle": + switch (s2.kind) { + case "square": + return "2"; + case "circle": + return "3"; + } + } + } + + // Repro from #20823 + + function test4(value: 1 | 2) { + let x: string; + switch (value) { + case 1: x = "one"; break; + case 2: x = "two"; break; + } + return x; + } + \ No newline at end of file diff --git a/tests/baselines/reference/exhaustiveSwitchStatements1.js b/tests/baselines/reference/exhaustiveSwitchStatements1.js new file mode 100644 index 00000000000..a39db3b8101 --- /dev/null +++ b/tests/baselines/reference/exhaustiveSwitchStatements1.js @@ -0,0 +1,437 @@ +//// [exhaustiveSwitchStatements1.ts] +function f1(x: 1 | 2): string { + if (!!true) { + switch (x) { + case 1: return 'a'; + case 2: return 'b'; + } + x; // Unreachable + } + else { + throw 0; + } +} + +function f2(x: 1 | 2) { + let z: number; + switch (x) { + case 1: z = 10; break; + case 2: z = 20; break; + } + z; // Definitely assigned +} + +function f3(x: 1 | 2) { + switch (x) { + case 1: return 10; + case 2: return 20; + // Default considered reachable to allow defensive coding + default: throw new Error("Bad input"); + } +} + +// Repro from #11572 + +enum E { A, B } + +function f(e: E): number { + switch (e) { + case E.A: return 0 + case E.B: return 1 + } +} + +function g(e: E): number { + if (!true) + return -1 + else + switch (e) { + case E.A: return 0 + case E.B: return 1 + } +} + +// Repro from #12668 + +interface Square { kind: "square"; size: number; } + +interface Rectangle { kind: "rectangle"; width: number; height: number; } + +interface Circle { kind: "circle"; radius: number; } + +interface Triangle { kind: "triangle"; side: number; } + +type Shape = Square | Rectangle | Circle | Triangle; + +function area(s: Shape): number { + let area; + switch (s.kind) { + case "square": area = s.size * s.size; break; + case "rectangle": area = s.width * s.height; break; + case "circle": area = Math.PI * s.radius * s.radius; break; + case "triangle": area = Math.sqrt(3) / 4 * s.side * s.side; break; + } + return area; +} + +function areaWrapped(s: Shape): number { + let area; + area = (() => { + switch (s.kind) { + case "square": return s.size * s.size; + case "rectangle": return s.width * s.height; + case "circle": return Math.PI * s.radius * s.radius; + case "triangle": return Math.sqrt(3) / 4 * s.side * s.side; + } + })(); + return area; +} + +// Repro from #13241 + +enum MyEnum { + A, + B +} + +function thisGivesError(e: MyEnum): string { + let s: string; + switch (e) { + case MyEnum.A: s = "it was A"; break; + case MyEnum.B: s = "it was B"; break; + } + return s; +} + +function good1(e: MyEnum): string { + let s: string; + switch (e) { + case MyEnum.A: s = "it was A"; break; + case MyEnum.B: s = "it was B"; break; + default: s = "it was something else"; break; + } + return s; +} + +function good2(e: MyEnum): string { + switch (e) { + case MyEnum.A: return "it was A"; + case MyEnum.B: return "it was B"; + } +} + +// Repro from #18362 + +enum Level { + One, + Two, +} + +const doSomethingWithLevel = (level: Level) => { + let next: Level; + switch (level) { + case Level.One: + next = Level.Two; + break; + case Level.Two: + next = Level.One; + break; + } + return next; +}; + +// Repro from #20409 + +interface Square2 { + kind: "square"; + size: number; +} + +interface Circle2 { + kind: "circle"; + radius: number; +} + +type Shape2 = Square2 | Circle2; + +function withDefault(s1: Shape2, s2: Shape2): string { + switch (s1.kind) { + case "square": + return "1"; + case "circle": + switch (s2.kind) { + case "square": + return "2"; + case "circle": + return "3"; + default: + return "never"; + } + } +} + +function withoutDefault(s1: Shape2, s2: Shape2): string { + switch (s1.kind) { + case "square": + return "1"; + case "circle": + switch (s2.kind) { + case "square": + return "2"; + case "circle": + return "3"; + } + } +} + +// Repro from #20823 + +function test4(value: 1 | 2) { + let x: string; + switch (value) { + case 1: x = "one"; break; + case 2: x = "two"; break; + } + return x; +} + + +//// [exhaustiveSwitchStatements1.js] +"use strict"; +function f1(x) { + if (!!true) { + switch (x) { + case 1: return 'a'; + case 2: return 'b'; + } + x; // Unreachable + } + else { + throw 0; + } +} +function f2(x) { + var z; + switch (x) { + case 1: + z = 10; + break; + case 2: + z = 20; + break; + } + z; // Definitely assigned +} +function f3(x) { + switch (x) { + case 1: return 10; + case 2: return 20; + // Default considered reachable to allow defensive coding + default: throw new Error("Bad input"); + } +} +// Repro from #11572 +var E; +(function (E) { + E[E["A"] = 0] = "A"; + E[E["B"] = 1] = "B"; +})(E || (E = {})); +function f(e) { + switch (e) { + case E.A: return 0; + case E.B: return 1; + } +} +function g(e) { + if (!true) + return -1; + else + switch (e) { + case E.A: return 0; + case E.B: return 1; + } +} +function area(s) { + var area; + switch (s.kind) { + case "square": + area = s.size * s.size; + break; + case "rectangle": + area = s.width * s.height; + break; + case "circle": + area = Math.PI * s.radius * s.radius; + break; + case "triangle": + area = Math.sqrt(3) / 4 * s.side * s.side; + break; + } + return area; +} +function areaWrapped(s) { + var area; + area = (function () { + switch (s.kind) { + case "square": return s.size * s.size; + case "rectangle": return s.width * s.height; + case "circle": return Math.PI * s.radius * s.radius; + case "triangle": return Math.sqrt(3) / 4 * s.side * s.side; + } + })(); + return area; +} +// Repro from #13241 +var MyEnum; +(function (MyEnum) { + MyEnum[MyEnum["A"] = 0] = "A"; + MyEnum[MyEnum["B"] = 1] = "B"; +})(MyEnum || (MyEnum = {})); +function thisGivesError(e) { + var s; + switch (e) { + case MyEnum.A: + s = "it was A"; + break; + case MyEnum.B: + s = "it was B"; + break; + } + return s; +} +function good1(e) { + var s; + switch (e) { + case MyEnum.A: + s = "it was A"; + break; + case MyEnum.B: + s = "it was B"; + break; + default: + s = "it was something else"; + break; + } + return s; +} +function good2(e) { + switch (e) { + case MyEnum.A: return "it was A"; + case MyEnum.B: return "it was B"; + } +} +// Repro from #18362 +var Level; +(function (Level) { + Level[Level["One"] = 0] = "One"; + Level[Level["Two"] = 1] = "Two"; +})(Level || (Level = {})); +var doSomethingWithLevel = function (level) { + var next; + switch (level) { + case Level.One: + next = Level.Two; + break; + case Level.Two: + next = Level.One; + break; + } + return next; +}; +function withDefault(s1, s2) { + switch (s1.kind) { + case "square": + return "1"; + case "circle": + switch (s2.kind) { + case "square": + return "2"; + case "circle": + return "3"; + default: + return "never"; + } + } +} +function withoutDefault(s1, s2) { + switch (s1.kind) { + case "square": + return "1"; + case "circle": + switch (s2.kind) { + case "square": + return "2"; + case "circle": + return "3"; + } + } +} +// Repro from #20823 +function test4(value) { + var x; + switch (value) { + case 1: + x = "one"; + break; + case 2: + x = "two"; + break; + } + return x; +} + + +//// [exhaustiveSwitchStatements1.d.ts] +declare function f1(x: 1 | 2): string; +declare function f2(x: 1 | 2): void; +declare function f3(x: 1 | 2): 10 | 20; +declare enum E { + A = 0, + B = 1 +} +declare function f(e: E): number; +declare function g(e: E): number; +interface Square { + kind: "square"; + size: number; +} +interface Rectangle { + kind: "rectangle"; + width: number; + height: number; +} +interface Circle { + kind: "circle"; + radius: number; +} +interface Triangle { + kind: "triangle"; + side: number; +} +declare type Shape = Square | Rectangle | Circle | Triangle; +declare function area(s: Shape): number; +declare function areaWrapped(s: Shape): number; +declare enum MyEnum { + A = 0, + B = 1 +} +declare function thisGivesError(e: MyEnum): string; +declare function good1(e: MyEnum): string; +declare function good2(e: MyEnum): string; +declare enum Level { + One = 0, + Two = 1 +} +declare const doSomethingWithLevel: (level: Level) => Level; +interface Square2 { + kind: "square"; + size: number; +} +interface Circle2 { + kind: "circle"; + radius: number; +} +declare type Shape2 = Square2 | Circle2; +declare function withDefault(s1: Shape2, s2: Shape2): string; +declare function withoutDefault(s1: Shape2, s2: Shape2): string; +declare function test4(value: 1 | 2): string; diff --git a/tests/baselines/reference/exhaustiveSwitchStatements1.symbols b/tests/baselines/reference/exhaustiveSwitchStatements1.symbols new file mode 100644 index 00000000000..8beb3911883 --- /dev/null +++ b/tests/baselines/reference/exhaustiveSwitchStatements1.symbols @@ -0,0 +1,503 @@ +=== tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts === +function f1(x: 1 | 2): string { +>f1 : Symbol(f1, Decl(exhaustiveSwitchStatements1.ts, 0, 0)) +>x : Symbol(x, Decl(exhaustiveSwitchStatements1.ts, 0, 12)) + + if (!!true) { + switch (x) { +>x : Symbol(x, Decl(exhaustiveSwitchStatements1.ts, 0, 12)) + + case 1: return 'a'; + case 2: return 'b'; + } + x; // Unreachable +>x : Symbol(x, Decl(exhaustiveSwitchStatements1.ts, 0, 12)) + } + else { + throw 0; + } +} + +function f2(x: 1 | 2) { +>f2 : Symbol(f2, Decl(exhaustiveSwitchStatements1.ts, 11, 1)) +>x : Symbol(x, Decl(exhaustiveSwitchStatements1.ts, 13, 12)) + + let z: number; +>z : Symbol(z, Decl(exhaustiveSwitchStatements1.ts, 14, 7)) + + switch (x) { +>x : Symbol(x, Decl(exhaustiveSwitchStatements1.ts, 13, 12)) + + case 1: z = 10; break; +>z : Symbol(z, Decl(exhaustiveSwitchStatements1.ts, 14, 7)) + + case 2: z = 20; break; +>z : Symbol(z, Decl(exhaustiveSwitchStatements1.ts, 14, 7)) + } + z; // Definitely assigned +>z : Symbol(z, Decl(exhaustiveSwitchStatements1.ts, 14, 7)) +} + +function f3(x: 1 | 2) { +>f3 : Symbol(f3, Decl(exhaustiveSwitchStatements1.ts, 20, 1)) +>x : Symbol(x, Decl(exhaustiveSwitchStatements1.ts, 22, 12)) + + switch (x) { +>x : Symbol(x, Decl(exhaustiveSwitchStatements1.ts, 22, 12)) + + case 1: return 10; + case 2: return 20; + // Default considered reachable to allow defensive coding + default: throw new Error("Bad input"); +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) + } +} + +// Repro from #11572 + +enum E { A, B } +>E : Symbol(E, Decl(exhaustiveSwitchStatements1.ts, 29, 1)) +>A : Symbol(E.A, Decl(exhaustiveSwitchStatements1.ts, 33, 8)) +>B : Symbol(E.B, Decl(exhaustiveSwitchStatements1.ts, 33, 11)) + +function f(e: E): number { +>f : Symbol(f, Decl(exhaustiveSwitchStatements1.ts, 33, 15)) +>e : Symbol(e, Decl(exhaustiveSwitchStatements1.ts, 35, 11)) +>E : Symbol(E, Decl(exhaustiveSwitchStatements1.ts, 29, 1)) + + switch (e) { +>e : Symbol(e, Decl(exhaustiveSwitchStatements1.ts, 35, 11)) + + case E.A: return 0 +>E.A : Symbol(E.A, Decl(exhaustiveSwitchStatements1.ts, 33, 8)) +>E : Symbol(E, Decl(exhaustiveSwitchStatements1.ts, 29, 1)) +>A : Symbol(E.A, Decl(exhaustiveSwitchStatements1.ts, 33, 8)) + + case E.B: return 1 +>E.B : Symbol(E.B, Decl(exhaustiveSwitchStatements1.ts, 33, 11)) +>E : Symbol(E, Decl(exhaustiveSwitchStatements1.ts, 29, 1)) +>B : Symbol(E.B, Decl(exhaustiveSwitchStatements1.ts, 33, 11)) + } +} + +function g(e: E): number { +>g : Symbol(g, Decl(exhaustiveSwitchStatements1.ts, 40, 1)) +>e : Symbol(e, Decl(exhaustiveSwitchStatements1.ts, 42, 11)) +>E : Symbol(E, Decl(exhaustiveSwitchStatements1.ts, 29, 1)) + + if (!true) + return -1 + else + switch (e) { +>e : Symbol(e, Decl(exhaustiveSwitchStatements1.ts, 42, 11)) + + case E.A: return 0 +>E.A : Symbol(E.A, Decl(exhaustiveSwitchStatements1.ts, 33, 8)) +>E : Symbol(E, Decl(exhaustiveSwitchStatements1.ts, 29, 1)) +>A : Symbol(E.A, Decl(exhaustiveSwitchStatements1.ts, 33, 8)) + + case E.B: return 1 +>E.B : Symbol(E.B, Decl(exhaustiveSwitchStatements1.ts, 33, 11)) +>E : Symbol(E, Decl(exhaustiveSwitchStatements1.ts, 29, 1)) +>B : Symbol(E.B, Decl(exhaustiveSwitchStatements1.ts, 33, 11)) + } +} + +// Repro from #12668 + +interface Square { kind: "square"; size: number; } +>Square : Symbol(Square, Decl(exhaustiveSwitchStatements1.ts, 50, 1)) +>kind : Symbol(Square.kind, Decl(exhaustiveSwitchStatements1.ts, 54, 18)) +>size : Symbol(Square.size, Decl(exhaustiveSwitchStatements1.ts, 54, 34)) + +interface Rectangle { kind: "rectangle"; width: number; height: number; } +>Rectangle : Symbol(Rectangle, Decl(exhaustiveSwitchStatements1.ts, 54, 50)) +>kind : Symbol(Rectangle.kind, Decl(exhaustiveSwitchStatements1.ts, 56, 21)) +>width : Symbol(Rectangle.width, Decl(exhaustiveSwitchStatements1.ts, 56, 40)) +>height : Symbol(Rectangle.height, Decl(exhaustiveSwitchStatements1.ts, 56, 55)) + +interface Circle { kind: "circle"; radius: number; } +>Circle : Symbol(Circle, Decl(exhaustiveSwitchStatements1.ts, 56, 73)) +>kind : Symbol(Circle.kind, Decl(exhaustiveSwitchStatements1.ts, 58, 18)) +>radius : Symbol(Circle.radius, Decl(exhaustiveSwitchStatements1.ts, 58, 34)) + +interface Triangle { kind: "triangle"; side: number; } +>Triangle : Symbol(Triangle, Decl(exhaustiveSwitchStatements1.ts, 58, 52)) +>kind : Symbol(Triangle.kind, Decl(exhaustiveSwitchStatements1.ts, 60, 20)) +>side : Symbol(Triangle.side, Decl(exhaustiveSwitchStatements1.ts, 60, 38)) + +type Shape = Square | Rectangle | Circle | Triangle; +>Shape : Symbol(Shape, Decl(exhaustiveSwitchStatements1.ts, 60, 54)) +>Square : Symbol(Square, Decl(exhaustiveSwitchStatements1.ts, 50, 1)) +>Rectangle : Symbol(Rectangle, Decl(exhaustiveSwitchStatements1.ts, 54, 50)) +>Circle : Symbol(Circle, Decl(exhaustiveSwitchStatements1.ts, 56, 73)) +>Triangle : Symbol(Triangle, Decl(exhaustiveSwitchStatements1.ts, 58, 52)) + +function area(s: Shape): number { +>area : Symbol(area, Decl(exhaustiveSwitchStatements1.ts, 62, 52)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 64, 14)) +>Shape : Symbol(Shape, Decl(exhaustiveSwitchStatements1.ts, 60, 54)) + + let area; +>area : Symbol(area, Decl(exhaustiveSwitchStatements1.ts, 65, 7)) + + switch (s.kind) { +>s.kind : Symbol(kind, Decl(exhaustiveSwitchStatements1.ts, 54, 18), Decl(exhaustiveSwitchStatements1.ts, 56, 21), Decl(exhaustiveSwitchStatements1.ts, 58, 18), Decl(exhaustiveSwitchStatements1.ts, 60, 20)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 64, 14)) +>kind : Symbol(kind, Decl(exhaustiveSwitchStatements1.ts, 54, 18), Decl(exhaustiveSwitchStatements1.ts, 56, 21), Decl(exhaustiveSwitchStatements1.ts, 58, 18), Decl(exhaustiveSwitchStatements1.ts, 60, 20)) + + case "square": area = s.size * s.size; break; +>area : Symbol(area, Decl(exhaustiveSwitchStatements1.ts, 65, 7)) +>s.size : Symbol(Square.size, Decl(exhaustiveSwitchStatements1.ts, 54, 34)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 64, 14)) +>size : Symbol(Square.size, Decl(exhaustiveSwitchStatements1.ts, 54, 34)) +>s.size : Symbol(Square.size, Decl(exhaustiveSwitchStatements1.ts, 54, 34)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 64, 14)) +>size : Symbol(Square.size, Decl(exhaustiveSwitchStatements1.ts, 54, 34)) + + case "rectangle": area = s.width * s.height; break; +>area : Symbol(area, Decl(exhaustiveSwitchStatements1.ts, 65, 7)) +>s.width : Symbol(Rectangle.width, Decl(exhaustiveSwitchStatements1.ts, 56, 40)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 64, 14)) +>width : Symbol(Rectangle.width, Decl(exhaustiveSwitchStatements1.ts, 56, 40)) +>s.height : Symbol(Rectangle.height, Decl(exhaustiveSwitchStatements1.ts, 56, 55)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 64, 14)) +>height : Symbol(Rectangle.height, Decl(exhaustiveSwitchStatements1.ts, 56, 55)) + + case "circle": area = Math.PI * s.radius * s.radius; break; +>area : Symbol(area, Decl(exhaustiveSwitchStatements1.ts, 65, 7)) +>Math.PI : Symbol(Math.PI, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>PI : Symbol(Math.PI, Decl(lib.es5.d.ts, --, --)) +>s.radius : Symbol(Circle.radius, Decl(exhaustiveSwitchStatements1.ts, 58, 34)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 64, 14)) +>radius : Symbol(Circle.radius, Decl(exhaustiveSwitchStatements1.ts, 58, 34)) +>s.radius : Symbol(Circle.radius, Decl(exhaustiveSwitchStatements1.ts, 58, 34)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 64, 14)) +>radius : Symbol(Circle.radius, Decl(exhaustiveSwitchStatements1.ts, 58, 34)) + + case "triangle": area = Math.sqrt(3) / 4 * s.side * s.side; break; +>area : Symbol(area, Decl(exhaustiveSwitchStatements1.ts, 65, 7)) +>Math.sqrt : Symbol(Math.sqrt, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>sqrt : Symbol(Math.sqrt, Decl(lib.es5.d.ts, --, --)) +>s.side : Symbol(Triangle.side, Decl(exhaustiveSwitchStatements1.ts, 60, 38)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 64, 14)) +>side : Symbol(Triangle.side, Decl(exhaustiveSwitchStatements1.ts, 60, 38)) +>s.side : Symbol(Triangle.side, Decl(exhaustiveSwitchStatements1.ts, 60, 38)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 64, 14)) +>side : Symbol(Triangle.side, Decl(exhaustiveSwitchStatements1.ts, 60, 38)) + } + return area; +>area : Symbol(area, Decl(exhaustiveSwitchStatements1.ts, 65, 7)) +} + +function areaWrapped(s: Shape): number { +>areaWrapped : Symbol(areaWrapped, Decl(exhaustiveSwitchStatements1.ts, 73, 1)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 75, 21)) +>Shape : Symbol(Shape, Decl(exhaustiveSwitchStatements1.ts, 60, 54)) + + let area; +>area : Symbol(area, Decl(exhaustiveSwitchStatements1.ts, 76, 7)) + + area = (() => { +>area : Symbol(area, Decl(exhaustiveSwitchStatements1.ts, 76, 7)) + + switch (s.kind) { +>s.kind : Symbol(kind, Decl(exhaustiveSwitchStatements1.ts, 54, 18), Decl(exhaustiveSwitchStatements1.ts, 56, 21), Decl(exhaustiveSwitchStatements1.ts, 58, 18), Decl(exhaustiveSwitchStatements1.ts, 60, 20)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 75, 21)) +>kind : Symbol(kind, Decl(exhaustiveSwitchStatements1.ts, 54, 18), Decl(exhaustiveSwitchStatements1.ts, 56, 21), Decl(exhaustiveSwitchStatements1.ts, 58, 18), Decl(exhaustiveSwitchStatements1.ts, 60, 20)) + + case "square": return s.size * s.size; +>s.size : Symbol(Square.size, Decl(exhaustiveSwitchStatements1.ts, 54, 34)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 75, 21)) +>size : Symbol(Square.size, Decl(exhaustiveSwitchStatements1.ts, 54, 34)) +>s.size : Symbol(Square.size, Decl(exhaustiveSwitchStatements1.ts, 54, 34)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 75, 21)) +>size : Symbol(Square.size, Decl(exhaustiveSwitchStatements1.ts, 54, 34)) + + case "rectangle": return s.width * s.height; +>s.width : Symbol(Rectangle.width, Decl(exhaustiveSwitchStatements1.ts, 56, 40)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 75, 21)) +>width : Symbol(Rectangle.width, Decl(exhaustiveSwitchStatements1.ts, 56, 40)) +>s.height : Symbol(Rectangle.height, Decl(exhaustiveSwitchStatements1.ts, 56, 55)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 75, 21)) +>height : Symbol(Rectangle.height, Decl(exhaustiveSwitchStatements1.ts, 56, 55)) + + case "circle": return Math.PI * s.radius * s.radius; +>Math.PI : Symbol(Math.PI, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>PI : Symbol(Math.PI, Decl(lib.es5.d.ts, --, --)) +>s.radius : Symbol(Circle.radius, Decl(exhaustiveSwitchStatements1.ts, 58, 34)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 75, 21)) +>radius : Symbol(Circle.radius, Decl(exhaustiveSwitchStatements1.ts, 58, 34)) +>s.radius : Symbol(Circle.radius, Decl(exhaustiveSwitchStatements1.ts, 58, 34)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 75, 21)) +>radius : Symbol(Circle.radius, Decl(exhaustiveSwitchStatements1.ts, 58, 34)) + + case "triangle": return Math.sqrt(3) / 4 * s.side * s.side; +>Math.sqrt : Symbol(Math.sqrt, Decl(lib.es5.d.ts, --, --)) +>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>sqrt : Symbol(Math.sqrt, Decl(lib.es5.d.ts, --, --)) +>s.side : Symbol(Triangle.side, Decl(exhaustiveSwitchStatements1.ts, 60, 38)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 75, 21)) +>side : Symbol(Triangle.side, Decl(exhaustiveSwitchStatements1.ts, 60, 38)) +>s.side : Symbol(Triangle.side, Decl(exhaustiveSwitchStatements1.ts, 60, 38)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 75, 21)) +>side : Symbol(Triangle.side, Decl(exhaustiveSwitchStatements1.ts, 60, 38)) + } + })(); + return area; +>area : Symbol(area, Decl(exhaustiveSwitchStatements1.ts, 76, 7)) +} + +// Repro from #13241 + +enum MyEnum { +>MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1)) + + A, +>A : Symbol(MyEnum.A, Decl(exhaustiveSwitchStatements1.ts, 90, 13)) + + B +>B : Symbol(MyEnum.B, Decl(exhaustiveSwitchStatements1.ts, 91, 3)) +} + +function thisGivesError(e: MyEnum): string { +>thisGivesError : Symbol(thisGivesError, Decl(exhaustiveSwitchStatements1.ts, 93, 1)) +>e : Symbol(e, Decl(exhaustiveSwitchStatements1.ts, 95, 24)) +>MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1)) + + let s: string; +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 96, 4)) + + switch (e) { +>e : Symbol(e, Decl(exhaustiveSwitchStatements1.ts, 95, 24)) + + case MyEnum.A: s = "it was A"; break; +>MyEnum.A : Symbol(MyEnum.A, Decl(exhaustiveSwitchStatements1.ts, 90, 13)) +>MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1)) +>A : Symbol(MyEnum.A, Decl(exhaustiveSwitchStatements1.ts, 90, 13)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 96, 4)) + + case MyEnum.B: s = "it was B"; break; +>MyEnum.B : Symbol(MyEnum.B, Decl(exhaustiveSwitchStatements1.ts, 91, 3)) +>MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1)) +>B : Symbol(MyEnum.B, Decl(exhaustiveSwitchStatements1.ts, 91, 3)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 96, 4)) + } + return s; +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 96, 4)) +} + +function good1(e: MyEnum): string { +>good1 : Symbol(good1, Decl(exhaustiveSwitchStatements1.ts, 102, 1)) +>e : Symbol(e, Decl(exhaustiveSwitchStatements1.ts, 104, 15)) +>MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1)) + + let s: string; +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 105, 4)) + + switch (e) { +>e : Symbol(e, Decl(exhaustiveSwitchStatements1.ts, 104, 15)) + + case MyEnum.A: s = "it was A"; break; +>MyEnum.A : Symbol(MyEnum.A, Decl(exhaustiveSwitchStatements1.ts, 90, 13)) +>MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1)) +>A : Symbol(MyEnum.A, Decl(exhaustiveSwitchStatements1.ts, 90, 13)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 105, 4)) + + case MyEnum.B: s = "it was B"; break; +>MyEnum.B : Symbol(MyEnum.B, Decl(exhaustiveSwitchStatements1.ts, 91, 3)) +>MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1)) +>B : Symbol(MyEnum.B, Decl(exhaustiveSwitchStatements1.ts, 91, 3)) +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 105, 4)) + + default: s = "it was something else"; break; +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 105, 4)) + } + return s; +>s : Symbol(s, Decl(exhaustiveSwitchStatements1.ts, 105, 4)) +} + +function good2(e: MyEnum): string { +>good2 : Symbol(good2, Decl(exhaustiveSwitchStatements1.ts, 112, 1)) +>e : Symbol(e, Decl(exhaustiveSwitchStatements1.ts, 114, 15)) +>MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1)) + + switch (e) { +>e : Symbol(e, Decl(exhaustiveSwitchStatements1.ts, 114, 15)) + + case MyEnum.A: return "it was A"; +>MyEnum.A : Symbol(MyEnum.A, Decl(exhaustiveSwitchStatements1.ts, 90, 13)) +>MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1)) +>A : Symbol(MyEnum.A, Decl(exhaustiveSwitchStatements1.ts, 90, 13)) + + case MyEnum.B: return "it was B"; +>MyEnum.B : Symbol(MyEnum.B, Decl(exhaustiveSwitchStatements1.ts, 91, 3)) +>MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1)) +>B : Symbol(MyEnum.B, Decl(exhaustiveSwitchStatements1.ts, 91, 3)) + } +} + +// Repro from #18362 + +enum Level { +>Level : Symbol(Level, Decl(exhaustiveSwitchStatements1.ts, 119, 1)) + + One, +>One : Symbol(Level.One, Decl(exhaustiveSwitchStatements1.ts, 123, 12)) + + Two, +>Two : Symbol(Level.Two, Decl(exhaustiveSwitchStatements1.ts, 124, 6)) +} + +const doSomethingWithLevel = (level: Level) => { +>doSomethingWithLevel : Symbol(doSomethingWithLevel, Decl(exhaustiveSwitchStatements1.ts, 128, 5)) +>level : Symbol(level, Decl(exhaustiveSwitchStatements1.ts, 128, 30)) +>Level : Symbol(Level, Decl(exhaustiveSwitchStatements1.ts, 119, 1)) + + let next: Level; +>next : Symbol(next, Decl(exhaustiveSwitchStatements1.ts, 129, 5)) +>Level : Symbol(Level, Decl(exhaustiveSwitchStatements1.ts, 119, 1)) + + switch (level) { +>level : Symbol(level, Decl(exhaustiveSwitchStatements1.ts, 128, 30)) + + case Level.One: +>Level.One : Symbol(Level.One, Decl(exhaustiveSwitchStatements1.ts, 123, 12)) +>Level : Symbol(Level, Decl(exhaustiveSwitchStatements1.ts, 119, 1)) +>One : Symbol(Level.One, Decl(exhaustiveSwitchStatements1.ts, 123, 12)) + + next = Level.Two; +>next : Symbol(next, Decl(exhaustiveSwitchStatements1.ts, 129, 5)) +>Level.Two : Symbol(Level.Two, Decl(exhaustiveSwitchStatements1.ts, 124, 6)) +>Level : Symbol(Level, Decl(exhaustiveSwitchStatements1.ts, 119, 1)) +>Two : Symbol(Level.Two, Decl(exhaustiveSwitchStatements1.ts, 124, 6)) + + break; + case Level.Two: +>Level.Two : Symbol(Level.Two, Decl(exhaustiveSwitchStatements1.ts, 124, 6)) +>Level : Symbol(Level, Decl(exhaustiveSwitchStatements1.ts, 119, 1)) +>Two : Symbol(Level.Two, Decl(exhaustiveSwitchStatements1.ts, 124, 6)) + + next = Level.One; +>next : Symbol(next, Decl(exhaustiveSwitchStatements1.ts, 129, 5)) +>Level.One : Symbol(Level.One, Decl(exhaustiveSwitchStatements1.ts, 123, 12)) +>Level : Symbol(Level, Decl(exhaustiveSwitchStatements1.ts, 119, 1)) +>One : Symbol(Level.One, Decl(exhaustiveSwitchStatements1.ts, 123, 12)) + + break; + } + return next; +>next : Symbol(next, Decl(exhaustiveSwitchStatements1.ts, 129, 5)) + +}; + +// Repro from #20409 + +interface Square2 { +>Square2 : Symbol(Square2, Decl(exhaustiveSwitchStatements1.ts, 139, 2)) + + kind: "square"; +>kind : Symbol(Square2.kind, Decl(exhaustiveSwitchStatements1.ts, 143, 19)) + + size: number; +>size : Symbol(Square2.size, Decl(exhaustiveSwitchStatements1.ts, 144, 19)) +} + +interface Circle2 { +>Circle2 : Symbol(Circle2, Decl(exhaustiveSwitchStatements1.ts, 146, 1)) + + kind: "circle"; +>kind : Symbol(Circle2.kind, Decl(exhaustiveSwitchStatements1.ts, 148, 19)) + + radius: number; +>radius : Symbol(Circle2.radius, Decl(exhaustiveSwitchStatements1.ts, 149, 19)) +} + +type Shape2 = Square2 | Circle2; +>Shape2 : Symbol(Shape2, Decl(exhaustiveSwitchStatements1.ts, 151, 1)) +>Square2 : Symbol(Square2, Decl(exhaustiveSwitchStatements1.ts, 139, 2)) +>Circle2 : Symbol(Circle2, Decl(exhaustiveSwitchStatements1.ts, 146, 1)) + +function withDefault(s1: Shape2, s2: Shape2): string { +>withDefault : Symbol(withDefault, Decl(exhaustiveSwitchStatements1.ts, 153, 32)) +>s1 : Symbol(s1, Decl(exhaustiveSwitchStatements1.ts, 155, 21)) +>Shape2 : Symbol(Shape2, Decl(exhaustiveSwitchStatements1.ts, 151, 1)) +>s2 : Symbol(s2, Decl(exhaustiveSwitchStatements1.ts, 155, 32)) +>Shape2 : Symbol(Shape2, Decl(exhaustiveSwitchStatements1.ts, 151, 1)) + + switch (s1.kind) { +>s1.kind : Symbol(kind, Decl(exhaustiveSwitchStatements1.ts, 143, 19), Decl(exhaustiveSwitchStatements1.ts, 148, 19)) +>s1 : Symbol(s1, Decl(exhaustiveSwitchStatements1.ts, 155, 21)) +>kind : Symbol(kind, Decl(exhaustiveSwitchStatements1.ts, 143, 19), Decl(exhaustiveSwitchStatements1.ts, 148, 19)) + + case "square": + return "1"; + case "circle": + switch (s2.kind) { +>s2.kind : Symbol(kind, Decl(exhaustiveSwitchStatements1.ts, 143, 19), Decl(exhaustiveSwitchStatements1.ts, 148, 19)) +>s2 : Symbol(s2, Decl(exhaustiveSwitchStatements1.ts, 155, 32)) +>kind : Symbol(kind, Decl(exhaustiveSwitchStatements1.ts, 143, 19), Decl(exhaustiveSwitchStatements1.ts, 148, 19)) + + case "square": + return "2"; + case "circle": + return "3"; + default: + return "never"; + } + } +} + +function withoutDefault(s1: Shape2, s2: Shape2): string { +>withoutDefault : Symbol(withoutDefault, Decl(exhaustiveSwitchStatements1.ts, 169, 1)) +>s1 : Symbol(s1, Decl(exhaustiveSwitchStatements1.ts, 171, 24)) +>Shape2 : Symbol(Shape2, Decl(exhaustiveSwitchStatements1.ts, 151, 1)) +>s2 : Symbol(s2, Decl(exhaustiveSwitchStatements1.ts, 171, 35)) +>Shape2 : Symbol(Shape2, Decl(exhaustiveSwitchStatements1.ts, 151, 1)) + + switch (s1.kind) { +>s1.kind : Symbol(kind, Decl(exhaustiveSwitchStatements1.ts, 143, 19), Decl(exhaustiveSwitchStatements1.ts, 148, 19)) +>s1 : Symbol(s1, Decl(exhaustiveSwitchStatements1.ts, 171, 24)) +>kind : Symbol(kind, Decl(exhaustiveSwitchStatements1.ts, 143, 19), Decl(exhaustiveSwitchStatements1.ts, 148, 19)) + + case "square": + return "1"; + case "circle": + switch (s2.kind) { +>s2.kind : Symbol(kind, Decl(exhaustiveSwitchStatements1.ts, 143, 19), Decl(exhaustiveSwitchStatements1.ts, 148, 19)) +>s2 : Symbol(s2, Decl(exhaustiveSwitchStatements1.ts, 171, 35)) +>kind : Symbol(kind, Decl(exhaustiveSwitchStatements1.ts, 143, 19), Decl(exhaustiveSwitchStatements1.ts, 148, 19)) + + case "square": + return "2"; + case "circle": + return "3"; + } + } +} + +// Repro from #20823 + +function test4(value: 1 | 2) { +>test4 : Symbol(test4, Decl(exhaustiveSwitchStatements1.ts, 183, 1)) +>value : Symbol(value, Decl(exhaustiveSwitchStatements1.ts, 187, 15)) + + let x: string; +>x : Symbol(x, Decl(exhaustiveSwitchStatements1.ts, 188, 7)) + + switch (value) { +>value : Symbol(value, Decl(exhaustiveSwitchStatements1.ts, 187, 15)) + + case 1: x = "one"; break; +>x : Symbol(x, Decl(exhaustiveSwitchStatements1.ts, 188, 7)) + + case 2: x = "two"; break; +>x : Symbol(x, Decl(exhaustiveSwitchStatements1.ts, 188, 7)) + } + return x; +>x : Symbol(x, Decl(exhaustiveSwitchStatements1.ts, 188, 7)) +} + diff --git a/tests/baselines/reference/exhaustiveSwitchStatements1.types b/tests/baselines/reference/exhaustiveSwitchStatements1.types new file mode 100644 index 00000000000..04a9bf531ce --- /dev/null +++ b/tests/baselines/reference/exhaustiveSwitchStatements1.types @@ -0,0 +1,595 @@ +=== tests/cases/conformance/controlFlow/exhaustiveSwitchStatements1.ts === +function f1(x: 1 | 2): string { +>f1 : (x: 1 | 2) => string +>x : 1 | 2 + + if (!!true) { +>!!true : true +>!true : false +>true : true + + switch (x) { +>x : 1 | 2 + + case 1: return 'a'; +>1 : 1 +>'a' : "a" + + case 2: return 'b'; +>2 : 2 +>'b' : "b" + } + x; // Unreachable +>x : never + } + else { + throw 0; +>0 : 0 + } +} + +function f2(x: 1 | 2) { +>f2 : (x: 1 | 2) => void +>x : 1 | 2 + + let z: number; +>z : number + + switch (x) { +>x : 1 | 2 + + case 1: z = 10; break; +>1 : 1 +>z = 10 : 10 +>z : number +>10 : 10 + + case 2: z = 20; break; +>2 : 2 +>z = 20 : 20 +>z : number +>20 : 20 + } + z; // Definitely assigned +>z : number +} + +function f3(x: 1 | 2) { +>f3 : (x: 1 | 2) => 10 | 20 +>x : 1 | 2 + + switch (x) { +>x : 1 | 2 + + case 1: return 10; +>1 : 1 +>10 : 10 + + case 2: return 20; +>2 : 2 +>20 : 20 + + // Default considered reachable to allow defensive coding + default: throw new Error("Bad input"); +>new Error("Bad input") : Error +>Error : ErrorConstructor +>"Bad input" : "Bad input" + } +} + +// Repro from #11572 + +enum E { A, B } +>E : E +>A : E.A +>B : E.B + +function f(e: E): number { +>f : (e: E) => number +>e : E + + switch (e) { +>e : E + + case E.A: return 0 +>E.A : E.A +>E : typeof E +>A : E.A +>0 : 0 + + case E.B: return 1 +>E.B : E.B +>E : typeof E +>B : E.B +>1 : 1 + } +} + +function g(e: E): number { +>g : (e: E) => number +>e : E + + if (!true) +>!true : false +>true : true + + return -1 +>-1 : -1 +>1 : 1 + + else + switch (e) { +>e : E + + case E.A: return 0 +>E.A : E.A +>E : typeof E +>A : E.A +>0 : 0 + + case E.B: return 1 +>E.B : E.B +>E : typeof E +>B : E.B +>1 : 1 + } +} + +// Repro from #12668 + +interface Square { kind: "square"; size: number; } +>kind : "square" +>size : number + +interface Rectangle { kind: "rectangle"; width: number; height: number; } +>kind : "rectangle" +>width : number +>height : number + +interface Circle { kind: "circle"; radius: number; } +>kind : "circle" +>radius : number + +interface Triangle { kind: "triangle"; side: number; } +>kind : "triangle" +>side : number + +type Shape = Square | Rectangle | Circle | Triangle; +>Shape : Shape + +function area(s: Shape): number { +>area : (s: Shape) => number +>s : Shape + + let area; +>area : any + + switch (s.kind) { +>s.kind : "square" | "rectangle" | "circle" | "triangle" +>s : Shape +>kind : "square" | "rectangle" | "circle" | "triangle" + + case "square": area = s.size * s.size; break; +>"square" : "square" +>area = s.size * s.size : number +>area : any +>s.size * s.size : number +>s.size : number +>s : Square +>size : number +>s.size : number +>s : Square +>size : number + + case "rectangle": area = s.width * s.height; break; +>"rectangle" : "rectangle" +>area = s.width * s.height : number +>area : any +>s.width * s.height : number +>s.width : number +>s : Rectangle +>width : number +>s.height : number +>s : Rectangle +>height : number + + case "circle": area = Math.PI * s.radius * s.radius; break; +>"circle" : "circle" +>area = Math.PI * s.radius * s.radius : number +>area : any +>Math.PI * s.radius * s.radius : number +>Math.PI * s.radius : number +>Math.PI : number +>Math : Math +>PI : number +>s.radius : number +>s : Circle +>radius : number +>s.radius : number +>s : Circle +>radius : number + + case "triangle": area = Math.sqrt(3) / 4 * s.side * s.side; break; +>"triangle" : "triangle" +>area = Math.sqrt(3) / 4 * s.side * s.side : number +>area : any +>Math.sqrt(3) / 4 * s.side * s.side : number +>Math.sqrt(3) / 4 * s.side : number +>Math.sqrt(3) / 4 : number +>Math.sqrt(3) : number +>Math.sqrt : (x: number) => number +>Math : Math +>sqrt : (x: number) => number +>3 : 3 +>4 : 4 +>s.side : number +>s : Triangle +>side : number +>s.side : number +>s : Triangle +>side : number + } + return area; +>area : number +} + +function areaWrapped(s: Shape): number { +>areaWrapped : (s: Shape) => number +>s : Shape + + let area; +>area : any + + area = (() => { +>area = (() => { switch (s.kind) { case "square": return s.size * s.size; case "rectangle": return s.width * s.height; case "circle": return Math.PI * s.radius * s.radius; case "triangle": return Math.sqrt(3) / 4 * s.side * s.side; } })() : number +>area : any +>(() => { switch (s.kind) { case "square": return s.size * s.size; case "rectangle": return s.width * s.height; case "circle": return Math.PI * s.radius * s.radius; case "triangle": return Math.sqrt(3) / 4 * s.side * s.side; } })() : number +>(() => { switch (s.kind) { case "square": return s.size * s.size; case "rectangle": return s.width * s.height; case "circle": return Math.PI * s.radius * s.radius; case "triangle": return Math.sqrt(3) / 4 * s.side * s.side; } }) : () => number +>() => { switch (s.kind) { case "square": return s.size * s.size; case "rectangle": return s.width * s.height; case "circle": return Math.PI * s.radius * s.radius; case "triangle": return Math.sqrt(3) / 4 * s.side * s.side; } } : () => number + + switch (s.kind) { +>s.kind : "square" | "rectangle" | "circle" | "triangle" +>s : Shape +>kind : "square" | "rectangle" | "circle" | "triangle" + + case "square": return s.size * s.size; +>"square" : "square" +>s.size * s.size : number +>s.size : number +>s : Square +>size : number +>s.size : number +>s : Square +>size : number + + case "rectangle": return s.width * s.height; +>"rectangle" : "rectangle" +>s.width * s.height : number +>s.width : number +>s : Rectangle +>width : number +>s.height : number +>s : Rectangle +>height : number + + case "circle": return Math.PI * s.radius * s.radius; +>"circle" : "circle" +>Math.PI * s.radius * s.radius : number +>Math.PI * s.radius : number +>Math.PI : number +>Math : Math +>PI : number +>s.radius : number +>s : Circle +>radius : number +>s.radius : number +>s : Circle +>radius : number + + case "triangle": return Math.sqrt(3) / 4 * s.side * s.side; +>"triangle" : "triangle" +>Math.sqrt(3) / 4 * s.side * s.side : number +>Math.sqrt(3) / 4 * s.side : number +>Math.sqrt(3) / 4 : number +>Math.sqrt(3) : number +>Math.sqrt : (x: number) => number +>Math : Math +>sqrt : (x: number) => number +>3 : 3 +>4 : 4 +>s.side : number +>s : Triangle +>side : number +>s.side : number +>s : Triangle +>side : number + } + })(); + return area; +>area : number +} + +// Repro from #13241 + +enum MyEnum { +>MyEnum : MyEnum + + A, +>A : MyEnum.A + + B +>B : MyEnum.B +} + +function thisGivesError(e: MyEnum): string { +>thisGivesError : (e: MyEnum) => string +>e : MyEnum + + let s: string; +>s : string + + switch (e) { +>e : MyEnum + + case MyEnum.A: s = "it was A"; break; +>MyEnum.A : MyEnum.A +>MyEnum : typeof MyEnum +>A : MyEnum.A +>s = "it was A" : "it was A" +>s : string +>"it was A" : "it was A" + + case MyEnum.B: s = "it was B"; break; +>MyEnum.B : MyEnum.B +>MyEnum : typeof MyEnum +>B : MyEnum.B +>s = "it was B" : "it was B" +>s : string +>"it was B" : "it was B" + } + return s; +>s : string +} + +function good1(e: MyEnum): string { +>good1 : (e: MyEnum) => string +>e : MyEnum + + let s: string; +>s : string + + switch (e) { +>e : MyEnum + + case MyEnum.A: s = "it was A"; break; +>MyEnum.A : MyEnum.A +>MyEnum : typeof MyEnum +>A : MyEnum.A +>s = "it was A" : "it was A" +>s : string +>"it was A" : "it was A" + + case MyEnum.B: s = "it was B"; break; +>MyEnum.B : MyEnum.B +>MyEnum : typeof MyEnum +>B : MyEnum.B +>s = "it was B" : "it was B" +>s : string +>"it was B" : "it was B" + + default: s = "it was something else"; break; +>s = "it was something else" : "it was something else" +>s : string +>"it was something else" : "it was something else" + } + return s; +>s : string +} + +function good2(e: MyEnum): string { +>good2 : (e: MyEnum) => string +>e : MyEnum + + switch (e) { +>e : MyEnum + + case MyEnum.A: return "it was A"; +>MyEnum.A : MyEnum.A +>MyEnum : typeof MyEnum +>A : MyEnum.A +>"it was A" : "it was A" + + case MyEnum.B: return "it was B"; +>MyEnum.B : MyEnum.B +>MyEnum : typeof MyEnum +>B : MyEnum.B +>"it was B" : "it was B" + } +} + +// Repro from #18362 + +enum Level { +>Level : Level + + One, +>One : Level.One + + Two, +>Two : Level.Two +} + +const doSomethingWithLevel = (level: Level) => { +>doSomethingWithLevel : (level: Level) => Level +>(level: Level) => { let next: Level; switch (level) { case Level.One: next = Level.Two; break; case Level.Two: next = Level.One; break; } return next;} : (level: Level) => Level +>level : Level + + let next: Level; +>next : Level + + switch (level) { +>level : Level + + case Level.One: +>Level.One : Level.One +>Level : typeof Level +>One : Level.One + + next = Level.Two; +>next = Level.Two : Level.Two +>next : Level +>Level.Two : Level.Two +>Level : typeof Level +>Two : Level.Two + + break; + case Level.Two: +>Level.Two : Level.Two +>Level : typeof Level +>Two : Level.Two + + next = Level.One; +>next = Level.One : Level.One +>next : Level +>Level.One : Level.One +>Level : typeof Level +>One : Level.One + + break; + } + return next; +>next : Level + +}; + +// Repro from #20409 + +interface Square2 { + kind: "square"; +>kind : "square" + + size: number; +>size : number +} + +interface Circle2 { + kind: "circle"; +>kind : "circle" + + radius: number; +>radius : number +} + +type Shape2 = Square2 | Circle2; +>Shape2 : Shape2 + +function withDefault(s1: Shape2, s2: Shape2): string { +>withDefault : (s1: Shape2, s2: Shape2) => string +>s1 : Shape2 +>s2 : Shape2 + + switch (s1.kind) { +>s1.kind : "square" | "circle" +>s1 : Shape2 +>kind : "square" | "circle" + + case "square": +>"square" : "square" + + return "1"; +>"1" : "1" + + case "circle": +>"circle" : "circle" + + switch (s2.kind) { +>s2.kind : "square" | "circle" +>s2 : Shape2 +>kind : "square" | "circle" + + case "square": +>"square" : "square" + + return "2"; +>"2" : "2" + + case "circle": +>"circle" : "circle" + + return "3"; +>"3" : "3" + + default: + return "never"; +>"never" : "never" + } + } +} + +function withoutDefault(s1: Shape2, s2: Shape2): string { +>withoutDefault : (s1: Shape2, s2: Shape2) => string +>s1 : Shape2 +>s2 : Shape2 + + switch (s1.kind) { +>s1.kind : "square" | "circle" +>s1 : Shape2 +>kind : "square" | "circle" + + case "square": +>"square" : "square" + + return "1"; +>"1" : "1" + + case "circle": +>"circle" : "circle" + + switch (s2.kind) { +>s2.kind : "square" | "circle" +>s2 : Shape2 +>kind : "square" | "circle" + + case "square": +>"square" : "square" + + return "2"; +>"2" : "2" + + case "circle": +>"circle" : "circle" + + return "3"; +>"3" : "3" + } + } +} + +// Repro from #20823 + +function test4(value: 1 | 2) { +>test4 : (value: 1 | 2) => string +>value : 1 | 2 + + let x: string; +>x : string + + switch (value) { +>value : 1 | 2 + + case 1: x = "one"; break; +>1 : 1 +>x = "one" : "one" +>x : string +>"one" : "one" + + case 2: x = "two"; break; +>2 : 2 +>x = "two" : "two" +>x : string +>"two" : "two" + } + return x; +>x : string +} + diff --git a/tests/baselines/reference/neverReturningFunctions1.errors.txt b/tests/baselines/reference/neverReturningFunctions1.errors.txt new file mode 100644 index 00000000000..f8656bbed08 --- /dev/null +++ b/tests/baselines/reference/neverReturningFunctions1.errors.txt @@ -0,0 +1,227 @@ +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(13,5): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(19,5): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(30,5): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(36,5): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(51,5): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(57,5): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(63,5): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(77,9): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(82,9): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(89,9): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(96,13): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(101,13): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(103,9): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(105,5): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(111,9): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(112,9): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(122,9): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(127,9): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(129,5): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(139,9): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(141,5): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(148,9): error TS7027: Unreachable code detected. +tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(153,5): error TS7027: Unreachable code detected. + + +==== tests/cases/conformance/controlFlow/neverReturningFunctions1.ts (23 errors) ==== + function fail(message?: string): never { + throw new Error(message); + } + + function f01(x: string | undefined) { + if (x === undefined) fail("undefined argument"); + x.length; // string + } + + function f02(x: number): number { + if (x >= 0) return x; + fail("negative number"); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + + function f03(x: string) { + x; // string + fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + + function f11(x: string | undefined, fail: (message?: string) => never) { + if (x === undefined) fail("undefined argument"); + x.length; // string + } + + function f12(x: number, fail: (message?: string) => never): number { + if (x >= 0) return x; + fail("negative number"); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + + function f13(x: string, fail: (message?: string) => never) { + x; // string + fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + + namespace Debug { + export declare function fail(message?: string): never; + } + + function f21(x: string | undefined) { + if (x === undefined) Debug.fail("undefined argument"); + x.length; // string + } + + function f22(x: number): number { + if (x >= 0) return x; + Debug.fail("negative number"); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + + function f23(x: string) { + x; // string + Debug.fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + + function f24(x: string) { + x; // string + ((Debug).fail)(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + + class Test { + fail(message?: string): never { + throw new Error(message); + } + f1(x: string | undefined) { + if (x === undefined) this.fail("undefined argument"); + x.length; // string + } + f2(x: number): number { + if (x >= 0) return x; + this.fail("negative number"); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + f3(x: string) { + x; // string + this.fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + } + + function f30(x: string | number | undefined) { + if (typeof x === "string") { + fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + else { + x; // number | undefined + if (x !== undefined) { + x; // number + fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + else { + x; // undefined + fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + + function f31(x: { a: string | number }) { + if (typeof x.a === "string") { + fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + x.a; // Unreachable + ~~~~ +!!! error TS7027: Unreachable code detected. + } + x; // { a: string | number } + x.a; // number + } + + function f40(x: number) { + try { + x; + fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + finally { + x; + fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + + function f41(x: number) { + try { + x; + } + finally { + x; + fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + + function f42(x: number) { + try { + x; + fail(); + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + finally { + x; + } + x; // Unreachable + ~~ +!!! error TS7027: Unreachable code detected. + } + \ No newline at end of file diff --git a/tests/baselines/reference/neverReturningFunctions1.js b/tests/baselines/reference/neverReturningFunctions1.js new file mode 100644 index 00000000000..cce75c6668a --- /dev/null +++ b/tests/baselines/reference/neverReturningFunctions1.js @@ -0,0 +1,337 @@ +//// [neverReturningFunctions1.ts] +function fail(message?: string): never { + throw new Error(message); +} + +function f01(x: string | undefined) { + if (x === undefined) fail("undefined argument"); + x.length; // string +} + +function f02(x: number): number { + if (x >= 0) return x; + fail("negative number"); + x; // Unreachable +} + +function f03(x: string) { + x; // string + fail(); + x; // Unreachable +} + +function f11(x: string | undefined, fail: (message?: string) => never) { + if (x === undefined) fail("undefined argument"); + x.length; // string +} + +function f12(x: number, fail: (message?: string) => never): number { + if (x >= 0) return x; + fail("negative number"); + x; // Unreachable +} + +function f13(x: string, fail: (message?: string) => never) { + x; // string + fail(); + x; // Unreachable +} + +namespace Debug { + export declare function fail(message?: string): never; +} + +function f21(x: string | undefined) { + if (x === undefined) Debug.fail("undefined argument"); + x.length; // string +} + +function f22(x: number): number { + if (x >= 0) return x; + Debug.fail("negative number"); + x; // Unreachable +} + +function f23(x: string) { + x; // string + Debug.fail(); + x; // Unreachable +} + +function f24(x: string) { + x; // string + ((Debug).fail)(); + x; // Unreachable +} + +class Test { + fail(message?: string): never { + throw new Error(message); + } + f1(x: string | undefined) { + if (x === undefined) this.fail("undefined argument"); + x.length; // string + } + f2(x: number): number { + if (x >= 0) return x; + this.fail("negative number"); + x; // Unreachable + } + f3(x: string) { + x; // string + this.fail(); + x; // Unreachable + } +} + +function f30(x: string | number | undefined) { + if (typeof x === "string") { + fail(); + x; // Unreachable + } + else { + x; // number | undefined + if (x !== undefined) { + x; // number + fail(); + x; // Unreachable + } + else { + x; // undefined + fail(); + x; // Unreachable + } + x; // Unreachable + } + x; // Unreachable +} + +function f31(x: { a: string | number }) { + if (typeof x.a === "string") { + fail(); + x; // Unreachable + x.a; // Unreachable + } + x; // { a: string | number } + x.a; // number +} + +function f40(x: number) { + try { + x; + fail(); + x; // Unreachable + } + finally { + x; + fail(); + x; // Unreachable + } + x; // Unreachable +} + +function f41(x: number) { + try { + x; + } + finally { + x; + fail(); + x; // Unreachable + } + x; // Unreachable +} + +function f42(x: number) { + try { + x; + fail(); + x; // Unreachable + } + finally { + x; + } + x; // Unreachable +} + + +//// [neverReturningFunctions1.js] +"use strict"; +function fail(message) { + throw new Error(message); +} +function f01(x) { + if (x === undefined) + fail("undefined argument"); + x.length; // string +} +function f02(x) { + if (x >= 0) + return x; + fail("negative number"); + x; // Unreachable +} +function f03(x) { + x; // string + fail(); + x; // Unreachable +} +function f11(x, fail) { + if (x === undefined) + fail("undefined argument"); + x.length; // string +} +function f12(x, fail) { + if (x >= 0) + return x; + fail("negative number"); + x; // Unreachable +} +function f13(x, fail) { + x; // string + fail(); + x; // Unreachable +} +var Debug; +(function (Debug) { +})(Debug || (Debug = {})); +function f21(x) { + if (x === undefined) + Debug.fail("undefined argument"); + x.length; // string +} +function f22(x) { + if (x >= 0) + return x; + Debug.fail("negative number"); + x; // Unreachable +} +function f23(x) { + x; // string + Debug.fail(); + x; // Unreachable +} +function f24(x) { + x; // string + ((Debug).fail)(); + x; // Unreachable +} +var Test = /** @class */ (function () { + function Test() { + } + Test.prototype.fail = function (message) { + throw new Error(message); + }; + Test.prototype.f1 = function (x) { + if (x === undefined) + this.fail("undefined argument"); + x.length; // string + }; + Test.prototype.f2 = function (x) { + if (x >= 0) + return x; + this.fail("negative number"); + x; // Unreachable + }; + Test.prototype.f3 = function (x) { + x; // string + this.fail(); + x; // Unreachable + }; + return Test; +}()); +function f30(x) { + if (typeof x === "string") { + fail(); + x; // Unreachable + } + else { + x; // number | undefined + if (x !== undefined) { + x; // number + fail(); + x; // Unreachable + } + else { + x; // undefined + fail(); + x; // Unreachable + } + x; // Unreachable + } + x; // Unreachable +} +function f31(x) { + if (typeof x.a === "string") { + fail(); + x; // Unreachable + x.a; // Unreachable + } + x; // { a: string | number } + x.a; // number +} +function f40(x) { + try { + x; + fail(); + x; // Unreachable + } + finally { + x; + fail(); + x; // Unreachable + } + x; // Unreachable +} +function f41(x) { + try { + x; + } + finally { + x; + fail(); + x; // Unreachable + } + x; // Unreachable +} +function f42(x) { + try { + x; + fail(); + x; // Unreachable + } + finally { + x; + } + x; // Unreachable +} + + +//// [neverReturningFunctions1.d.ts] +declare function fail(message?: string): never; +declare function f01(x: string | undefined): void; +declare function f02(x: number): number; +declare function f03(x: string): void; +declare function f11(x: string | undefined, fail: (message?: string) => never): void; +declare function f12(x: number, fail: (message?: string) => never): number; +declare function f13(x: string, fail: (message?: string) => never): void; +declare namespace Debug { + function fail(message?: string): never; +} +declare function f21(x: string | undefined): void; +declare function f22(x: number): number; +declare function f23(x: string): void; +declare function f24(x: string): void; +declare class Test { + fail(message?: string): never; + f1(x: string | undefined): void; + f2(x: number): number; + f3(x: string): void; +} +declare function f30(x: string | number | undefined): void; +declare function f31(x: { + a: string | number; +}): void; +declare function f40(x: number): void; +declare function f41(x: number): void; +declare function f42(x: number): void; diff --git a/tests/baselines/reference/neverReturningFunctions1.symbols b/tests/baselines/reference/neverReturningFunctions1.symbols new file mode 100644 index 00000000000..7f1b5c489ac --- /dev/null +++ b/tests/baselines/reference/neverReturningFunctions1.symbols @@ -0,0 +1,387 @@ +=== tests/cases/conformance/controlFlow/neverReturningFunctions1.ts === +function fail(message?: string): never { +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 0, 0)) +>message : Symbol(message, Decl(neverReturningFunctions1.ts, 0, 14)) + + throw new Error(message); +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>message : Symbol(message, Decl(neverReturningFunctions1.ts, 0, 14)) +} + +function f01(x: string | undefined) { +>f01 : Symbol(f01, Decl(neverReturningFunctions1.ts, 2, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 4, 13)) + + if (x === undefined) fail("undefined argument"); +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 4, 13)) +>undefined : Symbol(undefined) +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 0, 0)) + + x.length; // string +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 4, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +} + +function f02(x: number): number { +>f02 : Symbol(f02, Decl(neverReturningFunctions1.ts, 7, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 9, 13)) + + if (x >= 0) return x; +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 9, 13)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 9, 13)) + + fail("negative number"); +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 0, 0)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 9, 13)) +} + +function f03(x: string) { +>f03 : Symbol(f03, Decl(neverReturningFunctions1.ts, 13, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 15, 13)) + + x; // string +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 15, 13)) + + fail(); +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 0, 0)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 15, 13)) +} + +function f11(x: string | undefined, fail: (message?: string) => never) { +>f11 : Symbol(f11, Decl(neverReturningFunctions1.ts, 19, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 21, 13)) +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 21, 35)) +>message : Symbol(message, Decl(neverReturningFunctions1.ts, 21, 43)) + + if (x === undefined) fail("undefined argument"); +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 21, 13)) +>undefined : Symbol(undefined) +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 21, 35)) + + x.length; // string +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 21, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +} + +function f12(x: number, fail: (message?: string) => never): number { +>f12 : Symbol(f12, Decl(neverReturningFunctions1.ts, 24, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 26, 13)) +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 26, 23)) +>message : Symbol(message, Decl(neverReturningFunctions1.ts, 26, 31)) + + if (x >= 0) return x; +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 26, 13)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 26, 13)) + + fail("negative number"); +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 26, 23)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 26, 13)) +} + +function f13(x: string, fail: (message?: string) => never) { +>f13 : Symbol(f13, Decl(neverReturningFunctions1.ts, 30, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 32, 13)) +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 32, 23)) +>message : Symbol(message, Decl(neverReturningFunctions1.ts, 32, 31)) + + x; // string +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 32, 13)) + + fail(); +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 32, 23)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 32, 13)) +} + +namespace Debug { +>Debug : Symbol(Debug, Decl(neverReturningFunctions1.ts, 36, 1)) + + export declare function fail(message?: string): never; +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 38, 17)) +>message : Symbol(message, Decl(neverReturningFunctions1.ts, 39, 33)) +} + +function f21(x: string | undefined) { +>f21 : Symbol(f21, Decl(neverReturningFunctions1.ts, 40, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 42, 13)) + + if (x === undefined) Debug.fail("undefined argument"); +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 42, 13)) +>undefined : Symbol(undefined) +>Debug.fail : Symbol(Debug.fail, Decl(neverReturningFunctions1.ts, 38, 17)) +>Debug : Symbol(Debug, Decl(neverReturningFunctions1.ts, 36, 1)) +>fail : Symbol(Debug.fail, Decl(neverReturningFunctions1.ts, 38, 17)) + + x.length; // string +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 42, 13)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +} + +function f22(x: number): number { +>f22 : Symbol(f22, Decl(neverReturningFunctions1.ts, 45, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 47, 13)) + + if (x >= 0) return x; +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 47, 13)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 47, 13)) + + Debug.fail("negative number"); +>Debug.fail : Symbol(Debug.fail, Decl(neverReturningFunctions1.ts, 38, 17)) +>Debug : Symbol(Debug, Decl(neverReturningFunctions1.ts, 36, 1)) +>fail : Symbol(Debug.fail, Decl(neverReturningFunctions1.ts, 38, 17)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 47, 13)) +} + +function f23(x: string) { +>f23 : Symbol(f23, Decl(neverReturningFunctions1.ts, 51, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 53, 13)) + + x; // string +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 53, 13)) + + Debug.fail(); +>Debug.fail : Symbol(Debug.fail, Decl(neverReturningFunctions1.ts, 38, 17)) +>Debug : Symbol(Debug, Decl(neverReturningFunctions1.ts, 36, 1)) +>fail : Symbol(Debug.fail, Decl(neverReturningFunctions1.ts, 38, 17)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 53, 13)) +} + +function f24(x: string) { +>f24 : Symbol(f24, Decl(neverReturningFunctions1.ts, 57, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 59, 13)) + + x; // string +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 59, 13)) + + ((Debug).fail)(); +>(Debug).fail : Symbol(Debug.fail, Decl(neverReturningFunctions1.ts, 38, 17)) +>Debug : Symbol(Debug, Decl(neverReturningFunctions1.ts, 36, 1)) +>fail : Symbol(Debug.fail, Decl(neverReturningFunctions1.ts, 38, 17)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 59, 13)) +} + +class Test { +>Test : Symbol(Test, Decl(neverReturningFunctions1.ts, 63, 1)) + + fail(message?: string): never { +>fail : Symbol(Test.fail, Decl(neverReturningFunctions1.ts, 65, 12)) +>message : Symbol(message, Decl(neverReturningFunctions1.ts, 66, 9)) + + throw new Error(message); +>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) +>message : Symbol(message, Decl(neverReturningFunctions1.ts, 66, 9)) + } + f1(x: string | undefined) { +>f1 : Symbol(Test.f1, Decl(neverReturningFunctions1.ts, 68, 5)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 69, 7)) + + if (x === undefined) this.fail("undefined argument"); +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 69, 7)) +>undefined : Symbol(undefined) +>this.fail : Symbol(Test.fail, Decl(neverReturningFunctions1.ts, 65, 12)) +>this : Symbol(Test, Decl(neverReturningFunctions1.ts, 63, 1)) +>fail : Symbol(Test.fail, Decl(neverReturningFunctions1.ts, 65, 12)) + + x.length; // string +>x.length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 69, 7)) +>length : Symbol(String.length, Decl(lib.es5.d.ts, --, --)) + } + f2(x: number): number { +>f2 : Symbol(Test.f2, Decl(neverReturningFunctions1.ts, 72, 5)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 73, 7)) + + if (x >= 0) return x; +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 73, 7)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 73, 7)) + + this.fail("negative number"); +>this.fail : Symbol(Test.fail, Decl(neverReturningFunctions1.ts, 65, 12)) +>this : Symbol(Test, Decl(neverReturningFunctions1.ts, 63, 1)) +>fail : Symbol(Test.fail, Decl(neverReturningFunctions1.ts, 65, 12)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 73, 7)) + } + f3(x: string) { +>f3 : Symbol(Test.f3, Decl(neverReturningFunctions1.ts, 77, 5)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 78, 7)) + + x; // string +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 78, 7)) + + this.fail(); +>this.fail : Symbol(Test.fail, Decl(neverReturningFunctions1.ts, 65, 12)) +>this : Symbol(Test, Decl(neverReturningFunctions1.ts, 63, 1)) +>fail : Symbol(Test.fail, Decl(neverReturningFunctions1.ts, 65, 12)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 78, 7)) + } +} + +function f30(x: string | number | undefined) { +>f30 : Symbol(f30, Decl(neverReturningFunctions1.ts, 83, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 85, 13)) + + if (typeof x === "string") { +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 85, 13)) + + fail(); +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 0, 0)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 85, 13)) + } + else { + x; // number | undefined +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 85, 13)) + + if (x !== undefined) { +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 85, 13)) +>undefined : Symbol(undefined) + + x; // number +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 85, 13)) + + fail(); +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 0, 0)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 85, 13)) + } + else { + x; // undefined +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 85, 13)) + + fail(); +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 0, 0)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 85, 13)) + } + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 85, 13)) + } + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 85, 13)) +} + +function f31(x: { a: string | number }) { +>f31 : Symbol(f31, Decl(neverReturningFunctions1.ts, 105, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 107, 13)) +>a : Symbol(a, Decl(neverReturningFunctions1.ts, 107, 17)) + + if (typeof x.a === "string") { +>x.a : Symbol(a, Decl(neverReturningFunctions1.ts, 107, 17)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 107, 13)) +>a : Symbol(a, Decl(neverReturningFunctions1.ts, 107, 17)) + + fail(); +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 0, 0)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 107, 13)) + + x.a; // Unreachable +>x.a : Symbol(a, Decl(neverReturningFunctions1.ts, 107, 17)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 107, 13)) +>a : Symbol(a, Decl(neverReturningFunctions1.ts, 107, 17)) + } + x; // { a: string | number } +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 107, 13)) + + x.a; // number +>x.a : Symbol(a, Decl(neverReturningFunctions1.ts, 107, 17)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 107, 13)) +>a : Symbol(a, Decl(neverReturningFunctions1.ts, 107, 17)) +} + +function f40(x: number) { +>f40 : Symbol(f40, Decl(neverReturningFunctions1.ts, 115, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 117, 13)) + + try { + x; +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 117, 13)) + + fail(); +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 0, 0)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 117, 13)) + } + finally { + x; +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 117, 13)) + + fail(); +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 0, 0)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 117, 13)) + } + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 117, 13)) +} + +function f41(x: number) { +>f41 : Symbol(f41, Decl(neverReturningFunctions1.ts, 129, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 131, 13)) + + try { + x; +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 131, 13)) + } + finally { + x; +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 131, 13)) + + fail(); +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 0, 0)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 131, 13)) + } + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 131, 13)) +} + +function f42(x: number) { +>f42 : Symbol(f42, Decl(neverReturningFunctions1.ts, 141, 1)) +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 143, 13)) + + try { + x; +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 143, 13)) + + fail(); +>fail : Symbol(fail, Decl(neverReturningFunctions1.ts, 0, 0)) + + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 143, 13)) + } + finally { + x; +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 143, 13)) + } + x; // Unreachable +>x : Symbol(x, Decl(neverReturningFunctions1.ts, 143, 13)) +} + diff --git a/tests/baselines/reference/neverReturningFunctions1.types b/tests/baselines/reference/neverReturningFunctions1.types new file mode 100644 index 00000000000..e7d6afa36a5 --- /dev/null +++ b/tests/baselines/reference/neverReturningFunctions1.types @@ -0,0 +1,439 @@ +=== tests/cases/conformance/controlFlow/neverReturningFunctions1.ts === +function fail(message?: string): never { +>fail : (message?: string | undefined) => never +>message : string | undefined + + throw new Error(message); +>new Error(message) : Error +>Error : ErrorConstructor +>message : string | undefined +} + +function f01(x: string | undefined) { +>f01 : (x: string | undefined) => void +>x : string | undefined + + if (x === undefined) fail("undefined argument"); +>x === undefined : boolean +>x : string | undefined +>undefined : undefined +>fail("undefined argument") : never +>fail : (message?: string | undefined) => never +>"undefined argument" : "undefined argument" + + x.length; // string +>x.length : number +>x : string +>length : number +} + +function f02(x: number): number { +>f02 : (x: number) => number +>x : number + + if (x >= 0) return x; +>x >= 0 : boolean +>x : number +>0 : 0 +>x : number + + fail("negative number"); +>fail("negative number") : never +>fail : (message?: string | undefined) => never +>"negative number" : "negative number" + + x; // Unreachable +>x : number +} + +function f03(x: string) { +>f03 : (x: string) => void +>x : string + + x; // string +>x : string + + fail(); +>fail() : never +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : string +} + +function f11(x: string | undefined, fail: (message?: string) => never) { +>f11 : (x: string | undefined, fail: (message?: string | undefined) => never) => void +>x : string | undefined +>fail : (message?: string | undefined) => never +>message : string | undefined + + if (x === undefined) fail("undefined argument"); +>x === undefined : boolean +>x : string | undefined +>undefined : undefined +>fail("undefined argument") : never +>fail : (message?: string | undefined) => never +>"undefined argument" : "undefined argument" + + x.length; // string +>x.length : number +>x : string +>length : number +} + +function f12(x: number, fail: (message?: string) => never): number { +>f12 : (x: number, fail: (message?: string | undefined) => never) => number +>x : number +>fail : (message?: string | undefined) => never +>message : string | undefined + + if (x >= 0) return x; +>x >= 0 : boolean +>x : number +>0 : 0 +>x : number + + fail("negative number"); +>fail("negative number") : never +>fail : (message?: string | undefined) => never +>"negative number" : "negative number" + + x; // Unreachable +>x : number +} + +function f13(x: string, fail: (message?: string) => never) { +>f13 : (x: string, fail: (message?: string | undefined) => never) => void +>x : string +>fail : (message?: string | undefined) => never +>message : string | undefined + + x; // string +>x : string + + fail(); +>fail() : never +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : string +} + +namespace Debug { +>Debug : typeof Debug + + export declare function fail(message?: string): never; +>fail : (message?: string | undefined) => never +>message : string | undefined +} + +function f21(x: string | undefined) { +>f21 : (x: string | undefined) => void +>x : string | undefined + + if (x === undefined) Debug.fail("undefined argument"); +>x === undefined : boolean +>x : string | undefined +>undefined : undefined +>Debug.fail("undefined argument") : never +>Debug.fail : (message?: string | undefined) => never +>Debug : typeof Debug +>fail : (message?: string | undefined) => never +>"undefined argument" : "undefined argument" + + x.length; // string +>x.length : number +>x : string +>length : number +} + +function f22(x: number): number { +>f22 : (x: number) => number +>x : number + + if (x >= 0) return x; +>x >= 0 : boolean +>x : number +>0 : 0 +>x : number + + Debug.fail("negative number"); +>Debug.fail("negative number") : never +>Debug.fail : (message?: string | undefined) => never +>Debug : typeof Debug +>fail : (message?: string | undefined) => never +>"negative number" : "negative number" + + x; // Unreachable +>x : number +} + +function f23(x: string) { +>f23 : (x: string) => void +>x : string + + x; // string +>x : string + + Debug.fail(); +>Debug.fail() : never +>Debug.fail : (message?: string | undefined) => never +>Debug : typeof Debug +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : string +} + +function f24(x: string) { +>f24 : (x: string) => void +>x : string + + x; // string +>x : string + + ((Debug).fail)(); +>((Debug).fail)() : never +>((Debug).fail) : (message?: string | undefined) => never +>(Debug).fail : (message?: string | undefined) => never +>(Debug) : typeof Debug +>Debug : typeof Debug +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : string +} + +class Test { +>Test : Test + + fail(message?: string): never { +>fail : (message?: string | undefined) => never +>message : string | undefined + + throw new Error(message); +>new Error(message) : Error +>Error : ErrorConstructor +>message : string | undefined + } + f1(x: string | undefined) { +>f1 : (x: string | undefined) => void +>x : string | undefined + + if (x === undefined) this.fail("undefined argument"); +>x === undefined : boolean +>x : string | undefined +>undefined : undefined +>this.fail("undefined argument") : never +>this.fail : (message?: string | undefined) => never +>this : this +>fail : (message?: string | undefined) => never +>"undefined argument" : "undefined argument" + + x.length; // string +>x.length : number +>x : string +>length : number + } + f2(x: number): number { +>f2 : (x: number) => number +>x : number + + if (x >= 0) return x; +>x >= 0 : boolean +>x : number +>0 : 0 +>x : number + + this.fail("negative number"); +>this.fail("negative number") : never +>this.fail : (message?: string | undefined) => never +>this : this +>fail : (message?: string | undefined) => never +>"negative number" : "negative number" + + x; // Unreachable +>x : number + } + f3(x: string) { +>f3 : (x: string) => void +>x : string + + x; // string +>x : string + + this.fail(); +>this.fail() : never +>this.fail : (message?: string | undefined) => never +>this : this +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : string + } +} + +function f30(x: string | number | undefined) { +>f30 : (x: string | number | undefined) => void +>x : string | number | undefined + + if (typeof x === "string") { +>typeof x === "string" : boolean +>typeof x : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x : string | number | undefined +>"string" : "string" + + fail(); +>fail() : never +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : string | number | undefined + } + else { + x; // number | undefined +>x : number | undefined + + if (x !== undefined) { +>x !== undefined : boolean +>x : number | undefined +>undefined : undefined + + x; // number +>x : number + + fail(); +>fail() : never +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : string | number | undefined + } + else { + x; // undefined +>x : undefined + + fail(); +>fail() : never +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : string | number | undefined + } + x; // Unreachable +>x : string | number | undefined + } + x; // Unreachable +>x : string | number | undefined +} + +function f31(x: { a: string | number }) { +>f31 : (x: { a: string | number; }) => void +>x : { a: string | number; } +>a : string | number + + if (typeof x.a === "string") { +>typeof x.a === "string" : boolean +>typeof x.a : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" +>x.a : string | number +>x : { a: string | number; } +>a : string | number +>"string" : "string" + + fail(); +>fail() : never +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : { a: string | number; } + + x.a; // Unreachable +>x.a : string | number +>x : { a: string | number; } +>a : string | number + } + x; // { a: string | number } +>x : { a: string | number; } + + x.a; // number +>x.a : number +>x : { a: string | number; } +>a : number +} + +function f40(x: number) { +>f40 : (x: number) => void +>x : number + + try { + x; +>x : number + + fail(); +>fail() : never +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : number + } + finally { + x; +>x : number + + fail(); +>fail() : never +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : number + } + x; // Unreachable +>x : number +} + +function f41(x: number) { +>f41 : (x: number) => void +>x : number + + try { + x; +>x : number + } + finally { + x; +>x : number + + fail(); +>fail() : never +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : number + } + x; // Unreachable +>x : number +} + +function f42(x: number) { +>f42 : (x: number) => void +>x : number + + try { + x; +>x : number + + fail(); +>fail() : never +>fail : (message?: string | undefined) => never + + x; // Unreachable +>x : number + } + finally { + x; +>x : number + } + x; // Unreachable +>x : number +} + From bcdf33d8de066b827e8251875675b7a0084446c5 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 20 Sep 2019 17:44:19 -0700 Subject: [PATCH 135/159] Fix forEachChild --- src/compiler/parser.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 9852ee8feb7..edaa7ebeaeb 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -165,7 +165,8 @@ namespace ts { return visitNode(cbNode, (node).typeName) || visitNodes(cbNode, cbNodes, (node).typeArguments); case SyntaxKind.TypePredicate: - return visitNode(cbNode, (node).parameterName) || + return visitNode(cbNode, (node).assertsModifier) || + visitNode(cbNode, (node).parameterName) || visitNode(cbNode, (node).type); case SyntaxKind.TypeQuery: return visitNode(cbNode, (node).exprName); From 0da541528e89f5483a44fc0b200d9b537d93a0b6 Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Mon, 23 Sep 2019 14:08:43 -0400 Subject: [PATCH 136/159] Remove errors from the gulpfile --- Gulpfile.js | 2 ++ scripts/types/ambient.d.ts | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Gulpfile.js b/Gulpfile.js index 51127f9822d..1f930e3b019 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -333,6 +333,8 @@ task("run-eslint-rules-tests").description = "Runs the eslint rule tests"; const lintFoldStart = async () => { if (fold.isTravis()) console.log(fold.start("lint")); }; const lintFoldEnd = async () => { if (fold.isTravis()) console.log(fold.end("lint")); }; + +/** @type { (folder: string) => { (): Promise; displayName?: string } } */ const eslint = (folder) => async () => { const ESLINTRC_CI = ".eslintrc.ci.json"; const isCIEnv = cmdLineOptions.ci || process.env.CI === "true"; diff --git a/scripts/types/ambient.d.ts b/scripts/types/ambient.d.ts index 9ea70adee50..d48de7c05d7 100644 --- a/scripts/types/ambient.d.ts +++ b/scripts/types/ambient.d.ts @@ -76,10 +76,15 @@ declare module "undertaker" { interface TaskFunctionParams { flags?: Record; } + interface TaskFunctionWrapped { + description: string + flags: { [name: string]: string } + } } declare module "gulp-sourcemaps" { interface WriteOptions { destPath?: string; } -} \ No newline at end of file + +} From 86c7d84457290d98e71a4d5b6f50623bc3221bde Mon Sep 17 00:00:00 2001 From: Nathan Fenner Date: Mon, 23 Sep 2019 12:02:13 -0700 Subject: [PATCH 137/159] update missing baselines --- tests/baselines/reference/checkJsxChildrenProperty15.errors.txt | 2 +- tests/baselines/reference/tsxUnionElementType4.errors.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/baselines/reference/checkJsxChildrenProperty15.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty15.errors.txt index fa034be0f18..d0be275765f 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty15.errors.txt +++ b/tests/baselines/reference/checkJsxChildrenProperty15.errors.txt @@ -17,7 +17,7 @@ tests/cases/conformance/jsx/file.tsx(12,13): error TS2322: Type '{ children: Ele // Not OK (excess children) const k3 = } />; - ~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~ !!! error TS2322: Type '{ children: Element; }' is not assignable to type 'IntrinsicAttributes'. !!! error TS2322: Property 'children' does not exist on type 'IntrinsicAttributes'. const k4 =
; diff --git a/tests/baselines/reference/tsxUnionElementType4.errors.txt b/tests/baselines/reference/tsxUnionElementType4.errors.txt index 2048b100c11..40463bcbb79 100644 --- a/tests/baselines/reference/tsxUnionElementType4.errors.txt +++ b/tests/baselines/reference/tsxUnionElementType4.errors.txt @@ -42,7 +42,7 @@ tests/cases/conformance/jsx/file.tsx(34,22): error TS2322: Type '{ prop: true; } !!! error TS2322: Type 'true' is not assignable to type 'never'. !!! related TS6500 tests/cases/conformance/jsx/file.tsx:3:36: The expected type comes from property 'x' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes & { x: number; } & { children?: ReactNode; } & { x: string; } & { children?: ReactNode; }' let b = - ~~~~~~ + ~ !!! error TS2322: Type '{ x: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. !!! error TS2322: Property 'x' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'. let c = ; From 04638a15774293202bd2cae2473d8787377fa205 Mon Sep 17 00:00:00 2001 From: typescript-bot Date: Mon, 23 Sep 2019 20:45:24 +0000 Subject: [PATCH 138/159] Update user baselines --- .../baselines/reference/docker/azure-sdk.log | 50 +++--- .../reference/docker/office-ui-fabric.log | 40 ++++- tests/baselines/reference/docker/vscode.log | 10 +- tests/baselines/reference/user/axios-src.log | 36 ++-- tests/baselines/reference/user/npm.log | 2 + tests/baselines/reference/user/prettier.log | 164 ++++++++++-------- tests/baselines/reference/user/puppeteer.log | 38 ++-- 7 files changed, 198 insertions(+), 142 deletions(-) diff --git a/tests/baselines/reference/docker/azure-sdk.log b/tests/baselines/reference/docker/azure-sdk.log index fa91089f9d8..986ee8506ee 100644 --- a/tests/baselines/reference/docker/azure-sdk.log +++ b/tests/baselines/reference/docker/azure-sdk.log @@ -2,32 +2,36 @@ Exit Code: 1 Standard output: Rush Multi-Project Build Tool 5.X.X - https://rushjs.io -Node.js version is 12.9.1 (pre-LTS) +Node.js version is 12.10.0 (pre-LTS) Starting "rush rebuild" Executing a maximum of ?simultaneous processes... XX of XX: [@azure/abort-controller] completed successfully in ? seconds XX of XX: [@azure/core-auth] completed successfully in ? seconds +XX of XX: [@azure/core-tracing] completed successfully in ? seconds XX of XX: [@azure/core-http] completed successfully in ? seconds XX of XX: [@azure/identity] completed successfully in ? seconds XX of XX: [@azure/core-amqp] completed successfully in ? seconds XX of XX: [@azure/core-arm] completed successfully in ? seconds XX of XX: [@azure/core-paging] completed successfully in ? seconds -XX of XX: [@azure/event-processor-host] completed successfully in ? seconds XX of XX: [@azure/test-utils-recorder] completed successfully in ? seconds -XX of XX: [@azure/app-configuration] completed successfully in ? seconds +XX of XX: [@azure/event-hubs] completed successfully in ? seconds +XX of XX: [@azure/event-processor-host] completed successfully in ? seconds +XX of XX: [@azure/keyvault-keys] completed successfully in ? seconds +XX of XX: [@azure/keyvault-secrets] completed successfully in ? seconds +Warning: You have changed the public API signature for this project. Updating review/app-configuration.api.md XX of XX: [@azure/core-asynciterator-polyfill] completed successfully in ? seconds -XX of XX: [@azure/core-tracing] completed successfully in ? seconds Warning: You have changed the public API signature for this project. Updating review/cosmos.api.md dist-esm/index.js → dist/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency -tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js, dist-esm/retry/defaultRetryPolicy.js) +tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Databases.js, dist-esm/client/Database/Database.js, dist-esm/client/Item/Item.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/Item/Items.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) @azure/cosmos-sign (imported by dist-esm/auth.js) universal-user-agent (imported by dist-esm/common/platform.js) -uuid/v4 (imported by dist-esm/client/Item/Items.js) +uuid/v4 (imported by dist-esm/ClientContext.js, dist-esm/client/Item/Items.js) binary-search-bounds (imported by dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/routing/inMemoryCollectionRoutingMap.js) priorityqueuejs (imported by dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js) semaphore (imported by dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js) +debug (imported by dist-esm/common/logger.js) node-abort-controller (imported by dist-esm/request/RequestHandler.js) node-fetch (imported by dist-esm/request/RequestHandler.js) atob (imported by dist-esm/session/sessionContainer.js) @@ -35,9 +39,10 @@ crypto-hash (imported by dist-esm/queryExecutionContext/EndpointComponent/Ordere fast-json-stable-stringify (imported by dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js) (!) Missing global variable names Use output.globals to specify browser global variable names corresponding to external modules -universal-user-agent (guessing 'userAgent') +universal-user-agent (guessing 'universalUserAgent') tslib (guessing 'tslib') @azure/cosmos-sign (guessing 'cosmosSign') +debug (guessing 'debugLib') binary-search-bounds (guessing 'bs') priorityqueuejs (guessing 'PriorityQueue') semaphore (guessing 'semaphore') @@ -51,33 +56,32 @@ atob (guessing 'atob') (!) Circular dependency: dist-esm/index.js -> dist-esm/CosmosClient.js -> dist-esm/client/Database/index.js -> dist-esm/client/Database/Database.js -> dist-esm/client/Container/index.js -> dist-esm/client/Container/Container.js -> dist-esm/client/Script/Scripts.js -> dist-esm/index.js (!) Circular dependency: dist-esm/request/RequestHandler.js -> dist-esm/retry/retryUtility.js -> dist-esm/request/RequestHandler.js created dist/index.js in ?s -Warning: You have changed the public API signature for this project. Updating review/event-hubs.api.md +XX of XX: [@azure/eventhubs-checkpointstore-blob] completed successfully in ? seconds XX of XX: [@azure/keyvault-certificates] completed successfully in ? seconds -XX of XX: [@azure/keyvault-keys] completed successfully in ? seconds -XX of XX: [@azure/keyvault-secrets] completed successfully in ? seconds Warning: You have changed the public API signature for this project. Updating review/service-bus.api.md XX of XX: [@azure/storage-blob] completed successfully in ? seconds XX of XX: [@azure/storage-file] completed successfully in ? seconds XX of XX: [@azure/storage-queue] completed successfully in ? seconds XX of XX: [@azure/template] completed successfully in ? seconds XX of XX: [testhub] completed successfully in ? seconds -SUCCESS (20) +SUCCESS (21) ================================ @azure/abort-controller (? seconds) @azure/core-auth (? seconds) +@azure/core-tracing (? seconds) @azure/core-http (? seconds) @azure/identity (? seconds) @azure/core-amqp (? seconds) @azure/core-arm (? seconds) @azure/core-paging (? seconds) -@azure/event-processor-host (? seconds) @azure/test-utils-recorder (? seconds) -@azure/app-configuration (? seconds) -@azure/core-asynciterator-polyfill (? seconds) -@azure/core-tracing (? seconds) -@azure/keyvault-certificates (? seconds) +@azure/event-hubs (? seconds) +@azure/event-processor-host (? seconds) @azure/keyvault-keys (? seconds) @azure/keyvault-secrets (? seconds) +@azure/core-asynciterator-polyfill (? seconds) +@azure/eventhubs-checkpointstore-blob (? seconds) +@azure/keyvault-certificates (? seconds) @azure/storage-blob (? seconds) @azure/storage-file (? seconds) @azure/storage-queue (? seconds) @@ -86,18 +90,21 @@ testhub (? seconds) ================================ SUCCESS WITH WARNINGS (3) ================================ +@azure/app-configuration (? seconds) +Warning: You have changed the public API signature for this project. Updating review/app-configuration.api.md @azure/cosmos (? seconds) Warning: You have changed the public API signature for this project. Updating review/cosmos.api.md dist-esm/index.js → dist/index.js... (!) Unresolved dependencies https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency -tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Database.js, dist-esm/client/Database/Databases.js, dist-esm/client/Item/Item.js, dist-esm/client/Item/Items.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js, dist-esm/retry/defaultRetryPolicy.js) +tslib (imported by dist-esm/auth.js, dist-esm/queryIterator.js, dist-esm/CosmosClient.js, dist-esm/plugins/Plugin.js, dist-esm/ClientContext.js, dist-esm/globalEndpointManager.js, dist-esm/client/Conflict/Conflict.js, dist-esm/client/Container/Container.js, dist-esm/client/Container/Containers.js, dist-esm/client/Database/Databases.js, dist-esm/client/Database/Database.js, dist-esm/client/Item/Item.js, dist-esm/client/Offer/Offer.js, dist-esm/client/Permission/Permission.js, dist-esm/client/Permission/Permissions.js, dist-esm/client/StoredProcedure/StoredProcedure.js, dist-esm/client/Item/Items.js, dist-esm/client/StoredProcedure/StoredProcedures.js, dist-esm/client/Trigger/Trigger.js, dist-esm/client/Trigger/Triggers.js, dist-esm/client/User/User.js, dist-esm/client/User/Users.js, dist-esm/client/UserDefinedFunction/UserDefinedFunction.js, dist-esm/client/UserDefinedFunction/UserDefinedFunctions.js, dist-esm/queryExecutionContext/defaultQueryExecutionContext.js, dist-esm/queryExecutionContext/documentProducer.js, dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/queryExecutionContext/pipelinedQueryExecutionContext.js, dist-esm/request/request.js, dist-esm/request/RequestHandler.js, dist-esm/ChangeFeedIterator.js, dist-esm/routing/smartRoutingMapProvider.js, dist-esm/queryExecutionContext/EndpointComponent/AggregateEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js, dist-esm/retry/retryUtility.js, dist-esm/routing/partitionKeyRangeCache.js, dist-esm/retry/defaultRetryPolicy.js, dist-esm/retry/endpointDiscoveryRetryPolicy.js, dist-esm/retry/resourceThrottleRetryPolicy.js, dist-esm/retry/sessionRetryPolicy.js) @azure/cosmos-sign (imported by dist-esm/auth.js) universal-user-agent (imported by dist-esm/common/platform.js) -uuid/v4 (imported by dist-esm/client/Item/Items.js) +uuid/v4 (imported by dist-esm/ClientContext.js, dist-esm/client/Item/Items.js) binary-search-bounds (imported by dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js, dist-esm/routing/inMemoryCollectionRoutingMap.js) priorityqueuejs (imported by dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js) semaphore (imported by dist-esm/queryExecutionContext/parallelQueryExecutionContextBase.js) +debug (imported by dist-esm/common/logger.js) node-abort-controller (imported by dist-esm/request/RequestHandler.js) node-fetch (imported by dist-esm/request/RequestHandler.js) atob (imported by dist-esm/session/sessionContainer.js) @@ -105,9 +112,10 @@ crypto-hash (imported by dist-esm/queryExecutionContext/EndpointComponent/Ordere fast-json-stable-stringify (imported by dist-esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js, dist-esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js) (!) Missing global variable names Use output.globals to specify browser global variable names corresponding to external modules -universal-user-agent (guessing 'userAgent') +universal-user-agent (guessing 'universalUserAgent') tslib (guessing 'tslib') @azure/cosmos-sign (guessing 'cosmosSign') +debug (guessing 'debugLib') binary-search-bounds (guessing 'bs') priorityqueuejs (guessing 'PriorityQueue') semaphore (guessing 'semaphore') @@ -121,8 +129,6 @@ atob (guessing 'atob') (!) Circular dependency: dist-esm/index.js -> dist-esm/CosmosClient.js -> dist-esm/client/Database/index.js -> dist-esm/client/Database/Database.js -> dist-esm/client/Container/index.js -> dist-esm/client/Container/Container.js -> dist-esm/client/Script/Scripts.js -> dist-esm/index.js (!) Circular dependency: dist-esm/request/RequestHandler.js -> dist-esm/retry/retryUtility.js -> dist-esm/request/RequestHandler.js created dist/index.js in ?s -@azure/event-hubs (? seconds) -Warning: You have changed the public API signature for this project. Updating review/event-hubs.api.md @azure/service-bus (? seconds) Warning: You have changed the public API signature for this project. Updating review/service-bus.api.md ================================ @@ -131,7 +137,7 @@ rush rebuild ( ? seconds) Standard error: +XX of XX: [@azure/app-configuration] completed with warnings in ? seconds XX of XX: [@azure/cosmos] completed with warnings in ? seconds -XX of XX: [@azure/event-hubs] completed with warnings in ? seconds XX of XX: [@azure/service-bus] completed with warnings in ? seconds Project(s) succeeded with warnings diff --git a/tests/baselines/reference/docker/office-ui-fabric.log b/tests/baselines/reference/docker/office-ui-fabric.log index 96605f33b9d..c631249fdd6 100644 --- a/tests/baselines/reference/docker/office-ui-fabric.log +++ b/tests/baselines/reference/docker/office-ui-fabric.log @@ -34,6 +34,12 @@ Standard output: @uifabric/migration: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/migration/tsconfig.json @uifabric/migration: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --inlineSources --sourceRoot "../src" --outDir lib --module commonjs --project "/office-ui-fabric-react/packages/migration/tsconfig.json" @uifabric/migration: Done in ?s. +@uifabric/monaco-editor: yarn run vX.X.X +@uifabric/monaco-editor: $ just-scripts build --production --lint +@uifabric/monaco-editor: [XX:XX:XX XM] ■ Removing [esm, lib] +@uifabric/monaco-editor: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/monaco-editor/tsconfig.json +@uifabric/monaco-editor: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --inlineSources --sourceRoot "../src" --outDir lib --module esnext --project "/office-ui-fabric-react/packages/monaco-editor/tsconfig.json" +@uifabric/monaco-editor: Done in ?s. @uifabric/set-version: yarn run vX.X.X @uifabric/set-version: $ just-scripts build --production --lint @uifabric/set-version: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] @@ -84,6 +90,7 @@ Standard output: @uifabric/merge-styles: PASS src/Stylesheet.test.ts @uifabric/merge-styles: PASS src/extractStyleParts.test.ts @uifabric/merge-styles: PASS src/server.test.ts +@uifabric/merge-styles: PASS src/concatStyleSetsWithProps.test.ts @uifabric/merge-styles: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/merge-styles/lib/index.d.ts' @uifabric/merge-styles: Done in ?s. @uifabric/jest-serializer-merge-styles: yarn run vX.X.X @@ -127,9 +134,9 @@ Standard output: @uifabric/utilities: PASS src/warn/warnControlledUsage.test.ts @uifabric/utilities: PASS src/focus.test.tsx @uifabric/utilities: PASS src/styled.test.tsx +@uifabric/utilities: PASS src/customizations/Customizer.test.tsx @uifabric/utilities: PASS src/EventGroup.test.ts @uifabric/utilities: PASS src/array.test.ts -@uifabric/utilities: PASS src/customizations/Customizer.test.tsx @uifabric/utilities: PASS src/math.test.ts @uifabric/utilities: PASS src/warn/warn.test.ts @uifabric/utilities: PASS src/dom/dom.test.ts @@ -160,6 +167,26 @@ Standard output: @uifabric/utilities: PASS src/keyboard.test.ts @uifabric/utilities: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/utilities/lib/index.d.ts' @uifabric/utilities: Done in ?s. +@uifabric/react-hooks: yarn run vX.X.X +@uifabric/react-hooks: $ just-scripts build --production --lint +@uifabric/react-hooks: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running tslint +@uifabric/react-hooks: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/tslint/lib/tslintCli.js" --project "/office-ui-fabric-react/packages/react-hooks/tsconfig.json" -t stylish -r /office-ui-fabric-react/node_modules/tslint-microsoft-contrib +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/react-hooks/tsconfig.json +@uifabric/react-hooks: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --inlineSources --sourceRoot "../src" --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/react-hooks/tsconfig.json" +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/react-hooks/tsconfig.json +@uifabric/react-hooks: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --inlineSources --sourceRoot "../src" --outDir lib --module esnext --project "/office-ui-fabric-react/packages/react-hooks/tsconfig.json" +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/react-hooks/tsconfig.json +@uifabric/react-hooks: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --inlineSources --sourceRoot "../src" --outDir lib-amd --module amd --project "/office-ui-fabric-react/packages/react-hooks/tsconfig.json" +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running Jest +@uifabric/react-hooks: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/jest/bin/jest.js" --config "/office-ui-fabric-react/packages/react-hooks/jest.config.js" --passWithNoTests --colors --forceExit +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running Webpack +@uifabric/react-hooks: [XX:XX:XX XM] ■ Webpack Config Path: /office-ui-fabric-react/packages/react-hooks/webpack.config.js +@uifabric/react-hooks: Webpack version: 4.29.5 +@uifabric/react-hooks: PASS src/useConst.test.tsx +@uifabric/react-hooks: PASS src/useId.test.tsx +@uifabric/react-hooks: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/react-hooks/lib/index.d.ts' +@uifabric/react-hooks: Done in ?s. @uifabric/styling: yarn run vX.X.X @uifabric/styling: $ just-scripts build --production --lint @uifabric/styling: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] @@ -214,6 +241,7 @@ Standard output: @uifabric/foundation: [XX:XX:XX XM] ■ Webpack Config Path: /office-ui-fabric-react/packages/foundation/webpack.config.js @uifabric/foundation: Webpack version: 4.29.5 @uifabric/foundation: FAIL src/slots.test.tsx +@uifabric/foundation: PASS src/next/composed.test.tsx @uifabric/foundation: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. @@ -221,7 +249,7 @@ Standard output: Standard error: info cli using local version of lerna lerna notice cli vX.X.X -lerna info Executing command in 41 packages: "yarn run build --production --lint" +lerna info Executing command in 43 packages: "yarn run build --production --lint" @uifabric/codepen-loader: ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. @uifabric/codepen-loader: Force exiting Jest @uifabric/codepen-loader: @@ -242,6 +270,11 @@ lerna info Executing command in 41 packages: "yarn run build --production --lint @uifabric/utilities: Force exiting Jest @uifabric/utilities: @uifabric/utilities: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished? +@uifabric/react-hooks: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect +@uifabric/react-hooks: ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. +@uifabric/react-hooks: Force exiting Jest +@uifabric/react-hooks: +@uifabric/react-hooks: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished? @uifabric/styling: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect @uifabric/styling: ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. @uifabric/styling: Force exiting Jest @@ -453,13 +486,12 @@ lerna info Executing command in 41 packages: "yarn run build --production --lint @uifabric/foundation: [XX:XX:XX XM] x Error detected while running 'jest' @uifabric/foundation: [XX:XX:XX XM] x ------------------------------------ @uifabric/foundation: [XX:XX:XX XM] x Error: Command failed: /usr/local/bin/node /office-ui-fabric-react/node_modules/jest/bin/jest.js --config /office-ui-fabric-react/packages/foundation/jest.config.js --passWithNoTests --colors --forceExit -@uifabric/foundation: at ChildProcess. (/office-ui-fabric-react/node_modules/just-scripts/node_modules/just-scripts-utils/lib/exec.js:70:31) +@uifabric/foundation: at ChildProcess. (/office-ui-fabric-react/node_modules/just-scripts-utils/lib/exec.js:70:31) @uifabric/foundation: at ChildProcess.emit (events.js:209:13) @uifabric/foundation: at ChildProcess.EventEmitter.emit (domain.js:499:23) @uifabric/foundation: at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) @uifabric/foundation: [XX:XX:XX XM] x ------------------------------------ @uifabric/foundation: [XX:XX:XX XM] x Error previously detected. See above for error messages. -@uifabric/foundation: [XX:XX:XX XM] x Other tasks that did not complete: [webpack] @uifabric/foundation: error Command failed with exit code 1. lerna ERR! yarn run build --production --lint exited 1 in '@uifabric/foundation' lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately. diff --git a/tests/baselines/reference/docker/vscode.log b/tests/baselines/reference/docker/vscode.log index 4775203f50e..bd9219cecdc 100644 --- a/tests/baselines/reference/docker/vscode.log +++ b/tests/baselines/reference/docker/vscode.log @@ -4,17 +4,17 @@ yarn run vX.X.X $ gulp compile --max_old_space_size=4095 [XX:XX:XX] Node flags detected: --max_old_space_size=4095 [XX:XX:XX] Using gulpfile /vscode/gulpfile.js -[XX:XX:XX] Error: /vscode/node_modules/@types/node/index.d.ts(179,11): Duplicate identifier 'IteratorResult'. +[XX:XX:XX] Error: /vscode/src/vs/editor/browser/controller/mouseTarget.ts(975,7): This condition will always return true since the function is always defined. Did you mean to call it instead? +[XX:XX:XX] Error: /vscode/extensions/css-language-features/server/src/cssServerMain.ts(78,16): This condition will always return true since the function is always defined. Did you mean to call it instead? +[XX:XX:XX] Error: /vscode/extensions/css-language-features/server/src/cssServerMain.ts(80,16): This condition will always return true since the function is always defined. Did you mean to call it instead? +[XX:XX:XX] Error: /vscode/extensions/git/src/util.ts(163,9): This condition will always return true since the function is always defined. Did you mean to call it instead? info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Standard error: -{"type":"warning","data":"package.json: No license field"} -{"type":"warning","data":"../package.json: No license field"} -{"type":"warning","data":"vscode-web@X.X.X: No license field"} [XX:XX:XX] 'compile' errored after ?s -[XX:XX:XX] Error: Found 1 errors +[XX:XX:XX] Error: Found 2 errors at Stream. (/vscode/build/lib/reporter.js:74:29) at _end (/vscode/node_modules/through/index.js:65:9) at Stream.stream.end (/vscode/node_modules/through/index.js:74:5) diff --git a/tests/baselines/reference/user/axios-src.log b/tests/baselines/reference/user/axios-src.log index 6d90ef3ca83..d24af763712 100644 --- a/tests/baselines/reference/user/axios-src.log +++ b/tests/baselines/reference/user/axios-src.log @@ -1,24 +1,24 @@ Exit Code: 1 Standard output: -lib/adapters/http.js(12,19): error TS2732: Cannot find module './../../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension -lib/adapters/http.js(85,22): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. +lib/adapters/http.js(13,19): error TS2732: Cannot find module './../../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension +lib/adapters/http.js(84,22): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string'. -lib/adapters/http.js(121,17): error TS2532: Object is possibly 'undefined'. -lib/adapters/http.js(121,40): error TS2532: Object is possibly 'undefined'. -lib/adapters/http.js(122,17): error TS2531: Object is possibly 'null'. -lib/adapters/http.js(122,54): error TS2531: Object is possibly 'null'. -lib/adapters/http.js(122,54): error TS2532: Object is possibly 'undefined'. -lib/adapters/http.js(221,23): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. -lib/adapters/http.js(227,44): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. -lib/adapters/http.js(233,13): error TS2322: Type 'string' is not assignable to type 'Buffer'. -lib/adapters/http.js(245,40): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. -lib/adapters/http.js(269,42): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. -lib/adapters/xhr.js(62,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'. -lib/adapters/xhr.js(74,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'. -lib/adapters/xhr.js(81,51): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. -lib/adapters/xhr.js(84,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'. -lib/adapters/xhr.js(93,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'. -lib/adapters/xhr.js(163,9): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'. +lib/adapters/http.js(120,17): error TS2532: Object is possibly 'undefined'. +lib/adapters/http.js(120,40): error TS2532: Object is possibly 'undefined'. +lib/adapters/http.js(121,17): error TS2531: Object is possibly 'null'. +lib/adapters/http.js(121,54): error TS2531: Object is possibly 'null'. +lib/adapters/http.js(121,54): error TS2532: Object is possibly 'undefined'. +lib/adapters/http.js(220,23): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. +lib/adapters/http.js(226,44): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. +lib/adapters/http.js(232,13): error TS2322: Type 'string' is not assignable to type 'Buffer'. +lib/adapters/http.js(244,40): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. +lib/adapters/http.js(273,42): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. +lib/adapters/xhr.js(64,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'. +lib/adapters/xhr.js(76,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'. +lib/adapters/xhr.js(83,51): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'. +lib/adapters/xhr.js(86,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'. +lib/adapters/xhr.js(95,7): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'. +lib/adapters/xhr.js(165,9): error TS2322: Type 'null' is not assignable to type 'XMLHttpRequest'. lib/axios.js(23,9): error TS2554: Expected 3 arguments, but got 2. lib/axios.js(25,3): error TS2739: Type '(...args: any[]) => any' is missing the following properties from type 'Axios': defaults, interceptors, request, getUri lib/axios.js(32,7): error TS2339: Property 'Axios' does not exist on type 'Axios'. diff --git a/tests/baselines/reference/user/npm.log b/tests/baselines/reference/user/npm.log index 915f6640ff9..6af4d36f857 100644 --- a/tests/baselines/reference/user/npm.log +++ b/tests/baselines/reference/user/npm.log @@ -1153,6 +1153,8 @@ node_modules/npm/test/tap/check-engine-reqs.js(4,20): error TS2307: Cannot find node_modules/npm/test/tap/check-install-self.js(4,20): error TS2307: Cannot find module 'tap'. node_modules/npm/test/tap/check-os-reqs.js(4,20): error TS2307: Cannot find module 'tap'. node_modules/npm/test/tap/check-permissions.js(4,20): error TS2307: Cannot find module 'tap'. +node_modules/npm/test/tap/check-permissions.js(26,7): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? +node_modules/npm/test/tap/check-permissions.js(42,7): error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead? node_modules/npm/test/tap/ci-header.js(3,20): error TS2307: Cannot find module 'tap'. node_modules/npm/test/tap/ci-header.js(4,18): error TS2307: Cannot find module 'npm-registry-mock'. node_modules/npm/test/tap/ci-header.js(5,21): error TS2307: Cannot find module 'tacks'. diff --git a/tests/baselines/reference/user/prettier.log b/tests/baselines/reference/user/prettier.log index 65a671bd378..b823a2065c1 100644 --- a/tests/baselines/reference/user/prettier.log +++ b/tests/baselines/reference/user/prettier.log @@ -55,16 +55,18 @@ src/doc/doc-printer.js(501,37): error TS2345: Argument of type 'any[][]' is not src/index.js(3,25): error TS2732: Cannot find module '../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension src/index.js(30,17): error TS2339: Property 'sync' does not exist on type '(...args: any[]) => any'. src/language-css/clean.js(3,30): error TS2307: Cannot find module 'html-tag-names'. -src/language-css/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/css'. -src/language-css/index.js(8,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-css/index.js(15,26): error TS2307: Cannot find module 'linguist-languages/data/postcss'. -src/language-css/index.js(25,26): error TS2307: Cannot find module 'linguist-languages/data/less'. -src/language-css/index.js(25,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-css/index.js(32,26): error TS2307: Cannot find module 'linguist-languages/data/scss'. -src/language-css/index.js(32,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. +src/language-css/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/CSS'. +src/language-css/index.js(8,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-css/index.js(15,26): error TS2307: Cannot find module 'linguist-languages/data/PostCSS'. +src/language-css/index.js(15,62): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { extensions: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Property 'exclude' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { extensions: string[]; }; }' but required in type '{ extend: any; override: any; exclude: any; }'. +src/language-css/index.js(25,26): error TS2307: Cannot find module 'linguist-languages/data/Less'. +src/language-css/index.js(25,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-css/index.js(32,26): error TS2307: Cannot find module 'linguist-languages/data/SCSS'. +src/language-css/index.js(32,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude src/language-css/parser-postcss.js(64,32): error TS2345: Argument of type '{ groups: never[]; type: string; }' is not assignable to parameter of type 'never'. src/language-css/parser-postcss.js(74,30): error TS2345: Argument of type '{ open: null; close: null; groups: never[]; type: string; }' is not assignable to parameter of type 'never'. src/language-css/parser-postcss.js(79,30): error TS2345: Argument of type '{ groups: never[]; type: string; }' is not assignable to parameter of type 'never'. @@ -72,12 +74,12 @@ src/language-css/parser-postcss.js(86,30): error TS2345: Argument of type 'any' src/language-css/parser-postcss.js(90,28): error TS2345: Argument of type '{ groups: never[]; type: string; }' is not assignable to parameter of type 'never'. src/language-css/parser-postcss.js(449,32): error TS2531: Object is possibly 'null'. src/language-css/utils.js(3,30): error TS2307: Cannot find module 'html-tag-names'. -src/language-graphql/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/graphql'. -src/language-graphql/index.js(8,62): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-handlebars/index.js(7,26): error TS2307: Cannot find module 'linguist-languages/data/handlebars'. -src/language-handlebars/index.js(7,65): error TS2345: Argument of type '{ override: { since: null; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: null; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. +src/language-graphql/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/GraphQL'. +src/language-graphql/index.js(8,62): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-handlebars/index.js(7,26): error TS2307: Cannot find module 'linguist-languages/data/Handlebars'. +src/language-handlebars/index.js(7,65): error TS2345: Argument of type '{ override: { since: null; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: null; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude src/language-html/ast.js(53,11): error TS2536: Type 'Extract' cannot be used to index type 'Node'. src/language-html/ast.js(56,15): error TS2339: Property 'index' does not exist on type 'Node'. src/language-html/ast.js(56,22): error TS2339: Property 'siblings' does not exist on type 'Node'. @@ -100,16 +102,18 @@ src/language-html/ast.js(90,69): error TS2339: Property 'name' does not exist on src/language-html/conditional-comment.js(23,16): error TS2349: This expression is not callable. Not all constituents of type 'RegExp | ((node: any) => { type: string; sourceSpan: any; })' are callable. Type 'RegExp' has no call signatures. -src/language-html/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/html'. -src/language-html/index.js(8,59): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: string[]; filenames: never[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: string[]; filenames: never[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-html/index.js(19,26): error TS2307: Cannot find module 'linguist-languages/data/html'. -src/language-html/index.js(31,26): error TS2307: Cannot find module 'linguist-languages/data/html'. -src/language-html/index.js(31,59): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: never[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: never[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-html/index.js(42,26): error TS2307: Cannot find module 'linguist-languages/data/vue'. -src/language-html/index.js(42,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. +src/language-html/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/HTML'. +src/language-html/index.js(8,59): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: string[]; filenames: never[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: string[]; filenames: never[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-html/index.js(19,26): error TS2307: Cannot find module 'linguist-languages/data/HTML'. +src/language-html/index.js(19,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { extensions: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Property 'exclude' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { extensions: string[]; }; }' but required in type '{ extend: any; override: any; exclude: any; }'. +src/language-html/index.js(31,26): error TS2307: Cannot find module 'linguist-languages/data/HTML'. +src/language-html/index.js(31,59): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: never[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: never[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-html/index.js(42,26): error TS2307: Cannot find module 'linguist-languages/data/Vue'. +src/language-html/index.js(42,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude src/language-html/parser-html.js(52,12): error TS2339: Property 'type' does not exist on type 'Attribute'. src/language-html/parser-html.js(54,12): error TS2339: Property 'type' does not exist on type 'CDATA'. src/language-html/parser-html.js(56,12): error TS2339: Property 'type' does not exist on type 'Comment'. @@ -165,25 +169,34 @@ src/language-html/syntax-vue.js(14,27): error TS2339: Property 'right' does not src/language-html/utils.js(10,30): error TS2307: Cannot find module 'html-tag-names'. src/language-html/utils.js(11,39): error TS2307: Cannot find module 'html-element-attributes'. src/language-html/utils.js(444,17): error TS2554: Expected 0 arguments, but got 1. -src/language-js/comments.js(864,64): error TS2554: Expected 0 arguments, but got 1. -src/language-js/index.js(9,26): error TS2307: Cannot find module 'linguist-languages/data/javascript'. -src/language-js/index.js(19,26): error TS2307: Cannot find module 'linguist-languages/data/javascript'. -src/language-js/index.js(19,65): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; aliases: never[]; filenames: never[]; extensions: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; aliases: never[]; filenames: never[]; extensions: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-js/index.js(31,26): error TS2307: Cannot find module 'linguist-languages/data/jsx'. -src/language-js/index.js(31,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-js/index.js(38,26): error TS2307: Cannot find module 'linguist-languages/data/typescript'. -src/language-js/index.js(38,65): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-js/index.js(45,26): error TS2307: Cannot find module 'linguist-languages/data/json'. -src/language-js/index.js(45,59): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-js/index.js(56,26): error TS2307: Cannot find module 'linguist-languages/data/json'. -src/language-js/index.js(66,26): error TS2307: Cannot find module 'linguist-languages/data/json-with-comments'. -src/language-js/index.js(76,26): error TS2307: Cannot find module 'linguist-languages/data/json5'. -src/language-js/index.js(76,60): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. +src/language-js/comments.js(865,64): error TS2554: Expected 0 arguments, but got 1. +src/language-js/index.js(9,26): error TS2307: Cannot find module 'linguist-languages/data/JavaScript'. +src/language-js/index.js(9,65): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { interpreters: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Property 'exclude' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { interpreters: string[]; }; }' but required in type '{ extend: any; override: any; exclude: any; }'. +src/language-js/index.js(19,26): error TS2307: Cannot find module 'linguist-languages/data/JavaScript'. +src/language-js/index.js(19,65): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; aliases: never[]; filenames: never[]; extensions: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; aliases: never[]; filenames: never[]; extensions: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-js/index.js(30,26): error TS2307: Cannot find module 'linguist-languages/data/JSX'. +src/language-js/index.js(30,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-js/index.js(37,26): error TS2307: Cannot find module 'linguist-languages/data/TypeScript'. +src/language-js/index.js(37,65): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-js/index.js(44,26): error TS2307: Cannot find module 'linguist-languages/data/TSX'. +src/language-js/index.js(44,58): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-js/index.js(51,26): error TS2307: Cannot find module 'linguist-languages/data/JSON'. +src/language-js/index.js(51,59): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; extensions: never[]; filenames: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude +src/language-js/index.js(61,26): error TS2307: Cannot find module 'linguist-languages/data/JSON'. +src/language-js/index.js(61,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { filenames: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Property 'exclude' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { filenames: string[]; }; }' but required in type '{ extend: any; override: any; exclude: any; }'. +src/language-js/index.js(71,26): error TS2307: Cannot find module 'linguist-languages/data/JSON with Comments'. +src/language-js/index.js(71,73): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { filenames: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Property 'exclude' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { filenames: string[]; }; }' but required in type '{ extend: any; override: any; exclude: any; }'. +src/language-js/index.js(81,26): error TS2307: Cannot find module 'linguist-languages/data/JSON5'. +src/language-js/index.js(81,60): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude src/language-js/needs-parens.js(871,14): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray<(childPath: any) => any>[]): ((childPath: any) => any)[]', gave the following error. Argument of type '(string | number)[]' is not assignable to parameter of type 'ConcatArray<(childPath: any) => any>'. @@ -206,47 +219,49 @@ src/language-js/printer-estree.js(400,9): error TS2769: No overload matches this Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. Argument of type '{ type: string; parts: any; } | { type: string; contents: any; n: any; }' is not assignable to parameter of type 'ConcatArray'. Type '{ type: string; parts: any; }' is not assignable to type 'ConcatArray'. -src/language-js/printer-estree.js(1473,28): error TS2769: No overload matches this call. +src/language-js/printer-estree.js(1481,28): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray[]): (string | { type: string; id: any; contents: any; break: boolean; expandedStates: any; })[]', gave the following error. Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. Type '{ type: string; parts: any; }' is missing the following properties from type 'ConcatArray': length, join, slice Overload 2 of 2, '(...items: (string | { type: string; id: any; contents: any; break: boolean; expandedStates: any; } | ConcatArray)[]): (string | { ...; })[]', gave the following error. Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string | { type: string; id: any; contents: any; break: boolean; expandedStates: any; } | ConcatArray'. Type '{ type: string; parts: any; }' is missing the following properties from type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }': id, contents, break, expandedStates -src/language-js/printer-estree.js(1906,20): error TS2345: Argument of type '" "' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. -src/language-js/printer-estree.js(1908,20): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. -src/language-js/printer-estree.js(1910,18): error TS2345: Argument of type '"while ("' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. -src/language-js/printer-estree.js(1919,9): error TS2345: Argument of type '")"' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. -src/language-js/printer-estree.js(3465,11): error TS2769: No overload matches this call. +src/language-js/printer-estree.js(1914,20): error TS2345: Argument of type '" "' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. +src/language-js/printer-estree.js(1916,20): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. +src/language-js/printer-estree.js(1918,18): error TS2345: Argument of type '"while ("' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. +src/language-js/printer-estree.js(1927,9): error TS2345: Argument of type '")"' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. +src/language-js/printer-estree.js(3473,11): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. Argument of type 'never[] | { type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. Type '{ type: string; parts: any; }' is not assignable to type 'ConcatArray'. Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. Argument of type 'never[] | { type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. Type '{ type: string; parts: any; }' is not assignable to type 'ConcatArray'. -src/language-js/printer-estree.js(3894,22): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. -src/language-js/printer-estree.js(3961,14): error TS2339: Property 'comments' does not exist on type 'Expression'. +src/language-js/printer-estree.js(3902,22): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. +src/language-js/printer-estree.js(3969,14): error TS2339: Property 'comments' does not exist on type 'Expression'. Property 'comments' does not exist on type 'Identifier'. -src/language-js/printer-estree.js(3973,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"OptionalMemberExpression"' have no overlap. -src/language-js/printer-estree.js(3974,13): error TS2339: Property 'property' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. +src/language-js/printer-estree.js(3981,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"OptionalMemberExpression"' have no overlap. +src/language-js/printer-estree.js(3982,13): error TS2339: Property 'property' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. Property 'property' does not exist on type 'SimpleLiteral'. -src/language-js/printer-estree.js(3974,52): error TS2339: Property 'property' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. +src/language-js/printer-estree.js(3982,52): error TS2339: Property 'property' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. Property 'property' does not exist on type 'SimpleLiteral'. -src/language-js/printer-estree.js(3979,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"OptionalMemberExpression"' have no overlap. -src/language-js/printer-estree.js(3981,29): error TS2339: Property 'object' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. +src/language-js/printer-estree.js(3987,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"OptionalMemberExpression"' have no overlap. +src/language-js/printer-estree.js(3989,29): error TS2339: Property 'object' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. Property 'object' does not exist on type 'SimpleLiteral'. -src/language-js/printer-estree.js(3982,22): error TS2339: Property 'comments' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. +src/language-js/printer-estree.js(3990,22): error TS2339: Property 'comments' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. Property 'comments' does not exist on type 'SimpleLiteral'. -src/language-js/printer-estree.js(3988,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"Identifier"' have no overlap. -src/language-js/printer-estree.js(3989,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"ThisExpression"' have no overlap. -src/language-js/printer-estree.js(4193,23): error TS2532: Object is possibly 'undefined'. -src/language-js/printer-estree.js(4194,24): error TS2532: Object is possibly 'undefined'. -src/language-js/printer-estree.js(4550,5): error TS2345: Argument of type '"" | { type: string; parts: any; } | { type: string; contents: any; }' is not assignable to parameter of type 'string'. +src/language-js/printer-estree.js(3996,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"Identifier"' have no overlap. +src/language-js/printer-estree.js(3997,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"ThisExpression"' have no overlap. +src/language-js/printer-estree.js(4201,23): error TS2532: Object is possibly 'undefined'. +src/language-js/printer-estree.js(4202,24): error TS2532: Object is possibly 'undefined'. +src/language-js/printer-estree.js(4558,5): error TS2345: Argument of type '"" | { type: string; parts: any; } | { type: string; contents: any; }' is not assignable to parameter of type 'string'. Type '{ type: string; parts: any; }' is not assignable to type 'string'. -src/language-js/printer-estree.js(4554,16): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. -src/language-js/printer-estree.js(4596,9): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. -src/language-js/printer-estree.js(4898,9): error TS2554: Expected 0-2 arguments, but got 3. -src/language-js/printer-estree.js(6105,7): error TS2769: No overload matches this call. +src/language-js/printer-estree.js(4562,16): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. +src/language-js/printer-estree.js(4610,11): error TS2322: Type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }' is not assignable to type 'string'. +src/language-js/printer-estree.js(4625,11): error TS2322: Type '{ type: string; parts: any; }' is not assignable to type 'string'. +src/language-js/printer-estree.js(4637,9): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. +src/language-js/printer-estree.js(4924,9): error TS2554: Expected 0-2 arguments, but got 3. +src/language-js/printer-estree.js(6131,7): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray<(childPath: any) => any>[]): ((childPath: any) => any)[]', gave the following error. Argument of type '(string | number)[]' is not assignable to parameter of type 'ConcatArray<(childPath: any) => any>'. Types of property 'slice' are incompatible. @@ -258,17 +273,18 @@ src/language-js/printer-estree.js(6105,7): error TS2769: No overload matches thi Argument of type '(string | number)[]' is not assignable to parameter of type '((childPath: any) => any) | ConcatArray<(childPath: any) => any>'. Type '(string | number)[]' is not assignable to type 'ConcatArray<(childPath: any) => any>'. src/language-js/utils.js(107,55): error TS2554: Expected 0-1 arguments, but got 2. -src/language-markdown/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/markdown'. -src/language-markdown/index.js(20,5): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. +src/language-markdown/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/Markdown'. +src/language-markdown/index.js(21,26): error TS2307: Cannot find module 'linguist-languages/data/Markdown'. +src/language-markdown/index.js(21,63): error TS2345: Argument of type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; filenames: never[]; extensions: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { name: string; since: string; parsers: string[]; vscodeLanguageIds: string[]; filenames: never[]; extensions: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude src/language-markdown/printer-markdown.js(278,18): error TS2532: Object is possibly 'undefined'. src/language-markdown/printer-markdown.js(279,17): error TS2532: Object is possibly 'undefined'. src/language-markdown/printer-markdown.js(300,14): error TS2532: Object is possibly 'undefined'. src/language-markdown/utils.js(203,5): error TS2322: Type 'never[]' is not assignable to type 'null'. src/language-markdown/utils.js(213,47): error TS2345: Argument of type 'any[]' is not assignable to parameter of type 'null'. -src/language-yaml/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/yaml'. -src/language-yaml/index.js(8,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. - Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. +src/language-yaml/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/YAML'. +src/language-yaml/index.js(8,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. + Type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is missing the following properties from type '{ extend: any; override: any; exclude: any; }': extend, exclude src/language-yaml/printer-yaml.js(226,41): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. Argument of type '"" | { type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. diff --git a/tests/baselines/reference/user/puppeteer.log b/tests/baselines/reference/user/puppeteer.log index 2600112696f..e4b86a40d0e 100644 --- a/tests/baselines/reference/user/puppeteer.log +++ b/tests/baselines/reference/user/puppeteer.log @@ -22,26 +22,26 @@ lib/Coverage.js(208,15): error TS2503: Cannot find namespace 'Protocol'. lib/EmulationManager.js(36,16): error TS2503: Cannot find namespace 'Protocol'. lib/ExecutionContext.js(26,15): error TS2503: Cannot find namespace 'Protocol'. lib/ExecutionContext.js(158,18): error TS2503: Cannot find namespace 'Protocol'. -lib/FrameManager.js(152,15): error TS2503: Cannot find namespace 'Protocol'. -lib/FrameManager.js(174,15): error TS2503: Cannot find namespace 'Protocol'. -lib/FrameManager.js(231,15): error TS2503: Cannot find namespace 'Protocol'. -lib/FrameManager.js(669,15): error TS2503: Cannot find namespace 'Protocol'. +lib/FrameManager.js(151,15): error TS2503: Cannot find namespace 'Protocol'. +lib/FrameManager.js(173,15): error TS2503: Cannot find namespace 'Protocol'. +lib/FrameManager.js(230,15): error TS2503: Cannot find namespace 'Protocol'. +lib/FrameManager.js(668,15): error TS2503: Cannot find namespace 'Protocol'. lib/JSHandle.js(33,15): error TS2503: Cannot find namespace 'Protocol'. -lib/JSHandle.js(129,15): error TS2503: Cannot find namespace 'Protocol'. -lib/JSHandle.js(220,29): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(31,30): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(165,15): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(184,15): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(203,15): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(224,15): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(245,15): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(255,15): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(269,15): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(282,15): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(301,15): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(325,15): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(535,15): error TS2503: Cannot find namespace 'Protocol'. -lib/NetworkManager.js(674,15): error TS2503: Cannot find namespace 'Protocol'. +lib/JSHandle.js(147,15): error TS2503: Cannot find namespace 'Protocol'. +lib/JSHandle.js(238,29): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(32,30): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(159,15): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(178,15): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(197,15): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(218,15): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(239,15): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(249,15): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(263,15): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(276,15): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(295,15): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(319,15): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(529,15): error TS2503: Cannot find namespace 'Protocol'. +lib/NetworkManager.js(668,15): error TS2503: Cannot find namespace 'Protocol'. lib/Page.js(93,33): error TS2345: Argument of type 'CDPSession' is not assignable to parameter of type 'Puppeteer.CDPSession'. Types of property 'on' are incompatible. Type '(event: string | symbol, listener: (...args: any[]) => void) => CDPSession' is not assignable to type '(event: T, listener: (arg: any) => void) => CDPSession'. From 432da939c1d7d9f82e21b89224960fea34b44f63 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 23 Sep 2019 13:54:12 -0700 Subject: [PATCH 139/159] Add doc comments for fileExists and directoryExists implementation --- src/server/project.ts | 10 ++++++++++ tests/baselines/reference/api/tsserverlibrary.d.ts | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/server/project.ts b/src/server/project.ts index 080d3ee54cc..418532bdc45 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -1549,6 +1549,11 @@ namespace ts.server { useSourceOfProjectReferenceRedirect = () => !!this.languageServiceEnabled && !this.getCompilerOptions().disableSourceOfProjectReferenceRedirect; + /** + * This implementation of fileExists checks if the file being requested is + * .d.ts file for the referenced Project. + * If it is it returns true irrespective of whether that file exists on host + */ fileExists(file: string): boolean { // Project references go to source file instead of .d.ts file if (this.useSourceOfProjectReferenceRedirect() && this.projectReferenceCallbacks) { @@ -1558,6 +1563,11 @@ namespace ts.server { return super.fileExists(file); } + /** + * This implementation of directoryExists checks if the directory being requested is + * directory of .d.ts file for the referenced Project. + * If it is it returns true irrespective of whether that directory exists on host + */ directoryExists(path: string): boolean { if (super.directoryExists(path)) return true; if (!this.useSourceOfProjectReferenceRedirect() || !this.projectReferenceCallbacks) return false; diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 1a3e9baf942..d97f62d0ba8 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -8576,7 +8576,17 @@ declare namespace ts.server { private projectErrors; private projectReferences; protected isInitialLoadPending: () => boolean; + /** + * This implementation of fileExists checks if the file being requested is + * .d.ts file for the referenced Project. + * If it is it returns true irrespective of whether that file exists on host + */ fileExists(file: string): boolean; + /** + * This implementation of directoryExists checks if the directory being requested is + * directory of .d.ts file for the referenced Project. + * If it is it returns true irrespective of whether that directory exists on host + */ directoryExists(path: string): boolean; /** * If the project has reload from disk pending, it reloads (and then updates graph as part of that) instead of just updating the graph From f9ca8ba6f863e2de07b6bcf224ecb8460fc17016 Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Mon, 23 Sep 2019 14:09:51 -0700 Subject: [PATCH 140/159] Update user baselines (#33557) --- tests/baselines/reference/docker/office-ui-fabric.log | 2 +- tests/baselines/reference/user/prettier.log | 4 +--- tests/baselines/reference/user/webpack.log | 10 ---------- 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 tests/baselines/reference/user/webpack.log diff --git a/tests/baselines/reference/docker/office-ui-fabric.log b/tests/baselines/reference/docker/office-ui-fabric.log index 7bd402b8327..9cda725e39e 100644 --- a/tests/baselines/reference/docker/office-ui-fabric.log +++ b/tests/baselines/reference/docker/office-ui-fabric.log @@ -134,9 +134,9 @@ Standard output: @uifabric/utilities: PASS src/warn/warnControlledUsage.test.ts @uifabric/utilities: PASS src/focus.test.tsx @uifabric/utilities: PASS src/styled.test.tsx +@uifabric/utilities: PASS src/customizations/Customizer.test.tsx @uifabric/utilities: PASS src/EventGroup.test.ts @uifabric/utilities: PASS src/array.test.ts -@uifabric/utilities: PASS src/customizations/Customizer.test.tsx @uifabric/utilities: PASS src/math.test.ts @uifabric/utilities: PASS src/warn/warn.test.ts @uifabric/utilities: PASS src/dom/dom.test.ts diff --git a/tests/baselines/reference/user/prettier.log b/tests/baselines/reference/user/prettier.log index 93ccd99a0d6..635c0bc0b36 100644 --- a/tests/baselines/reference/user/prettier.log +++ b/tests/baselines/reference/user/prettier.log @@ -169,7 +169,7 @@ src/language-html/syntax-vue.js(14,27): error TS2339: Property 'right' does not src/language-html/utils.js(10,30): error TS2307: Cannot find module 'html-tag-names'. src/language-html/utils.js(11,39): error TS2307: Cannot find module 'html-element-attributes'. src/language-html/utils.js(444,17): error TS2554: Expected 0 arguments, but got 1. -src/language-js/comments.js(864,64): error TS2554: Expected 0 arguments, but got 1. +src/language-js/comments.js(865,64): error TS2554: Expected 0 arguments, but got 1. src/language-js/index.js(9,26): error TS2307: Cannot find module 'linguist-languages/data/JavaScript'. src/language-js/index.js(9,65): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { interpreters: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; exclude: any; }'. Property 'exclude' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; extend: { interpreters: string[]; }; }' but required in type '{ extend: any; override: any; exclude: any; }'. @@ -335,8 +335,6 @@ src/main/options-normalizer.js(36,35): error TS2339: Property 'blue' does not ex src/main/options-normalizer.js(54,5): error TS2525: Initializer provides no value for this binding element and the binding element has no default value. src/main/options-normalizer.js(74,16): error TS2341: Property '_hasDeprecationWarned' is private and only accessible within class 'Normalizer'. src/main/options-normalizer.js(80,39): error TS2341: Property '_hasDeprecationWarned' is private and only accessible within class 'Normalizer'. -src/main/options-normalizer.js(90,44): error TS2345: Argument of type '{ name: string; }' is not assignable to parameter of type 'SchemaHandlers'. - Object literal may only specify known properties, and 'name' does not exist in type 'SchemaHandlers'. src/main/options-normalizer.js(99,11): error TS2345: Argument of type '{ name: any; sourceName: any; }' is not assignable to parameter of type 'SchemaHandlers'. Object literal may only specify known properties, and 'name' does not exist in type 'SchemaHandlers'. src/main/options-normalizer.js(143,13): error TS2769: No overload matches this call. diff --git a/tests/baselines/reference/user/webpack.log b/tests/baselines/reference/user/webpack.log deleted file mode 100644 index d1fbc9df903..00000000000 --- a/tests/baselines/reference/user/webpack.log +++ /dev/null @@ -1,10 +0,0 @@ -Exit Code: 1 -Standard output: -lib/Compilation.js(575,5): error TS2322: Type 'number | "toString" | "valueOf" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | ... 29 more ... | "trimRight"' is not assignable to type 'string'. - Type 'number' is not assignable to type 'string'. -lib/Compiler.js(228,48): error TS2345: Argument of type 'number | "toString" | "valueOf" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | ... 29 more ... | "trimRight"' is not assignable to parameter of type 'string'. - Type 'number' is not assignable to type 'string'. - - - -Standard error: From 84e857b6f3624fcb01db807affa49ca8d9580f3b Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Mon, 23 Sep 2019 15:57:32 -0700 Subject: [PATCH 141/159] use forEachEntry --- src/services/codefixes/inferFromUsage.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/services/codefixes/inferFromUsage.ts b/src/services/codefixes/inferFromUsage.ts index 090c241b05d..5dd34782885 100644 --- a/src/services/codefixes/inferFromUsage.ts +++ b/src/services/codefixes/inferFromUsage.ts @@ -947,22 +947,19 @@ namespace ts.codefix { function allPropertiesAreAssignableToUsage(type: Type, usage: Usage) { if (!usage.properties) return false; - let result = true; - usage.properties.forEach((propUsage, name) => { + return !forEachEntry(usage.properties, (propUsage, name) => { const source = checker.getTypeOfPropertyOfType(type, name as string); if (!source) { - result = false; - return; + return true; } if (propUsage.calls) { const sigs = checker.getSignaturesOfType(source, SignatureKind.Call); - result = result && !!sigs.length && checker.isTypeAssignableTo(source, getFunctionFromCalls(propUsage.calls)); + return !sigs.length || !checker.isTypeAssignableTo(source, getFunctionFromCalls(propUsage.calls)); } else { - result = result && checker.isTypeAssignableTo(source, combineFromUsage(propUsage)); + return !checker.isTypeAssignableTo(source, combineFromUsage(propUsage)); } }); - return result; } /** From 6c2ae12559508b594f7038f8d6165b92ec89c58c Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 23 Sep 2019 15:58:03 -0700 Subject: [PATCH 142/159] Relax the constraints of isValidBaseType to allow base types to be constructor types (#33146) * Relax the constraints of isValidBaseType to allow base types to be constructor types * Fix nit * Reduce confusion between isConstructorType and isValidBaseType * Update comment --- src/compiler/checker.ts | 19 +++-- src/compiler/types.ts | 2 +- .../reference/api/tsserverlibrary.d.ts | 2 +- tests/baselines/reference/api/typescript.d.ts | 2 +- .../baseConstraintOfDecorator.errors.txt | 17 +--- .../baseConstraintOfDecorator.symbols | 1 + .../reference/baseConstraintOfDecorator.types | 8 +- .../mixinIntersectionIsValidbaseType.js | 77 +++++++++++++++++++ .../mixinIntersectionIsValidbaseType.symbols | 74 ++++++++++++++++++ .../mixinIntersectionIsValidbaseType.types | 67 ++++++++++++++++ .../mixinIntersectionIsValidbaseType.ts | 27 +++++++ 11 files changed, 271 insertions(+), 25 deletions(-) create mode 100644 tests/baselines/reference/mixinIntersectionIsValidbaseType.js create mode 100644 tests/baselines/reference/mixinIntersectionIsValidbaseType.symbols create mode 100644 tests/baselines/reference/mixinIntersectionIsValidbaseType.types create mode 100644 tests/cases/compiler/mixinIntersectionIsValidbaseType.ts diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index a3be2cfce43..e29f46f2dec 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -5985,7 +5985,9 @@ namespace ts { function getBaseTypeVariableOfClass(symbol: Symbol) { const baseConstructorType = getBaseConstructorTypeOfClass(getDeclaredTypeOfClassOrInterface(symbol)); - return baseConstructorType.flags & TypeFlags.TypeVariable ? baseConstructorType : undefined; + return baseConstructorType.flags & TypeFlags.TypeVariable ? baseConstructorType : + baseConstructorType.flags & TypeFlags.Intersection ? find((baseConstructorType as IntersectionType).types, t => !!(t.flags & TypeFlags.TypeVariable)) : + undefined; } function getTypeOfFuncClassEnumModule(symbol: Symbol): Type { @@ -6263,12 +6265,12 @@ namespace ts { } function isConstructorType(type: Type): boolean { - if (isValidBaseType(type) && getSignaturesOfType(type, SignatureKind.Construct).length > 0) { + if (getSignaturesOfType(type, SignatureKind.Construct).length > 0) { return true; } if (type.flags & TypeFlags.TypeVariable) { const constraint = getBaseConstraintOfType(type); - return !!constraint && isValidBaseType(constraint) && isMixinConstructorType(constraint); + return !!constraint && isMixinConstructorType(constraint); } return false; } @@ -6429,9 +6431,16 @@ namespace ts { return true; } - // A valid base type is `any`, any non-generic object type or intersection of non-generic - // object types. + // A valid base type is `any`, an object type or intersection of object types. function isValidBaseType(type: Type): type is BaseType { + if (type.flags & TypeFlags.TypeParameter) { + const constraint = getBaseConstraintOfType(type); + if (constraint) { + return isValidBaseType(constraint); + } + } + // TODO: Given that we allow type parmeters here now, is this `!isGenericMappedType(type)` check really needed? + // There's no reason a `T` should be allowed while a `Readonly` should not. return !!(type.flags & (TypeFlags.Object | TypeFlags.NonPrimitive | TypeFlags.Any)) && !isGenericMappedType(type) || !!(type.flags & TypeFlags.Intersection) && every((type).types, isValidBaseType); } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 1828d056405..e20518ed119 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -4202,7 +4202,7 @@ namespace ts { } // Object type or intersection of object types - export type BaseType = ObjectType | IntersectionType; + export type BaseType = ObjectType | IntersectionType | TypeVariable; // Also `any` and `object` export interface InterfaceTypeWithDeclaredMembers extends InterfaceType { declaredProperties: Symbol[]; // Declared members diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 79450ca83c9..c87d62b1139 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -2340,7 +2340,7 @@ declare namespace ts { localTypeParameters: TypeParameter[] | undefined; thisType: TypeParameter | undefined; } - export type BaseType = ObjectType | IntersectionType; + export type BaseType = ObjectType | IntersectionType | TypeVariable; export interface InterfaceTypeWithDeclaredMembers extends InterfaceType { declaredProperties: Symbol[]; declaredCallSignatures: Signature[]; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index f0ae718d570..9c509d34a95 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -2340,7 +2340,7 @@ declare namespace ts { localTypeParameters: TypeParameter[] | undefined; thisType: TypeParameter | undefined; } - export type BaseType = ObjectType | IntersectionType; + export type BaseType = ObjectType | IntersectionType | TypeVariable; export interface InterfaceTypeWithDeclaredMembers extends InterfaceType { declaredProperties: Symbol[]; declaredCallSignatures: Signature[]; diff --git a/tests/baselines/reference/baseConstraintOfDecorator.errors.txt b/tests/baselines/reference/baseConstraintOfDecorator.errors.txt index 8317e5c55c6..8aad9f6fead 100644 --- a/tests/baselines/reference/baseConstraintOfDecorator.errors.txt +++ b/tests/baselines/reference/baseConstraintOfDecorator.errors.txt @@ -1,11 +1,10 @@ tests/cases/compiler/baseConstraintOfDecorator.ts(2,5): error TS2322: Type 'typeof decoratorFunc' is not assignable to type 'TFunction'. 'typeof decoratorFunc' is assignable to the constraint of type 'TFunction', but 'TFunction' could be instantiated with a different subtype of constraint '{}'. tests/cases/compiler/baseConstraintOfDecorator.ts(2,40): error TS2507: Type 'TFunction' is not a constructor function type. -tests/cases/compiler/baseConstraintOfDecorator.ts(12,5): error TS2322: Type 'typeof decoratorFunc' is not assignable to type 'TFunction'. -tests/cases/compiler/baseConstraintOfDecorator.ts(12,40): error TS2507: Type 'TFunction' is not a constructor function type. +tests/cases/compiler/baseConstraintOfDecorator.ts(12,18): error TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'. -==== tests/cases/compiler/baseConstraintOfDecorator.ts (4 errors) ==== +==== tests/cases/compiler/baseConstraintOfDecorator.ts (3 errors) ==== export function classExtender(superClass: TFunction, _instanceModifier: (instance: any, args: any[]) => void): TFunction { return class decoratorFunc extends superClass { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -29,20 +28,12 @@ tests/cases/compiler/baseConstraintOfDecorator.ts(12,40): error TS2507: Type 'TF class MyClass { private x; } export function classExtender2 MyClass>(superClass: TFunction, _instanceModifier: (instance: any, args: any[]) => void): TFunction { return class decoratorFunc extends superClass { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - ~~~~~~~~~~ -!!! error TS2507: Type 'TFunction' is not a constructor function type. -!!! related TS2735 tests/cases/compiler/baseConstraintOfDecorator.ts:11:32: Did you mean for 'TFunction' to be constrained to type 'new (...args: any[]) => MyClass'? + ~~~~~~~~~~~~~ +!!! error TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'. constructor(...args: any[]) { - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ super(...args); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~ _instanceModifier(this, args); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ } - ~~~~~~~~~ }; - ~~~~~~ -!!! error TS2322: Type 'typeof decoratorFunc' is not assignable to type 'TFunction'. } \ No newline at end of file diff --git a/tests/baselines/reference/baseConstraintOfDecorator.symbols b/tests/baselines/reference/baseConstraintOfDecorator.symbols index 9048d7ed568..0a1dad239af 100644 --- a/tests/baselines/reference/baseConstraintOfDecorator.symbols +++ b/tests/baselines/reference/baseConstraintOfDecorator.symbols @@ -51,6 +51,7 @@ export function classExtender2 MyCl >args : Symbol(args, Decl(baseConstraintOfDecorator.ts, 12, 20)) super(...args); +>super : Symbol(TFunction, Decl(baseConstraintOfDecorator.ts, 10, 31)) >args : Symbol(args, Decl(baseConstraintOfDecorator.ts, 12, 20)) _instanceModifier(this, args); diff --git a/tests/baselines/reference/baseConstraintOfDecorator.types b/tests/baselines/reference/baseConstraintOfDecorator.types index a5a277c5d2a..78c77ee78a2 100644 --- a/tests/baselines/reference/baseConstraintOfDecorator.types +++ b/tests/baselines/reference/baseConstraintOfDecorator.types @@ -42,16 +42,16 @@ export function classExtender2 MyCl >args : any[] return class decoratorFunc extends superClass { ->class decoratorFunc extends superClass { constructor(...args: any[]) { super(...args); _instanceModifier(this, args); } } : typeof decoratorFunc ->decoratorFunc : typeof decoratorFunc ->superClass : TFunction +>class decoratorFunc extends superClass { constructor(...args: any[]) { super(...args); _instanceModifier(this, args); } } : { new (...args: any[]): decoratorFunc; prototype: classExtender2.decoratorFunc; } & TFunction +>decoratorFunc : { new (...args: any[]): decoratorFunc; prototype: classExtender2.decoratorFunc; } & TFunction +>superClass : MyClass constructor(...args: any[]) { >args : any[] super(...args); >super(...args) : void ->super : any +>super : TFunction >...args : any >args : any[] diff --git a/tests/baselines/reference/mixinIntersectionIsValidbaseType.js b/tests/baselines/reference/mixinIntersectionIsValidbaseType.js new file mode 100644 index 00000000000..ed02aecd53f --- /dev/null +++ b/tests/baselines/reference/mixinIntersectionIsValidbaseType.js @@ -0,0 +1,77 @@ +//// [mixinIntersectionIsValidbaseType.ts] +export type Constructor = new (...args: any[]) => T; + +export interface Initable { + init(...args: any[]): void; +} + +/** + * Plain mixin where the superclass must be Initable + */ +export const Serializable = & Initable>( + SuperClass: K +) => { + const LocalMixin = (InnerSuperClass: K) => { + return class SerializableLocal extends InnerSuperClass { + } + }; + let ResultClass = LocalMixin(SuperClass); + return ResultClass; +}; + +const AMixin = & Initable>(SuperClass: K) => { + let SomeHowOkay = class A extends SuperClass { + }; + + let SomeHowNotOkay = class A extends Serializable(SuperClass) { + }; +}; + +//// [mixinIntersectionIsValidbaseType.js] +"use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +exports.__esModule = true; +/** + * Plain mixin where the superclass must be Initable + */ +exports.Serializable = function (SuperClass) { + var LocalMixin = function (InnerSuperClass) { + return /** @class */ (function (_super) { + __extends(SerializableLocal, _super); + function SerializableLocal() { + return _super !== null && _super.apply(this, arguments) || this; + } + return SerializableLocal; + }(InnerSuperClass)); + }; + var ResultClass = LocalMixin(SuperClass); + return ResultClass; +}; +var AMixin = function (SuperClass) { + var SomeHowOkay = /** @class */ (function (_super) { + __extends(A, _super); + function A() { + return _super !== null && _super.apply(this, arguments) || this; + } + return A; + }(SuperClass)); + var SomeHowNotOkay = /** @class */ (function (_super) { + __extends(A, _super); + function A() { + return _super !== null && _super.apply(this, arguments) || this; + } + return A; + }(exports.Serializable(SuperClass))); +}; diff --git a/tests/baselines/reference/mixinIntersectionIsValidbaseType.symbols b/tests/baselines/reference/mixinIntersectionIsValidbaseType.symbols new file mode 100644 index 00000000000..69fe63bab23 --- /dev/null +++ b/tests/baselines/reference/mixinIntersectionIsValidbaseType.symbols @@ -0,0 +1,74 @@ +=== tests/cases/compiler/mixinIntersectionIsValidbaseType.ts === +export type Constructor = new (...args: any[]) => T; +>Constructor : Symbol(Constructor, Decl(mixinIntersectionIsValidbaseType.ts, 0, 0)) +>T : Symbol(T, Decl(mixinIntersectionIsValidbaseType.ts, 0, 24)) +>args : Symbol(args, Decl(mixinIntersectionIsValidbaseType.ts, 0, 58)) +>T : Symbol(T, Decl(mixinIntersectionIsValidbaseType.ts, 0, 24)) + +export interface Initable { +>Initable : Symbol(Initable, Decl(mixinIntersectionIsValidbaseType.ts, 0, 79)) + + init(...args: any[]): void; +>init : Symbol(Initable.init, Decl(mixinIntersectionIsValidbaseType.ts, 2, 27)) +>args : Symbol(args, Decl(mixinIntersectionIsValidbaseType.ts, 3, 9)) +} + +/** + * Plain mixin where the superclass must be Initable + */ +export const Serializable = & Initable>( +>Serializable : Symbol(Serializable, Decl(mixinIntersectionIsValidbaseType.ts, 9, 12)) +>K : Symbol(K, Decl(mixinIntersectionIsValidbaseType.ts, 9, 29)) +>Constructor : Symbol(Constructor, Decl(mixinIntersectionIsValidbaseType.ts, 0, 0)) +>Initable : Symbol(Initable, Decl(mixinIntersectionIsValidbaseType.ts, 0, 79)) +>Initable : Symbol(Initable, Decl(mixinIntersectionIsValidbaseType.ts, 0, 79)) + + SuperClass: K +>SuperClass : Symbol(SuperClass, Decl(mixinIntersectionIsValidbaseType.ts, 9, 73)) +>K : Symbol(K, Decl(mixinIntersectionIsValidbaseType.ts, 9, 29)) + +) => { + const LocalMixin = (InnerSuperClass: K) => { +>LocalMixin : Symbol(LocalMixin, Decl(mixinIntersectionIsValidbaseType.ts, 12, 9)) +>InnerSuperClass : Symbol(InnerSuperClass, Decl(mixinIntersectionIsValidbaseType.ts, 12, 24)) +>K : Symbol(K, Decl(mixinIntersectionIsValidbaseType.ts, 9, 29)) + + return class SerializableLocal extends InnerSuperClass { +>SerializableLocal : Symbol(SerializableLocal, Decl(mixinIntersectionIsValidbaseType.ts, 13, 14)) +>InnerSuperClass : Symbol(InnerSuperClass, Decl(mixinIntersectionIsValidbaseType.ts, 12, 24)) + } + }; + let ResultClass = LocalMixin(SuperClass); +>ResultClass : Symbol(ResultClass, Decl(mixinIntersectionIsValidbaseType.ts, 16, 7)) +>LocalMixin : Symbol(LocalMixin, Decl(mixinIntersectionIsValidbaseType.ts, 12, 9)) +>SuperClass : Symbol(SuperClass, Decl(mixinIntersectionIsValidbaseType.ts, 9, 73)) + + return ResultClass; +>ResultClass : Symbol(ResultClass, Decl(mixinIntersectionIsValidbaseType.ts, 16, 7)) + +}; + +const AMixin = & Initable>(SuperClass: K) => { +>AMixin : Symbol(AMixin, Decl(mixinIntersectionIsValidbaseType.ts, 20, 5)) +>K : Symbol(K, Decl(mixinIntersectionIsValidbaseType.ts, 20, 16)) +>Constructor : Symbol(Constructor, Decl(mixinIntersectionIsValidbaseType.ts, 0, 0)) +>Initable : Symbol(Initable, Decl(mixinIntersectionIsValidbaseType.ts, 0, 79)) +>Initable : Symbol(Initable, Decl(mixinIntersectionIsValidbaseType.ts, 0, 79)) +>SuperClass : Symbol(SuperClass, Decl(mixinIntersectionIsValidbaseType.ts, 20, 60)) +>K : Symbol(K, Decl(mixinIntersectionIsValidbaseType.ts, 20, 16)) + + let SomeHowOkay = class A extends SuperClass { +>SomeHowOkay : Symbol(SomeHowOkay, Decl(mixinIntersectionIsValidbaseType.ts, 21, 7)) +>A : Symbol(A, Decl(mixinIntersectionIsValidbaseType.ts, 21, 21)) +>SuperClass : Symbol(SuperClass, Decl(mixinIntersectionIsValidbaseType.ts, 20, 60)) + + }; + + let SomeHowNotOkay = class A extends Serializable(SuperClass) { +>SomeHowNotOkay : Symbol(SomeHowNotOkay, Decl(mixinIntersectionIsValidbaseType.ts, 24, 7)) +>A : Symbol(A, Decl(mixinIntersectionIsValidbaseType.ts, 24, 24)) +>Serializable : Symbol(Serializable, Decl(mixinIntersectionIsValidbaseType.ts, 9, 12)) +>SuperClass : Symbol(SuperClass, Decl(mixinIntersectionIsValidbaseType.ts, 20, 60)) + + }; +}; diff --git a/tests/baselines/reference/mixinIntersectionIsValidbaseType.types b/tests/baselines/reference/mixinIntersectionIsValidbaseType.types new file mode 100644 index 00000000000..c828188dcd6 --- /dev/null +++ b/tests/baselines/reference/mixinIntersectionIsValidbaseType.types @@ -0,0 +1,67 @@ +=== tests/cases/compiler/mixinIntersectionIsValidbaseType.ts === +export type Constructor = new (...args: any[]) => T; +>Constructor : Constructor +>args : any[] + +export interface Initable { + init(...args: any[]): void; +>init : (...args: any[]) => void +>args : any[] +} + +/** + * Plain mixin where the superclass must be Initable + */ +export const Serializable = & Initable>( +>Serializable : & Initable>(SuperClass: K) => { new (...args: any[]): SerializableLocal; prototype: Serializable.SerializableLocal; init(...args: any[]): void; } & K +> & Initable>( SuperClass: K) => { const LocalMixin = (InnerSuperClass: K) => { return class SerializableLocal extends InnerSuperClass { } }; let ResultClass = LocalMixin(SuperClass); return ResultClass;} : & Initable>(SuperClass: K) => { new (...args: any[]): SerializableLocal; prototype: Serializable.SerializableLocal; init(...args: any[]): void; } & K + + SuperClass: K +>SuperClass : K + +) => { + const LocalMixin = (InnerSuperClass: K) => { +>LocalMixin : (InnerSuperClass: K) => { new (...args: any[]): SerializableLocal; prototype: Serializable.SerializableLocal; init(...args: any[]): void; } & K +>(InnerSuperClass: K) => { return class SerializableLocal extends InnerSuperClass { } } : (InnerSuperClass: K) => { new (...args: any[]): SerializableLocal; prototype: Serializable.SerializableLocal; init(...args: any[]): void; } & K +>InnerSuperClass : K + + return class SerializableLocal extends InnerSuperClass { +>class SerializableLocal extends InnerSuperClass { } : { new (...args: any[]): SerializableLocal; prototype: Serializable.SerializableLocal; init(...args: any[]): void; } & K +>SerializableLocal : { new (...args: any[]): SerializableLocal; prototype: Serializable.SerializableLocal; init(...args: any[]): void; } & K +>InnerSuperClass : Initable + } + }; + let ResultClass = LocalMixin(SuperClass); +>ResultClass : { new (...args: any[]): SerializableLocal; prototype: Serializable.SerializableLocal; init(...args: any[]): void; } & K +>LocalMixin(SuperClass) : { new (...args: any[]): SerializableLocal; prototype: Serializable.SerializableLocal; init(...args: any[]): void; } & K +>LocalMixin : (InnerSuperClass: K) => { new (...args: any[]): SerializableLocal; prototype: Serializable.SerializableLocal; init(...args: any[]): void; } & K +>SuperClass : K + + return ResultClass; +>ResultClass : { new (...args: any[]): SerializableLocal; prototype: Serializable.SerializableLocal; init(...args: any[]): void; } & K + +}; + +const AMixin = & Initable>(SuperClass: K) => { +>AMixin : & Initable>(SuperClass: K) => void +> & Initable>(SuperClass: K) => { let SomeHowOkay = class A extends SuperClass { }; let SomeHowNotOkay = class A extends Serializable(SuperClass) { };} : & Initable>(SuperClass: K) => void +>SuperClass : K + + let SomeHowOkay = class A extends SuperClass { +>SomeHowOkay : { new (...args: any[]): A; prototype: AMixin.A; init(...args: any[]): void; } & K +>class A extends SuperClass { } : { new (...args: any[]): A; prototype: AMixin.A; init(...args: any[]): void; } & K +>A : { new (...args: any[]): A; prototype: AMixin.A; init(...args: any[]): void; } & K +>SuperClass : Initable + + }; + + let SomeHowNotOkay = class A extends Serializable(SuperClass) { +>SomeHowNotOkay : { new (...args: any[]): A; prototype: AMixin.A; init: (...args: any[]) => void; } & K +>class A extends Serializable(SuperClass) { } : { new (...args: any[]): A; prototype: AMixin.A; init: (...args: any[]) => void; } & K +>A : { new (...args: any[]): A; prototype: AMixin.A; init: (...args: any[]) => void; } & K +>Serializable(SuperClass) : Serializable.SerializableLocal & Initable +>Serializable : & Initable>(SuperClass: K) => { new (...args: any[]): SerializableLocal; prototype: Serializable.SerializableLocal; init(...args: any[]): void; } & K +>SuperClass : K + + }; +}; diff --git a/tests/cases/compiler/mixinIntersectionIsValidbaseType.ts b/tests/cases/compiler/mixinIntersectionIsValidbaseType.ts new file mode 100644 index 00000000000..4f446a9db8d --- /dev/null +++ b/tests/cases/compiler/mixinIntersectionIsValidbaseType.ts @@ -0,0 +1,27 @@ +export type Constructor = new (...args: any[]) => T; + +export interface Initable { + init(...args: any[]): void; +} + +/** + * Plain mixin where the superclass must be Initable + */ +export const Serializable = & Initable>( + SuperClass: K +) => { + const LocalMixin = (InnerSuperClass: K) => { + return class SerializableLocal extends InnerSuperClass { + } + }; + let ResultClass = LocalMixin(SuperClass); + return ResultClass; +}; + +const AMixin = & Initable>(SuperClass: K) => { + let SomeHowOkay = class A extends SuperClass { + }; + + let SomeHowNotOkay = class A extends Serializable(SuperClass) { + }; +}; \ No newline at end of file From 26caa3793e310e271ddee8adc1804486e5b0749f Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 23 Sep 2019 16:08:44 -0700 Subject: [PATCH 143/159] Introduce flattened error reporting for properties, call signatures, and construct signatures (#33473) * Introduce flattened error reporting for properties, call signatures, and construct signatures * Update message, specialize output for argument-less signatures * Skip leading signature incompatability flattening * Add return type specialized message --- scripts/processDiagnosticMessages.ts | 10 +- src/compiler/checker.ts | 226 +++++++++++++++--- src/compiler/diagnosticMessages.json | 29 +++ src/compiler/types.ts | 2 + .../reference/arrayLiterals3.errors.txt | 14 +- ...typeIsAssignableToReadonlyArray.errors.txt | 14 +- .../assignFromBooleanInterface2.errors.txt | 10 +- .../asyncFunctionDeclaration15_es5.errors.txt | 14 +- .../reference/bigintWithLib.errors.txt | 28 +-- .../reference/booleanAssignment.errors.txt | 10 +- ...atureAssignabilityInInheritance.errors.txt | 24 +- ...tureAssignabilityInInheritance3.errors.txt | 32 ++- .../checkJsxChildrenCanBeTupleType.errors.txt | 12 +- .../complexRecursiveCollections.errors.txt | 42 ++-- ...atureAssignabilityInInheritance.errors.txt | 24 +- ...tureAssignabilityInInheritance3.errors.txt | 32 ++- .../reference/covariantCallbacks.errors.txt | 10 +- .../reference/decoratorCallGeneric.errors.txt | 10 +- ...heckingWhenTargetIsIntersection.errors.txt | 16 +- ...stedAssignabilityErrorsCombined.errors.txt | 32 +++ ...deeplyNestedAssignabilityErrorsCombined.js | 36 +++ ...yNestedAssignabilityErrorsCombined.symbols | 63 +++++ ...plyNestedAssignabilityErrorsCombined.types | 95 ++++++++ ...oratedErrorsOnNullableTargets01.errors.txt | 16 +- ...AnnotationAndInvalidInitializer.errors.txt | 10 +- ...endAndImplementTheSameBaseType2.errors.txt | 10 +- tests/baselines/reference/for-of39.errors.txt | 40 ++-- .../reference/generatorTypeCheck25.errors.txt | 36 ++- .../reference/generatorTypeCheck63.errors.txt | 26 +- .../reference/generatorTypeCheck8.errors.txt | 22 +- .../baselines/reference/generics4.errors.txt | 10 +- .../reference/incompatibleTypes.errors.txt | 20 +- ...nheritedModuleMembersForClodule.errors.txt | 10 +- ...interfaceThatHidesBaseProperty2.errors.txt | 12 +- .../interfaceWithMultipleBaseTypes.errors.txt | 36 +-- ...interfaceWithMultipleBaseTypes2.errors.txt | 12 +- ...nvariantGenericErrorElaboration.errors.txt | 25 +- .../iterableArrayPattern28.errors.txt | 40 ++-- .../iteratorSpreadInArray6.errors.txt | 14 +- .../reference/mergedDeclarations7.errors.txt | 10 +- .../reference/multiLineErrors.errors.txt | 12 +- .../mutuallyRecursiveCallbacks.errors.txt | 10 +- ...nestedCallbackErrorNotFlattened.errors.txt | 20 ++ .../nestedCallbackErrorNotFlattened.js | 11 + .../nestedCallbackErrorNotFlattened.symbols | 27 +++ .../nestedCallbackErrorNotFlattened.types | 18 ++ ...RecursiveArraysOrObjectsError01.errors.txt | 42 ++-- ...MembersOfObjectAssignmentCompat.errors.txt | 30 +-- ...embersOfObjectAssignmentCompat2.errors.txt | 62 ++--- .../reference/promisePermutations.errors.txt | 8 +- .../reference/promisePermutations2.errors.txt | 8 +- .../reference/promisePermutations3.errors.txt | 8 +- .../reference/promiseTypeInference.errors.txt | 14 +- .../strictFunctionTypesErrors.errors.txt | 10 +- ...aturesWithSpecializedSignatures.errors.txt | 24 +- ...aturesWithSpecializedSignatures.errors.txt | 24 +- ...ignaturesWithOptionalParameters.errors.txt | 84 +++---- ...ignaturesWithOptionalParameters.errors.txt | 84 +++---- ...peParameterArgumentEquivalence5.errors.txt | 8 +- .../types.asyncGenerators.es2018.2.errors.txt | 98 +++----- ...deeplyNestedAssignabilityErrorsCombined.ts | 15 ++ .../nestedCallbackErrorNotFlattened.ts | 7 + 62 files changed, 1023 insertions(+), 735 deletions(-) create mode 100644 tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.errors.txt create mode 100644 tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.js create mode 100644 tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.symbols create mode 100644 tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.types create mode 100644 tests/baselines/reference/nestedCallbackErrorNotFlattened.errors.txt create mode 100644 tests/baselines/reference/nestedCallbackErrorNotFlattened.js create mode 100644 tests/baselines/reference/nestedCallbackErrorNotFlattened.symbols create mode 100644 tests/baselines/reference/nestedCallbackErrorNotFlattened.types create mode 100644 tests/cases/compiler/deeplyNestedAssignabilityErrorsCombined.ts create mode 100644 tests/cases/compiler/nestedCallbackErrorNotFlattened.ts diff --git a/scripts/processDiagnosticMessages.ts b/scripts/processDiagnosticMessages.ts index 4bdf3ca0178..7577707340a 100644 --- a/scripts/processDiagnosticMessages.ts +++ b/scripts/processDiagnosticMessages.ts @@ -6,6 +6,7 @@ interface DiagnosticDetails { code: number; reportsUnnecessary?: {}; isEarly?: boolean; + elidedInCompatabilityPyramid?: boolean; } type InputDiagnosticMessageTable = Map; @@ -63,14 +64,15 @@ function buildInfoFileOutput(messageTable: InputDiagnosticMessageTable, inputFil "// generated from '" + inputFilePathRel + "' by '" + thisFilePathRel.replace(/\\/g, "/") + "'\r\n" + "/* @internal */\r\n" + "namespace ts {\r\n" + - " function diag(code: number, category: DiagnosticCategory, key: string, message: string, reportsUnnecessary?: {}): DiagnosticMessage {\r\n" + - " return { code, category, key, message, reportsUnnecessary };\r\n" + + " function diag(code: number, category: DiagnosticCategory, key: string, message: string, reportsUnnecessary?: {}, elidedInCompatabilityPyramid?: boolean): DiagnosticMessage {\r\n" + + " return { code, category, key, message, reportsUnnecessary, elidedInCompatabilityPyramid };\r\n" + " }\r\n" + " export const Diagnostics = {\r\n"; - messageTable.forEach(({ code, category, reportsUnnecessary }, name) => { + messageTable.forEach(({ code, category, reportsUnnecessary, elidedInCompatabilityPyramid }, name) => { const propName = convertPropertyName(name); const argReportsUnnecessary = reportsUnnecessary ? `, /*reportsUnnecessary*/ ${reportsUnnecessary}` : ""; - result += ` ${propName}: diag(${code}, DiagnosticCategory.${category}, "${createKey(propName, code)}", ${JSON.stringify(name)}${argReportsUnnecessary}),\r\n`; + const argElidedInCompatabilityPyramid = elidedInCompatabilityPyramid ? `${!reportsUnnecessary ? ", /*reportsUnnecessary*/ undefined" : ""}, /*elidedInCompatabilityPyramid*/ ${elidedInCompatabilityPyramid}` : ""; + result += ` ${propName}: diag(${code}, DiagnosticCategory.${category}, "${createKey(propName, code)}", ${JSON.stringify(name)}${argReportsUnnecessary}${argElidedInCompatabilityPyramid}),\r\n`; }); result += " };\r\n}"; diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index e29f46f2dec..de5c3b5b358 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -12329,7 +12329,7 @@ namespace ts { target: Signature, ignoreReturnTypes: boolean): boolean { return compareSignaturesRelated(source, target, CallbackCheck.None, ignoreReturnTypes, /*reportErrors*/ false, - /*errorReporter*/ undefined, compareTypesAssignable) !== Ternary.False; + /*errorReporter*/ undefined, /*errorReporter*/ undefined, compareTypesAssignable) !== Ternary.False; } type ErrorReporter = (message: DiagnosticMessage, arg0?: string, arg1?: string) => void; @@ -12352,6 +12352,7 @@ namespace ts { ignoreReturnTypes: boolean, reportErrors: boolean, errorReporter: ErrorReporter | undefined, + incompatibleErrorReporter: ((source: Type, target: Type) => void) | undefined, compareTypes: TypeComparer): Ternary { // TODO (drosen): De-duplicate code between related functions. if (source === target) { @@ -12422,7 +12423,7 @@ namespace ts { (getFalsyFlags(sourceType) & TypeFlags.Nullable) === (getFalsyFlags(targetType) & TypeFlags.Nullable); const related = callbacks ? // TODO: GH#18217 It will work if they're both `undefined`, but not if only one is - compareSignaturesRelated(targetSig!, sourceSig!, strictVariance ? CallbackCheck.Strict : CallbackCheck.Bivariant, /*ignoreReturnTypes*/ false, reportErrors, errorReporter, compareTypes) : + compareSignaturesRelated(targetSig!, sourceSig!, strictVariance ? CallbackCheck.Strict : CallbackCheck.Bivariant, /*ignoreReturnTypes*/ false, reportErrors, errorReporter, incompatibleErrorReporter, compareTypes) : !callbackCheck && !strictVariance && compareTypes(sourceType, targetType, /*reportErrors*/ false) || compareTypes(targetType, sourceType, reportErrors); if (!related) { if (reportErrors) { @@ -12468,6 +12469,9 @@ namespace ts { // wouldn't be co-variant for T without this rule. result &= callbackCheck === CallbackCheck.Bivariant && compareTypes(targetReturnType, sourceReturnType, /*reportErrors*/ false) || compareTypes(sourceReturnType, targetReturnType, reportErrors); + if (!result && reportErrors && incompatibleErrorReporter) { + incompatibleErrorReporter(sourceReturnType, targetReturnType); + } } } @@ -12677,11 +12681,16 @@ namespace ts { let depth = 0; let expandingFlags = ExpandingFlags.None; let overflow = false; - let overrideNextErrorInfo: DiagnosticMessageChain | undefined; + let overrideNextErrorInfo = 0; // How many `reportRelationError` calls should be skipped in the elaboration pyramid + let lastSkippedInfo: [Type, Type] | undefined; + let incompatibleStack: [DiagnosticMessage, (string | number)?, (string | number)?, (string | number)?, (string | number)?][] = []; Debug.assert(relation !== identityRelation || !errorNode, "no error reporting in identity checking"); const result = isRelatedTo(source, target, /*reportErrors*/ !!errorNode, headMessage); + if (incompatibleStack.length) { + reportIncompatibleStack(); + } if (overflow) { const diag = error(errorNode, Diagnostics.Excessive_stack_depth_comparing_types_0_and_1, typeToString(source), typeToString(target)); if (errorOutputContainer) { @@ -12726,8 +12735,134 @@ namespace ts { } return result !== Ternary.False; + function resetErrorInfo(saved: ReturnType) { + errorInfo = saved.errorInfo; + lastSkippedInfo = saved.lastSkippedInfo; + incompatibleStack = saved.incompatibleStack; + overrideNextErrorInfo = saved.overrideNextErrorInfo; + relatedInfo = saved.relatedInfo; + } + + function captureErrorCalculationState() { + return { + errorInfo, + lastSkippedInfo, + incompatibleStack: incompatibleStack.slice(), + overrideNextErrorInfo, + relatedInfo: !relatedInfo ? undefined : relatedInfo.slice() as ([DiagnosticRelatedInformation, ...DiagnosticRelatedInformation[]] | undefined) + }; + } + + function reportIncompatibleError(message: DiagnosticMessage, arg0?: string | number, arg1?: string | number, arg2?: string | number, arg3?: string | number) { + overrideNextErrorInfo++; // Suppress the next relation error + lastSkippedInfo = undefined; // Reset skipped info cache + incompatibleStack.push([message, arg0, arg1, arg2, arg3]); + } + + function reportIncompatibleStack() { + const stack = incompatibleStack; + incompatibleStack = []; + const info = lastSkippedInfo; + lastSkippedInfo = undefined; + if (stack.length === 1) { + reportError(...stack[0]); + if (info) { + // Actually do the last relation error + reportRelationError(/*headMessage*/ undefined, ...info); + } + return; + } + // The first error will be the innermost, while the last will be the outermost - so by popping off the end, + // we can build from left to right + let path = ""; + const secondaryRootErrors: typeof incompatibleStack = []; + while (stack.length) { + const [msg, ...args] = stack.pop()!; + switch (msg.code) { + case Diagnostics.Types_of_property_0_are_incompatible.code: { + // Parenthesize a `new` if there is one + if (path.indexOf("new ") === 0) { + path = `(${path})`; + } + const str = "" + args[0]; + // If leading, just print back the arg (irrespective of if it's a valid identifier) + if (path.length === 0) { + path = `${str}`; + } + // Otherwise write a dotted name if possible + else if (isIdentifierText(str, compilerOptions.target)) { + path = `${path}.${str}`; + } + // Failing that, check if the name is already a computed name + else if (str[0] === "[" && str[str.length - 1] === "]") { + path = `${path}${str}`; + } + // And finally write out a computed name as a last resort + else { + path = `${path}[${str}]`; + } + break; + } + case Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code: + case Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code: + case Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: + case Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: { + if (path.length === 0) { + // Don't flatten signature compatability errors at the start of a chain - instead prefer + // to unify (the with no arguments bit is excessive for printback) and print them back + let mappedMsg = msg; + if (msg.code === Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) { + mappedMsg = Diagnostics.Call_signature_return_types_0_and_1_are_incompatible; + } + else if (msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) { + mappedMsg = Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible; + } + secondaryRootErrors.unshift([mappedMsg, args[0], args[1]]); + } + else { + const prefix = (msg.code === Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code || + msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) + ? "new " + : ""; + const params = (msg.code === Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code || + msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) + ? "" + : "..."; + path = `${prefix}${path}(${params})`; + } + break; + } + default: + return Debug.fail(`Unhandled Diagnostic: ${msg.code}`); + } + } + if (path) { + reportError(path[path.length - 1] === ")" + ? Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types + : Diagnostics.The_types_of_0_are_incompatible_between_these_types, + path + ); + } + else { + // Remove the innermost secondary error as it will duplicate the error already reported by `reportRelationError` on entry + secondaryRootErrors.shift(); + } + for (const [msg, ...args] of secondaryRootErrors) { + const originalValue = msg.elidedInCompatabilityPyramid; + msg.elidedInCompatabilityPyramid = false; // Teporarily override elision to ensure error is reported + reportError(msg, ...args); + msg.elidedInCompatabilityPyramid = originalValue; + } + if (info) { + // Actually do the last relation error + reportRelationError(/*headMessage*/ undefined, ...info); + } + } + function reportError(message: DiagnosticMessage, arg0?: string | number, arg1?: string | number, arg2?: string | number, arg3?: string | number): void { Debug.assert(!!errorNode); + if (incompatibleStack.length) reportIncompatibleStack(); + if (message.elidedInCompatabilityPyramid) return; errorInfo = chainDiagnosticMessages(errorInfo, message, arg0, arg1, arg2, arg3); } @@ -12742,6 +12877,7 @@ namespace ts { } function reportRelationError(message: DiagnosticMessage | undefined, source: Type, target: Type) { + if (incompatibleStack.length) reportIncompatibleStack(); const [sourceType, targetType] = getTypeNamesForErrorDisplay(source, target); if (target.flags & TypeFlags.TypeParameter && target.immediateBaseConstraint !== undefined && isTypeAssignableTo(source, target.immediateBaseConstraint)) { @@ -12899,7 +13035,7 @@ namespace ts { } let result = Ternary.False; - const saveErrorInfo = errorInfo; + const saveErrorInfo = captureErrorCalculationState(); let isIntersectionConstituent = !!isApparentIntersectionConstituent; // Note that these checks are specifically ordered to produce correct results. In particular, @@ -12949,7 +13085,7 @@ namespace ts { } if (!result && (source.flags & TypeFlags.StructuredOrInstantiable || target.flags & TypeFlags.StructuredOrInstantiable)) { if (result = recursiveTypeRelatedTo(source, target, reportErrors, isIntersectionConstituent)) { - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); } } } @@ -12966,19 +13102,21 @@ namespace ts { const constraint = getUnionConstraintOfIntersection(source, !!(target.flags & TypeFlags.Union)); if (constraint) { if (result = isRelatedTo(constraint, target, reportErrors, /*headMessage*/ undefined, isIntersectionConstituent)) { - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); } } } if (!result && reportErrors) { - let maybeSuppress = overrideNextErrorInfo; - overrideNextErrorInfo = undefined; + let maybeSuppress = overrideNextErrorInfo > 0; + if (maybeSuppress) { + overrideNextErrorInfo--; + } if (source.flags & TypeFlags.Object && target.flags & TypeFlags.Object) { const currentError = errorInfo; tryElaborateArrayLikeErrors(source, target, reportErrors); if (errorInfo !== currentError) { - maybeSuppress = errorInfo; + maybeSuppress = !!errorInfo; } } if (source.flags & TypeFlags.Object && target.flags & TypeFlags.Primitive) { @@ -12998,6 +13136,7 @@ namespace ts { } } if (!headMessage && maybeSuppress) { + lastSkippedInfo = [source, target]; // Used by, eg, missing property checking to replace the top-level message with a more informative one return result; } @@ -13439,7 +13578,7 @@ namespace ts { let result: Ternary; let originalErrorInfo: DiagnosticMessageChain | undefined; let varianceCheckFailed = false; - const saveErrorInfo = errorInfo; + const saveErrorInfo = captureErrorCalculationState(); // We limit alias variance probing to only object and conditional types since their alias behavior // is more predictable than other, interned types, which may or may not have an alias depending on @@ -13531,7 +13670,7 @@ namespace ts { } } originalErrorInfo = errorInfo; - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); } } } @@ -13543,7 +13682,7 @@ namespace ts { result &= isRelatedTo((source).indexType, (target).indexType, reportErrors); } if (result) { - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); return result; } } @@ -13552,25 +13691,25 @@ namespace ts { if (!constraint || (source.flags & TypeFlags.TypeParameter && constraint.flags & TypeFlags.Any)) { // A type variable with no constraint is not related to the non-primitive object type. if (result = isRelatedTo(emptyObjectType, extractTypesOfKind(target, ~TypeFlags.NonPrimitive))) { - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); return result; } } // hi-speed no-this-instantiation check (less accurate, but avoids costly `this`-instantiation when the constraint will suffice), see #28231 for report on why this is needed else if (result = isRelatedTo(constraint, target, /*reportErrors*/ false, /*headMessage*/ undefined, isIntersectionConstituent)) { - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); return result; } // slower, fuller, this-instantiated check (necessary when comparing raw `this` types from base classes), see `subclassWithPolymorphicThisIsAssignable.ts` test for example else if (result = isRelatedTo(getTypeWithThisArgument(constraint, source), target, reportErrors, /*headMessage*/ undefined, isIntersectionConstituent)) { - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); return result; } } } else if (source.flags & TypeFlags.Index) { if (result = isRelatedTo(keyofConstraintType, target, reportErrors)) { - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); return result; } } @@ -13595,7 +13734,7 @@ namespace ts { result &= isRelatedTo(getFalseTypeFromConditionalType(source), getFalseTypeFromConditionalType(target), reportErrors); } if (result) { - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); return result; } } @@ -13604,14 +13743,14 @@ namespace ts { const distributiveConstraint = getConstraintOfDistributiveConditionalType(source); if (distributiveConstraint) { if (result = isRelatedTo(distributiveConstraint, target, reportErrors)) { - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); return result; } } const defaultConstraint = getDefaultConstraintOfConditionalType(source); if (defaultConstraint) { if (result = isRelatedTo(defaultConstraint, target, reportErrors)) { - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); return result; } } @@ -13625,7 +13764,7 @@ namespace ts { if (isGenericMappedType(target)) { if (isGenericMappedType(source)) { if (result = mappedTypeRelatedTo(source, target, reportErrors)) { - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); return result; } } @@ -13671,7 +13810,7 @@ namespace ts { // relates to X. Thus, we include intersection types on the source side here. if (source.flags & (TypeFlags.Object | TypeFlags.Intersection) && target.flags & TypeFlags.Object) { // Report structural errors only if we haven't reported any errors yet - const reportStructuralErrors = reportErrors && errorInfo === saveErrorInfo && !sourceIsPrimitive; + const reportStructuralErrors = reportErrors && errorInfo === saveErrorInfo.errorInfo && !sourceIsPrimitive; result = propertiesRelatedTo(source, target, reportStructuralErrors, /*excludedProperties*/ undefined, isIntersectionConstituent); if (result) { result &= signaturesRelatedTo(source, target, SignatureKind.Call, reportStructuralErrors); @@ -13686,7 +13825,7 @@ namespace ts { } } if (varianceCheckFailed && result) { - errorInfo = originalErrorInfo || errorInfo || saveErrorInfo; // Use variance error (there is no structural one) and return false + errorInfo = originalErrorInfo || errorInfo || saveErrorInfo.errorInfo; // Use variance error (there is no structural one) and return false } else if (result) { return result; @@ -13718,7 +13857,7 @@ namespace ts { // We elide the variance-based error elaborations, since those might not be too helpful, since we'll potentially // be assuming identity of the type parameter. originalErrorInfo = undefined; - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); return undefined; } const allowStructuralFallback = targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances); @@ -13746,7 +13885,7 @@ namespace ts { // comparison unexpectedly succeeds. This can happen when the structural comparison result // is a Ternary.Maybe for example caused by the recursion depth limiter. originalErrorInfo = errorInfo; - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); } } } @@ -13980,7 +14119,7 @@ namespace ts { const related = isPropertySymbolTypeRelated(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors, isIntersectionConstituent); if (!related) { if (reportErrors) { - reportError(Diagnostics.Types_of_property_0_are_incompatible, symbolToString(targetProp)); + reportIncompatibleError(Diagnostics.Types_of_property_0_are_incompatible, symbolToString(targetProp)); } return Ternary.False; } @@ -14022,8 +14161,8 @@ namespace ts { if (length(unmatchedProperty.declarations)) { associateRelatedInfo(createDiagnosticForNode(unmatchedProperty.declarations[0], Diagnostics._0_is_declared_here, propName)); } - if (shouldSkipElaboration) { - overrideNextErrorInfo = errorInfo; + if (shouldSkipElaboration && errorInfo) { + overrideNextErrorInfo++; } } else if (tryElaborateArrayLikeErrors(source, target, /*reportErrors*/ false)) { @@ -14033,8 +14172,8 @@ namespace ts { else { reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2, typeToString(source), typeToString(target), map(props, p => symbolToString(p)).join(", ")); } - if (shouldSkipElaboration) { - overrideNextErrorInfo = errorInfo; + if (shouldSkipElaboration && errorInfo) { + overrideNextErrorInfo++; } } // ELSE: No array like or unmatched property error - just issue top level error (errorInfo = undefined) @@ -14157,7 +14296,8 @@ namespace ts { } let result = Ternary.True; - const saveErrorInfo = errorInfo; + const saveErrorInfo = captureErrorCalculationState(); + const incompatibleReporter = kind === SignatureKind.Construct ? reportIncompatibleConstructSignatureReturn : reportIncompatibleCallSignatureReturn; if (getObjectFlags(source) & ObjectFlags.Instantiated && getObjectFlags(target) & ObjectFlags.Instantiated && source.symbol === target.symbol) { // We have instantiations of the same anonymous type (which typically will be the type of a @@ -14165,7 +14305,7 @@ namespace ts { // of the much more expensive N * M comparison matrix we explore below. We erase type parameters // as they are known to always be the same. for (let i = 0; i < targetSignatures.length; i++) { - const related = signatureRelatedTo(sourceSignatures[i], targetSignatures[i], /*erase*/ true, reportErrors); + const related = signatureRelatedTo(sourceSignatures[i], targetSignatures[i], /*erase*/ true, reportErrors, incompatibleReporter(sourceSignatures[i], targetSignatures[i])); if (!related) { return Ternary.False; } @@ -14179,17 +14319,17 @@ namespace ts { // this regardless of the number of signatures, but the potential costs are prohibitive due // to the quadratic nature of the logic below. const eraseGenerics = relation === comparableRelation || !!compilerOptions.noStrictGenericChecks; - result = signatureRelatedTo(sourceSignatures[0], targetSignatures[0], eraseGenerics, reportErrors); + result = signatureRelatedTo(sourceSignatures[0], targetSignatures[0], eraseGenerics, reportErrors, incompatibleReporter(sourceSignatures[0], targetSignatures[0])); } else { outer: for (const t of targetSignatures) { // Only elaborate errors from the first failure let shouldElaborateErrors = reportErrors; for (const s of sourceSignatures) { - const related = signatureRelatedTo(s, t, /*erase*/ true, shouldElaborateErrors); + const related = signatureRelatedTo(s, t, /*erase*/ true, shouldElaborateErrors, incompatibleReporter(s, t)); if (related) { result &= related; - errorInfo = saveErrorInfo; + resetErrorInfo(saveErrorInfo); continue outer; } shouldElaborateErrors = false; @@ -14206,12 +14346,26 @@ namespace ts { return result; } + function reportIncompatibleCallSignatureReturn(siga: Signature, sigb: Signature) { + if (siga.parameters.length === 0 && sigb.parameters.length === 0) { + return (source: Type, target: Type) => reportIncompatibleError(Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, typeToString(source), typeToString(target)); + } + return (source: Type, target: Type) => reportIncompatibleError(Diagnostics.Call_signature_return_types_0_and_1_are_incompatible, typeToString(source), typeToString(target)); + } + + function reportIncompatibleConstructSignatureReturn(siga: Signature, sigb: Signature) { + if (siga.parameters.length === 0 && sigb.parameters.length === 0) { + return (source: Type, target: Type) => reportIncompatibleError(Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, typeToString(source), typeToString(target)); + } + return (source: Type, target: Type) => reportIncompatibleError(Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible, typeToString(source), typeToString(target)); + } + /** * See signatureAssignableTo, compareSignaturesIdentical */ - function signatureRelatedTo(source: Signature, target: Signature, erase: boolean, reportErrors: boolean): Ternary { + function signatureRelatedTo(source: Signature, target: Signature, erase: boolean, reportErrors: boolean, incompatibleReporter: (source: Type, target: Type) => void): Ternary { return compareSignaturesRelated(erase ? getErasedSignature(source) : source, erase ? getErasedSignature(target) : target, - CallbackCheck.None, /*ignoreReturnTypes*/ false, reportErrors, reportError, isRelatedTo); + CallbackCheck.None, /*ignoreReturnTypes*/ false, reportErrors, reportError, incompatibleReporter, isRelatedTo); } function signaturesIdenticalTo(source: Type, target: Type, kind: SignatureKind): Ternary { diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 44bba361bbc..3b219b37de4 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1040,6 +1040,35 @@ "code": 1357 }, + "The types of '{0}' are incompatible between these types.": { + "category": "Error", + "code": 2200 + }, + "The types returned by '{0}' are incompatible between these types.": { + "category": "Error", + "code": 2201 + }, + "Call signature return types '{0}' and '{1}' are incompatible.": { + "category": "Error", + "code": 2202, + "elidedInCompatabilityPyramid": true + }, + "Construct signature return types '{0}' and '{1}' are incompatible.": { + "category": "Error", + "code": 2203, + "elidedInCompatabilityPyramid": true + }, + "Call signatures with no arguments have incompatible return types '{0}' and '{1}'.": { + "category": "Error", + "code": 2204, + "elidedInCompatabilityPyramid": true + }, + "Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.": { + "category": "Error", + "code": 2205, + "elidedInCompatabilityPyramid": true + }, + "Duplicate identifier '{0}'.": { "category": "Error", "code": 2300 diff --git a/src/compiler/types.ts b/src/compiler/types.ts index e20518ed119..eb568ed5cff 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -4631,6 +4631,8 @@ namespace ts { code: number; message: string; reportsUnnecessary?: {}; + /* @internal */ + elidedInCompatabilityPyramid?: boolean; } /** diff --git a/tests/baselines/reference/arrayLiterals3.errors.txt b/tests/baselines/reference/arrayLiterals3.errors.txt index 4d398978c96..5f592b74f3e 100644 --- a/tests/baselines/reference/arrayLiterals3.errors.txt +++ b/tests/baselines/reference/arrayLiterals3.errors.txt @@ -8,10 +8,9 @@ tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(17,5): error tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(32,5): error TS2739: Type '(number[] | string[])[]' is missing the following properties from type 'tup': 0, 1 tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(33,5): error TS2739: Type 'number[]' is missing the following properties from type '[number, number, number]': 0, 1, 2 tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(34,5): error TS2322: Type '(string | number)[]' is not assignable to type 'myArray'. - Types of property 'pop' are incompatible. - Type '() => string | number' is not assignable to type '() => Number'. - Type 'string | number' is not assignable to type 'Number'. - Type 'string' is not assignable to type 'Number'. + The types returned by 'pop()' are incompatible between these types. + Type 'string | number' is not assignable to type 'Number'. + Type 'string' is not assignable to type 'Number'. ==== tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts (8 errors) ==== @@ -67,8 +66,7 @@ tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(34,5): error var c2: myArray = [...temp1, ...temp]; // Error cannot assign (number|string)[] to number[] ~~ !!! error TS2322: Type '(string | number)[]' is not assignable to type 'myArray'. -!!! error TS2322: Types of property 'pop' are incompatible. -!!! error TS2322: Type '() => string | number' is not assignable to type '() => Number'. -!!! error TS2322: Type 'string | number' is not assignable to type 'Number'. -!!! error TS2322: Type 'string' is not assignable to type 'Number'. +!!! error TS2322: The types returned by 'pop()' are incompatible between these types. +!!! error TS2322: Type 'string | number' is not assignable to type 'Number'. +!!! error TS2322: Type 'string' is not assignable to type 'Number'. \ No newline at end of file diff --git a/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.errors.txt b/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.errors.txt index 63d3a6f7b64..66b3c2c8691 100644 --- a/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.errors.txt +++ b/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.errors.txt @@ -1,10 +1,9 @@ tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(13,1): error TS2322: Type 'A[]' is not assignable to type 'readonly B[]'. Property 'b' is missing in type 'A' but required in type 'B'. tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(18,1): error TS2322: Type 'C' is not assignable to type 'readonly B[]'. - Types of property 'concat' are incompatible. - Type '{ (...items: ConcatArray[]): A[]; (...items: (A | ConcatArray)[]): A[]; }' is not assignable to type '{ (...items: ConcatArray[]): B[]; (...items: (B | ConcatArray)[]): B[]; }'. - Type 'A[]' is not assignable to type 'B[]'. - Type 'A' is not assignable to type 'B'. + The types returned by 'concat(...)' are incompatible between these types. + Type 'A[]' is not assignable to type 'B[]'. + Type 'A' is not assignable to type 'B'. ==== tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts (2 errors) ==== @@ -32,8 +31,7 @@ tests/cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts(18,1): error T rrb = cra; // error: 'A' is not assignable to 'B' ~~~ !!! error TS2322: Type 'C' is not assignable to type 'readonly B[]'. -!!! error TS2322: Types of property 'concat' are incompatible. -!!! error TS2322: Type '{ (...items: ConcatArray[]): A[]; (...items: (A | ConcatArray)[]): A[]; }' is not assignable to type '{ (...items: ConcatArray[]): B[]; (...items: (B | ConcatArray)[]): B[]; }'. -!!! error TS2322: Type 'A[]' is not assignable to type 'B[]'. -!!! error TS2322: Type 'A' is not assignable to type 'B'. +!!! error TS2322: The types returned by 'concat(...)' are incompatible between these types. +!!! error TS2322: Type 'A[]' is not assignable to type 'B[]'. +!!! error TS2322: Type 'A' is not assignable to type 'B'. \ No newline at end of file diff --git a/tests/baselines/reference/assignFromBooleanInterface2.errors.txt b/tests/baselines/reference/assignFromBooleanInterface2.errors.txt index 6c7ebbe5ee8..ba8b2f5a9c9 100644 --- a/tests/baselines/reference/assignFromBooleanInterface2.errors.txt +++ b/tests/baselines/reference/assignFromBooleanInterface2.errors.txt @@ -1,7 +1,6 @@ tests/cases/conformance/types/primitives/boolean/assignFromBooleanInterface2.ts(14,1): error TS2322: Type 'NotBoolean' is not assignable to type 'Boolean'. - Types of property 'valueOf' are incompatible. - Type '() => Object' is not assignable to type '() => boolean'. - Type 'Object' is not assignable to type 'boolean'. + The types returned by 'valueOf()' are incompatible between these types. + Type 'Object' is not assignable to type 'boolean'. tests/cases/conformance/types/primitives/boolean/assignFromBooleanInterface2.ts(19,1): error TS2322: Type 'Boolean' is not assignable to type 'boolean'. 'boolean' is a primitive, but 'Boolean' is a wrapper object. Prefer using 'boolean' when possible. tests/cases/conformance/types/primitives/boolean/assignFromBooleanInterface2.ts(20,1): error TS2322: Type 'NotBoolean' is not assignable to type 'boolean'. @@ -24,9 +23,8 @@ tests/cases/conformance/types/primitives/boolean/assignFromBooleanInterface2.ts( a = b; ~ !!! error TS2322: Type 'NotBoolean' is not assignable to type 'Boolean'. -!!! error TS2322: Types of property 'valueOf' are incompatible. -!!! error TS2322: Type '() => Object' is not assignable to type '() => boolean'. -!!! error TS2322: Type 'Object' is not assignable to type 'boolean'. +!!! error TS2322: The types returned by 'valueOf()' are incompatible between these types. +!!! error TS2322: Type 'Object' is not assignable to type 'boolean'. b = a; b = x; diff --git a/tests/baselines/reference/asyncFunctionDeclaration15_es5.errors.txt b/tests/baselines/reference/asyncFunctionDeclaration15_es5.errors.txt index 6b4b0a71c6f..7e3595ec6f4 100644 --- a/tests/baselines/reference/asyncFunctionDeclaration15_es5.errors.txt +++ b/tests/baselines/reference/asyncFunctionDeclaration15_es5.errors.txt @@ -5,10 +5,9 @@ tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration1 tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(8,23): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value. tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(9,23): error TS1055: Type 'PromiseLike' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value. tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(10,23): error TS1055: Type 'typeof Thenable' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value. - Type 'Thenable' is not assignable to type 'PromiseLike'. - Types of property 'then' are incompatible. - Type '() => void' is not assignable to type '(onfulfilled?: (value: T) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike'. - Type 'void' is not assignable to type 'PromiseLike'. + Construct signature return types 'Thenable' and 'PromiseLike' are incompatible. + The types returned by 'then(...)' are incompatible between these types. + Type 'void' is not assignable to type 'PromiseLike'. tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(17,16): error TS1058: The return type of an async function must either be a valid promise or must not contain a callable 'then' member. tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(23,25): error TS1320: Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member. @@ -38,10 +37,9 @@ tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration1 async function fn6(): Thenable { } // error ~~~~~~~~ !!! error TS1055: Type 'typeof Thenable' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value. -!!! error TS1055: Type 'Thenable' is not assignable to type 'PromiseLike'. -!!! error TS1055: Types of property 'then' are incompatible. -!!! error TS1055: Type '() => void' is not assignable to type '(onfulfilled?: (value: T) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike'. -!!! error TS1055: Type 'void' is not assignable to type 'PromiseLike'. +!!! error TS1055: Construct signature return types 'Thenable' and 'PromiseLike' are incompatible. +!!! error TS1055: The types returned by 'then(...)' are incompatible between these types. +!!! error TS1055: Type 'void' is not assignable to type 'PromiseLike'. async function fn7() { return; } // valid: Promise async function fn8() { return 1; } // valid: Promise async function fn9() { return null; } // valid: Promise diff --git a/tests/baselines/reference/bigintWithLib.errors.txt b/tests/baselines/reference/bigintWithLib.errors.txt index b4c9f65cf9c..fb54c2a530b 100644 --- a/tests/baselines/reference/bigintWithLib.errors.txt +++ b/tests/baselines/reference/bigintWithLib.errors.txt @@ -4,15 +4,11 @@ tests/cases/compiler/bigintWithLib.ts(16,33): error TS2769: No overload matches Argument of type 'number[]' is not assignable to parameter of type 'number'. Overload 2 of 3, '(array: Iterable): BigInt64Array', gave the following error. Argument of type 'number[]' is not assignable to parameter of type 'Iterable'. - Types of property '[Symbol.iterator]' are incompatible. - Type '() => IterableIterator' is not assignable to type '() => Iterator'. - Type 'IterableIterator' is not assignable to type 'Iterator'. - Types of property 'next' are incompatible. - Type '(...args: [] | [undefined]) => IteratorResult' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. - Type 'IteratorResult' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. - Type 'number' is not assignable to type 'bigint'. + The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types. + Type 'IteratorResult' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. + Type 'number' is not assignable to type 'bigint'. Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigInt64Array', gave the following error. Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'. Type 'number[]' is missing the following properties from type 'SharedArrayBuffer': byteLength, [Symbol.species], [Symbol.toStringTag] @@ -55,15 +51,11 @@ tests/cases/compiler/bigintWithLib.ts(43,26): error TS2345: Argument of type '12 !!! error TS2769: Argument of type 'number[]' is not assignable to parameter of type 'number'. !!! error TS2769: Overload 2 of 3, '(array: Iterable): BigInt64Array', gave the following error. !!! error TS2769: Argument of type 'number[]' is not assignable to parameter of type 'Iterable'. -!!! error TS2769: Types of property '[Symbol.iterator]' are incompatible. -!!! error TS2769: Type '() => IterableIterator' is not assignable to type '() => Iterator'. -!!! error TS2769: Type 'IterableIterator' is not assignable to type 'Iterator'. -!!! error TS2769: Types of property 'next' are incompatible. -!!! error TS2769: Type '(...args: [] | [undefined]) => IteratorResult' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. -!!! error TS2769: Type 'IteratorResult' is not assignable to type 'IteratorResult'. -!!! error TS2769: Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. -!!! error TS2769: Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. -!!! error TS2769: Type 'number' is not assignable to type 'bigint'. +!!! error TS2769: The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types. +!!! error TS2769: Type 'IteratorResult' is not assignable to type 'IteratorResult'. +!!! error TS2769: Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. +!!! error TS2769: Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. +!!! error TS2769: Type 'number' is not assignable to type 'bigint'. !!! error TS2769: Overload 3 of 3, '(buffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): BigInt64Array', gave the following error. !!! error TS2769: Argument of type 'number[]' is not assignable to parameter of type 'ArrayBuffer | SharedArrayBuffer'. !!! error TS2769: Type 'number[]' is missing the following properties from type 'SharedArrayBuffer': byteLength, [Symbol.species], [Symbol.toStringTag] diff --git a/tests/baselines/reference/booleanAssignment.errors.txt b/tests/baselines/reference/booleanAssignment.errors.txt index fc25fd4007f..8a928c57404 100644 --- a/tests/baselines/reference/booleanAssignment.errors.txt +++ b/tests/baselines/reference/booleanAssignment.errors.txt @@ -1,9 +1,8 @@ tests/cases/compiler/booleanAssignment.ts(2,1): error TS2322: Type '1' is not assignable to type 'Boolean'. tests/cases/compiler/booleanAssignment.ts(3,1): error TS2322: Type '"a"' is not assignable to type 'Boolean'. tests/cases/compiler/booleanAssignment.ts(4,1): error TS2322: Type '{}' is not assignable to type 'Boolean'. - Types of property 'valueOf' are incompatible. - Type '() => Object' is not assignable to type '() => boolean'. - Type 'Object' is not assignable to type 'boolean'. + The types returned by 'valueOf()' are incompatible between these types. + Type 'Object' is not assignable to type 'boolean'. ==== tests/cases/compiler/booleanAssignment.ts (3 errors) ==== @@ -17,9 +16,8 @@ tests/cases/compiler/booleanAssignment.ts(4,1): error TS2322: Type '{}' is not a b = {}; // Error ~ !!! error TS2322: Type '{}' is not assignable to type 'Boolean'. -!!! error TS2322: Types of property 'valueOf' are incompatible. -!!! error TS2322: Type '() => Object' is not assignable to type '() => boolean'. -!!! error TS2322: Type 'Object' is not assignable to type 'boolean'. +!!! error TS2322: The types returned by 'valueOf()' are incompatible between these types. +!!! error TS2322: Type 'Object' is not assignable to type 'boolean'. var o = {}; o = b; // OK diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance.errors.txt b/tests/baselines/reference/callSignatureAssignabilityInInheritance.errors.txt index 2ca3bb1aaf0..43589e94370 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance.errors.txt +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance.errors.txt @@ -1,12 +1,10 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSignatureAssignabilityInInheritance.ts(57,15): error TS2430: Interface 'I2' incorrectly extends interface 'Base2'. - Types of property 'a' are incompatible. - Type '(x: number) => string' is not assignable to type '(x: number) => number'. - Type 'string' is not assignable to type 'number'. + The types returned by 'a(...)' are incompatible between these types. + Type 'string' is not assignable to type 'number'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSignatureAssignabilityInInheritance.ts(63,15): error TS2430: Interface 'I3' incorrectly extends interface 'Base2'. - Types of property 'a2' are incompatible. - Type '(x: T) => string' is not assignable to type '(x: T) => T'. - Type 'string' is not assignable to type 'T'. - 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'a2(...)' are incompatible between these types. + Type 'string' is not assignable to type 'T'. + 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. ==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSignatureAssignabilityInInheritance.ts (2 errors) ==== @@ -69,9 +67,8 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSign interface I2 extends Base2 { ~~ !!! error TS2430: Interface 'I2' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a' are incompatible. -!!! error TS2430: Type '(x: number) => string' is not assignable to type '(x: number) => number'. -!!! error TS2430: Type 'string' is not assignable to type 'number'. +!!! error TS2430: The types returned by 'a(...)' are incompatible between these types. +!!! error TS2430: Type 'string' is not assignable to type 'number'. // N's a: (x: number) => string; // error because base returns non-void; } @@ -80,10 +77,9 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSign interface I3 extends Base2 { ~~ !!! error TS2430: Interface 'I3' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a2' are incompatible. -!!! error TS2430: Type '(x: T) => string' is not assignable to type '(x: T) => T'. -!!! error TS2430: Type 'string' is not assignable to type 'T'. -!!! error TS2430: 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'a2(...)' are incompatible between these types. +!!! error TS2430: Type 'string' is not assignable to type 'T'. +!!! error TS2430: 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. // N's a2: (x: T) => string; // error because base returns non-void; } diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance3.errors.txt b/tests/baselines/reference/callSignatureAssignabilityInInheritance3.errors.txt index 671c09b3d79..287875d44da 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance3.errors.txt +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance3.errors.txt @@ -27,16 +27,14 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSign Types of property 'a' are incompatible. Type 'string' is not assignable to type 'Base'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSignatureAssignabilityInInheritance3.ts(100,19): error TS2430: Interface 'I6' incorrectly extends interface 'B'. - Types of property 'a2' are incompatible. - Type '(x: T) => string[]' is not assignable to type '(x: T) => T[]'. - Type 'string[]' is not assignable to type 'T[]'. - Type 'string' is not assignable to type 'T'. - 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'a2(...)' are incompatible between these types. + Type 'string[]' is not assignable to type 'T[]'. + Type 'string' is not assignable to type 'T'. + 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSignatureAssignabilityInInheritance3.ts(109,19): error TS2430: Interface 'I7' incorrectly extends interface 'C'. - Types of property 'a2' are incompatible. - Type '(x: T) => T[]' is not assignable to type '(x: T) => string[]'. - Type 'T[]' is not assignable to type 'string[]'. - Type 'T' is not assignable to type 'string'. + The types returned by 'a2(...)' are incompatible between these types. + Type 'T[]' is not assignable to type 'string[]'. + Type 'T' is not assignable to type 'string'. ==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSignatureAssignabilityInInheritance3.ts (6 errors) ==== @@ -174,11 +172,10 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSign interface I6 extends B { ~~ !!! error TS2430: Interface 'I6' incorrectly extends interface 'B'. -!!! error TS2430: Types of property 'a2' are incompatible. -!!! error TS2430: Type '(x: T) => string[]' is not assignable to type '(x: T) => T[]'. -!!! error TS2430: Type 'string[]' is not assignable to type 'T[]'. -!!! error TS2430: Type 'string' is not assignable to type 'T'. -!!! error TS2430: 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'a2(...)' are incompatible between these types. +!!! error TS2430: Type 'string[]' is not assignable to type 'T[]'. +!!! error TS2430: Type 'string' is not assignable to type 'T'. +!!! error TS2430: 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a2: (x: T) => string[]; // error } @@ -190,10 +187,9 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSign interface I7 extends C { ~~ !!! error TS2430: Interface 'I7' incorrectly extends interface 'C'. -!!! error TS2430: Types of property 'a2' are incompatible. -!!! error TS2430: Type '(x: T) => T[]' is not assignable to type '(x: T) => string[]'. -!!! error TS2430: Type 'T[]' is not assignable to type 'string[]'. -!!! error TS2430: Type 'T' is not assignable to type 'string'. +!!! error TS2430: The types returned by 'a2(...)' are incompatible between these types. +!!! error TS2430: Type 'T[]' is not assignable to type 'string[]'. +!!! error TS2430: Type 'T' is not assignable to type 'string'. a2: (x: T) => T[]; // error } } diff --git a/tests/baselines/reference/checkJsxChildrenCanBeTupleType.errors.txt b/tests/baselines/reference/checkJsxChildrenCanBeTupleType.errors.txt index aeaeb56ea75..0780f4e92c1 100644 --- a/tests/baselines/reference/checkJsxChildrenCanBeTupleType.errors.txt +++ b/tests/baselines/reference/checkJsxChildrenCanBeTupleType.errors.txt @@ -1,10 +1,8 @@ tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx(17,18): error TS2769: No overload matches this call. Overload 1 of 2, '(props: Readonly): ResizablePanel', gave the following error. Type '{ children: [Element, Element, Element]; }' is not assignable to type 'Readonly'. - Types of property 'children' are incompatible. - Type '[Element, Element, Element]' is not assignable to type '[ReactNode, ReactNode]'. - Types of property 'length' are incompatible. - Type '3' is not assignable to type '2'. + The types of 'children.length' are incompatible between these types. + Type '3' is not assignable to type '2'. Overload 2 of 2, '(props: ResizablePanelProps, context?: any): ResizablePanel', gave the following error. Type '{ children: [Element, Element, Element]; }' is not assignable to type 'Readonly'. Types of property 'children' are incompatible. @@ -33,10 +31,8 @@ tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx(17,18): error TS2 !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(props: Readonly): ResizablePanel', gave the following error. !!! error TS2769: Type '{ children: [Element, Element, Element]; }' is not assignable to type 'Readonly'. -!!! error TS2769: Types of property 'children' are incompatible. -!!! error TS2769: Type '[Element, Element, Element]' is not assignable to type '[ReactNode, ReactNode]'. -!!! error TS2769: Types of property 'length' are incompatible. -!!! error TS2769: Type '3' is not assignable to type '2'. +!!! error TS2769: The types of 'children.length' are incompatible between these types. +!!! error TS2769: Type '3' is not assignable to type '2'. !!! error TS2769: Overload 2 of 2, '(props: ResizablePanelProps, context?: any): ResizablePanel', gave the following error. !!! error TS2769: Type '{ children: [Element, Element, Element]; }' is not assignable to type 'Readonly'. !!! error TS2769: Types of property 'children' are incompatible. diff --git a/tests/baselines/reference/complexRecursiveCollections.errors.txt b/tests/baselines/reference/complexRecursiveCollections.errors.txt index 27bb24bc5cc..cd88e596fd1 100644 --- a/tests/baselines/reference/complexRecursiveCollections.errors.txt +++ b/tests/baselines/reference/complexRecursiveCollections.errors.txt @@ -1,18 +1,15 @@ tests/cases/compiler/immutable.ts(341,22): error TS2430: Interface 'Keyed' incorrectly extends interface 'Collection'. - Types of property 'toSeq' are incompatible. - Type '() => Keyed' is not assignable to type '() => this'. - Type 'Keyed' is not assignable to type 'this'. - 'Keyed' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Keyed'. + The types returned by 'toSeq()' are incompatible between these types. + Type 'Keyed' is not assignable to type 'this'. + 'Keyed' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Keyed'. tests/cases/compiler/immutable.ts(359,22): error TS2430: Interface 'Indexed' incorrectly extends interface 'Collection'. - Types of property 'toSeq' are incompatible. - Type '() => Indexed' is not assignable to type '() => this'. - Type 'Indexed' is not assignable to type 'this'. - 'Indexed' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Indexed'. + The types returned by 'toSeq()' are incompatible between these types. + Type 'Indexed' is not assignable to type 'this'. + 'Indexed' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Indexed'. tests/cases/compiler/immutable.ts(391,22): error TS2430: Interface 'Set' incorrectly extends interface 'Collection'. - Types of property 'toSeq' are incompatible. - Type '() => Set' is not assignable to type '() => this'. - Type 'Set' is not assignable to type 'this'. - 'Set' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Set'. + The types returned by 'toSeq()' are incompatible between these types. + Type 'Set' is not assignable to type 'this'. + 'Set' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Set'. ==== tests/cases/compiler/complex.ts (0 errors) ==== @@ -380,10 +377,9 @@ tests/cases/compiler/immutable.ts(391,22): error TS2430: Interface 'Set' inco export interface Keyed extends Collection { ~~~~~ !!! error TS2430: Interface 'Keyed' incorrectly extends interface 'Collection'. -!!! error TS2430: Types of property 'toSeq' are incompatible. -!!! error TS2430: Type '() => Keyed' is not assignable to type '() => this'. -!!! error TS2430: Type 'Keyed' is not assignable to type 'this'. -!!! error TS2430: 'Keyed' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Keyed'. +!!! error TS2430: The types returned by 'toSeq()' are incompatible between these types. +!!! error TS2430: Type 'Keyed' is not assignable to type 'this'. +!!! error TS2430: 'Keyed' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Keyed'. toJS(): Object; toJSON(): { [key: string]: V }; toSeq(): Seq.Keyed; @@ -404,10 +400,9 @@ tests/cases/compiler/immutable.ts(391,22): error TS2430: Interface 'Set' inco export interface Indexed extends Collection { ~~~~~~~ !!! error TS2430: Interface 'Indexed' incorrectly extends interface 'Collection'. -!!! error TS2430: Types of property 'toSeq' are incompatible. -!!! error TS2430: Type '() => Indexed' is not assignable to type '() => this'. -!!! error TS2430: Type 'Indexed' is not assignable to type 'this'. -!!! error TS2430: 'Indexed' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Indexed'. +!!! error TS2430: The types returned by 'toSeq()' are incompatible between these types. +!!! error TS2430: Type 'Indexed' is not assignable to type 'this'. +!!! error TS2430: 'Indexed' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Indexed'. toJS(): Array; toJSON(): Array; // Reading values @@ -442,10 +437,9 @@ tests/cases/compiler/immutable.ts(391,22): error TS2430: Interface 'Set' inco export interface Set extends Collection { ~~~ !!! error TS2430: Interface 'Set' incorrectly extends interface 'Collection'. -!!! error TS2430: Types of property 'toSeq' are incompatible. -!!! error TS2430: Type '() => Set' is not assignable to type '() => this'. -!!! error TS2430: Type 'Set' is not assignable to type 'this'. -!!! error TS2430: 'Set' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Set'. +!!! error TS2430: The types returned by 'toSeq()' are incompatible between these types. +!!! error TS2430: Type 'Set' is not assignable to type 'this'. +!!! error TS2430: 'Set' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Set'. toJS(): Array; toJSON(): Array; toSeq(): Seq.Set; diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance.errors.txt b/tests/baselines/reference/constructSignatureAssignabilityInInheritance.errors.txt index e326d163c8c..1cc019746ba 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance.errors.txt +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance.errors.txt @@ -1,12 +1,10 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/constructSignatureAssignabilityInInheritance.ts(61,15): error TS2430: Interface 'I2' incorrectly extends interface 'Base2'. - Types of property 'a' are incompatible. - Type 'new (x: number) => string' is not assignable to type 'new (x: number) => number'. - Type 'string' is not assignable to type 'number'. + The types returned by 'new a(...)' are incompatible between these types. + Type 'string' is not assignable to type 'number'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/constructSignatureAssignabilityInInheritance.ts(67,15): error TS2430: Interface 'I3' incorrectly extends interface 'Base2'. - Types of property 'a2' are incompatible. - Type 'new (x: T) => string' is not assignable to type 'new (x: T) => T'. - Type 'string' is not assignable to type 'T'. - 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'new a2(...)' are incompatible between these types. + Type 'string' is not assignable to type 'T'. + 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. ==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/constructSignatureAssignabilityInInheritance.ts (2 errors) ==== @@ -73,9 +71,8 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/construc interface I2 extends Base2 { ~~ !!! error TS2430: Interface 'I2' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a' are incompatible. -!!! error TS2430: Type 'new (x: number) => string' is not assignable to type 'new (x: number) => number'. -!!! error TS2430: Type 'string' is not assignable to type 'number'. +!!! error TS2430: The types returned by 'new a(...)' are incompatible between these types. +!!! error TS2430: Type 'string' is not assignable to type 'number'. // N's a: new (x: number) => string; // error because base returns non-void; } @@ -84,10 +81,9 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/construc interface I3 extends Base2 { ~~ !!! error TS2430: Interface 'I3' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a2' are incompatible. -!!! error TS2430: Type 'new (x: T) => string' is not assignable to type 'new (x: T) => T'. -!!! error TS2430: Type 'string' is not assignable to type 'T'. -!!! error TS2430: 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'new a2(...)' are incompatible between these types. +!!! error TS2430: Type 'string' is not assignable to type 'T'. +!!! error TS2430: 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. // N's a2: new (x: T) => string; // error because base returns non-void; } diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.errors.txt b/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.errors.txt index 59d8105c59c..d4c9e808200 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.errors.txt +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.errors.txt @@ -27,16 +27,14 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/construc Types of property 'a' are incompatible. Type 'string' is not assignable to type 'Base'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/constructSignatureAssignabilityInInheritance3.ts(86,19): error TS2430: Interface 'I6' incorrectly extends interface 'B'. - Types of property 'a2' are incompatible. - Type 'new (x: T) => string[]' is not assignable to type 'new (x: T) => T[]'. - Type 'string[]' is not assignable to type 'T[]'. - Type 'string' is not assignable to type 'T'. - 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'new a2(...)' are incompatible between these types. + Type 'string[]' is not assignable to type 'T[]'. + Type 'string' is not assignable to type 'T'. + 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/constructSignatureAssignabilityInInheritance3.ts(95,19): error TS2430: Interface 'I7' incorrectly extends interface 'C'. - Types of property 'a2' are incompatible. - Type 'new (x: T) => T[]' is not assignable to type 'new (x: T) => string[]'. - Type 'T[]' is not assignable to type 'string[]'. - Type 'T' is not assignable to type 'string'. + The types returned by 'new a2(...)' are incompatible between these types. + Type 'T[]' is not assignable to type 'string[]'. + Type 'T' is not assignable to type 'string'. ==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/constructSignatureAssignabilityInInheritance3.ts (6 errors) ==== @@ -160,11 +158,10 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/construc interface I6 extends B { ~~ !!! error TS2430: Interface 'I6' incorrectly extends interface 'B'. -!!! error TS2430: Types of property 'a2' are incompatible. -!!! error TS2430: Type 'new (x: T) => string[]' is not assignable to type 'new (x: T) => T[]'. -!!! error TS2430: Type 'string[]' is not assignable to type 'T[]'. -!!! error TS2430: Type 'string' is not assignable to type 'T'. -!!! error TS2430: 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'new a2(...)' are incompatible between these types. +!!! error TS2430: Type 'string[]' is not assignable to type 'T[]'. +!!! error TS2430: Type 'string' is not assignable to type 'T'. +!!! error TS2430: 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a2: new (x: T) => string[]; // error } @@ -176,10 +173,9 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/construc interface I7 extends C { ~~ !!! error TS2430: Interface 'I7' incorrectly extends interface 'C'. -!!! error TS2430: Types of property 'a2' are incompatible. -!!! error TS2430: Type 'new (x: T) => T[]' is not assignable to type 'new (x: T) => string[]'. -!!! error TS2430: Type 'T[]' is not assignable to type 'string[]'. -!!! error TS2430: Type 'T' is not assignable to type 'string'. +!!! error TS2430: The types returned by 'new a2(...)' are incompatible between these types. +!!! error TS2430: Type 'T[]' is not assignable to type 'string[]'. +!!! error TS2430: Type 'T' is not assignable to type 'string'. a2: new (x: T) => T[]; // error } diff --git a/tests/baselines/reference/covariantCallbacks.errors.txt b/tests/baselines/reference/covariantCallbacks.errors.txt index 9ee5a9e2fed..401bf454baa 100644 --- a/tests/baselines/reference/covariantCallbacks.errors.txt +++ b/tests/baselines/reference/covariantCallbacks.errors.txt @@ -10,9 +10,8 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/covarian Type 'A' is not assignable to type 'B'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/covariantCallbacks.ts(43,5): error TS2322: Type 'AList2' is not assignable to type 'BList2'. Types of property 'forEach' are incompatible. - Type '(cb: (item: A) => boolean) => void' is not assignable to type '(cb: (item: A) => void) => void'. - Types of parameters 'cb' and 'cb' are incompatible. - Type 'void' is not assignable to type 'boolean'. + Types of parameters 'cb' and 'cb' are incompatible. + Type 'void' is not assignable to type 'boolean'. tests/cases/conformance/types/typeRelationships/assignmentCompatibility/covariantCallbacks.ts(56,5): error TS2322: Type 'AList3' is not assignable to type 'BList3'. Types of property 'forEach' are incompatible. Type '(cb: (item: A) => void) => void' is not assignable to type '(cb: (item: A, context: any) => void) => void'. @@ -86,9 +85,8 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/covarian ~ !!! error TS2322: Type 'AList2' is not assignable to type 'BList2'. !!! error TS2322: Types of property 'forEach' are incompatible. -!!! error TS2322: Type '(cb: (item: A) => boolean) => void' is not assignable to type '(cb: (item: A) => void) => void'. -!!! error TS2322: Types of parameters 'cb' and 'cb' are incompatible. -!!! error TS2322: Type 'void' is not assignable to type 'boolean'. +!!! error TS2322: Types of parameters 'cb' and 'cb' are incompatible. +!!! error TS2322: Type 'void' is not assignable to type 'boolean'. } interface AList3 { diff --git a/tests/baselines/reference/decoratorCallGeneric.errors.txt b/tests/baselines/reference/decoratorCallGeneric.errors.txt index c2e4042743e..495160a191b 100644 --- a/tests/baselines/reference/decoratorCallGeneric.errors.txt +++ b/tests/baselines/reference/decoratorCallGeneric.errors.txt @@ -1,7 +1,6 @@ tests/cases/conformance/decorators/decoratorCallGeneric.ts(7,2): error TS2345: Argument of type 'typeof C' is not assignable to parameter of type 'I'. - Types of property 'm' are incompatible. - Type '() => void' is not assignable to type '() => C'. - Type 'void' is not assignable to type 'C'. + The types returned by 'm()' are incompatible between these types. + Type 'void' is not assignable to type 'C'. ==== tests/cases/conformance/decorators/decoratorCallGeneric.ts (1 errors) ==== @@ -14,9 +13,8 @@ tests/cases/conformance/decorators/decoratorCallGeneric.ts(7,2): error TS2345: A @dec ~~~ !!! error TS2345: Argument of type 'typeof C' is not assignable to parameter of type 'I'. -!!! error TS2345: Types of property 'm' are incompatible. -!!! error TS2345: Type '() => void' is not assignable to type '() => C'. -!!! error TS2345: Type 'void' is not assignable to type 'C'. +!!! error TS2345: The types returned by 'm()' are incompatible between these types. +!!! error TS2345: Type 'void' is not assignable to type 'C'. class C { _brand: any; static m() {} diff --git a/tests/baselines/reference/deepExcessPropertyCheckingWhenTargetIsIntersection.errors.txt b/tests/baselines/reference/deepExcessPropertyCheckingWhenTargetIsIntersection.errors.txt index 6a83638ba90..1f2552d47f2 100644 --- a/tests/baselines/reference/deepExcessPropertyCheckingWhenTargetIsIntersection.errors.txt +++ b/tests/baselines/reference/deepExcessPropertyCheckingWhenTargetIsIntersection.errors.txt @@ -1,10 +1,8 @@ tests/cases/compiler/deepExcessPropertyCheckingWhenTargetIsIntersection.ts(21,33): error TS2322: Type '{ INVALID_PROP_NAME: string; ariaLabel: string; }' is not assignable to type 'ITestProps'. Object literal may only specify known properties, and 'INVALID_PROP_NAME' does not exist in type 'ITestProps'. -tests/cases/compiler/deepExcessPropertyCheckingWhenTargetIsIntersection.ts(27,34): error TS2326: Types of property 'icon' are incompatible. - Type '{ props: { INVALID_PROP_NAME: string; ariaLabel: string; }; }' is not assignable to type 'NestedProp'. - Types of property 'props' are incompatible. - Type '{ INVALID_PROP_NAME: string; ariaLabel: string; }' is not assignable to type 'ITestProps'. - Object literal may only specify known properties, and 'INVALID_PROP_NAME' does not exist in type 'ITestProps'. +tests/cases/compiler/deepExcessPropertyCheckingWhenTargetIsIntersection.ts(27,34): error TS2200: The types of 'icon.props' are incompatible between these types. + Type '{ INVALID_PROP_NAME: string; ariaLabel: string; }' is not assignable to type 'ITestProps'. + Object literal may only specify known properties, and 'INVALID_PROP_NAME' does not exist in type 'ITestProps'. ==== tests/cases/compiler/deepExcessPropertyCheckingWhenTargetIsIntersection.ts (2 errors) ==== @@ -40,9 +38,7 @@ tests/cases/compiler/deepExcessPropertyCheckingWhenTargetIsIntersection.ts(27,34 TestComponent2({icon: { props: { INVALID_PROP_NAME: 'share', ariaLabel: 'test label' } }}); ~~~~~~~~~~~~~~~~~~~~~~~~~~ -!!! error TS2326: Types of property 'icon' are incompatible. -!!! error TS2326: Type '{ props: { INVALID_PROP_NAME: string; ariaLabel: string; }; }' is not assignable to type 'NestedProp'. -!!! error TS2326: Types of property 'props' are incompatible. -!!! error TS2326: Type '{ INVALID_PROP_NAME: string; ariaLabel: string; }' is not assignable to type 'ITestProps'. -!!! error TS2326: Object literal may only specify known properties, and 'INVALID_PROP_NAME' does not exist in type 'ITestProps'. +!!! error TS2200: The types of 'icon.props' are incompatible between these types. +!!! error TS2200: Type '{ INVALID_PROP_NAME: string; ariaLabel: string; }' is not assignable to type 'ITestProps'. +!!! error TS2200: Object literal may only specify known properties, and 'INVALID_PROP_NAME' does not exist in type 'ITestProps'. \ No newline at end of file diff --git a/tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.errors.txt b/tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.errors.txt new file mode 100644 index 00000000000..6245d06d2b7 --- /dev/null +++ b/tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.errors.txt @@ -0,0 +1,32 @@ +tests/cases/compiler/deeplyNestedAssignabilityErrorsCombined.ts(3,1): error TS2322: Type '{ a: { b: { c: { d: { e: { f(): { g: number; }; }; }; }; }; }; }' is not assignable to type '{ a: { b: { c: { d: { e: { f(): { g: string; }; }; }; }; }; }; }'. + The types of 'a.b.c.d.e.f().g' are incompatible between these types. + Type 'number' is not assignable to type 'string'. +tests/cases/compiler/deeplyNestedAssignabilityErrorsCombined.ts(15,1): error TS2322: Type '{ a: { b: { c: { d: { e: { f: typeof Ctor2; }; }; }; }; }; }' is not assignable to type '{ a: { b: { c: { d: { e: { f: typeof Ctor1; }; }; }; }; }; }'. + The types of '(new a.b.c.d.e.f()).g' are incompatible between these types. + Type 'number' is not assignable to type 'string'. + + +==== tests/cases/compiler/deeplyNestedAssignabilityErrorsCombined.ts (2 errors) ==== + let x = { a: { b: { c: { d: { e: { f() { return { g: "hello" }; } } } } } } }; + let y = { a: { b: { c: { d: { e: { f() { return { g: 12345 }; } } } } } } }; + x = y; + ~ +!!! error TS2322: Type '{ a: { b: { c: { d: { e: { f(): { g: number; }; }; }; }; }; }; }' is not assignable to type '{ a: { b: { c: { d: { e: { f(): { g: string; }; }; }; }; }; }; }'. +!!! error TS2322: The types of 'a.b.c.d.e.f().g' are incompatible between these types. +!!! error TS2322: Type 'number' is not assignable to type 'string'. + + class Ctor1 { + g = "ok" + } + + class Ctor2 { + g = 12; + } + + let x2 = { a: { b: { c: { d: { e: { f: Ctor1 } } } } } }; + let y2 = { a: { b: { c: { d: { e: { f: Ctor2 } } } } } }; + x2 = y2; + ~~ +!!! error TS2322: Type '{ a: { b: { c: { d: { e: { f: typeof Ctor2; }; }; }; }; }; }' is not assignable to type '{ a: { b: { c: { d: { e: { f: typeof Ctor1; }; }; }; }; }; }'. +!!! error TS2322: The types of '(new a.b.c.d.e.f()).g' are incompatible between these types. +!!! error TS2322: Type 'number' is not assignable to type 'string'. \ No newline at end of file diff --git a/tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.js b/tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.js new file mode 100644 index 00000000000..01bdcc7f253 --- /dev/null +++ b/tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.js @@ -0,0 +1,36 @@ +//// [deeplyNestedAssignabilityErrorsCombined.ts] +let x = { a: { b: { c: { d: { e: { f() { return { g: "hello" }; } } } } } } }; +let y = { a: { b: { c: { d: { e: { f() { return { g: 12345 }; } } } } } } }; +x = y; + +class Ctor1 { + g = "ok" +} + +class Ctor2 { + g = 12; +} + +let x2 = { a: { b: { c: { d: { e: { f: Ctor1 } } } } } }; +let y2 = { a: { b: { c: { d: { e: { f: Ctor2 } } } } } }; +x2 = y2; + +//// [deeplyNestedAssignabilityErrorsCombined.js] +var x = { a: { b: { c: { d: { e: { f: function () { return { g: "hello" }; } } } } } } }; +var y = { a: { b: { c: { d: { e: { f: function () { return { g: 12345 }; } } } } } } }; +x = y; +var Ctor1 = /** @class */ (function () { + function Ctor1() { + this.g = "ok"; + } + return Ctor1; +}()); +var Ctor2 = /** @class */ (function () { + function Ctor2() { + this.g = 12; + } + return Ctor2; +}()); +var x2 = { a: { b: { c: { d: { e: { f: Ctor1 } } } } } }; +var y2 = { a: { b: { c: { d: { e: { f: Ctor2 } } } } } }; +x2 = y2; diff --git a/tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.symbols b/tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.symbols new file mode 100644 index 00000000000..12333869923 --- /dev/null +++ b/tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.symbols @@ -0,0 +1,63 @@ +=== tests/cases/compiler/deeplyNestedAssignabilityErrorsCombined.ts === +let x = { a: { b: { c: { d: { e: { f() { return { g: "hello" }; } } } } } } }; +>x : Symbol(x, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 0, 3)) +>a : Symbol(a, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 0, 9)) +>b : Symbol(b, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 0, 14)) +>c : Symbol(c, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 0, 19)) +>d : Symbol(d, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 0, 24)) +>e : Symbol(e, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 0, 29)) +>f : Symbol(f, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 0, 34)) +>g : Symbol(g, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 0, 49)) + +let y = { a: { b: { c: { d: { e: { f() { return { g: 12345 }; } } } } } } }; +>y : Symbol(y, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 1, 3)) +>a : Symbol(a, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 1, 9)) +>b : Symbol(b, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 1, 14)) +>c : Symbol(c, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 1, 19)) +>d : Symbol(d, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 1, 24)) +>e : Symbol(e, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 1, 29)) +>f : Symbol(f, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 1, 34)) +>g : Symbol(g, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 1, 49)) + +x = y; +>x : Symbol(x, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 0, 3)) +>y : Symbol(y, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 1, 3)) + +class Ctor1 { +>Ctor1 : Symbol(Ctor1, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 2, 6)) + + g = "ok" +>g : Symbol(Ctor1.g, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 4, 13)) +} + +class Ctor2 { +>Ctor2 : Symbol(Ctor2, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 6, 1)) + + g = 12; +>g : Symbol(Ctor2.g, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 8, 13)) +} + +let x2 = { a: { b: { c: { d: { e: { f: Ctor1 } } } } } }; +>x2 : Symbol(x2, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 12, 3)) +>a : Symbol(a, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 12, 10)) +>b : Symbol(b, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 12, 15)) +>c : Symbol(c, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 12, 20)) +>d : Symbol(d, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 12, 25)) +>e : Symbol(e, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 12, 30)) +>f : Symbol(f, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 12, 35)) +>Ctor1 : Symbol(Ctor1, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 2, 6)) + +let y2 = { a: { b: { c: { d: { e: { f: Ctor2 } } } } } }; +>y2 : Symbol(y2, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 13, 3)) +>a : Symbol(a, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 13, 10)) +>b : Symbol(b, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 13, 15)) +>c : Symbol(c, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 13, 20)) +>d : Symbol(d, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 13, 25)) +>e : Symbol(e, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 13, 30)) +>f : Symbol(f, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 13, 35)) +>Ctor2 : Symbol(Ctor2, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 6, 1)) + +x2 = y2; +>x2 : Symbol(x2, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 12, 3)) +>y2 : Symbol(y2, Decl(deeplyNestedAssignabilityErrorsCombined.ts, 13, 3)) + diff --git a/tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.types b/tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.types new file mode 100644 index 00000000000..565de61ef08 --- /dev/null +++ b/tests/baselines/reference/deeplyNestedAssignabilityErrorsCombined.types @@ -0,0 +1,95 @@ +=== tests/cases/compiler/deeplyNestedAssignabilityErrorsCombined.ts === +let x = { a: { b: { c: { d: { e: { f() { return { g: "hello" }; } } } } } } }; +>x : { a: { b: { c: { d: { e: { f(): { g: string; }; }; }; }; }; }; } +>{ a: { b: { c: { d: { e: { f() { return { g: "hello" }; } } } } } } } : { a: { b: { c: { d: { e: { f(): { g: string; }; }; }; }; }; }; } +>a : { b: { c: { d: { e: { f(): { g: string; }; }; }; }; }; } +>{ b: { c: { d: { e: { f() { return { g: "hello" }; } } } } } } : { b: { c: { d: { e: { f(): { g: string; }; }; }; }; }; } +>b : { c: { d: { e: { f(): { g: string; }; }; }; }; } +>{ c: { d: { e: { f() { return { g: "hello" }; } } } } } : { c: { d: { e: { f(): { g: string; }; }; }; }; } +>c : { d: { e: { f(): { g: string; }; }; }; } +>{ d: { e: { f() { return { g: "hello" }; } } } } : { d: { e: { f(): { g: string; }; }; }; } +>d : { e: { f(): { g: string; }; }; } +>{ e: { f() { return { g: "hello" }; } } } : { e: { f(): { g: string; }; }; } +>e : { f(): { g: string; }; } +>{ f() { return { g: "hello" }; } } : { f(): { g: string; }; } +>f : () => { g: string; } +>{ g: "hello" } : { g: string; } +>g : string +>"hello" : "hello" + +let y = { a: { b: { c: { d: { e: { f() { return { g: 12345 }; } } } } } } }; +>y : { a: { b: { c: { d: { e: { f(): { g: number; }; }; }; }; }; }; } +>{ a: { b: { c: { d: { e: { f() { return { g: 12345 }; } } } } } } } : { a: { b: { c: { d: { e: { f(): { g: number; }; }; }; }; }; }; } +>a : { b: { c: { d: { e: { f(): { g: number; }; }; }; }; }; } +>{ b: { c: { d: { e: { f() { return { g: 12345 }; } } } } } } : { b: { c: { d: { e: { f(): { g: number; }; }; }; }; }; } +>b : { c: { d: { e: { f(): { g: number; }; }; }; }; } +>{ c: { d: { e: { f() { return { g: 12345 }; } } } } } : { c: { d: { e: { f(): { g: number; }; }; }; }; } +>c : { d: { e: { f(): { g: number; }; }; }; } +>{ d: { e: { f() { return { g: 12345 }; } } } } : { d: { e: { f(): { g: number; }; }; }; } +>d : { e: { f(): { g: number; }; }; } +>{ e: { f() { return { g: 12345 }; } } } : { e: { f(): { g: number; }; }; } +>e : { f(): { g: number; }; } +>{ f() { return { g: 12345 }; } } : { f(): { g: number; }; } +>f : () => { g: number; } +>{ g: 12345 } : { g: number; } +>g : number +>12345 : 12345 + +x = y; +>x = y : { a: { b: { c: { d: { e: { f(): { g: number; }; }; }; }; }; }; } +>x : { a: { b: { c: { d: { e: { f(): { g: string; }; }; }; }; }; }; } +>y : { a: { b: { c: { d: { e: { f(): { g: number; }; }; }; }; }; }; } + +class Ctor1 { +>Ctor1 : Ctor1 + + g = "ok" +>g : string +>"ok" : "ok" +} + +class Ctor2 { +>Ctor2 : Ctor2 + + g = 12; +>g : number +>12 : 12 +} + +let x2 = { a: { b: { c: { d: { e: { f: Ctor1 } } } } } }; +>x2 : { a: { b: { c: { d: { e: { f: typeof Ctor1; }; }; }; }; }; } +>{ a: { b: { c: { d: { e: { f: Ctor1 } } } } } } : { a: { b: { c: { d: { e: { f: typeof Ctor1; }; }; }; }; }; } +>a : { b: { c: { d: { e: { f: typeof Ctor1; }; }; }; }; } +>{ b: { c: { d: { e: { f: Ctor1 } } } } } : { b: { c: { d: { e: { f: typeof Ctor1; }; }; }; }; } +>b : { c: { d: { e: { f: typeof Ctor1; }; }; }; } +>{ c: { d: { e: { f: Ctor1 } } } } : { c: { d: { e: { f: typeof Ctor1; }; }; }; } +>c : { d: { e: { f: typeof Ctor1; }; }; } +>{ d: { e: { f: Ctor1 } } } : { d: { e: { f: typeof Ctor1; }; }; } +>d : { e: { f: typeof Ctor1; }; } +>{ e: { f: Ctor1 } } : { e: { f: typeof Ctor1; }; } +>e : { f: typeof Ctor1; } +>{ f: Ctor1 } : { f: typeof Ctor1; } +>f : typeof Ctor1 +>Ctor1 : typeof Ctor1 + +let y2 = { a: { b: { c: { d: { e: { f: Ctor2 } } } } } }; +>y2 : { a: { b: { c: { d: { e: { f: typeof Ctor2; }; }; }; }; }; } +>{ a: { b: { c: { d: { e: { f: Ctor2 } } } } } } : { a: { b: { c: { d: { e: { f: typeof Ctor2; }; }; }; }; }; } +>a : { b: { c: { d: { e: { f: typeof Ctor2; }; }; }; }; } +>{ b: { c: { d: { e: { f: Ctor2 } } } } } : { b: { c: { d: { e: { f: typeof Ctor2; }; }; }; }; } +>b : { c: { d: { e: { f: typeof Ctor2; }; }; }; } +>{ c: { d: { e: { f: Ctor2 } } } } : { c: { d: { e: { f: typeof Ctor2; }; }; }; } +>c : { d: { e: { f: typeof Ctor2; }; }; } +>{ d: { e: { f: Ctor2 } } } : { d: { e: { f: typeof Ctor2; }; }; } +>d : { e: { f: typeof Ctor2; }; } +>{ e: { f: Ctor2 } } : { e: { f: typeof Ctor2; }; } +>e : { f: typeof Ctor2; } +>{ f: Ctor2 } : { f: typeof Ctor2; } +>f : typeof Ctor2 +>Ctor2 : typeof Ctor2 + +x2 = y2; +>x2 = y2 : { a: { b: { c: { d: { e: { f: typeof Ctor2; }; }; }; }; }; } +>x2 : { a: { b: { c: { d: { e: { f: typeof Ctor1; }; }; }; }; }; } +>y2 : { a: { b: { c: { d: { e: { f: typeof Ctor2; }; }; }; }; }; } + diff --git a/tests/baselines/reference/elaboratedErrorsOnNullableTargets01.errors.txt b/tests/baselines/reference/elaboratedErrorsOnNullableTargets01.errors.txt index dc7e3f10bd1..b84fb863ad8 100644 --- a/tests/baselines/reference/elaboratedErrorsOnNullableTargets01.errors.txt +++ b/tests/baselines/reference/elaboratedErrorsOnNullableTargets01.errors.txt @@ -1,9 +1,7 @@ tests/cases/compiler/elaboratedErrorsOnNullableTargets01.ts(4,1): error TS2322: Type '{ foo: { bar: number | undefined; }; }' is not assignable to type '{ foo: { bar: string | null; } | undefined; }'. - Types of property 'foo' are incompatible. - Type '{ bar: number | undefined; }' is not assignable to type '{ bar: string | null; }'. - Types of property 'bar' are incompatible. - Type 'number | undefined' is not assignable to type 'string | null'. - Type 'undefined' is not assignable to type 'string | null'. + The types of 'foo.bar' are incompatible between these types. + Type 'number | undefined' is not assignable to type 'string | null'. + Type 'undefined' is not assignable to type 'string | null'. tests/cases/compiler/elaboratedErrorsOnNullableTargets01.ts(6,1): error TS2322: Type '{ foo: { bar: string | null; } | undefined; } | null | undefined' is not assignable to type '{ foo: { bar: number | undefined; }; }'. Type 'undefined' is not assignable to type '{ foo: { bar: number | undefined; }; }'. @@ -15,11 +13,9 @@ tests/cases/compiler/elaboratedErrorsOnNullableTargets01.ts(6,1): error TS2322: x = y; ~ !!! error TS2322: Type '{ foo: { bar: number | undefined; }; }' is not assignable to type '{ foo: { bar: string | null; } | undefined; }'. -!!! error TS2322: Types of property 'foo' are incompatible. -!!! error TS2322: Type '{ bar: number | undefined; }' is not assignable to type '{ bar: string | null; }'. -!!! error TS2322: Types of property 'bar' are incompatible. -!!! error TS2322: Type 'number | undefined' is not assignable to type 'string | null'. -!!! error TS2322: Type 'undefined' is not assignable to type 'string | null'. +!!! error TS2322: The types of 'foo.bar' are incompatible between these types. +!!! error TS2322: Type 'number | undefined' is not assignable to type 'string | null'. +!!! error TS2322: Type 'undefined' is not assignable to type 'string | null'. y = x; ~ diff --git a/tests/baselines/reference/everyTypeWithAnnotationAndInvalidInitializer.errors.txt b/tests/baselines/reference/everyTypeWithAnnotationAndInvalidInitializer.errors.txt index 31848458a87..f552bb35ca4 100644 --- a/tests/baselines/reference/everyTypeWithAnnotationAndInvalidInitializer.errors.txt +++ b/tests/baselines/reference/everyTypeWithAnnotationAndInvalidInitializer.errors.txt @@ -17,9 +17,8 @@ tests/cases/conformance/statements/VariableStatements/everyTypeWithAnnotationAnd Type 'string' is not assignable to type 'number'. tests/cases/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.ts(48,32): error TS2322: Type 'string' is not assignable to type 'number'. tests/cases/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.ts(50,5): error TS2322: Type 'typeof N' is not assignable to type 'typeof M'. - Types of property 'A' are incompatible. - Type 'typeof N.A' is not assignable to type 'typeof M.A'. - Property 'name' is missing in type 'N.A' but required in type 'M.A'. + The types returned by 'new A()' are incompatible between these types. + Property 'name' is missing in type 'N.A' but required in type 'M.A'. tests/cases/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.ts(51,5): error TS2322: Type 'N.A' is not assignable to type 'M.A'. tests/cases/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.ts(52,5): error TS2322: Type '(x: number) => boolean' is not assignable to type '(x: number) => string'. Type 'boolean' is not assignable to type 'string'. @@ -112,9 +111,8 @@ tests/cases/conformance/statements/VariableStatements/everyTypeWithAnnotationAnd var aModule: typeof M = N; ~~~~~~~ !!! error TS2322: Type 'typeof N' is not assignable to type 'typeof M'. -!!! error TS2322: Types of property 'A' are incompatible. -!!! error TS2322: Type 'typeof N.A' is not assignable to type 'typeof M.A'. -!!! error TS2322: Property 'name' is missing in type 'N.A' but required in type 'M.A'. +!!! error TS2322: The types returned by 'new A()' are incompatible between these types. +!!! error TS2322: Property 'name' is missing in type 'N.A' but required in type 'M.A'. !!! related TS2728 tests/cases/conformance/statements/VariableStatements/everyTypeWithAnnotationAndInvalidInitializer.ts:20:9: 'name' is declared here. var aClassInModule: M.A = new N.A(); ~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType2.errors.txt b/tests/baselines/reference/extendAndImplementTheSameBaseType2.errors.txt index 799fc7bb8b0..e23d9ebd282 100644 --- a/tests/baselines/reference/extendAndImplementTheSameBaseType2.errors.txt +++ b/tests/baselines/reference/extendAndImplementTheSameBaseType2.errors.txt @@ -1,7 +1,6 @@ tests/cases/compiler/extendAndImplementTheSameBaseType2.ts(7,7): error TS2720: Class 'D' incorrectly implements class 'C'. Did you mean to extend 'C' and inherit its members as a subclass? - Types of property 'bar' are incompatible. - Type '() => string' is not assignable to type '() => number'. - Type 'string' is not assignable to type 'number'. + The types returned by 'bar()' are incompatible between these types. + Type 'string' is not assignable to type 'number'. tests/cases/compiler/extendAndImplementTheSameBaseType2.ts(12,5): error TS2322: Type 'number' is not assignable to type 'string'. tests/cases/compiler/extendAndImplementTheSameBaseType2.ts(16,5): error TS2322: Type 'string' is not assignable to type 'number'. @@ -16,9 +15,8 @@ tests/cases/compiler/extendAndImplementTheSameBaseType2.ts(16,5): error TS2322: class D extends C implements C { ~ !!! error TS2720: Class 'D' incorrectly implements class 'C'. Did you mean to extend 'C' and inherit its members as a subclass? -!!! error TS2720: Types of property 'bar' are incompatible. -!!! error TS2720: Type '() => string' is not assignable to type '() => number'. -!!! error TS2720: Type 'string' is not assignable to type 'number'. +!!! error TS2720: The types returned by 'bar()' are incompatible between these types. +!!! error TS2720: Type 'string' is not assignable to type 'number'. baz() { } } diff --git a/tests/baselines/reference/for-of39.errors.txt b/tests/baselines/reference/for-of39.errors.txt index a36c1c28a8c..3ecdc46bcfc 100644 --- a/tests/baselines/reference/for-of39.errors.txt +++ b/tests/baselines/reference/for-of39.errors.txt @@ -1,18 +1,14 @@ tests/cases/conformance/es6/for-ofStatements/for-of39.ts(1,11): error TS2769: No overload matches this call. Overload 1 of 3, '(iterable: Iterable): Map', gave the following error. Argument of type '([string, number] | [string, true])[]' is not assignable to parameter of type 'Iterable'. - Types of property '[Symbol.iterator]' are incompatible. - Type '() => IterableIterator<[string, number] | [string, true]>' is not assignable to type '() => Iterator'. - Type 'IterableIterator<[string, number] | [string, true]>' is not assignable to type 'Iterator'. - Types of property 'next' are incompatible. - Type '(...args: [] | [undefined]) => IteratorResult<[string, number] | [string, true], any>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. - Type 'IteratorResult<[string, number] | [string, true], any>' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorYieldResult'. - Type '[string, number] | [string, true]' is not assignable to type 'readonly [string, boolean]'. - Type '[string, number]' is not assignable to type 'readonly [string, boolean]'. - Types of property '1' are incompatible. - Type 'number' is not assignable to type 'boolean'. + The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types. + Type 'IteratorResult<[string, number] | [string, true], any>' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorYieldResult'. + Type '[string, number] | [string, true]' is not assignable to type 'readonly [string, boolean]'. + Type '[string, number]' is not assignable to type 'readonly [string, boolean]'. + Types of property '1' are incompatible. + Type 'number' is not assignable to type 'boolean'. Overload 2 of 3, '(entries?: readonly (readonly [string, boolean])[]): Map', gave the following error. Type 'number' is not assignable to type 'boolean'. @@ -23,18 +19,14 @@ tests/cases/conformance/es6/for-ofStatements/for-of39.ts(1,11): error TS2769: No !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 3, '(iterable: Iterable): Map', gave the following error. !!! error TS2769: Argument of type '([string, number] | [string, true])[]' is not assignable to parameter of type 'Iterable'. -!!! error TS2769: Types of property '[Symbol.iterator]' are incompatible. -!!! error TS2769: Type '() => IterableIterator<[string, number] | [string, true]>' is not assignable to type '() => Iterator'. -!!! error TS2769: Type 'IterableIterator<[string, number] | [string, true]>' is not assignable to type 'Iterator'. -!!! error TS2769: Types of property 'next' are incompatible. -!!! error TS2769: Type '(...args: [] | [undefined]) => IteratorResult<[string, number] | [string, true], any>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. -!!! error TS2769: Type 'IteratorResult<[string, number] | [string, true], any>' is not assignable to type 'IteratorResult'. -!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorResult'. -!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorYieldResult'. -!!! error TS2769: Type '[string, number] | [string, true]' is not assignable to type 'readonly [string, boolean]'. -!!! error TS2769: Type '[string, number]' is not assignable to type 'readonly [string, boolean]'. -!!! error TS2769: Types of property '1' are incompatible. -!!! error TS2769: Type 'number' is not assignable to type 'boolean'. +!!! error TS2769: The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types. +!!! error TS2769: Type 'IteratorResult<[string, number] | [string, true], any>' is not assignable to type 'IteratorResult'. +!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorResult'. +!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorYieldResult'. +!!! error TS2769: Type '[string, number] | [string, true]' is not assignable to type 'readonly [string, boolean]'. +!!! error TS2769: Type '[string, number]' is not assignable to type 'readonly [string, boolean]'. +!!! error TS2769: Types of property '1' are incompatible. +!!! error TS2769: Type 'number' is not assignable to type 'boolean'. !!! error TS2769: Overload 2 of 3, '(entries?: readonly (readonly [string, boolean])[]): Map', gave the following error. !!! error TS2769: Type 'number' is not assignable to type 'boolean'. for (var [k, v] of map) { diff --git a/tests/baselines/reference/generatorTypeCheck25.errors.txt b/tests/baselines/reference/generatorTypeCheck25.errors.txt index 365a19dfdd7..e37f1304963 100644 --- a/tests/baselines/reference/generatorTypeCheck25.errors.txt +++ b/tests/baselines/reference/generatorTypeCheck25.errors.txt @@ -1,15 +1,11 @@ tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck25.ts(4,5): error TS2322: Type '() => Generator' is not assignable to type '() => Iterable'. - Type 'Generator' is not assignable to type 'Iterable'. - Types of property '[Symbol.iterator]' are incompatible. - Type '() => Generator' is not assignable to type '() => Iterator'. - Type 'Generator' is not assignable to type 'Iterator'. - Types of property 'next' are incompatible. - Type '(...args: [] | [undefined]) => IteratorResult' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. - Type 'IteratorResult' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. - Type 'Bar | Baz' is not assignable to type 'Foo'. - Property 'x' is missing in type 'Baz' but required in type 'Foo'. + Call signature return types 'Generator' and 'Iterable' are incompatible. + The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types. + Type 'IteratorResult' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. + Type 'Bar | Baz' is not assignable to type 'Foo'. + Property 'x' is missing in type 'Baz' but required in type 'Foo'. ==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck25.ts (1 errors) ==== @@ -19,17 +15,13 @@ tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck25.ts(4,5): error var g3: () => Iterable = function* () { ~~ !!! error TS2322: Type '() => Generator' is not assignable to type '() => Iterable'. -!!! error TS2322: Type 'Generator' is not assignable to type 'Iterable'. -!!! error TS2322: Types of property '[Symbol.iterator]' are incompatible. -!!! error TS2322: Type '() => Generator' is not assignable to type '() => Iterator'. -!!! error TS2322: Type 'Generator' is not assignable to type 'Iterator'. -!!! error TS2322: Types of property 'next' are incompatible. -!!! error TS2322: Type '(...args: [] | [undefined]) => IteratorResult' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. -!!! error TS2322: Type 'IteratorResult' is not assignable to type 'IteratorResult'. -!!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. -!!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. -!!! error TS2322: Type 'Bar | Baz' is not assignable to type 'Foo'. -!!! error TS2322: Property 'x' is missing in type 'Baz' but required in type 'Foo'. +!!! error TS2322: Call signature return types 'Generator' and 'Iterable' are incompatible. +!!! error TS2322: The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types. +!!! error TS2322: Type 'IteratorResult' is not assignable to type 'IteratorResult'. +!!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. +!!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. +!!! error TS2322: Type 'Bar | Baz' is not assignable to type 'Foo'. +!!! error TS2322: Property 'x' is missing in type 'Baz' but required in type 'Foo'. !!! related TS2728 tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck25.ts:1:13: 'x' is declared here. yield; yield new Bar; diff --git a/tests/baselines/reference/generatorTypeCheck63.errors.txt b/tests/baselines/reference/generatorTypeCheck63.errors.txt index 60dfb089822..10cafbe0ced 100644 --- a/tests/baselines/reference/generatorTypeCheck63.errors.txt +++ b/tests/baselines/reference/generatorTypeCheck63.errors.txt @@ -1,11 +1,10 @@ tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck63.ts(24,61): error TS2345: Argument of type '(state: State) => Generator' is not assignable to parameter of type '(a: State) => IterableIterator'. - Type 'Generator' is not assignable to type 'IterableIterator'. - Types of property 'next' are incompatible. - Type '(...args: [] | [undefined]) => IteratorResult' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. - Type 'IteratorResult' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. - Type 'number' is not assignable to type 'State'. + Call signature return types 'Generator' and 'IterableIterator' are incompatible. + The types returned by 'next(...)' are incompatible between these types. + Type 'IteratorResult' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. + Type 'number' is not assignable to type 'State'. ==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck63.ts (1 errors) ==== @@ -35,13 +34,12 @@ tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck63.ts(24,61): err export const Nothing: Strategy = strategy("Nothing", function* (state: State) { ~~~~~~~~ !!! error TS2345: Argument of type '(state: State) => Generator' is not assignable to parameter of type '(a: State) => IterableIterator'. -!!! error TS2345: Type 'Generator' is not assignable to type 'IterableIterator'. -!!! error TS2345: Types of property 'next' are incompatible. -!!! error TS2345: Type '(...args: [] | [undefined]) => IteratorResult' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. -!!! error TS2345: Type 'IteratorResult' is not assignable to type 'IteratorResult'. -!!! error TS2345: Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. -!!! error TS2345: Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. -!!! error TS2345: Type 'number' is not assignable to type 'State'. +!!! error TS2345: Call signature return types 'Generator' and 'IterableIterator' are incompatible. +!!! error TS2345: The types returned by 'next(...)' are incompatible between these types. +!!! error TS2345: Type 'IteratorResult' is not assignable to type 'IteratorResult'. +!!! error TS2345: Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. +!!! error TS2345: Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. +!!! error TS2345: Type 'number' is not assignable to type 'State'. yield 1; return state; }); diff --git a/tests/baselines/reference/generatorTypeCheck8.errors.txt b/tests/baselines/reference/generatorTypeCheck8.errors.txt index 6261d419ddd..ca0b1e30366 100644 --- a/tests/baselines/reference/generatorTypeCheck8.errors.txt +++ b/tests/baselines/reference/generatorTypeCheck8.errors.txt @@ -1,10 +1,9 @@ tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck8.ts(2,17): error TS2322: Type 'Generator' is not assignable to type 'BadGenerator'. - Types of property 'next' are incompatible. - Type '(...args: [] | [undefined]) => IteratorResult' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. - Type 'IteratorResult' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. - Type 'string' is not assignable to type 'number'. + The types returned by 'next(...)' are incompatible between these types. + Type 'IteratorResult' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. + Type 'string' is not assignable to type 'number'. ==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck8.ts (1 errors) ==== @@ -12,9 +11,8 @@ tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck8.ts(2,17): error function* g3(): BadGenerator { } ~~~~~~~~~~~~ !!! error TS2322: Type 'Generator' is not assignable to type 'BadGenerator'. -!!! error TS2322: Types of property 'next' are incompatible. -!!! error TS2322: Type '(...args: [] | [undefined]) => IteratorResult' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. -!!! error TS2322: Type 'IteratorResult' is not assignable to type 'IteratorResult'. -!!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. -!!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. -!!! error TS2322: Type 'string' is not assignable to type 'number'. \ No newline at end of file +!!! error TS2322: The types returned by 'next(...)' are incompatible between these types. +!!! error TS2322: Type 'IteratorResult' is not assignable to type 'IteratorResult'. +!!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. +!!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. +!!! error TS2322: Type 'string' is not assignable to type 'number'. \ No newline at end of file diff --git a/tests/baselines/reference/generics4.errors.txt b/tests/baselines/reference/generics4.errors.txt index 06bfa122901..6181685983e 100644 --- a/tests/baselines/reference/generics4.errors.txt +++ b/tests/baselines/reference/generics4.errors.txt @@ -1,8 +1,7 @@ tests/cases/compiler/generics4.ts(7,1): error TS2322: Type 'C' is not assignable to type 'C'. Type 'Y' is not assignable to type 'X'. - Types of property 'f' are incompatible. - Type '() => boolean' is not assignable to type '() => string'. - Type 'boolean' is not assignable to type 'string'. + The types returned by 'f()' are incompatible between these types. + Type 'boolean' is not assignable to type 'string'. ==== tests/cases/compiler/generics4.ts (1 errors) ==== @@ -16,6 +15,5 @@ tests/cases/compiler/generics4.ts(7,1): error TS2322: Type 'C' is not assigna ~ !!! error TS2322: Type 'C' is not assignable to type 'C'. !!! error TS2322: Type 'Y' is not assignable to type 'X'. -!!! error TS2322: Types of property 'f' are incompatible. -!!! error TS2322: Type '() => boolean' is not assignable to type '() => string'. -!!! error TS2322: Type 'boolean' is not assignable to type 'string'. \ No newline at end of file +!!! error TS2322: The types returned by 'f()' are incompatible between these types. +!!! error TS2322: Type 'boolean' is not assignable to type 'string'. \ No newline at end of file diff --git a/tests/baselines/reference/incompatibleTypes.errors.txt b/tests/baselines/reference/incompatibleTypes.errors.txt index 0b5e587ad53..66d94bea79c 100644 --- a/tests/baselines/reference/incompatibleTypes.errors.txt +++ b/tests/baselines/reference/incompatibleTypes.errors.txt @@ -12,14 +12,12 @@ tests/cases/compiler/incompatibleTypes.ts(34,12): error TS2416: Property 'p1' in tests/cases/compiler/incompatibleTypes.ts(42,5): error TS2769: No overload matches this call. Overload 1 of 2, '(i: IFoo1): void', gave the following error. Argument of type 'C1' is not assignable to parameter of type 'IFoo1'. - Types of property 'p1' are incompatible. - Type '() => string' is not assignable to type '() => number'. - Type 'string' is not assignable to type 'number'. + The types returned by 'p1()' are incompatible between these types. + Type 'string' is not assignable to type 'number'. Overload 2 of 2, '(i: IFoo2): void', gave the following error. Argument of type 'C1' is not assignable to parameter of type 'IFoo2'. - Types of property 'p1' are incompatible. - Type '() => string' is not assignable to type '(s: string) => number'. - Type 'string' is not assignable to type 'number'. + The types returned by 'p1(...)' are incompatible between these types. + Type 'string' is not assignable to type 'number'. tests/cases/compiler/incompatibleTypes.ts(49,7): error TS2769: No overload matches this call. Overload 1 of 2, '(n: { a: { a: string; }; b: string; }): number', gave the following error. Argument of type '{ e: number; f: number; }' is not assignable to parameter of type '{ a: { a: string; }; b: string; }'. @@ -95,14 +93,12 @@ tests/cases/compiler/incompatibleTypes.ts(74,5): error TS2322: Type '(a: any) => !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(i: IFoo1): void', gave the following error. !!! error TS2769: Argument of type 'C1' is not assignable to parameter of type 'IFoo1'. -!!! error TS2769: Types of property 'p1' are incompatible. -!!! error TS2769: Type '() => string' is not assignable to type '() => number'. -!!! error TS2769: Type 'string' is not assignable to type 'number'. +!!! error TS2769: The types returned by 'p1()' are incompatible between these types. +!!! error TS2769: Type 'string' is not assignable to type 'number'. !!! error TS2769: Overload 2 of 2, '(i: IFoo2): void', gave the following error. !!! error TS2769: Argument of type 'C1' is not assignable to parameter of type 'IFoo2'. -!!! error TS2769: Types of property 'p1' are incompatible. -!!! error TS2769: Type '() => string' is not assignable to type '(s: string) => number'. -!!! error TS2769: Type 'string' is not assignable to type 'number'. +!!! error TS2769: The types returned by 'p1(...)' are incompatible between these types. +!!! error TS2769: Type 'string' is not assignable to type 'number'. function of1(n: { a: { a: string; }; b: string; }): number; diff --git a/tests/baselines/reference/inheritedModuleMembersForClodule.errors.txt b/tests/baselines/reference/inheritedModuleMembersForClodule.errors.txt index 0b7e00d95ce..e2b744d5a25 100644 --- a/tests/baselines/reference/inheritedModuleMembersForClodule.errors.txt +++ b/tests/baselines/reference/inheritedModuleMembersForClodule.errors.txt @@ -1,7 +1,6 @@ tests/cases/compiler/inheritedModuleMembersForClodule.ts(7,7): error TS2417: Class static side 'typeof D' incorrectly extends base class static side 'typeof C'. - Types of property 'foo' are incompatible. - Type '() => number' is not assignable to type '() => string'. - Type 'number' is not assignable to type 'string'. + The types returned by 'foo()' are incompatible between these types. + Type 'number' is not assignable to type 'string'. ==== tests/cases/compiler/inheritedModuleMembersForClodule.ts (1 errors) ==== @@ -14,9 +13,8 @@ tests/cases/compiler/inheritedModuleMembersForClodule.ts(7,7): error TS2417: Cla class D extends C { ~ !!! error TS2417: Class static side 'typeof D' incorrectly extends base class static side 'typeof C'. -!!! error TS2417: Types of property 'foo' are incompatible. -!!! error TS2417: Type '() => number' is not assignable to type '() => string'. -!!! error TS2417: Type 'number' is not assignable to type 'string'. +!!! error TS2417: The types returned by 'foo()' are incompatible between these types. +!!! error TS2417: Type 'number' is not assignable to type 'string'. } module D { diff --git a/tests/baselines/reference/interfaceThatHidesBaseProperty2.errors.txt b/tests/baselines/reference/interfaceThatHidesBaseProperty2.errors.txt index f66e13c0d9d..779a160c5a6 100644 --- a/tests/baselines/reference/interfaceThatHidesBaseProperty2.errors.txt +++ b/tests/baselines/reference/interfaceThatHidesBaseProperty2.errors.txt @@ -1,8 +1,6 @@ tests/cases/conformance/interfaces/interfaceDeclarations/interfaceThatHidesBaseProperty2.ts(5,11): error TS2430: Interface 'Derived' incorrectly extends interface 'Base'. - Types of property 'x' are incompatible. - Type '{ a: string; }' is not assignable to type '{ a: number; }'. - Types of property 'a' are incompatible. - Type 'string' is not assignable to type 'number'. + The types of 'x.a' are incompatible between these types. + Type 'string' is not assignable to type 'number'. ==== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceThatHidesBaseProperty2.ts (1 errors) ==== @@ -13,10 +11,8 @@ tests/cases/conformance/interfaces/interfaceDeclarations/interfaceThatHidesBaseP interface Derived extends Base { // error ~~~~~~~ !!! error TS2430: Interface 'Derived' incorrectly extends interface 'Base'. -!!! error TS2430: Types of property 'x' are incompatible. -!!! error TS2430: Type '{ a: string; }' is not assignable to type '{ a: number; }'. -!!! error TS2430: Types of property 'a' are incompatible. -!!! error TS2430: Type 'string' is not assignable to type 'number'. +!!! error TS2430: The types of 'x.a' are incompatible between these types. +!!! error TS2430: Type 'string' is not assignable to type 'number'. x: { a: string; }; diff --git a/tests/baselines/reference/interfaceWithMultipleBaseTypes.errors.txt b/tests/baselines/reference/interfaceWithMultipleBaseTypes.errors.txt index 138f3d92096..c885a7859d4 100644 --- a/tests/baselines/reference/interfaceWithMultipleBaseTypes.errors.txt +++ b/tests/baselines/reference/interfaceWithMultipleBaseTypes.errors.txt @@ -1,20 +1,14 @@ tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithMultipleBaseTypes.ts(21,11): error TS2430: Interface 'Derived2' incorrectly extends interface 'Base2'. - Types of property 'x' are incompatible. - Type '{ a: string; b: number; }' is not assignable to type '{ b: string; }'. - Types of property 'b' are incompatible. - Type 'number' is not assignable to type 'string'. + The types of 'x.b' are incompatible between these types. + Type 'number' is not assignable to type 'string'. tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithMultipleBaseTypes.ts(52,15): error TS2320: Interface 'Derived3' cannot simultaneously extend types 'Base1' and 'Base2'. Named property 'x' of types 'Base1' and 'Base2' are not identical. tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithMultipleBaseTypes.ts(54,15): error TS2430: Interface 'Derived4' incorrectly extends interface 'Base1'. - Types of property 'x' are incompatible. - Type '{ a: T; b: T; }' is not assignable to type '{ a: number; }'. - Types of property 'a' are incompatible. - Type 'T' is not assignable to type 'number'. + The types of 'x.a' are incompatible between these types. + Type 'T' is not assignable to type 'number'. tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithMultipleBaseTypes.ts(54,15): error TS2430: Interface 'Derived4' incorrectly extends interface 'Base2'. - Types of property 'x' are incompatible. - Type '{ a: T; b: T; }' is not assignable to type '{ b: number; }'. - Types of property 'b' are incompatible. - Type 'T' is not assignable to type 'number'. + The types of 'x.b' are incompatible between these types. + Type 'T' is not assignable to type 'number'. tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithMultipleBaseTypes.ts(60,15): error TS2430: Interface 'Derived5' incorrectly extends interface 'Base1'. Types of property 'x' are incompatible. Type 'T' is not assignable to type '{ a: T; }'. @@ -47,10 +41,8 @@ tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithMultipleBa interface Derived2 extends Base1, Base2 { // error ~~~~~~~~ !!! error TS2430: Interface 'Derived2' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'x' are incompatible. -!!! error TS2430: Type '{ a: string; b: number; }' is not assignable to type '{ b: string; }'. -!!! error TS2430: Types of property 'b' are incompatible. -!!! error TS2430: Type 'number' is not assignable to type 'string'. +!!! error TS2430: The types of 'x.b' are incompatible between these types. +!!! error TS2430: Type 'number' is not assignable to type 'string'. x: { a: string; b: number; } @@ -89,16 +81,12 @@ tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithMultipleBa interface Derived4 extends Base1, Base2 { // error ~~~~~~~~ !!! error TS2430: Interface 'Derived4' incorrectly extends interface 'Base1'. -!!! error TS2430: Types of property 'x' are incompatible. -!!! error TS2430: Type '{ a: T; b: T; }' is not assignable to type '{ a: number; }'. -!!! error TS2430: Types of property 'a' are incompatible. -!!! error TS2430: Type 'T' is not assignable to type 'number'. +!!! error TS2430: The types of 'x.a' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'number'. ~~~~~~~~ !!! error TS2430: Interface 'Derived4' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'x' are incompatible. -!!! error TS2430: Type '{ a: T; b: T; }' is not assignable to type '{ b: number; }'. -!!! error TS2430: Types of property 'b' are incompatible. -!!! error TS2430: Type 'T' is not assignable to type 'number'. +!!! error TS2430: The types of 'x.b' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'number'. x: { a: T; b: T; } diff --git a/tests/baselines/reference/interfaceWithMultipleBaseTypes2.errors.txt b/tests/baselines/reference/interfaceWithMultipleBaseTypes2.errors.txt index b3459233923..9b7b2eff8ec 100644 --- a/tests/baselines/reference/interfaceWithMultipleBaseTypes2.errors.txt +++ b/tests/baselines/reference/interfaceWithMultipleBaseTypes2.errors.txt @@ -1,8 +1,6 @@ tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithMultipleBaseTypes2.ts(17,11): error TS2430: Interface 'Derived2' incorrectly extends interface 'Base'. - Types of property 'x' are incompatible. - Type '{ a: number; b: string; }' is not assignable to type '{ a?: string; b: string; }'. - Types of property 'a' are incompatible. - Type 'number' is not assignable to type 'string'. + The types of 'x.a' are incompatible between these types. + Type 'number' is not assignable to type 'string'. ==== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithMultipleBaseTypes2.ts (1 errors) ==== @@ -25,10 +23,8 @@ tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithMultipleBa interface Derived2 extends Base, Base2 { // error ~~~~~~~~ !!! error TS2430: Interface 'Derived2' incorrectly extends interface 'Base'. -!!! error TS2430: Types of property 'x' are incompatible. -!!! error TS2430: Type '{ a: number; b: string; }' is not assignable to type '{ a?: string; b: string; }'. -!!! error TS2430: Types of property 'a' are incompatible. -!!! error TS2430: Type 'number' is not assignable to type 'string'. +!!! error TS2430: The types of 'x.a' are incompatible between these types. +!!! error TS2430: Type 'number' is not assignable to type 'string'. x: { a: number; b: string } } diff --git a/tests/baselines/reference/invariantGenericErrorElaboration.errors.txt b/tests/baselines/reference/invariantGenericErrorElaboration.errors.txt index 0bd79bcf11d..7ab83c61bcd 100644 --- a/tests/baselines/reference/invariantGenericErrorElaboration.errors.txt +++ b/tests/baselines/reference/invariantGenericErrorElaboration.errors.txt @@ -1,13 +1,7 @@ tests/cases/compiler/invariantGenericErrorElaboration.ts(3,7): error TS2322: Type 'Num' is not assignable to type 'Runtype'. - Types of property 'constraint' are incompatible. - Type 'Constraint' is not assignable to type 'Constraint>'. - Types of property 'constraint' are incompatible. - Type 'Constraint>' is not assignable to type 'Constraint>>'. - Types of property 'constraint' are incompatible. - Type 'Constraint>>' is not assignable to type 'Constraint>>>'. - Type 'Constraint>>' is not assignable to type 'Constraint>'. - Types of property 'underlying' are incompatible. - Type 'Constraint>' is not assignable to type 'Constraint'. + The types of 'constraint.constraint.constraint' are incompatible between these types. + Type 'Constraint>>' is not assignable to type 'Constraint>>>'. + Type 'Constraint>' is not assignable to type 'Constraint'. tests/cases/compiler/invariantGenericErrorElaboration.ts(4,19): error TS2322: Type 'Num' is not assignable to type 'Runtype'. @@ -17,16 +11,9 @@ tests/cases/compiler/invariantGenericErrorElaboration.ts(4,19): error TS2322: Ty const wat: Runtype = Num; ~~~ !!! error TS2322: Type 'Num' is not assignable to type 'Runtype'. -!!! error TS2322: Types of property 'constraint' are incompatible. -!!! error TS2322: Type 'Constraint' is not assignable to type 'Constraint>'. -!!! error TS2322: Types of property 'constraint' are incompatible. -!!! error TS2322: Type 'Constraint>' is not assignable to type 'Constraint>>'. -!!! error TS2322: Types of property 'constraint' are incompatible. -!!! error TS2322: Type 'Constraint>>' is not assignable to type 'Constraint>>>'. -!!! error TS2322: Type 'Constraint>>' is not assignable to type 'Constraint>'. -!!! error TS2322: Types of property 'underlying' are incompatible. -!!! error TS2322: Type 'Constraint>' is not assignable to type 'Constraint'. -!!! related TS2728 tests/cases/compiler/invariantGenericErrorElaboration.ts:12:3: 'tag' is declared here. +!!! error TS2322: The types of 'constraint.constraint.constraint' are incompatible between these types. +!!! error TS2322: Type 'Constraint>>' is not assignable to type 'Constraint>>>'. +!!! error TS2322: Type 'Constraint>' is not assignable to type 'Constraint'. const Foo = Obj({ foo: Num }) ~~~ !!! error TS2322: Type 'Num' is not assignable to type 'Runtype'. diff --git a/tests/baselines/reference/iterableArrayPattern28.errors.txt b/tests/baselines/reference/iterableArrayPattern28.errors.txt index 7a1ff6cf42c..605c6feb405 100644 --- a/tests/baselines/reference/iterableArrayPattern28.errors.txt +++ b/tests/baselines/reference/iterableArrayPattern28.errors.txt @@ -1,18 +1,14 @@ tests/cases/conformance/es6/destructuring/iterableArrayPattern28.ts(2,24): error TS2769: No overload matches this call. Overload 1 of 3, '(iterable: Iterable): Map', gave the following error. Argument of type '([string, number] | [string, boolean])[]' is not assignable to parameter of type 'Iterable'. - Types of property '[Symbol.iterator]' are incompatible. - Type '() => IterableIterator<[string, number] | [string, boolean]>' is not assignable to type '() => Iterator'. - Type 'IterableIterator<[string, number] | [string, boolean]>' is not assignable to type 'Iterator'. - Types of property 'next' are incompatible. - Type '(...args: [] | [undefined]) => IteratorResult<[string, number] | [string, boolean], any>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. - Type 'IteratorResult<[string, number] | [string, boolean], any>' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult<[string, number] | [string, boolean]>' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult<[string, number] | [string, boolean]>' is not assignable to type 'IteratorYieldResult'. - Type '[string, number] | [string, boolean]' is not assignable to type 'readonly [string, number]'. - Type '[string, boolean]' is not assignable to type 'readonly [string, number]'. - Types of property '1' are incompatible. - Type 'boolean' is not assignable to type 'number'. + The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types. + Type 'IteratorResult<[string, number] | [string, boolean], any>' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult<[string, number] | [string, boolean]>' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult<[string, number] | [string, boolean]>' is not assignable to type 'IteratorYieldResult'. + Type '[string, number] | [string, boolean]' is not assignable to type 'readonly [string, number]'. + Type '[string, boolean]' is not assignable to type 'readonly [string, number]'. + Types of property '1' are incompatible. + Type 'boolean' is not assignable to type 'number'. Overload 2 of 3, '(entries?: readonly (readonly [string, number])[]): Map', gave the following error. Type 'true' is not assignable to type 'number'. @@ -24,17 +20,13 @@ tests/cases/conformance/es6/destructuring/iterableArrayPattern28.ts(2,24): error !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 3, '(iterable: Iterable): Map', gave the following error. !!! error TS2769: Argument of type '([string, number] | [string, boolean])[]' is not assignable to parameter of type 'Iterable'. -!!! error TS2769: Types of property '[Symbol.iterator]' are incompatible. -!!! error TS2769: Type '() => IterableIterator<[string, number] | [string, boolean]>' is not assignable to type '() => Iterator'. -!!! error TS2769: Type 'IterableIterator<[string, number] | [string, boolean]>' is not assignable to type 'Iterator'. -!!! error TS2769: Types of property 'next' are incompatible. -!!! error TS2769: Type '(...args: [] | [undefined]) => IteratorResult<[string, number] | [string, boolean], any>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. -!!! error TS2769: Type 'IteratorResult<[string, number] | [string, boolean], any>' is not assignable to type 'IteratorResult'. -!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, boolean]>' is not assignable to type 'IteratorResult'. -!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, boolean]>' is not assignable to type 'IteratorYieldResult'. -!!! error TS2769: Type '[string, number] | [string, boolean]' is not assignable to type 'readonly [string, number]'. -!!! error TS2769: Type '[string, boolean]' is not assignable to type 'readonly [string, number]'. -!!! error TS2769: Types of property '1' are incompatible. -!!! error TS2769: Type 'boolean' is not assignable to type 'number'. +!!! error TS2769: The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types. +!!! error TS2769: Type 'IteratorResult<[string, number] | [string, boolean], any>' is not assignable to type 'IteratorResult'. +!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, boolean]>' is not assignable to type 'IteratorResult'. +!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, boolean]>' is not assignable to type 'IteratorYieldResult'. +!!! error TS2769: Type '[string, number] | [string, boolean]' is not assignable to type 'readonly [string, number]'. +!!! error TS2769: Type '[string, boolean]' is not assignable to type 'readonly [string, number]'. +!!! error TS2769: Types of property '1' are incompatible. +!!! error TS2769: Type 'boolean' is not assignable to type 'number'. !!! error TS2769: Overload 2 of 3, '(entries?: readonly (readonly [string, number])[]): Map', gave the following error. !!! error TS2769: Type 'true' is not assignable to type 'number'. \ No newline at end of file diff --git a/tests/baselines/reference/iteratorSpreadInArray6.errors.txt b/tests/baselines/reference/iteratorSpreadInArray6.errors.txt index 0b114bc6477..202c0ab3bf2 100644 --- a/tests/baselines/reference/iteratorSpreadInArray6.errors.txt +++ b/tests/baselines/reference/iteratorSpreadInArray6.errors.txt @@ -1,10 +1,9 @@ tests/cases/conformance/es6/spread/iteratorSpreadInArray6.ts(15,14): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray[]): number[]', gave the following error. Argument of type 'symbol[]' is not assignable to parameter of type 'ConcatArray'. - Types of property 'slice' are incompatible. - Type '(start?: number, end?: number) => symbol[]' is not assignable to type '(start?: number, end?: number) => number[]'. - Type 'symbol[]' is not assignable to type 'number[]'. - Type 'symbol' is not assignable to type 'number'. + The types returned by 'slice(...)' are incompatible between these types. + Type 'symbol[]' is not assignable to type 'number[]'. + Type 'symbol' is not assignable to type 'number'. Overload 2 of 2, '(...items: (number | ConcatArray)[]): number[]', gave the following error. Argument of type 'symbol[]' is not assignable to parameter of type 'number | ConcatArray'. Type 'symbol[]' is not assignable to type 'ConcatArray'. @@ -30,10 +29,9 @@ tests/cases/conformance/es6/spread/iteratorSpreadInArray6.ts(15,14): error TS276 !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(...items: ConcatArray[]): number[]', gave the following error. !!! error TS2769: Argument of type 'symbol[]' is not assignable to parameter of type 'ConcatArray'. -!!! error TS2769: Types of property 'slice' are incompatible. -!!! error TS2769: Type '(start?: number, end?: number) => symbol[]' is not assignable to type '(start?: number, end?: number) => number[]'. -!!! error TS2769: Type 'symbol[]' is not assignable to type 'number[]'. -!!! error TS2769: Type 'symbol' is not assignable to type 'number'. +!!! error TS2769: The types returned by 'slice(...)' are incompatible between these types. +!!! error TS2769: Type 'symbol[]' is not assignable to type 'number[]'. +!!! error TS2769: Type 'symbol' is not assignable to type 'number'. !!! error TS2769: Overload 2 of 2, '(...items: (number | ConcatArray)[]): number[]', gave the following error. !!! error TS2769: Argument of type 'symbol[]' is not assignable to parameter of type 'number | ConcatArray'. !!! error TS2769: Type 'symbol[]' is not assignable to type 'ConcatArray'. \ No newline at end of file diff --git a/tests/baselines/reference/mergedDeclarations7.errors.txt b/tests/baselines/reference/mergedDeclarations7.errors.txt index cd9b3a5e939..bc09ea081a3 100644 --- a/tests/baselines/reference/mergedDeclarations7.errors.txt +++ b/tests/baselines/reference/mergedDeclarations7.errors.txt @@ -1,7 +1,6 @@ tests/cases/compiler/test.ts(4,5): error TS2322: Type 'PassportStatic' is not assignable to type 'Passport'. - Types of property 'use' are incompatible. - Type '() => PassportStatic' is not assignable to type '() => this'. - Type 'PassportStatic' is not assignable to type 'this'. + The types returned by 'use()' are incompatible between these types. + Type 'PassportStatic' is not assignable to type 'this'. ==== tests/cases/compiler/passport.d.ts (0 errors) ==== @@ -27,6 +26,5 @@ tests/cases/compiler/test.ts(4,5): error TS2322: Type 'PassportStatic' is not as let p: Passport = passport.use(); ~ !!! error TS2322: Type 'PassportStatic' is not assignable to type 'Passport'. -!!! error TS2322: Types of property 'use' are incompatible. -!!! error TS2322: Type '() => PassportStatic' is not assignable to type '() => this'. -!!! error TS2322: Type 'PassportStatic' is not assignable to type 'this'. \ No newline at end of file +!!! error TS2322: The types returned by 'use()' are incompatible between these types. +!!! error TS2322: Type 'PassportStatic' is not assignable to type 'this'. \ No newline at end of file diff --git a/tests/baselines/reference/multiLineErrors.errors.txt b/tests/baselines/reference/multiLineErrors.errors.txt index 70366aeabed..851425baef4 100644 --- a/tests/baselines/reference/multiLineErrors.errors.txt +++ b/tests/baselines/reference/multiLineErrors.errors.txt @@ -1,9 +1,7 @@ tests/cases/compiler/multiLineErrors.ts(3,22): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value. tests/cases/compiler/multiLineErrors.ts(21,1): error TS2322: Type 'A2' is not assignable to type 'A1'. - Types of property 'x' are incompatible. - Type '{ y: string; }' is not assignable to type '{ y: number; }'. - Types of property 'y' are incompatible. - Type 'string' is not assignable to type 'number'. + The types of 'x.y' are incompatible between these types. + Type 'string' is not assignable to type 'number'. ==== tests/cases/compiler/multiLineErrors.ts (2 errors) ==== @@ -35,8 +33,6 @@ tests/cases/compiler/multiLineErrors.ts(21,1): error TS2322: Type 'A2' is not as t1 = t2; ~~ !!! error TS2322: Type 'A2' is not assignable to type 'A1'. -!!! error TS2322: Types of property 'x' are incompatible. -!!! error TS2322: Type '{ y: string; }' is not assignable to type '{ y: number; }'. -!!! error TS2322: Types of property 'y' are incompatible. -!!! error TS2322: Type 'string' is not assignable to type 'number'. +!!! error TS2322: The types of 'x.y' are incompatible between these types. +!!! error TS2322: Type 'string' is not assignable to type 'number'. \ No newline at end of file diff --git a/tests/baselines/reference/mutuallyRecursiveCallbacks.errors.txt b/tests/baselines/reference/mutuallyRecursiveCallbacks.errors.txt index bb90bcee999..63a568bf10a 100644 --- a/tests/baselines/reference/mutuallyRecursiveCallbacks.errors.txt +++ b/tests/baselines/reference/mutuallyRecursiveCallbacks.errors.txt @@ -1,9 +1,8 @@ tests/cases/compiler/mutuallyRecursiveCallbacks.ts(7,1): error TS2322: Type '(bar: Bar) => void' is not assignable to type 'Bar<{}>'. Types of parameters 'bar' and 'foo' are incompatible. Types of parameters 'bar' and 'foo' are incompatible. - Type 'Foo' is not assignable to type 'Bar<{}>'. - Types of parameters 'bar' and 'foo' are incompatible. - Type 'void' is not assignable to type 'Foo'. + Types of parameters 'bar' and 'foo' are incompatible. + Type 'void' is not assignable to type 'Foo'. ==== tests/cases/compiler/mutuallyRecursiveCallbacks.ts (1 errors) ==== @@ -18,7 +17,6 @@ tests/cases/compiler/mutuallyRecursiveCallbacks.ts(7,1): error TS2322: Type ' !!! error TS2322: Type '(bar: Bar) => void' is not assignable to type 'Bar<{}>'. !!! error TS2322: Types of parameters 'bar' and 'foo' are incompatible. !!! error TS2322: Types of parameters 'bar' and 'foo' are incompatible. -!!! error TS2322: Type 'Foo' is not assignable to type 'Bar<{}>'. -!!! error TS2322: Types of parameters 'bar' and 'foo' are incompatible. -!!! error TS2322: Type 'void' is not assignable to type 'Foo'. +!!! error TS2322: Types of parameters 'bar' and 'foo' are incompatible. +!!! error TS2322: Type 'void' is not assignable to type 'Foo'. \ No newline at end of file diff --git a/tests/baselines/reference/nestedCallbackErrorNotFlattened.errors.txt b/tests/baselines/reference/nestedCallbackErrorNotFlattened.errors.txt new file mode 100644 index 00000000000..3749d3765b0 --- /dev/null +++ b/tests/baselines/reference/nestedCallbackErrorNotFlattened.errors.txt @@ -0,0 +1,20 @@ +tests/cases/compiler/nestedCallbackErrorNotFlattened.ts(6,1): error TS2322: Type '() => () => () => () => number' is not assignable to type '() => () => () => () => string'. + Call signature return types '() => () => () => number' and '() => () => () => string' are incompatible. + Call signature return types '() => () => number' and '() => () => string' are incompatible. + Call signature return types '() => number' and '() => string' are incompatible. + Type 'number' is not assignable to type 'string'. + + +==== tests/cases/compiler/nestedCallbackErrorNotFlattened.ts (1 errors) ==== + type Cb = {noAlias: () => T}["noAlias"]; // `"noAlias"` here prevents an alias symbol from being made + // which means the comparison will definitely be structural, rather than by variance + + declare const x: Cb>>>; // one more layer of `Cb` adn we'd get a `true` from the deeply-nested symbol check + declare let y: Cb>>>; + y = x; + ~ +!!! error TS2322: Type '() => () => () => () => number' is not assignable to type '() => () => () => () => string'. +!!! error TS2322: Call signature return types '() => () => () => number' and '() => () => () => string' are incompatible. +!!! error TS2322: Call signature return types '() => () => number' and '() => () => string' are incompatible. +!!! error TS2322: Call signature return types '() => number' and '() => string' are incompatible. +!!! error TS2322: Type 'number' is not assignable to type 'string'. \ No newline at end of file diff --git a/tests/baselines/reference/nestedCallbackErrorNotFlattened.js b/tests/baselines/reference/nestedCallbackErrorNotFlattened.js new file mode 100644 index 00000000000..0c5edf9760b --- /dev/null +++ b/tests/baselines/reference/nestedCallbackErrorNotFlattened.js @@ -0,0 +1,11 @@ +//// [nestedCallbackErrorNotFlattened.ts] +type Cb = {noAlias: () => T}["noAlias"]; // `"noAlias"` here prevents an alias symbol from being made +// which means the comparison will definitely be structural, rather than by variance + +declare const x: Cb>>>; // one more layer of `Cb` adn we'd get a `true` from the deeply-nested symbol check +declare let y: Cb>>>; +y = x; + +//// [nestedCallbackErrorNotFlattened.js] +"use strict"; +y = x; diff --git a/tests/baselines/reference/nestedCallbackErrorNotFlattened.symbols b/tests/baselines/reference/nestedCallbackErrorNotFlattened.symbols new file mode 100644 index 00000000000..2019b787822 --- /dev/null +++ b/tests/baselines/reference/nestedCallbackErrorNotFlattened.symbols @@ -0,0 +1,27 @@ +=== tests/cases/compiler/nestedCallbackErrorNotFlattened.ts === +type Cb = {noAlias: () => T}["noAlias"]; // `"noAlias"` here prevents an alias symbol from being made +>Cb : Symbol(Cb, Decl(nestedCallbackErrorNotFlattened.ts, 0, 0)) +>T : Symbol(T, Decl(nestedCallbackErrorNotFlattened.ts, 0, 8)) +>noAlias : Symbol(noAlias, Decl(nestedCallbackErrorNotFlattened.ts, 0, 14)) +>T : Symbol(T, Decl(nestedCallbackErrorNotFlattened.ts, 0, 8)) + +// which means the comparison will definitely be structural, rather than by variance + +declare const x: Cb>>>; // one more layer of `Cb` adn we'd get a `true` from the deeply-nested symbol check +>x : Symbol(x, Decl(nestedCallbackErrorNotFlattened.ts, 3, 13)) +>Cb : Symbol(Cb, Decl(nestedCallbackErrorNotFlattened.ts, 0, 0)) +>Cb : Symbol(Cb, Decl(nestedCallbackErrorNotFlattened.ts, 0, 0)) +>Cb : Symbol(Cb, Decl(nestedCallbackErrorNotFlattened.ts, 0, 0)) +>Cb : Symbol(Cb, Decl(nestedCallbackErrorNotFlattened.ts, 0, 0)) + +declare let y: Cb>>>; +>y : Symbol(y, Decl(nestedCallbackErrorNotFlattened.ts, 4, 11)) +>Cb : Symbol(Cb, Decl(nestedCallbackErrorNotFlattened.ts, 0, 0)) +>Cb : Symbol(Cb, Decl(nestedCallbackErrorNotFlattened.ts, 0, 0)) +>Cb : Symbol(Cb, Decl(nestedCallbackErrorNotFlattened.ts, 0, 0)) +>Cb : Symbol(Cb, Decl(nestedCallbackErrorNotFlattened.ts, 0, 0)) + +y = x; +>y : Symbol(y, Decl(nestedCallbackErrorNotFlattened.ts, 4, 11)) +>x : Symbol(x, Decl(nestedCallbackErrorNotFlattened.ts, 3, 13)) + diff --git a/tests/baselines/reference/nestedCallbackErrorNotFlattened.types b/tests/baselines/reference/nestedCallbackErrorNotFlattened.types new file mode 100644 index 00000000000..5e753714b34 --- /dev/null +++ b/tests/baselines/reference/nestedCallbackErrorNotFlattened.types @@ -0,0 +1,18 @@ +=== tests/cases/compiler/nestedCallbackErrorNotFlattened.ts === +type Cb = {noAlias: () => T}["noAlias"]; // `"noAlias"` here prevents an alias symbol from being made +>Cb : () => T +>noAlias : () => T + +// which means the comparison will definitely be structural, rather than by variance + +declare const x: Cb>>>; // one more layer of `Cb` adn we'd get a `true` from the deeply-nested symbol check +>x : () => () => () => () => number + +declare let y: Cb>>>; +>y : () => () => () => () => string + +y = x; +>y = x : () => () => () => () => number +>y : () => () => () => () => string +>x : () => () => () => () => number + diff --git a/tests/baselines/reference/nestedRecursiveArraysOrObjectsError01.errors.txt b/tests/baselines/reference/nestedRecursiveArraysOrObjectsError01.errors.txt index 138a4a84158..650a808e598 100644 --- a/tests/baselines/reference/nestedRecursiveArraysOrObjectsError01.errors.txt +++ b/tests/baselines/reference/nestedRecursiveArraysOrObjectsError01.errors.txt @@ -1,17 +1,14 @@ tests/cases/compiler/nestedRecursiveArraysOrObjectsError01.ts(10,9): error TS2322: Type '{ foo: string; jj: number; }[][][]' is not assignable to type 'Style'. Type '{ foo: string; jj: number; }[][][]' is not assignable to type 'StyleArray'. - Types of property 'pop' are incompatible. - Type '() => { foo: string; jj: number; }[][]' is not assignable to type '() => Style'. - Type '{ foo: string; jj: number; }[][]' is not assignable to type 'Style'. - Type '{ foo: string; jj: number; }[][]' is not assignable to type 'StyleArray'. - Types of property 'pop' are incompatible. - Type '() => { foo: string; jj: number; }[]' is not assignable to type '() => Style'. - Type '{ foo: string; jj: number; }[]' is not assignable to type 'Style'. - Type '{ foo: string; jj: number; }[]' is not assignable to type 'StyleArray'. - Types of property 'pop' are incompatible. - Type '() => { foo: string; jj: number; }' is not assignable to type '() => Style'. - Type '{ foo: string; jj: number; }' is not assignable to type 'Style'. - Object literal may only specify known properties, and 'jj' does not exist in type 'Style'. + The types returned by 'pop()' are incompatible between these types. + Type '{ foo: string; jj: number; }[][]' is not assignable to type 'Style'. + Type '{ foo: string; jj: number; }[][]' is not assignable to type 'StyleArray'. + The types returned by 'pop()' are incompatible between these types. + Type '{ foo: string; jj: number; }[]' is not assignable to type 'Style'. + Type '{ foo: string; jj: number; }[]' is not assignable to type 'StyleArray'. + The types returned by 'pop()' are incompatible between these types. + Type '{ foo: string; jj: number; }' is not assignable to type 'Style'. + Object literal may only specify known properties, and 'jj' does not exist in type 'Style'. ==== tests/cases/compiler/nestedRecursiveArraysOrObjectsError01.ts (1 errors) ==== @@ -28,18 +25,15 @@ tests/cases/compiler/nestedRecursiveArraysOrObjectsError01.ts(10,9): error TS232 ~~~~~ !!! error TS2322: Type '{ foo: string; jj: number; }[][][]' is not assignable to type 'Style'. !!! error TS2322: Type '{ foo: string; jj: number; }[][][]' is not assignable to type 'StyleArray'. -!!! error TS2322: Types of property 'pop' are incompatible. -!!! error TS2322: Type '() => { foo: string; jj: number; }[][]' is not assignable to type '() => Style'. -!!! error TS2322: Type '{ foo: string; jj: number; }[][]' is not assignable to type 'Style'. -!!! error TS2322: Type '{ foo: string; jj: number; }[][]' is not assignable to type 'StyleArray'. -!!! error TS2322: Types of property 'pop' are incompatible. -!!! error TS2322: Type '() => { foo: string; jj: number; }[]' is not assignable to type '() => Style'. -!!! error TS2322: Type '{ foo: string; jj: number; }[]' is not assignable to type 'Style'. -!!! error TS2322: Type '{ foo: string; jj: number; }[]' is not assignable to type 'StyleArray'. -!!! error TS2322: Types of property 'pop' are incompatible. -!!! error TS2322: Type '() => { foo: string; jj: number; }' is not assignable to type '() => Style'. -!!! error TS2322: Type '{ foo: string; jj: number; }' is not assignable to type 'Style'. -!!! error TS2322: Object literal may only specify known properties, and 'jj' does not exist in type 'Style'. +!!! error TS2322: The types returned by 'pop()' are incompatible between these types. +!!! error TS2322: Type '{ foo: string; jj: number; }[][]' is not assignable to type 'Style'. +!!! error TS2322: Type '{ foo: string; jj: number; }[][]' is not assignable to type 'StyleArray'. +!!! error TS2322: The types returned by 'pop()' are incompatible between these types. +!!! error TS2322: Type '{ foo: string; jj: number; }[]' is not assignable to type 'Style'. +!!! error TS2322: Type '{ foo: string; jj: number; }[]' is not assignable to type 'StyleArray'. +!!! error TS2322: The types returned by 'pop()' are incompatible between these types. +!!! error TS2322: Type '{ foo: string; jj: number; }' is not assignable to type 'Style'. +!!! error TS2322: Object literal may only specify known properties, and 'jj' does not exist in type 'Style'. }]] ]; diff --git a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.errors.txt b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.errors.txt index c4ee3ea17b2..d4afd97723e 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.errors.txt +++ b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.errors.txt @@ -1,15 +1,12 @@ tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentCompat.ts(7,1): error TS2322: Type 'I' is not assignable to type 'Object'. - Types of property 'toString' are incompatible. - Type '() => void' is not assignable to type '() => string'. - Type 'void' is not assignable to type 'string'. + The types returned by 'toString()' are incompatible between these types. + Type 'void' is not assignable to type 'string'. tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentCompat.ts(14,1): error TS2322: Type 'C' is not assignable to type 'Object'. - Types of property 'toString' are incompatible. - Type '() => void' is not assignable to type '() => string'. - Type 'void' is not assignable to type 'string'. + The types returned by 'toString()' are incompatible between these types. + Type 'void' is not assignable to type 'string'. tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentCompat.ts(20,1): error TS2322: Type '{ toString: () => void; }' is not assignable to type 'Object'. - Types of property 'toString' are incompatible. - Type '() => void' is not assignable to type '() => string'. - Type 'void' is not assignable to type 'string'. + The types returned by 'toString()' are incompatible between these types. + Type 'void' is not assignable to type 'string'. ==== tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentCompat.ts (3 errors) ==== @@ -22,9 +19,8 @@ tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentC o = i; // error ~ !!! error TS2322: Type 'I' is not assignable to type 'Object'. -!!! error TS2322: Types of property 'toString' are incompatible. -!!! error TS2322: Type '() => void' is not assignable to type '() => string'. -!!! error TS2322: Type 'void' is not assignable to type 'string'. +!!! error TS2322: The types returned by 'toString()' are incompatible between these types. +!!! error TS2322: Type 'void' is not assignable to type 'string'. i = o; // ok class C { @@ -34,9 +30,8 @@ tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentC o = c; // error ~ !!! error TS2322: Type 'C' is not assignable to type 'Object'. -!!! error TS2322: Types of property 'toString' are incompatible. -!!! error TS2322: Type '() => void' is not assignable to type '() => string'. -!!! error TS2322: Type 'void' is not assignable to type 'string'. +!!! error TS2322: The types returned by 'toString()' are incompatible between these types. +!!! error TS2322: Type 'void' is not assignable to type 'string'. c = o; // ok var a = { @@ -45,7 +40,6 @@ tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentC o = a; // error ~ !!! error TS2322: Type '{ toString: () => void; }' is not assignable to type 'Object'. -!!! error TS2322: Types of property 'toString' are incompatible. -!!! error TS2322: Type '() => void' is not assignable to type '() => string'. -!!! error TS2322: Type 'void' is not assignable to type 'string'. +!!! error TS2322: The types returned by 'toString()' are incompatible between these types. +!!! error TS2322: Type 'void' is not assignable to type 'string'. a = o; // ok \ No newline at end of file diff --git a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.errors.txt b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.errors.txt index 3e27b22240e..28d466457d7 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.errors.txt +++ b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.errors.txt @@ -1,25 +1,18 @@ tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentCompat2.ts(7,1): error TS2322: Type 'I' is not assignable to type 'Object'. - Types of property 'toString' are incompatible. - Type '() => number' is not assignable to type '() => string'. - Type 'number' is not assignable to type 'string'. -tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentCompat2.ts(8,1): error TS2322: Type 'Object' is not assignable to type 'I'. - The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead? - Types of property 'toString' are incompatible. - Type '() => string' is not assignable to type '() => number'. - Type 'string' is not assignable to type 'number'. + The types returned by 'toString()' are incompatible between these types. + Type 'number' is not assignable to type 'string'. +tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentCompat2.ts(8,1): error TS2696: The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead? + The types returned by 'toString()' are incompatible between these types. + Type 'string' is not assignable to type 'number'. tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentCompat2.ts(14,1): error TS2322: Type 'C' is not assignable to type 'Object'. - Types of property 'toString' are incompatible. - Type '() => number' is not assignable to type '() => string'. - Type 'number' is not assignable to type 'string'. -tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentCompat2.ts(15,1): error TS2322: Type 'Object' is not assignable to type 'C'. - The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead? - Types of property 'toString' are incompatible. - Type '() => string' is not assignable to type '() => number'. - Type 'string' is not assignable to type 'number'. + The types returned by 'toString()' are incompatible between these types. + Type 'number' is not assignable to type 'string'. +tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentCompat2.ts(15,1): error TS2696: The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead? + The types returned by 'toString()' are incompatible between these types. + Type 'string' is not assignable to type 'number'. tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentCompat2.ts(20,1): error TS2322: Type '{ toString: () => void; }' is not assignable to type 'Object'. - Types of property 'toString' are incompatible. - Type '() => void' is not assignable to type '() => string'. - Type 'void' is not assignable to type 'string'. + The types returned by 'toString()' are incompatible between these types. + Type 'void' is not assignable to type 'string'. ==== tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentCompat2.ts (5 errors) ==== @@ -32,16 +25,13 @@ tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentC o = i; // error ~ !!! error TS2322: Type 'I' is not assignable to type 'Object'. -!!! error TS2322: Types of property 'toString' are incompatible. -!!! error TS2322: Type '() => number' is not assignable to type '() => string'. -!!! error TS2322: Type 'number' is not assignable to type 'string'. +!!! error TS2322: The types returned by 'toString()' are incompatible between these types. +!!! error TS2322: Type 'number' is not assignable to type 'string'. i = o; // error ~ -!!! error TS2322: Type 'Object' is not assignable to type 'I'. -!!! error TS2322: The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead? -!!! error TS2322: Types of property 'toString' are incompatible. -!!! error TS2322: Type '() => string' is not assignable to type '() => number'. -!!! error TS2322: Type 'string' is not assignable to type 'number'. +!!! error TS2696: The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead? +!!! error TS2696: The types returned by 'toString()' are incompatible between these types. +!!! error TS2696: Type 'string' is not assignable to type 'number'. class C { toString(): number { return 1; } @@ -50,16 +40,13 @@ tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentC o = c; // error ~ !!! error TS2322: Type 'C' is not assignable to type 'Object'. -!!! error TS2322: Types of property 'toString' are incompatible. -!!! error TS2322: Type '() => number' is not assignable to type '() => string'. -!!! error TS2322: Type 'number' is not assignable to type 'string'. +!!! error TS2322: The types returned by 'toString()' are incompatible between these types. +!!! error TS2322: Type 'number' is not assignable to type 'string'. c = o; // error ~ -!!! error TS2322: Type 'Object' is not assignable to type 'C'. -!!! error TS2322: The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead? -!!! error TS2322: Types of property 'toString' are incompatible. -!!! error TS2322: Type '() => string' is not assignable to type '() => number'. -!!! error TS2322: Type 'string' is not assignable to type 'number'. +!!! error TS2696: The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead? +!!! error TS2696: The types returned by 'toString()' are incompatible between these types. +!!! error TS2696: Type 'string' is not assignable to type 'number'. var a = { toString: () => { } @@ -67,7 +54,6 @@ tests/cases/conformance/types/members/objectTypeHidingMembersOfObjectAssignmentC o = a; // error ~ !!! error TS2322: Type '{ toString: () => void; }' is not assignable to type 'Object'. -!!! error TS2322: Types of property 'toString' are incompatible. -!!! error TS2322: Type '() => void' is not assignable to type '() => string'. -!!! error TS2322: Type 'void' is not assignable to type 'string'. +!!! error TS2322: The types returned by 'toString()' are incompatible between these types. +!!! error TS2322: Type 'void' is not assignable to type 'string'. a = o; // ok \ No newline at end of file diff --git a/tests/baselines/reference/promisePermutations.errors.txt b/tests/baselines/reference/promisePermutations.errors.txt index 1cb61562fe3..87743ab77a3 100644 --- a/tests/baselines/reference/promisePermutations.errors.txt +++ b/tests/baselines/reference/promisePermutations.errors.txt @@ -122,8 +122,8 @@ tests/cases/compiler/promisePermutations.ts(159,21): error TS2769: No overload m tests/cases/compiler/promisePermutations.ts(160,21): error TS2769: No overload matches this call. The last overload gave the following error. Argument of type '{ (x: number): Promise; (x: string): Promise; }' is not assignable to parameter of type '(value: number) => IPromise'. - Type 'Promise' is not assignable to type 'IPromise'. - Types of property 'then' are incompatible. + Call signature return types 'Promise' and 'IPromise' are incompatible. + The types of 'then' are incompatible between these types. Type '{ (onfulfilled?: (value: number) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike): Promise; (success?: (value: number) => Promise, error?: (error: any) => Promise, progress?: (progress: any) => void): Promise; (success?: (value: number) => Promise, error?: (error: any) => U, progress?: (progress: any) => void): Promise; (success?: (value: number) => U, error?: (error: any) => Promise, progress?: (progress: any) => void): Promise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise; }' is not assignable to type '{ (success?: (value: string) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: string) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: string) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; }'. Types of parameters 'onfulfilled' and 'success' are incompatible. Types of parameters 'value' and 'value' are incompatible. @@ -481,8 +481,8 @@ tests/cases/compiler/promisePermutations.ts(160,21): error TS2769: No overload m !!! error TS2769: No overload matches this call. !!! error TS2769: The last overload gave the following error. !!! error TS2769: Argument of type '{ (x: number): Promise; (x: string): Promise; }' is not assignable to parameter of type '(value: number) => IPromise'. -!!! error TS2769: Type 'Promise' is not assignable to type 'IPromise'. -!!! error TS2769: Types of property 'then' are incompatible. +!!! error TS2769: Call signature return types 'Promise' and 'IPromise' are incompatible. +!!! error TS2769: The types of 'then' are incompatible between these types. !!! error TS2769: Type '{ (onfulfilled?: (value: number) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike): Promise; (success?: (value: number) => Promise, error?: (error: any) => Promise, progress?: (progress: any) => void): Promise; (success?: (value: number) => Promise, error?: (error: any) => U, progress?: (progress: any) => void): Promise; (success?: (value: number) => U, error?: (error: any) => Promise, progress?: (progress: any) => void): Promise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise; }' is not assignable to type '{ (success?: (value: string) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: string) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: string) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; }'. !!! error TS2769: Types of parameters 'onfulfilled' and 'success' are incompatible. !!! error TS2769: Types of parameters 'value' and 'value' are incompatible. diff --git a/tests/baselines/reference/promisePermutations2.errors.txt b/tests/baselines/reference/promisePermutations2.errors.txt index d601a5049bf..b69eaab3157 100644 --- a/tests/baselines/reference/promisePermutations2.errors.txt +++ b/tests/baselines/reference/promisePermutations2.errors.txt @@ -80,8 +80,8 @@ tests/cases/compiler/promisePermutations2.ts(158,21): error TS2345: Argument of Type 'Promise' is not assignable to type 'Promise'. Type 'number' is not assignable to type 'string'. tests/cases/compiler/promisePermutations2.ts(159,21): error TS2345: Argument of type '{ (x: number): Promise; (x: string): Promise; }' is not assignable to parameter of type '(value: number) => IPromise'. - Type 'Promise' is not assignable to type 'IPromise'. - Types of property 'then' are incompatible. + Call signature return types 'Promise' and 'IPromise' are incompatible. + The types of 'then' are incompatible between these types. Type '{ (onfulfilled?: (value: number) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike): Promise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise; }' is not assignable to type '{ (success?: (value: string) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: string) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: string) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; }'. Types of parameters 'onfulfilled' and 'success' are incompatible. Types of parameters 'value' and 'value' are incompatible. @@ -376,8 +376,8 @@ tests/cases/compiler/promisePermutations2.ts(159,21): error TS2345: Argument of var s11c = s11.then(testFunction11P, testFunction11, testFunction11); // ok ~~~~~~~~~~~~~~~ !!! error TS2345: Argument of type '{ (x: number): Promise; (x: string): Promise; }' is not assignable to parameter of type '(value: number) => IPromise'. -!!! error TS2345: Type 'Promise' is not assignable to type 'IPromise'. -!!! error TS2345: Types of property 'then' are incompatible. +!!! error TS2345: Call signature return types 'Promise' and 'IPromise' are incompatible. +!!! error TS2345: The types of 'then' are incompatible between these types. !!! error TS2345: Type '{ (onfulfilled?: (value: number) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike): Promise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise; }' is not assignable to type '{ (success?: (value: string) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: string) => IPromise, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; (success?: (value: string) => U, error?: (error: any) => IPromise, progress?: (progress: any) => void): IPromise; (success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise; }'. !!! error TS2345: Types of parameters 'onfulfilled' and 'success' are incompatible. !!! error TS2345: Types of parameters 'value' and 'value' are incompatible. diff --git a/tests/baselines/reference/promisePermutations3.errors.txt b/tests/baselines/reference/promisePermutations3.errors.txt index d3574d2a4c3..929b0d5459c 100644 --- a/tests/baselines/reference/promisePermutations3.errors.txt +++ b/tests/baselines/reference/promisePermutations3.errors.txt @@ -101,8 +101,8 @@ tests/cases/compiler/promisePermutations3.ts(158,21): error TS2769: No overload tests/cases/compiler/promisePermutations3.ts(159,21): error TS2769: No overload matches this call. The last overload gave the following error. Argument of type '{ (x: number): Promise; (x: string): Promise; }' is not assignable to parameter of type '(value: number) => IPromise'. - Type 'Promise' is not assignable to type 'IPromise'. - Types of property 'then' are incompatible. + Call signature return types 'Promise' and 'IPromise' are incompatible. + The types of 'then' are incompatible between these types. Type '{ (onfulfilled?: (value: number) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike): Promise; (success?: (value: number) => Promise, error?: (error: any) => Promise, progress?: (progress: any) => void): Promise; (success?: (value: number) => Promise, error?: (error: any) => U, progress?: (progress: any) => void): Promise; (success?: (value: number) => U, error?: (error: any) => Promise, progress?: (progress: any) => void): Promise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise; }' is not assignable to type '(success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void) => IPromise'. Types of parameters 'onfulfilled' and 'success' are incompatible. Types of parameters 'value' and 'value' are incompatible. @@ -429,8 +429,8 @@ tests/cases/compiler/promisePermutations3.ts(165,21): error TS2345: Argument of !!! error TS2769: No overload matches this call. !!! error TS2769: The last overload gave the following error. !!! error TS2769: Argument of type '{ (x: number): Promise; (x: string): Promise; }' is not assignable to parameter of type '(value: number) => IPromise'. -!!! error TS2769: Type 'Promise' is not assignable to type 'IPromise'. -!!! error TS2769: Types of property 'then' are incompatible. +!!! error TS2769: Call signature return types 'Promise' and 'IPromise' are incompatible. +!!! error TS2769: The types of 'then' are incompatible between these types. !!! error TS2769: Type '{ (onfulfilled?: (value: number) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike): Promise; (success?: (value: number) => Promise, error?: (error: any) => Promise, progress?: (progress: any) => void): Promise; (success?: (value: number) => Promise, error?: (error: any) => U, progress?: (progress: any) => void): Promise; (success?: (value: number) => U, error?: (error: any) => Promise, progress?: (progress: any) => void): Promise; (success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise; }' is not assignable to type '(success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void) => IPromise'. !!! error TS2769: Types of parameters 'onfulfilled' and 'success' are incompatible. !!! error TS2769: Types of parameters 'value' and 'value' are incompatible. diff --git a/tests/baselines/reference/promiseTypeInference.errors.txt b/tests/baselines/reference/promiseTypeInference.errors.txt index 04ba3a0d878..7056e35432f 100644 --- a/tests/baselines/reference/promiseTypeInference.errors.txt +++ b/tests/baselines/reference/promiseTypeInference.errors.txt @@ -5,10 +5,9 @@ tests/cases/compiler/promiseTypeInference.ts(10,39): error TS2769: No overload m Type 'IPromise' is not assignable to type 'number | PromiseLike'. Type 'IPromise' is not assignable to type 'PromiseLike'. Types of property 'then' are incompatible. - Type '(success?: (value: number) => IPromise) => IPromise' is not assignable to type '(onfulfilled?: (value: number) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike'. - Types of parameters 'success' and 'onfulfilled' are incompatible. - Type 'TResult1 | PromiseLike' is not assignable to type 'IPromise'. - Type 'TResult1' is not assignable to type 'IPromise'. + Types of parameters 'success' and 'onfulfilled' are incompatible. + Type 'TResult1 | PromiseLike' is not assignable to type 'IPromise'. + Type 'TResult1' is not assignable to type 'IPromise'. ==== tests/cases/compiler/promiseTypeInference.ts (1 errors) ==== @@ -30,10 +29,9 @@ tests/cases/compiler/promiseTypeInference.ts(10,39): error TS2769: No overload m !!! error TS2769: Type 'IPromise' is not assignable to type 'number | PromiseLike'. !!! error TS2769: Type 'IPromise' is not assignable to type 'PromiseLike'. !!! error TS2769: Types of property 'then' are incompatible. -!!! error TS2769: Type '(success?: (value: number) => IPromise) => IPromise' is not assignable to type '(onfulfilled?: (value: number) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike'. -!!! error TS2769: Types of parameters 'success' and 'onfulfilled' are incompatible. -!!! error TS2769: Type 'TResult1 | PromiseLike' is not assignable to type 'IPromise'. -!!! error TS2769: Type 'TResult1' is not assignable to type 'IPromise'. +!!! error TS2769: Types of parameters 'success' and 'onfulfilled' are incompatible. +!!! error TS2769: Type 'TResult1 | PromiseLike' is not assignable to type 'IPromise'. +!!! error TS2769: Type 'TResult1' is not assignable to type 'IPromise'. !!! related TS2728 /.ts/lib.es5.d.ts:1413:5: 'catch' is declared here. !!! related TS6502 tests/cases/compiler/promiseTypeInference.ts:2:23: The expected type comes from the return type of this signature. !!! related TS6502 /.ts/lib.es5.d.ts:1406:57: The expected type comes from the return type of this signature. diff --git a/tests/baselines/reference/strictFunctionTypesErrors.errors.txt b/tests/baselines/reference/strictFunctionTypesErrors.errors.txt index 3ff04c44fb7..6f474663dcb 100644 --- a/tests/baselines/reference/strictFunctionTypesErrors.errors.txt +++ b/tests/baselines/reference/strictFunctionTypesErrors.errors.txt @@ -69,9 +69,8 @@ tests/cases/compiler/strictFunctionTypesErrors.ts(126,1): error TS2322: Type 'Cr tests/cases/compiler/strictFunctionTypesErrors.ts(127,1): error TS2322: Type 'Crate' is not assignable to type 'Crate'. Types of property 'item' are incompatible. Type 'Animal' is not assignable to type 'Dog'. -tests/cases/compiler/strictFunctionTypesErrors.ts(133,1): error TS2322: Type '(f: (x: Dog) => Dog) => void' is not assignable to type '(f: (x: Animal) => Animal) => void'. - Types of parameters 'f' and 'f' are incompatible. - Type 'Animal' is not assignable to type 'Dog'. +tests/cases/compiler/strictFunctionTypesErrors.ts(133,1): error TS2328: Types of parameters 'f' and 'f' are incompatible. + Type 'Animal' is not assignable to type 'Dog'. tests/cases/compiler/strictFunctionTypesErrors.ts(134,1): error TS2322: Type '(f: (x: Animal) => Animal) => void' is not assignable to type '(f: (x: Dog) => Dog) => void'. Types of parameters 'f' and 'f' are incompatible. Types of parameters 'x' and 'x' are incompatible. @@ -324,9 +323,8 @@ tests/cases/compiler/strictFunctionTypesErrors.ts(155,5): error TS2322: Type '(c declare let fc2: (f: (x: Dog) => Dog) => void; fc1 = fc2; // Error ~~~ -!!! error TS2322: Type '(f: (x: Dog) => Dog) => void' is not assignable to type '(f: (x: Animal) => Animal) => void'. -!!! error TS2322: Types of parameters 'f' and 'f' are incompatible. -!!! error TS2322: Type 'Animal' is not assignable to type 'Dog'. +!!! error TS2328: Types of parameters 'f' and 'f' are incompatible. +!!! error TS2328: Type 'Animal' is not assignable to type 'Dog'. fc2 = fc1; // Error ~~~ !!! error TS2322: Type '(f: (x: Animal) => Animal) => void' is not assignable to type '(f: (x: Dog) => Dog) => void'. diff --git a/tests/baselines/reference/subtypingWithCallSignaturesWithSpecializedSignatures.errors.txt b/tests/baselines/reference/subtypingWithCallSignaturesWithSpecializedSignatures.errors.txt index 7dfb078170a..b8bc5100402 100644 --- a/tests/baselines/reference/subtypingWithCallSignaturesWithSpecializedSignatures.errors.txt +++ b/tests/baselines/reference/subtypingWithCallSignaturesWithSpecializedSignatures.errors.txt @@ -1,12 +1,10 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignaturesWithSpecializedSignatures.ts(70,15): error TS2430: Interface 'I2' incorrectly extends interface 'Base2'. - Types of property 'a' are incompatible. - Type '(x: string) => string' is not assignable to type '{ (x: "a"): number; (x: string): number; }'. - Type 'string' is not assignable to type 'number'. + The types returned by 'a(...)' are incompatible between these types. + Type 'string' is not assignable to type 'number'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignaturesWithSpecializedSignatures.ts(76,15): error TS2430: Interface 'I3' incorrectly extends interface 'Base2'. - Types of property 'a2' are incompatible. - Type '(x: T) => string' is not assignable to type '(x: T) => T'. - Type 'string' is not assignable to type 'T'. - 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'a2(...)' are incompatible between these types. + Type 'string' is not assignable to type 'T'. + 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. ==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignaturesWithSpecializedSignatures.ts (2 errors) ==== @@ -82,9 +80,8 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I2 extends Base2 { ~~ !!! error TS2430: Interface 'I2' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a' are incompatible. -!!! error TS2430: Type '(x: string) => string' is not assignable to type '{ (x: "a"): number; (x: string): number; }'. -!!! error TS2430: Type 'string' is not assignable to type 'number'. +!!! error TS2430: The types returned by 'a(...)' are incompatible between these types. +!!! error TS2430: Type 'string' is not assignable to type 'number'. // N's a: (x: string) => string; // error because base returns non-void; } @@ -93,10 +90,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I3 extends Base2 { ~~ !!! error TS2430: Interface 'I3' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a2' are incompatible. -!!! error TS2430: Type '(x: T) => string' is not assignable to type '(x: T) => T'. -!!! error TS2430: Type 'string' is not assignable to type 'T'. -!!! error TS2430: 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'a2(...)' are incompatible between these types. +!!! error TS2430: Type 'string' is not assignable to type 'T'. +!!! error TS2430: 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. // N's a2: (x: T) => string; // error because base returns non-void; } diff --git a/tests/baselines/reference/subtypingWithConstructSignaturesWithSpecializedSignatures.errors.txt b/tests/baselines/reference/subtypingWithConstructSignaturesWithSpecializedSignatures.errors.txt index 8f4a219407a..db493045f09 100644 --- a/tests/baselines/reference/subtypingWithConstructSignaturesWithSpecializedSignatures.errors.txt +++ b/tests/baselines/reference/subtypingWithConstructSignaturesWithSpecializedSignatures.errors.txt @@ -1,12 +1,10 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignaturesWithSpecializedSignatures.ts(70,15): error TS2430: Interface 'I2' incorrectly extends interface 'Base2'. - Types of property 'a' are incompatible. - Type 'new (x: string) => string' is not assignable to type '{ new (x: "a"): number; new (x: string): number; }'. - Type 'string' is not assignable to type 'number'. + The types returned by 'new a(...)' are incompatible between these types. + Type 'string' is not assignable to type 'number'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignaturesWithSpecializedSignatures.ts(76,15): error TS2430: Interface 'I3' incorrectly extends interface 'Base2'. - Types of property 'a2' are incompatible. - Type 'new (x: T) => string' is not assignable to type 'new (x: T) => T'. - Type 'string' is not assignable to type 'T'. - 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'new a2(...)' are incompatible between these types. + Type 'string' is not assignable to type 'T'. + 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. ==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignaturesWithSpecializedSignatures.ts (2 errors) ==== @@ -82,9 +80,8 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I2 extends Base2 { ~~ !!! error TS2430: Interface 'I2' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a' are incompatible. -!!! error TS2430: Type 'new (x: string) => string' is not assignable to type '{ new (x: "a"): number; new (x: string): number; }'. -!!! error TS2430: Type 'string' is not assignable to type 'number'. +!!! error TS2430: The types returned by 'new a(...)' are incompatible between these types. +!!! error TS2430: Type 'string' is not assignable to type 'number'. // N's a: new (x: string) => string; // error because base returns non-void; } @@ -93,10 +90,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I3 extends Base2 { ~~ !!! error TS2430: Interface 'I3' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a2' are incompatible. -!!! error TS2430: Type 'new (x: T) => string' is not assignable to type 'new (x: T) => T'. -!!! error TS2430: Type 'string' is not assignable to type 'T'. -!!! error TS2430: 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'new a2(...)' are incompatible between these types. +!!! error TS2430: Type 'string' is not assignable to type 'T'. +!!! error TS2430: 'string' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. // N's a2: new (x: T) => string; // error because base returns non-void; } diff --git a/tests/baselines/reference/subtypingWithGenericCallSignaturesWithOptionalParameters.errors.txt b/tests/baselines/reference/subtypingWithGenericCallSignaturesWithOptionalParameters.errors.txt index 36380fc97f4..4e0ef2113ec 100644 --- a/tests/baselines/reference/subtypingWithGenericCallSignaturesWithOptionalParameters.errors.txt +++ b/tests/baselines/reference/subtypingWithGenericCallSignaturesWithOptionalParameters.errors.txt @@ -5,23 +5,20 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW Types of property 'a3' are incompatible. Type '(x: T, y: T) => T' is not assignable to type '(x: T) => T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericCallSignaturesWithOptionalParameters.ts(100,15): error TS2430: Interface 'I1' incorrectly extends interface 'Base2'. - Types of property 'a' are incompatible. - Type '() => T' is not assignable to type '() => T'. - Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. - 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'a()' are incompatible between these types. + Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. + 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericCallSignaturesWithOptionalParameters.ts(104,15): error TS2430: Interface 'I2' incorrectly extends interface 'Base2'. - Types of property 'a' are incompatible. - Type '(x?: T) => T' is not assignable to type '() => T'. - Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. - 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'a(...)' are incompatible between these types. + Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. + 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericCallSignaturesWithOptionalParameters.ts(108,15): error TS2430: Interface 'I3' incorrectly extends interface 'Base2'. Types of property 'a' are incompatible. Type '(x: T) => T' is not assignable to type '() => T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericCallSignaturesWithOptionalParameters.ts(113,15): error TS2430: Interface 'I4' incorrectly extends interface 'Base2'. - Types of property 'a2' are incompatible. - Type '() => T' is not assignable to type '(x?: T) => T'. - Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. - 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'a2(...)' are incompatible between these types. + Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. + 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericCallSignaturesWithOptionalParameters.ts(117,15): error TS2430: Interface 'I5' incorrectly extends interface 'Base2'. Types of property 'a2' are incompatible. Type '(x?: T) => T' is not assignable to type '(x?: T) => T'. @@ -35,10 +32,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericCallSignaturesWithOptionalParameters.ts(126,15): error TS2430: Interface 'I7' incorrectly extends interface 'Base2'. - Types of property 'a3' are incompatible. - Type '() => T' is not assignable to type '(x: T) => T'. - Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. - 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'a3(...)' are incompatible between these types. + Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. + 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericCallSignaturesWithOptionalParameters.ts(130,15): error TS2430: Interface 'I8' incorrectly extends interface 'Base2'. Types of property 'a3' are incompatible. Type '(x?: T) => T' is not assignable to type '(x: T) => T'. @@ -55,10 +51,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW Types of property 'a3' are incompatible. Type '(x: T, y: T) => T' is not assignable to type '(x: T) => T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericCallSignaturesWithOptionalParameters.ts(143,15): error TS2430: Interface 'I11' incorrectly extends interface 'Base2'. - Types of property 'a4' are incompatible. - Type '() => T' is not assignable to type '(x: T, y?: T) => T'. - Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. - 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'a4(...)' are incompatible between these types. + Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. + 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericCallSignaturesWithOptionalParameters.ts(147,15): error TS2430: Interface 'I12' incorrectly extends interface 'Base2'. Types of property 'a4' are incompatible. Type '(x?: T, y?: T) => T' is not assignable to type '(x: T, y?: T) => T'. @@ -78,10 +73,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericCallSignaturesWithOptionalParameters.ts(160,15): error TS2430: Interface 'I15' incorrectly extends interface 'Base2'. - Types of property 'a5' are incompatible. - Type '() => T' is not assignable to type '(x?: T, y?: T) => T'. - Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. - 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'a5(...)' are incompatible between these types. + Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. + 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericCallSignaturesWithOptionalParameters.ts(164,15): error TS2430: Interface 'I16' incorrectly extends interface 'Base2'. Types of property 'a5' are incompatible. Type '(x?: T, y?: T) => T' is not assignable to type '(x?: T, y?: T) => T'. @@ -219,20 +213,18 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I1 extends Base2 { ~~ !!! error TS2430: Interface 'I1' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a' are incompatible. -!!! error TS2430: Type '() => T' is not assignable to type '() => T'. -!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. -!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'a()' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a: () => T; } interface I2 extends Base2 { ~~ !!! error TS2430: Interface 'I2' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a' are incompatible. -!!! error TS2430: Type '(x?: T) => T' is not assignable to type '() => T'. -!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. -!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'a(...)' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a: (x?: T) => T; } @@ -248,10 +240,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I4 extends Base2 { ~~ !!! error TS2430: Interface 'I4' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a2' are incompatible. -!!! error TS2430: Type '() => T' is not assignable to type '(x?: T) => T'. -!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. -!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'a2(...)' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a2: () => T; } @@ -281,10 +272,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I7 extends Base2 { ~~ !!! error TS2430: Interface 'I7' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a3' are incompatible. -!!! error TS2430: Type '() => T' is not assignable to type '(x: T) => T'. -!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. -!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'a3(...)' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a3: () => T; } @@ -322,10 +312,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I11 extends Base2 { ~~~ !!! error TS2430: Interface 'I11' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a4' are incompatible. -!!! error TS2430: Type '() => T' is not assignable to type '(x: T, y?: T) => T'. -!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. -!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'a4(...)' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a4: () => T; } @@ -366,10 +355,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I15 extends Base2 { ~~~ !!! error TS2430: Interface 'I15' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a5' are incompatible. -!!! error TS2430: Type '() => T' is not assignable to type '(x?: T, y?: T) => T'. -!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. -!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'a5(...)' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a5: () => T; } diff --git a/tests/baselines/reference/subtypingWithGenericConstructSignaturesWithOptionalParameters.errors.txt b/tests/baselines/reference/subtypingWithGenericConstructSignaturesWithOptionalParameters.errors.txt index 427c7c1f19e..7481ba54f1e 100644 --- a/tests/baselines/reference/subtypingWithGenericConstructSignaturesWithOptionalParameters.errors.txt +++ b/tests/baselines/reference/subtypingWithGenericConstructSignaturesWithOptionalParameters.errors.txt @@ -5,23 +5,20 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW Types of property 'a3' are incompatible. Type 'new (x: T, y: T) => T' is not assignable to type 'new (x: T) => T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericConstructSignaturesWithOptionalParameters.ts(100,15): error TS2430: Interface 'I1' incorrectly extends interface 'Base2'. - Types of property 'a' are incompatible. - Type 'new () => T' is not assignable to type 'new () => T'. - Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. - 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'new a()' are incompatible between these types. + Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. + 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericConstructSignaturesWithOptionalParameters.ts(104,15): error TS2430: Interface 'I2' incorrectly extends interface 'Base2'. - Types of property 'a' are incompatible. - Type 'new (x?: T) => T' is not assignable to type 'new () => T'. - Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. - 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'new a(...)' are incompatible between these types. + Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. + 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericConstructSignaturesWithOptionalParameters.ts(108,15): error TS2430: Interface 'I3' incorrectly extends interface 'Base2'. Types of property 'a' are incompatible. Type 'new (x: T) => T' is not assignable to type 'new () => T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericConstructSignaturesWithOptionalParameters.ts(113,15): error TS2430: Interface 'I4' incorrectly extends interface 'Base2'. - Types of property 'a2' are incompatible. - Type 'new () => T' is not assignable to type 'new (x?: T) => T'. - Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. - 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'new a2(...)' are incompatible between these types. + Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. + 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericConstructSignaturesWithOptionalParameters.ts(117,15): error TS2430: Interface 'I5' incorrectly extends interface 'Base2'. Types of property 'a2' are incompatible. Type 'new (x?: T) => T' is not assignable to type 'new (x?: T) => T'. @@ -35,10 +32,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericConstructSignaturesWithOptionalParameters.ts(126,15): error TS2430: Interface 'I7' incorrectly extends interface 'Base2'. - Types of property 'a3' are incompatible. - Type 'new () => T' is not assignable to type 'new (x: T) => T'. - Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. - 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'new a3(...)' are incompatible between these types. + Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. + 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericConstructSignaturesWithOptionalParameters.ts(130,15): error TS2430: Interface 'I8' incorrectly extends interface 'Base2'. Types of property 'a3' are incompatible. Type 'new (x?: T) => T' is not assignable to type 'new (x: T) => T'. @@ -55,10 +51,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW Types of property 'a3' are incompatible. Type 'new (x: T, y: T) => T' is not assignable to type 'new (x: T) => T'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericConstructSignaturesWithOptionalParameters.ts(143,15): error TS2430: Interface 'I11' incorrectly extends interface 'Base2'. - Types of property 'a4' are incompatible. - Type 'new () => T' is not assignable to type 'new (x: T, y?: T) => T'. - Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. - 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'new a4(...)' are incompatible between these types. + Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. + 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericConstructSignaturesWithOptionalParameters.ts(147,15): error TS2430: Interface 'I12' incorrectly extends interface 'Base2'. Types of property 'a4' are incompatible. Type 'new (x?: T, y?: T) => T' is not assignable to type 'new (x: T, y?: T) => T'. @@ -78,10 +73,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericConstructSignaturesWithOptionalParameters.ts(160,15): error TS2430: Interface 'I15' incorrectly extends interface 'Base2'. - Types of property 'a5' are incompatible. - Type 'new () => T' is not assignable to type 'new (x?: T, y?: T) => T'. - Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. - 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. + The types returned by 'new a5(...)' are incompatible between these types. + Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. + 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithGenericConstructSignaturesWithOptionalParameters.ts(164,15): error TS2430: Interface 'I16' incorrectly extends interface 'Base2'. Types of property 'a5' are incompatible. Type 'new (x?: T, y?: T) => T' is not assignable to type 'new (x?: T, y?: T) => T'. @@ -219,20 +213,18 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I1 extends Base2 { ~~ !!! error TS2430: Interface 'I1' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a' are incompatible. -!!! error TS2430: Type 'new () => T' is not assignable to type 'new () => T'. -!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. -!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'new a()' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a: new () => T; } interface I2 extends Base2 { ~~ !!! error TS2430: Interface 'I2' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a' are incompatible. -!!! error TS2430: Type 'new (x?: T) => T' is not assignable to type 'new () => T'. -!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. -!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'new a(...)' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a: new (x?: T) => T; } @@ -248,10 +240,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I4 extends Base2 { ~~ !!! error TS2430: Interface 'I4' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a2' are incompatible. -!!! error TS2430: Type 'new () => T' is not assignable to type 'new (x?: T) => T'. -!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. -!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'new a2(...)' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a2: new () => T; } @@ -281,10 +272,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I7 extends Base2 { ~~ !!! error TS2430: Interface 'I7' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a3' are incompatible. -!!! error TS2430: Type 'new () => T' is not assignable to type 'new (x: T) => T'. -!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. -!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'new a3(...)' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a3: new () => T; } @@ -322,10 +312,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I11 extends Base2 { ~~~ !!! error TS2430: Interface 'I11' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a4' are incompatible. -!!! error TS2430: Type 'new () => T' is not assignable to type 'new (x: T, y?: T) => T'. -!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. -!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'new a4(...)' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a4: new () => T; } @@ -366,10 +355,9 @@ tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingW interface I15 extends Base2 { ~~~ !!! error TS2430: Interface 'I15' incorrectly extends interface 'Base2'. -!!! error TS2430: Types of property 'a5' are incompatible. -!!! error TS2430: Type 'new () => T' is not assignable to type 'new (x?: T, y?: T) => T'. -!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. -!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. +!!! error TS2430: The types returned by 'new a5(...)' are incompatible between these types. +!!! error TS2430: Type 'T' is not assignable to type 'T'. Two different types with this name exist, but they are unrelated. +!!! error TS2430: 'T' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. a5: new () => T; } diff --git a/tests/baselines/reference/typeParameterArgumentEquivalence5.errors.txt b/tests/baselines/reference/typeParameterArgumentEquivalence5.errors.txt index e5196d3d4a5..b832ce6cb7c 100644 --- a/tests/baselines/reference/typeParameterArgumentEquivalence5.errors.txt +++ b/tests/baselines/reference/typeParameterArgumentEquivalence5.errors.txt @@ -1,9 +1,9 @@ tests/cases/compiler/typeParameterArgumentEquivalence5.ts(4,5): error TS2322: Type '() => (item: any) => T' is not assignable to type '() => (item: any) => U'. - Type '(item: any) => T' is not assignable to type '(item: any) => U'. + Call signature return types '(item: any) => T' and '(item: any) => U' are incompatible. Type 'T' is not assignable to type 'U'. 'T' is assignable to the constraint of type 'U', but 'U' could be instantiated with a different subtype of constraint '{}'. tests/cases/compiler/typeParameterArgumentEquivalence5.ts(5,5): error TS2322: Type '() => (item: any) => U' is not assignable to type '() => (item: any) => T'. - Type '(item: any) => U' is not assignable to type '(item: any) => T'. + Call signature return types '(item: any) => U' and '(item: any) => T' are incompatible. Type 'U' is not assignable to type 'T'. 'U' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. @@ -15,13 +15,13 @@ tests/cases/compiler/typeParameterArgumentEquivalence5.ts(5,5): error TS2322: Ty x = y; // Should be an error ~ !!! error TS2322: Type '() => (item: any) => T' is not assignable to type '() => (item: any) => U'. -!!! error TS2322: Type '(item: any) => T' is not assignable to type '(item: any) => U'. +!!! error TS2322: Call signature return types '(item: any) => T' and '(item: any) => U' are incompatible. !!! error TS2322: Type 'T' is not assignable to type 'U'. !!! error TS2322: 'T' is assignable to the constraint of type 'U', but 'U' could be instantiated with a different subtype of constraint '{}'. y = x; // Shound be an error ~ !!! error TS2322: Type '() => (item: any) => U' is not assignable to type '() => (item: any) => T'. -!!! error TS2322: Type '(item: any) => U' is not assignable to type '(item: any) => T'. +!!! error TS2322: Call signature return types '(item: any) => U' and '(item: any) => T' are incompatible. !!! error TS2322: Type 'U' is not assignable to type 'T'. !!! error TS2322: 'U' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'. } diff --git a/tests/baselines/reference/types.asyncGenerators.es2018.2.errors.txt b/tests/baselines/reference/types.asyncGenerators.es2018.2.errors.txt index 9f22060b9e9..3d588abf1ee 100644 --- a/tests/baselines/reference/types.asyncGenerators.es2018.2.errors.txt +++ b/tests/baselines/reference/types.asyncGenerators.es2018.2.errors.txt @@ -1,39 +1,29 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(2,12): error TS2504: Type '{}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(8,12): error TS2504: Type 'Promise' must have a '[Symbol.asyncIterator]()' method that returns an async iterator. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(10,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterableIterator'. - Type 'AsyncGenerator' is not assignable to type 'AsyncIterableIterator'. - Types of property 'next' are incompatible. - Type '(...args: [] | [undefined]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. - Type 'Promise>' is not assignable to type 'Promise>'. - Type 'IteratorResult' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. - Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. - Type 'string' is not assignable to type 'number'. + Call signature return types 'AsyncGenerator' and 'AsyncIterableIterator' are incompatible. + The types returned by 'next(...)' are incompatible between these types. + Type 'Promise>' is not assignable to type 'Promise>'. + Type 'IteratorResult' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. + Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. + Type 'string' is not assignable to type 'number'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(13,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterableIterator'. Type 'AsyncGenerator' is not assignable to type 'AsyncIterableIterator'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(16,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterableIterator'. - Type 'AsyncGenerator' is not assignable to type 'AsyncIterableIterator'. - Types of property 'next' are incompatible. - Type '(...args: [] | [unknown]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. - Type 'Promise>' is not assignable to type 'Promise>'. + Call signature return types 'AsyncGenerator' and 'AsyncIterableIterator' are incompatible. + The types returned by 'next(...)' are incompatible between these types. + Type 'Promise>' is not assignable to type 'Promise>'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(19,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterable'. - Type 'AsyncGenerator' is not assignable to type 'AsyncIterable'. - Types of property '[Symbol.asyncIterator]' are incompatible. - Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterator'. - Type 'AsyncGenerator' is not assignable to type 'AsyncIterator'. - Types of property 'next' are incompatible. - Type '(...args: [] | [undefined]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. - Type 'Promise>' is not assignable to type 'Promise>'. + Call signature return types 'AsyncGenerator' and 'AsyncIterable' are incompatible. + The types returned by '[Symbol.asyncIterator]().next(...)' are incompatible between these types. + Type 'Promise>' is not assignable to type 'Promise>'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(22,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterable'. Type 'AsyncGenerator' is not assignable to type 'AsyncIterable'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(25,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterable'. - Type 'AsyncGenerator' is not assignable to type 'AsyncIterable'. - Types of property '[Symbol.asyncIterator]' are incompatible. - Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterator'. - Type 'AsyncGenerator' is not assignable to type 'AsyncIterator'. - Types of property 'next' are incompatible. - Type '(...args: [] | [unknown]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. - Type 'Promise>' is not assignable to type 'Promise>'. + Call signature return types 'AsyncGenerator' and 'AsyncIterable' are incompatible. + The types returned by '[Symbol.asyncIterator]().next(...)' are incompatible between these types. + Type 'Promise>' is not assignable to type 'Promise>'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(28,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterator'. Type 'AsyncGenerator' is not assignable to type 'AsyncIterator'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(31,7): error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterator'. @@ -52,10 +42,9 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(64,42): error TS2741: Property '[Symbol.iterator]' is missing in type 'AsyncGenerator' but required in type 'IterableIterator'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(67,42): error TS2741: Property '[Symbol.iterator]' is missing in type 'AsyncGenerator' but required in type 'Iterable'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(70,42): error TS2322: Type 'AsyncGenerator' is not assignable to type 'Iterator'. - Types of property 'next' are incompatible. - Type '(...args: [] | [undefined]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. - Type 'Promise>' is not assignable to type 'IteratorResult'. - Property 'value' is missing in type 'Promise>' but required in type 'IteratorYieldResult'. + The types returned by 'next(...)' are incompatible between these types. + Type 'Promise>' is not assignable to type 'IteratorResult'. + Property 'value' is missing in type 'Promise>' but required in type 'IteratorYieldResult'. tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts(74,12): error TS2504: Type '{}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator. @@ -77,14 +66,13 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( const assignability1: () => AsyncIterableIterator = async function * () { ~~~~~~~~~~~~~~ !!! error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterableIterator'. -!!! error TS2322: Type 'AsyncGenerator' is not assignable to type 'AsyncIterableIterator'. -!!! error TS2322: Types of property 'next' are incompatible. -!!! error TS2322: Type '(...args: [] | [undefined]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. -!!! error TS2322: Type 'Promise>' is not assignable to type 'Promise>'. -!!! error TS2322: Type 'IteratorResult' is not assignable to type 'IteratorResult'. -!!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. -!!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. -!!! error TS2322: Type 'string' is not assignable to type 'number'. +!!! error TS2322: Call signature return types 'AsyncGenerator' and 'AsyncIterableIterator' are incompatible. +!!! error TS2322: The types returned by 'next(...)' are incompatible between these types. +!!! error TS2322: Type 'Promise>' is not assignable to type 'Promise>'. +!!! error TS2322: Type 'IteratorResult' is not assignable to type 'IteratorResult'. +!!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorResult'. +!!! error TS2322: Type 'IteratorYieldResult' is not assignable to type 'IteratorYieldResult'. +!!! error TS2322: Type 'string' is not assignable to type 'number'. yield "a"; }; const assignability2: () => AsyncIterableIterator = async function * () { @@ -96,22 +84,17 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( const assignability3: () => AsyncIterableIterator = async function * () { ~~~~~~~~~~~~~~ !!! error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterableIterator'. -!!! error TS2322: Type 'AsyncGenerator' is not assignable to type 'AsyncIterableIterator'. -!!! error TS2322: Types of property 'next' are incompatible. -!!! error TS2322: Type '(...args: [] | [unknown]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. -!!! error TS2322: Type 'Promise>' is not assignable to type 'Promise>'. +!!! error TS2322: Call signature return types 'AsyncGenerator' and 'AsyncIterableIterator' are incompatible. +!!! error TS2322: The types returned by 'next(...)' are incompatible between these types. +!!! error TS2322: Type 'Promise>' is not assignable to type 'Promise>'. yield* (async function * () { yield "a"; })(); }; const assignability4: () => AsyncIterable = async function * () { ~~~~~~~~~~~~~~ !!! error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterable'. -!!! error TS2322: Type 'AsyncGenerator' is not assignable to type 'AsyncIterable'. -!!! error TS2322: Types of property '[Symbol.asyncIterator]' are incompatible. -!!! error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterator'. -!!! error TS2322: Type 'AsyncGenerator' is not assignable to type 'AsyncIterator'. -!!! error TS2322: Types of property 'next' are incompatible. -!!! error TS2322: Type '(...args: [] | [undefined]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. -!!! error TS2322: Type 'Promise>' is not assignable to type 'Promise>'. +!!! error TS2322: Call signature return types 'AsyncGenerator' and 'AsyncIterable' are incompatible. +!!! error TS2322: The types returned by '[Symbol.asyncIterator]().next(...)' are incompatible between these types. +!!! error TS2322: Type 'Promise>' is not assignable to type 'Promise>'. yield "a"; }; const assignability5: () => AsyncIterable = async function * () { @@ -123,13 +106,9 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( const assignability6: () => AsyncIterable = async function * () { ~~~~~~~~~~~~~~ !!! error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterable'. -!!! error TS2322: Type 'AsyncGenerator' is not assignable to type 'AsyncIterable'. -!!! error TS2322: Types of property '[Symbol.asyncIterator]' are incompatible. -!!! error TS2322: Type '() => AsyncGenerator' is not assignable to type '() => AsyncIterator'. -!!! error TS2322: Type 'AsyncGenerator' is not assignable to type 'AsyncIterator'. -!!! error TS2322: Types of property 'next' are incompatible. -!!! error TS2322: Type '(...args: [] | [unknown]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => Promise>'. -!!! error TS2322: Type 'Promise>' is not assignable to type 'Promise>'. +!!! error TS2322: Call signature return types 'AsyncGenerator' and 'AsyncIterable' are incompatible. +!!! error TS2322: The types returned by '[Symbol.asyncIterator]().next(...)' are incompatible between these types. +!!! error TS2322: Type 'Promise>' is not assignable to type 'Promise>'. yield* (async function * () { yield "a"; })(); }; const assignability7: () => AsyncIterator = async function * () { @@ -210,10 +189,9 @@ tests/cases/conformance/types/asyncGenerators/types.asyncGenerators.es2018.2.ts( async function * explicitReturnType12(): Iterator { ~~~~~~~~~~~~~~~~ !!! error TS2322: Type 'AsyncGenerator' is not assignable to type 'Iterator'. -!!! error TS2322: Types of property 'next' are incompatible. -!!! error TS2322: Type '(...args: [] | [undefined]) => Promise>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult'. -!!! error TS2322: Type 'Promise>' is not assignable to type 'IteratorResult'. -!!! error TS2322: Property 'value' is missing in type 'Promise>' but required in type 'IteratorYieldResult'. +!!! error TS2322: The types returned by 'next(...)' are incompatible between these types. +!!! error TS2322: Type 'Promise>' is not assignable to type 'IteratorResult'. +!!! error TS2322: Property 'value' is missing in type 'Promise>' but required in type 'IteratorYieldResult'. !!! related TS2728 /.ts/lib.es2015.iterable.d.ts:33:5: 'value' is declared here. yield 1; } diff --git a/tests/cases/compiler/deeplyNestedAssignabilityErrorsCombined.ts b/tests/cases/compiler/deeplyNestedAssignabilityErrorsCombined.ts new file mode 100644 index 00000000000..d802c707830 --- /dev/null +++ b/tests/cases/compiler/deeplyNestedAssignabilityErrorsCombined.ts @@ -0,0 +1,15 @@ +let x = { a: { b: { c: { d: { e: { f() { return { g: "hello" }; } } } } } } }; +let y = { a: { b: { c: { d: { e: { f() { return { g: 12345 }; } } } } } } }; +x = y; + +class Ctor1 { + g = "ok" +} + +class Ctor2 { + g = 12; +} + +let x2 = { a: { b: { c: { d: { e: { f: Ctor1 } } } } } }; +let y2 = { a: { b: { c: { d: { e: { f: Ctor2 } } } } } }; +x2 = y2; \ No newline at end of file diff --git a/tests/cases/compiler/nestedCallbackErrorNotFlattened.ts b/tests/cases/compiler/nestedCallbackErrorNotFlattened.ts new file mode 100644 index 00000000000..76a1fabdf6e --- /dev/null +++ b/tests/cases/compiler/nestedCallbackErrorNotFlattened.ts @@ -0,0 +1,7 @@ +// @strict: true +type Cb = {noAlias: () => T}["noAlias"]; // `"noAlias"` here prevents an alias symbol from being made +// which means the comparison will definitely be structural, rather than by variance + +declare const x: Cb>>>; // one more layer of `Cb` adn we'd get a `true` from the deeply-nested symbol check +declare let y: Cb>>>; +y = x; \ No newline at end of file From 367b82055cf231948901e472cb3531450a8e0d70 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 23 Sep 2019 16:52:03 -0700 Subject: [PATCH 144/159] =?UTF-8?q?Hoist=20and=20distribute=20type=20param?= =?UTF-8?q?eter=20constraints=20over=20type=20parameters=20=E2=80=A6=20(#3?= =?UTF-8?q?3453)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Hoist and distribute type parameter constraints over type parameters when comparing against union targets when fetching union constraints * Fix PR nits --- src/compiler/checker.ts | 26 ++++++++---- ...intersectionWithUnionConstraint.errors.txt | 40 +++++-------------- .../keyofAndIndexedAccessErrors.errors.txt | 8 ---- ...ameterExtendsUnionConstraintDistributed.js | 11 +++++ ...rExtendsUnionConstraintDistributed.symbols | 32 +++++++++++++++ ...terExtendsUnionConstraintDistributed.types | 17 ++++++++ ...ameterExtendsUnionConstraintDistributed.ts | 5 +++ 7 files changed, 93 insertions(+), 46 deletions(-) create mode 100644 tests/baselines/reference/typeParameterExtendsUnionConstraintDistributed.js create mode 100644 tests/baselines/reference/typeParameterExtendsUnionConstraintDistributed.symbols create mode 100644 tests/baselines/reference/typeParameterExtendsUnionConstraintDistributed.types create mode 100644 tests/cases/conformance/jsdoc/typeParameterExtendsUnionConstraintDistributed.ts diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index de5c3b5b358..b3f88661a8c 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -7965,10 +7965,10 @@ namespace ts { return hasNonCircularBaseConstraint(type) ? getConstraintFromConditionalType(type) : undefined; } - function getUnionConstraintOfIntersection(type: IntersectionType, targetIsUnion: boolean) { + function getEffectiveConstraintOfIntersection(types: readonly Type[], targetIsUnion: boolean) { let constraints: Type[] | undefined; let hasDisjointDomainType = false; - for (const t of type.types) { + for (const t of types) { if (t.flags & TypeFlags.Instantiable) { // We keep following constraints as long as we have an instantiable type that is known // not to be circular or infinite (hence we stop on index access types). @@ -7978,6 +7978,9 @@ namespace ts { } if (constraint) { constraints = append(constraints, constraint); + if (targetIsUnion) { + constraints = append(constraints, t); + } } } else if (t.flags & TypeFlags.DisjointDomains) { @@ -7990,7 +7993,7 @@ namespace ts { if (hasDisjointDomainType) { // We add any types belong to one of the disjoint domains because they might cause the final // intersection operation to reduce the union constraints. - for (const t of type.types) { + for (const t of types) { if (t.flags & TypeFlags.DisjointDomains) { constraints = append(constraints, t); } @@ -13089,7 +13092,7 @@ namespace ts { } } } - if (!result && source.flags & TypeFlags.Intersection) { + if (!result && source.flags & (TypeFlags.Intersection | TypeFlags.TypeParameter)) { // The combined constraint of an intersection type is the intersection of the constraints of // the constituents. When an intersection type contains instantiable types with union type // constraints, there are situations where we need to examine the combined constraint. One is @@ -13099,10 +13102,17 @@ namespace ts { // we need to check this constraint against a union on the target side. Also, given a type // variable V constrained to 'string | number', 'V & number' has a combined constraint of // 'string & number | number & number' which reduces to just 'number'. - const constraint = getUnionConstraintOfIntersection(source, !!(target.flags & TypeFlags.Union)); - if (constraint) { - if (result = isRelatedTo(constraint, target, reportErrors, /*headMessage*/ undefined, isIntersectionConstituent)) { - resetErrorInfo(saveErrorInfo); + // This also handles type parameters, as a type parameter with a union constraint compared against a union + // needs to have its constraint hoisted into an intersection with said type parameter, this way + // the type param can be compared with itself in the target (with the influence of its constraint to match other parts) + // For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)` + const constraint = getEffectiveConstraintOfIntersection(source.flags & TypeFlags.Intersection ? (source).types: [source], !!(target.flags & TypeFlags.Union)); + if (constraint && (source.flags & TypeFlags.Intersection || target.flags & TypeFlags.Union)) { + if (everyType(constraint, c => c !== source)) { // Skip comparison if expansion contains the source itself + // TODO: Stack errors so we get a pyramid for the "normal" comparison above, _and_ a second for this + if (result = isRelatedTo(constraint, target, /*reportErrors*/ false, /*headMessage*/ undefined, isIntersectionConstituent)) { + resetErrorInfo(saveErrorInfo); + } } } } diff --git a/tests/baselines/reference/intersectionWithUnionConstraint.errors.txt b/tests/baselines/reference/intersectionWithUnionConstraint.errors.txt index 97ed1cf4895..7bc436915a1 100644 --- a/tests/baselines/reference/intersectionWithUnionConstraint.errors.txt +++ b/tests/baselines/reference/intersectionWithUnionConstraint.errors.txt @@ -1,23 +1,13 @@ tests/cases/conformance/types/intersection/intersectionWithUnionConstraint.ts(7,9): error TS2322: Type 'T & U' is not assignable to type 'string | number'. - Type 'string | undefined' is not assignable to type 'string | number'. - Type 'undefined' is not assignable to type 'string | number'. - Type 'T & U' is not assignable to type 'number'. + Type 'T & U' is not assignable to type 'number'. tests/cases/conformance/types/intersection/intersectionWithUnionConstraint.ts(8,9): error TS2322: Type 'T & U' is not assignable to type 'string | null'. - Type 'string | undefined' is not assignable to type 'string | null'. - Type 'undefined' is not assignable to type 'string | null'. - Type 'T & U' is not assignable to type 'string'. + Type 'T & U' is not assignable to type 'string'. tests/cases/conformance/types/intersection/intersectionWithUnionConstraint.ts(10,9): error TS2322: Type 'T & U' is not assignable to type 'number | null'. - Type 'string | undefined' is not assignable to type 'number | null'. - Type 'undefined' is not assignable to type 'number | null'. - Type 'T & U' is not assignable to type 'number'. + Type 'T & U' is not assignable to type 'number'. tests/cases/conformance/types/intersection/intersectionWithUnionConstraint.ts(11,9): error TS2322: Type 'T & U' is not assignable to type 'number | undefined'. - Type 'string | undefined' is not assignable to type 'number | undefined'. - Type 'string' is not assignable to type 'number | undefined'. - Type 'T & U' is not assignable to type 'number'. + Type 'T & U' is not assignable to type 'number'. tests/cases/conformance/types/intersection/intersectionWithUnionConstraint.ts(12,9): error TS2322: Type 'T & U' is not assignable to type 'null | undefined'. - Type 'string | undefined' is not assignable to type 'null | undefined'. - Type 'string' is not assignable to type 'null | undefined'. - Type 'T & U' is not assignable to type 'null'. + Type 'T & U' is not assignable to type 'null'. ==== tests/cases/conformance/types/intersection/intersectionWithUnionConstraint.ts (5 errors) ==== @@ -30,34 +20,24 @@ tests/cases/conformance/types/intersection/intersectionWithUnionConstraint.ts(12 let y1: string | number = x; // Error ~~ !!! error TS2322: Type 'T & U' is not assignable to type 'string | number'. -!!! error TS2322: Type 'string | undefined' is not assignable to type 'string | number'. -!!! error TS2322: Type 'undefined' is not assignable to type 'string | number'. -!!! error TS2322: Type 'T & U' is not assignable to type 'number'. +!!! error TS2322: Type 'T & U' is not assignable to type 'number'. let y2: string | null = x; // Error ~~ !!! error TS2322: Type 'T & U' is not assignable to type 'string | null'. -!!! error TS2322: Type 'string | undefined' is not assignable to type 'string | null'. -!!! error TS2322: Type 'undefined' is not assignable to type 'string | null'. -!!! error TS2322: Type 'T & U' is not assignable to type 'string'. +!!! error TS2322: Type 'T & U' is not assignable to type 'string'. let y3: string | undefined = x; let y4: number | null = x; // Error ~~ !!! error TS2322: Type 'T & U' is not assignable to type 'number | null'. -!!! error TS2322: Type 'string | undefined' is not assignable to type 'number | null'. -!!! error TS2322: Type 'undefined' is not assignable to type 'number | null'. -!!! error TS2322: Type 'T & U' is not assignable to type 'number'. +!!! error TS2322: Type 'T & U' is not assignable to type 'number'. let y5: number | undefined = x; // Error ~~ !!! error TS2322: Type 'T & U' is not assignable to type 'number | undefined'. -!!! error TS2322: Type 'string | undefined' is not assignable to type 'number | undefined'. -!!! error TS2322: Type 'string' is not assignable to type 'number | undefined'. -!!! error TS2322: Type 'T & U' is not assignable to type 'number'. +!!! error TS2322: Type 'T & U' is not assignable to type 'number'. let y6: null | undefined = x; // Error ~~ !!! error TS2322: Type 'T & U' is not assignable to type 'null | undefined'. -!!! error TS2322: Type 'string | undefined' is not assignable to type 'null | undefined'. -!!! error TS2322: Type 'string' is not assignable to type 'null | undefined'. -!!! error TS2322: Type 'T & U' is not assignable to type 'null'. +!!! error TS2322: Type 'T & U' is not assignable to type 'null'. } type T1 = (string | number | undefined) & (string | null | undefined); // string | undefined diff --git a/tests/baselines/reference/keyofAndIndexedAccessErrors.errors.txt b/tests/baselines/reference/keyofAndIndexedAccessErrors.errors.txt index 69f992447e8..bb628d4f4fb 100644 --- a/tests/baselines/reference/keyofAndIndexedAccessErrors.errors.txt +++ b/tests/baselines/reference/keyofAndIndexedAccessErrors.errors.txt @@ -48,8 +48,6 @@ tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(103,9): error 'string & keyof T' is assignable to the constraint of type 'K', but 'K' could be instantiated with a different subtype of constraint 'string'. Type 'string' is not assignable to type 'K'. 'string' is assignable to the constraint of type 'K', but 'K' could be instantiated with a different subtype of constraint 'string'. - Type 'string' is not assignable to type 'K'. - 'string' is assignable to the constraint of type 'K', but 'K' could be instantiated with a different subtype of constraint 'string'. tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(105,9): error TS2322: Type 'T[Extract]' is not assignable to type 'T[K]'. Type 'Extract' is not assignable to type 'K'. 'Extract' is assignable to the constraint of type 'K', but 'K' could be instantiated with a different subtype of constraint 'string'. @@ -68,8 +66,6 @@ tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(114,5): error 'string & keyof T' is assignable to the constraint of type 'J', but 'J' could be instantiated with a different subtype of constraint 'string'. Type 'string' is not assignable to type 'J'. 'string' is assignable to the constraint of type 'J', but 'J' could be instantiated with a different subtype of constraint 'string'. - Type 'string' is not assignable to type 'J'. - 'string' is assignable to the constraint of type 'J', but 'J' could be instantiated with a different subtype of constraint 'string'. tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(117,5): error TS2322: Type 'T[K]' is not assignable to type 'U[J]'. Type 'T' is not assignable to type 'U'. 'T' is assignable to the constraint of type 'U', but 'U' could be instantiated with a different subtype of constraint '{}'. @@ -264,8 +260,6 @@ tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(142,5): error !!! error TS2322: 'string & keyof T' is assignable to the constraint of type 'K', but 'K' could be instantiated with a different subtype of constraint 'string'. !!! error TS2322: Type 'string' is not assignable to type 'K'. !!! error TS2322: 'string' is assignable to the constraint of type 'K', but 'K' could be instantiated with a different subtype of constraint 'string'. -!!! error TS2322: Type 'string' is not assignable to type 'K'. -!!! error TS2322: 'string' is assignable to the constraint of type 'K', but 'K' could be instantiated with a different subtype of constraint 'string'. t[key] = tk; // ok, T[K] ==> T[keyof T] tk = t[key]; // error, T[keyof T] =/=> T[K] ~~ @@ -299,8 +293,6 @@ tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(142,5): error !!! error TS2322: 'string & keyof T' is assignable to the constraint of type 'J', but 'J' could be instantiated with a different subtype of constraint 'string'. !!! error TS2322: Type 'string' is not assignable to type 'J'. !!! error TS2322: 'string' is assignable to the constraint of type 'J', but 'J' could be instantiated with a different subtype of constraint 'string'. -!!! error TS2322: Type 'string' is not assignable to type 'J'. -!!! error TS2322: 'string' is assignable to the constraint of type 'J', but 'J' could be instantiated with a different subtype of constraint 'string'. tk = uj; uj = tk; // error diff --git a/tests/baselines/reference/typeParameterExtendsUnionConstraintDistributed.js b/tests/baselines/reference/typeParameterExtendsUnionConstraintDistributed.js new file mode 100644 index 00000000000..ea8ac927061 --- /dev/null +++ b/tests/baselines/reference/typeParameterExtendsUnionConstraintDistributed.js @@ -0,0 +1,11 @@ +//// [typeParameterExtendsUnionConstraintDistributed.ts] +type A = 1 | 2; +function f(a: T): A & T { return a; } // Shouldn't error + +type B = 2 | 3; +function f2(ab: T & U): (A | B) & T & U { return ab; } // Also shouldn't error + + +//// [typeParameterExtendsUnionConstraintDistributed.js] +function f(a) { return a; } // Shouldn't error +function f2(ab) { return ab; } // Also shouldn't error diff --git a/tests/baselines/reference/typeParameterExtendsUnionConstraintDistributed.symbols b/tests/baselines/reference/typeParameterExtendsUnionConstraintDistributed.symbols new file mode 100644 index 00000000000..2d47ed96e14 --- /dev/null +++ b/tests/baselines/reference/typeParameterExtendsUnionConstraintDistributed.symbols @@ -0,0 +1,32 @@ +=== tests/cases/conformance/jsdoc/typeParameterExtendsUnionConstraintDistributed.ts === +type A = 1 | 2; +>A : Symbol(A, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 0, 0)) + +function f(a: T): A & T { return a; } // Shouldn't error +>f : Symbol(f, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 0, 15)) +>T : Symbol(T, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 1, 11)) +>A : Symbol(A, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 0, 0)) +>a : Symbol(a, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 1, 24)) +>T : Symbol(T, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 1, 11)) +>A : Symbol(A, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 0, 0)) +>T : Symbol(T, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 1, 11)) +>a : Symbol(a, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 1, 24)) + +type B = 2 | 3; +>B : Symbol(B, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 1, 50)) + +function f2(ab: T & U): (A | B) & T & U { return ab; } // Also shouldn't error +>f2 : Symbol(f2, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 3, 15)) +>T : Symbol(T, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 4, 12)) +>A : Symbol(A, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 0, 0)) +>U : Symbol(U, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 4, 24)) +>B : Symbol(B, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 1, 50)) +>ab : Symbol(ab, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 4, 38)) +>T : Symbol(T, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 4, 12)) +>U : Symbol(U, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 4, 24)) +>A : Symbol(A, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 0, 0)) +>B : Symbol(B, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 1, 50)) +>T : Symbol(T, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 4, 12)) +>U : Symbol(U, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 4, 24)) +>ab : Symbol(ab, Decl(typeParameterExtendsUnionConstraintDistributed.ts, 4, 38)) + diff --git a/tests/baselines/reference/typeParameterExtendsUnionConstraintDistributed.types b/tests/baselines/reference/typeParameterExtendsUnionConstraintDistributed.types new file mode 100644 index 00000000000..4e81c9728c4 --- /dev/null +++ b/tests/baselines/reference/typeParameterExtendsUnionConstraintDistributed.types @@ -0,0 +1,17 @@ +=== tests/cases/conformance/jsdoc/typeParameterExtendsUnionConstraintDistributed.ts === +type A = 1 | 2; +>A : A + +function f(a: T): A & T { return a; } // Shouldn't error +>f : (a: T) => (1 & T) | (2 & T) +>a : T +>a : T + +type B = 2 | 3; +>B : B + +function f2(ab: T & U): (A | B) & T & U { return ab; } // Also shouldn't error +>f2 : (ab: T & U) => (1 & T & U) | (2 & T & U) | (3 & T & U) +>ab : T & U +>ab : T & U + diff --git a/tests/cases/conformance/jsdoc/typeParameterExtendsUnionConstraintDistributed.ts b/tests/cases/conformance/jsdoc/typeParameterExtendsUnionConstraintDistributed.ts new file mode 100644 index 00000000000..2a87bb3ccaa --- /dev/null +++ b/tests/cases/conformance/jsdoc/typeParameterExtendsUnionConstraintDistributed.ts @@ -0,0 +1,5 @@ +type A = 1 | 2; +function f(a: T): A & T { return a; } // Shouldn't error + +type B = 2 | 3; +function f2(ab: T & U): (A | B) & T & U { return ab; } // Also shouldn't error From 00a43d7b49cc3b067a33c44f6e953a9d73b9e904 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 23 Sep 2019 16:55:19 -0700 Subject: [PATCH 145/159] Cache propagating variance flags in the relationship cache (#32225) * Cache propagating variance flags in the relationship cache * Convert base fields in relation comparison result to flags --- src/compiler/checker.ts | 58 +++++++------- src/compiler/types.ts | 10 ++- ...eRepeatedlyPropegatesWithUnreliableFlag.js | 25 ++++++ ...atedlyPropegatesWithUnreliableFlag.symbols | 77 +++++++++++++++++++ ...peatedlyPropegatesWithUnreliableFlag.types | 51 ++++++++++++ ...eRepeatedlyPropegatesWithUnreliableFlag.ts | 17 ++++ 6 files changed, 206 insertions(+), 32 deletions(-) create mode 100644 tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.js create mode 100644 tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.symbols create mode 100644 tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.types create mode 100644 tests/cases/compiler/varianceRepeatedlyPropegatesWithUnreliableFlag.ts diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index b3f88661a8c..fdd3cac69b4 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -12561,12 +12561,12 @@ namespace ts { return true; } const id = getSymbolId(sourceSymbol) + "," + getSymbolId(targetSymbol); - const relation = enumRelation.get(id); - if (relation !== undefined && !(relation === RelationComparisonResult.Failed && errorReporter)) { - return relation === RelationComparisonResult.Succeeded; + const entry = enumRelation.get(id); + if (entry !== undefined && !(!(entry & RelationComparisonResult.Reported) && entry & RelationComparisonResult.Failed && errorReporter)) { + return !!(entry & RelationComparisonResult.Succeeded); } if (sourceSymbol.escapedName !== targetSymbol.escapedName || !(sourceSymbol.flags & SymbolFlags.RegularEnum) || !(targetSymbol.flags & SymbolFlags.RegularEnum)) { - enumRelation.set(id, RelationComparisonResult.FailedAndReported); + enumRelation.set(id, RelationComparisonResult.Failed | RelationComparisonResult.Reported); return false; } const targetEnumType = getTypeOfSymbol(targetSymbol); @@ -12577,7 +12577,7 @@ namespace ts { if (errorReporter) { errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(property), typeToString(getDeclaredTypeOfSymbol(targetSymbol), /*enclosingDeclaration*/ undefined, TypeFormatFlags.UseFullyQualifiedType)); - enumRelation.set(id, RelationComparisonResult.FailedAndReported); + enumRelation.set(id, RelationComparisonResult.Failed | RelationComparisonResult.Reported); } else { enumRelation.set(id, RelationComparisonResult.Failed); @@ -12642,7 +12642,7 @@ namespace ts { if (source.flags & TypeFlags.Object && target.flags & TypeFlags.Object) { const related = relation.get(getRelationKey(source, target, relation)); if (related !== undefined) { - return related === RelationComparisonResult.Succeeded; + return !!(related & RelationComparisonResult.Succeeded); } } if (source.flags & TypeFlags.StructuredOrInstantiable || target.flags & TypeFlags.StructuredOrInstantiable) { @@ -13463,18 +13463,6 @@ namespace ts { return result; } - function propagateSidebandVarianceFlags(typeArguments: readonly Type[], variances: VarianceFlags[]) { - for (let i = 0; i < variances.length; i++) { - const v = variances[i]; - if (v & VarianceFlags.Unmeasurable) { - instantiateType(typeArguments[i], reportUnmeasurableMarkers); - } - if (v & VarianceFlags.Unreliable) { - instantiateType(typeArguments[i], reportUnreliableMarkers); - } - } - } - // Determine if possibly recursive types are related. First, check if the result is already available in the global cache. // Second, check if we have already started a comparison of the given two types in which case we assume the result to be true. // Third, check if both types are part of deeply nested chains of generic type instantiations and if so assume the types are @@ -13485,24 +13473,24 @@ namespace ts { return Ternary.False; } const id = getRelationKey(source, target, relation); - const related = relation.get(id); - if (related !== undefined) { - if (reportErrors && related === RelationComparisonResult.Failed) { + const entry = relation.get(id); + if (entry !== undefined) { + if (reportErrors && entry & RelationComparisonResult.Failed && !(entry & RelationComparisonResult.Reported)) { // We are elaborating errors and the cached result is an unreported failure. The result will be reported // as a failure, and should be updated as a reported failure by the bottom of this function. } else { if (outofbandVarianceMarkerHandler) { // We're in the middle of variance checking - integrate any unmeasurable/unreliable flags from this cached component - if (source.flags & (TypeFlags.Object | TypeFlags.Conditional) && source.aliasSymbol && - source.aliasTypeArguments && source.aliasSymbol === target.aliasSymbol) { - propagateSidebandVarianceFlags(source.aliasTypeArguments, getAliasVariances(source.aliasSymbol)); + const saved = entry & RelationComparisonResult.ReportsMask; + if (saved & RelationComparisonResult.ReportsUnmeasurable) { + instantiateType(source, reportUnmeasurableMarkers); } - if (getObjectFlags(source) & ObjectFlags.Reference && getObjectFlags(target) & ObjectFlags.Reference && (source).target === (target).target && length((source).typeArguments)) { - propagateSidebandVarianceFlags((source).typeArguments!, getVariances((source).target)); + if (saved & RelationComparisonResult.ReportsUnreliable) { + instantiateType(source, reportUnreliableMarkers); } } - return related === RelationComparisonResult.Succeeded ? Ternary.True : Ternary.False; + return entry & RelationComparisonResult.Succeeded ? Ternary.True : Ternary.False; } } if (!maybeKeys) { @@ -13531,14 +13519,26 @@ namespace ts { const saveExpandingFlags = expandingFlags; if (!(expandingFlags & ExpandingFlags.Source) && isDeeplyNestedType(source, sourceStack, depth)) expandingFlags |= ExpandingFlags.Source; if (!(expandingFlags & ExpandingFlags.Target) && isDeeplyNestedType(target, targetStack, depth)) expandingFlags |= ExpandingFlags.Target; + let originalHandler: typeof outofbandVarianceMarkerHandler; + let propagatingVarianceFlags: RelationComparisonResult = 0; + if (outofbandVarianceMarkerHandler) { + originalHandler = outofbandVarianceMarkerHandler; + outofbandVarianceMarkerHandler = onlyUnreliable => { + propagatingVarianceFlags |= onlyUnreliable ? RelationComparisonResult.ReportsUnreliable : RelationComparisonResult.ReportsUnmeasurable; + return originalHandler!(onlyUnreliable); + }; + } const result = expandingFlags !== ExpandingFlags.Both ? structuredTypeRelatedTo(source, target, reportErrors, isIntersectionConstituent) : Ternary.Maybe; + if (outofbandVarianceMarkerHandler) { + outofbandVarianceMarkerHandler = originalHandler; + } expandingFlags = saveExpandingFlags; depth--; if (result) { if (result === Ternary.True || depth === 0) { // If result is definitely true, record all maybe keys as having succeeded for (let i = maybeStart; i < maybeCount; i++) { - relation.set(maybeKeys[i], RelationComparisonResult.Succeeded); + relation.set(maybeKeys[i], RelationComparisonResult.Succeeded | propagatingVarianceFlags); } maybeCount = maybeStart; } @@ -13546,7 +13546,7 @@ namespace ts { else { // A false result goes straight into global cache (when something is false under // assumptions it will also be false without assumptions) - relation.set(id, reportErrors ? RelationComparisonResult.FailedAndReported : RelationComparisonResult.Failed); + relation.set(id, (reportErrors ? RelationComparisonResult.Reported : 0) | RelationComparisonResult.Failed | propagatingVarianceFlags); maybeCount = maybeStart; } return result; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index eb568ed5cff..76bc461d878 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -614,9 +614,13 @@ namespace ts { /* @internal */ export const enum RelationComparisonResult { - Succeeded = 1, // Should be truthy - Failed = 2, - FailedAndReported = 3 + Succeeded = 1 << 0, // Should be truthy + Failed = 1 << 1, + Reported = 1 << 2, + + ReportsUnmeasurable = 1 << 3, + ReportsUnreliable = 1 << 4, + ReportsMask = ReportsUnmeasurable | ReportsUnreliable } export interface Node extends TextRange { diff --git a/tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.js b/tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.js new file mode 100644 index 00000000000..73062e82014 --- /dev/null +++ b/tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.js @@ -0,0 +1,25 @@ +//// [varianceRepeatedlyPropegatesWithUnreliableFlag.ts] +type A = { a: number }; +type B = { b: number }; +type X = ({ [K in keyof T]: T[K] } & Record)[keyof T]; +type P1 = { data: X }; +type P2 = { data: X }; + +interface I { + fn(p1: P1>, p2: P2>): void; +} + +const i: I = null as any; +const p2: P2 = null as any; + +// Commenting out the below line will remove the error on the `const _i: I = i;` +i.fn(null as any, p2); + +const _i: I = i; + +//// [varianceRepeatedlyPropegatesWithUnreliableFlag.js] +var i = null; +var p2 = null; +// Commenting out the below line will remove the error on the `const _i: I = i;` +i.fn(null, p2); +var _i = i; diff --git a/tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.symbols b/tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.symbols new file mode 100644 index 00000000000..b2e1f46f1e8 --- /dev/null +++ b/tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.symbols @@ -0,0 +1,77 @@ +=== tests/cases/compiler/varianceRepeatedlyPropegatesWithUnreliableFlag.ts === +type A = { a: number }; +>A : Symbol(A, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 0, 0)) +>a : Symbol(a, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 0, 10)) + +type B = { b: number }; +>B : Symbol(B, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 0, 23)) +>b : Symbol(b, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 1, 10)) + +type X = ({ [K in keyof T]: T[K] } & Record)[keyof T]; +>X : Symbol(X, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 1, 23)) +>T : Symbol(T, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 2, 7)) +>K : Symbol(K, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 2, 16)) +>T : Symbol(T, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 2, 7)) +>T : Symbol(T, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 2, 7)) +>K : Symbol(K, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 2, 16)) +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 2, 7)) + +type P1 = { data: X }; +>P1 : Symbol(P1, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 2, 71)) +>T : Symbol(T, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 3, 8)) +>data : Symbol(data, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 3, 14)) +>X : Symbol(X, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 1, 23)) +>T : Symbol(T, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 3, 8)) + +type P2 = { data: X }; +>P2 : Symbol(P2, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 3, 28)) +>T : Symbol(T, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 4, 8)) +>data : Symbol(data, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 4, 14)) +>X : Symbol(X, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 1, 23)) +>T : Symbol(T, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 4, 8)) + +interface I { +>I : Symbol(I, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 4, 28)) +>T : Symbol(T, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 6, 12)) + + fn(p1: P1>, p2: P2>): void; +>fn : Symbol(I.fn, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 6, 16)) +>K : Symbol(K, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 7, 7)) +>T : Symbol(T, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 6, 12)) +>p1 : Symbol(p1, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 7, 26)) +>P1 : Symbol(P1, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 2, 71)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 6, 12)) +>K : Symbol(K, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 7, 7)) +>p2 : Symbol(p2, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 7, 45)) +>P2 : Symbol(P2, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 3, 28)) +>Pick : Symbol(Pick, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 6, 12)) +>K : Symbol(K, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 7, 7)) +} + +const i: I = null as any; +>i : Symbol(i, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 10, 5)) +>I : Symbol(I, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 4, 28)) +>A : Symbol(A, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 0, 0)) +>B : Symbol(B, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 0, 23)) + +const p2: P2 = null as any; +>p2 : Symbol(p2, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 11, 5)) +>P2 : Symbol(P2, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 3, 28)) +>A : Symbol(A, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 0, 0)) + +// Commenting out the below line will remove the error on the `const _i: I = i;` +i.fn(null as any, p2); +>i.fn : Symbol(I.fn, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 6, 16)) +>i : Symbol(i, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 10, 5)) +>fn : Symbol(I.fn, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 6, 16)) +>p2 : Symbol(p2, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 11, 5)) + +const _i: I = i; +>_i : Symbol(_i, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 16, 5)) +>I : Symbol(I, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 4, 28)) +>A : Symbol(A, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 0, 0)) +>i : Symbol(i, Decl(varianceRepeatedlyPropegatesWithUnreliableFlag.ts, 10, 5)) + diff --git a/tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.types b/tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.types new file mode 100644 index 00000000000..82bf01d05d9 --- /dev/null +++ b/tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.types @@ -0,0 +1,51 @@ +=== tests/cases/compiler/varianceRepeatedlyPropegatesWithUnreliableFlag.ts === +type A = { a: number }; +>A : A +>a : number + +type B = { b: number }; +>B : B +>b : number + +type X = ({ [K in keyof T]: T[K] } & Record)[keyof T]; +>X : ({ [K in keyof T]: T[K]; } & Record)[keyof T] + +type P1 = { data: X }; +>P1 : P1 +>data : ({ [K in keyof T]: T[K]; } & Record)[keyof T] + +type P2 = { data: X }; +>P2 : P2 +>data : ({ [K in keyof T]: T[K]; } & Record)[keyof T] + +interface I { + fn(p1: P1>, p2: P2>): void; +>fn : (p1: P1>, p2: P2>) => void +>p1 : P1> +>p2 : P2> +} + +const i: I = null as any; +>i : I +>null as any : any +>null : null + +const p2: P2 = null as any; +>p2 : P2 +>null as any : any +>null : null + +// Commenting out the below line will remove the error on the `const _i: I = i;` +i.fn(null as any, p2); +>i.fn(null as any, p2) : void +>i.fn : (p1: P1>, p2: P2>) => void +>i : I +>fn : (p1: P1>, p2: P2>) => void +>null as any : any +>null : null +>p2 : P2 + +const _i: I = i; +>_i : I +>i : I + diff --git a/tests/cases/compiler/varianceRepeatedlyPropegatesWithUnreliableFlag.ts b/tests/cases/compiler/varianceRepeatedlyPropegatesWithUnreliableFlag.ts new file mode 100644 index 00000000000..03cdaee0e9d --- /dev/null +++ b/tests/cases/compiler/varianceRepeatedlyPropegatesWithUnreliableFlag.ts @@ -0,0 +1,17 @@ +type A = { a: number }; +type B = { b: number }; +type X = ({ [K in keyof T]: T[K] } & Record)[keyof T]; +type P1 = { data: X }; +type P2 = { data: X }; + +interface I { + fn(p1: P1>, p2: P2>): void; +} + +const i: I = null as any; +const p2: P2 = null as any; + +// Commenting out the below line will remove the error on the `const _i: I = i;` +i.fn(null as any, p2); + +const _i: I = i; \ No newline at end of file From 0a4f39af715c164cf7c905999fd8051f839e5d6c Mon Sep 17 00:00:00 2001 From: typescript-bot Date: Tue, 24 Sep 2019 14:10:40 +0000 Subject: [PATCH 146/159] Update user baselines --- .../reference/docker/office-ui-fabric.log | 21 +---- tests/baselines/reference/user/assert.log | 40 ++++---- .../user/chrome-devtools-frontend.log | 91 ++++++++----------- tests/baselines/reference/user/prettier.log | 75 ++++++++------- 4 files changed, 100 insertions(+), 127 deletions(-) diff --git a/tests/baselines/reference/docker/office-ui-fabric.log b/tests/baselines/reference/docker/office-ui-fabric.log index 9cda725e39e..e75c479de90 100644 --- a/tests/baselines/reference/docker/office-ui-fabric.log +++ b/tests/baselines/reference/docker/office-ui-fabric.log @@ -1,14 +1,5 @@ Exit Code: 1 Standard output: -@uifabric/codepen-loader: yarn run vX.X.X -@uifabric/codepen-loader: $ just-scripts build --production --lint -@uifabric/codepen-loader: [XX:XX:XX XM] ■ Removing [lib, temp, dist, coverage, lib-commonjs] -@uifabric/codepen-loader: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/codepen-loader/tsconfig.json -@uifabric/codepen-loader: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --module commonjs --outDir "./lib" --project "/office-ui-fabric-react/packages/codepen-loader/tsconfig.json" -@uifabric/codepen-loader: [XX:XX:XX XM] ■ Running Jest -@uifabric/codepen-loader: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/jest/bin/jest.js" --config "/office-ui-fabric-react/packages/codepen-loader/jest.config.js" --passWithNoTests --colors --forceExit -@uifabric/codepen-loader: PASS src/__tests__/codepenTransform.test.ts -@uifabric/codepen-loader: Done in ?s. @uifabric/build: yarn run vX.X.X @uifabric/build: $ node ./just-scripts.js no-op --production --lint @uifabric/build: Done in ?s. @@ -36,9 +27,11 @@ Standard output: @uifabric/migration: Done in ?s. @uifabric/monaco-editor: yarn run vX.X.X @uifabric/monaco-editor: $ just-scripts build --production --lint -@uifabric/monaco-editor: [XX:XX:XX XM] ■ Removing [esm, lib] +@uifabric/monaco-editor: [XX:XX:XX XM] ■ Removing [esm, lib, lib-commonjs] @uifabric/monaco-editor: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/monaco-editor/tsconfig.json @uifabric/monaco-editor: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --inlineSources --sourceRoot "../src" --outDir lib --module esnext --project "/office-ui-fabric-react/packages/monaco-editor/tsconfig.json" +@uifabric/monaco-editor: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/monaco-editor/tsconfig.json +@uifabric/monaco-editor: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --inlineSources --sourceRoot "../src" --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/monaco-editor/tsconfig.json" @uifabric/monaco-editor: Done in ?s. @uifabric/set-version: yarn run vX.X.X @uifabric/set-version: $ just-scripts build --production --lint @@ -91,6 +84,7 @@ Standard output: @uifabric/merge-styles: PASS src/extractStyleParts.test.ts @uifabric/merge-styles: PASS src/server.test.ts @uifabric/merge-styles: PASS src/concatStyleSetsWithProps.test.ts +@uifabric/merge-styles: PASS src/fontFace.test.ts @uifabric/merge-styles: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/merge-styles/lib/index.d.ts' @uifabric/merge-styles: Done in ?s. @uifabric/jest-serializer-merge-styles: yarn run vX.X.X @@ -206,7 +200,6 @@ Standard output: @uifabric/styling: PASS src/styles/theme.test.ts @uifabric/styling: PASS src/styles/scheme.test.ts @uifabric/styling: PASS src/styles/getGlobalClassNames.test.ts -@uifabric/styling: PASS src/utilities/icons.test.ts @uifabric/styling: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/styling/lib/index.d.ts' @uifabric/styling: Done in ?s. @uifabric/file-type-icons: yarn run vX.X.X @@ -249,11 +242,7 @@ Standard output: Standard error: info cli using local version of lerna lerna notice cli vX.X.X -lerna info Executing command in 43 packages: "yarn run build --production --lint" -@uifabric/codepen-loader: ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. -@uifabric/codepen-loader: Force exiting Jest -@uifabric/codepen-loader: -@uifabric/codepen-loader: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished? +lerna info Executing command in 42 packages: "yarn run build --production --lint" @uifabric/example-data: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect @uifabric/set-version: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect @uifabric/merge-styles: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect diff --git a/tests/baselines/reference/user/assert.log b/tests/baselines/reference/user/assert.log index 4b00cccc6ab..ce8e6cc19d0 100644 --- a/tests/baselines/reference/user/assert.log +++ b/tests/baselines/reference/user/assert.log @@ -1,34 +1,34 @@ Exit Code: 1 Standard output: node_modules/assert/test.js(25,5): error TS2367: This condition will always return 'false' since the types 'string | undefined' and 'boolean' have no overlap. -node_modules/assert/test.js(39,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? -node_modules/assert/test.js(55,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? -node_modules/assert/test.js(74,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? -node_modules/assert/test.js(84,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? -node_modules/assert/test.js(94,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? -node_modules/assert/test.js(103,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? -node_modules/assert/test.js(120,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? -node_modules/assert/test.js(128,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? +node_modules/assert/test.js(39,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +node_modules/assert/test.js(55,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +node_modules/assert/test.js(74,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +node_modules/assert/test.js(84,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +node_modules/assert/test.js(94,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +node_modules/assert/test.js(103,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +node_modules/assert/test.js(120,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +node_modules/assert/test.js(128,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. node_modules/assert/test.js(140,10): error TS2339: Property 'a' does not exist on type 'number[]'. node_modules/assert/test.js(141,10): error TS2339: Property 'b' does not exist on type 'number[]'. node_modules/assert/test.js(142,10): error TS2339: Property 'b' does not exist on type 'number[]'. node_modules/assert/test.js(143,10): error TS2339: Property 'a' does not exist on type 'number[]'. -node_modules/assert/test.js(149,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? +node_modules/assert/test.js(149,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. node_modules/assert/test.js(157,51): error TS2349: This expression is not callable. Type 'never' has no call signatures. -node_modules/assert/test.js(161,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? +node_modules/assert/test.js(161,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. node_modules/assert/test.js(168,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. -node_modules/assert/test.js(182,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. -node_modules/assert/test.js(229,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. -node_modules/assert/test.js(235,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. -node_modules/assert/test.js(250,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. -node_modules/assert/test.js(254,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +node_modules/assert/test.js(182,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? +node_modules/assert/test.js(229,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? +node_modules/assert/test.js(235,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? +node_modules/assert/test.js(250,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? +node_modules/assert/test.js(254,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? node_modules/assert/test.js(256,55): error TS2345: Argument of type 'TypeError' is not assignable to parameter of type 'string'. -node_modules/assert/test.js(262,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. -node_modules/assert/test.js(279,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. -node_modules/assert/test.js(285,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. -node_modules/assert/test.js(320,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. -node_modules/assert/test.js(346,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig. +node_modules/assert/test.js(262,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? +node_modules/assert/test.js(279,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? +node_modules/assert/test.js(285,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? +node_modules/assert/test.js(320,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? +node_modules/assert/test.js(346,5): error TS2552: Cannot find name 'test'. Did you mean 'tests'? diff --git a/tests/baselines/reference/user/chrome-devtools-frontend.log b/tests/baselines/reference/user/chrome-devtools-frontend.log index bad901d3d57..c9ce3bc730b 100644 --- a/tests/baselines/reference/user/chrome-devtools-frontend.log +++ b/tests/baselines/reference/user/chrome-devtools-frontend.log @@ -3990,10 +3990,9 @@ node_modules/chrome-devtools-frontend/front_end/console/ConsoleView.js(1277,60): node_modules/chrome-devtools-frontend/front_end/console/ConsoleView.js(1278,42): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray<{ key: string; text: string; regex: RegExp; negative: boolean; }>[]): { key: string; text: string; regex: RegExp; negative: boolean; }[]', gave the following error. Argument of type '{ key: any; text: string; negative: boolean; }[]' is not assignable to parameter of type 'ConcatArray<{ key: string; text: string; regex: RegExp; negative: boolean; }>'. - Types of property 'slice' are incompatible. - Type '(start?: number, end?: number) => { key: any; text: string; negative: boolean; }[]' is not assignable to type '(start?: number, end?: number) => { key: string; text: string; regex: RegExp; negative: boolean; }[]'. - Type '{ key: any; text: string; negative: boolean; }[]' is not assignable to type '{ key: string; text: string; regex: RegExp; negative: boolean; }[]'. - Property 'regex' is missing in type '{ key: any; text: string; negative: boolean; }' but required in type '{ key: string; text: string; regex: RegExp; negative: boolean; }'. + The types returned by 'slice(...)' are incompatible between these types. + Type '{ key: any; text: string; negative: boolean; }[]' is not assignable to type '{ key: string; text: string; regex: RegExp; negative: boolean; }[]'. + Property 'regex' is missing in type '{ key: any; text: string; negative: boolean; }' but required in type '{ key: string; text: string; regex: RegExp; negative: boolean; }'. Overload 2 of 2, '(...items: ({ key: string; text: string; regex: RegExp; negative: boolean; } | ConcatArray<{ key: string; text: string; regex: RegExp; negative: boolean; }>)[]): { key: string; text: string; regex: RegExp; negative: boolean; }[]', gave the following error. Argument of type '{ key: any; text: string; negative: boolean; }[]' is not assignable to parameter of type '{ key: string; text: string; regex: RegExp; negative: boolean; } | ConcatArray<{ key: string; text: string; regex: RegExp; negative: boolean; }>'. Type '{ key: any; text: string; negative: boolean; }[]' is not assignable to type 'ConcatArray<{ key: string; text: string; regex: RegExp; negative: boolean; }>'. @@ -5038,22 +5037,18 @@ node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js( node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js(91,24): error TS2769: No overload matches this call. The last overload gave the following error. Argument of type '(Promise | Promise)[]' is not assignable to parameter of type 'Iterable>'. - Types of property '[Symbol.iterator]' are incompatible. - Type '() => IterableIterator | Promise>' is not assignable to type '() => Iterator, any, undefined>'. - Type 'IterableIterator | Promise>' is not assignable to type 'Iterator, any, undefined>'. - Types of property 'next' are incompatible. - Type '(...args: [] | [undefined]) => IteratorResult | Promise, any>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult, any>'. - Type 'IteratorResult | Promise, any>' is not assignable to type 'IteratorResult, any>'. - Type 'IteratorYieldResult | Promise>' is not assignable to type 'IteratorResult, any>'. - Type 'IteratorYieldResult | Promise>' is not assignable to type 'IteratorYieldResult>'. - Type 'Promise | Promise' is not assignable to type 'CSSMatchedStyles | PromiseLike'. - Type 'Promise' is not assignable to type 'CSSMatchedStyles | PromiseLike'. - Type 'Promise' is not assignable to type 'PromiseLike'. - Types of property 'then' are incompatible. - Type '(onfulfilled?: (value: ComputedStyle) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise' is not assignable to type '(onfulfilled?: (value: CSSMatchedStyles) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike<...>'. - Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible. - Types of parameters 'value' and 'value' are incompatible. - Type 'ComputedStyle' is missing the following properties from type 'CSSMatchedStyles': _cssModel, _node, _nodeStyles, _nodeForStyle, and 22 more. + The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types. + Type 'IteratorResult | Promise, any>' is not assignable to type 'IteratorResult, any>'. + Type 'IteratorYieldResult | Promise>' is not assignable to type 'IteratorResult, any>'. + Type 'IteratorYieldResult | Promise>' is not assignable to type 'IteratorYieldResult>'. + Type 'Promise | Promise' is not assignable to type 'CSSMatchedStyles | PromiseLike'. + Type 'Promise' is not assignable to type 'CSSMatchedStyles | PromiseLike'. + Type 'Promise' is not assignable to type 'PromiseLike'. + Types of property 'then' are incompatible. + Type '(onfulfilled?: (value: ComputedStyle) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise' is not assignable to type '(onfulfilled?: (value: CSSMatchedStyles) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike<...>'. + Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible. + Types of parameters 'value' and 'value' are incompatible. + Type 'ComputedStyle' is missing the following properties from type 'CSSMatchedStyles': _cssModel, _node, _nodeStyles, _nodeForStyle, and 22 more. node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js(147,52): error TS2339: Property 'keysArray' does not exist on type 'Map'. node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js(179,50): error TS2339: Property 'createChild' does not exist on type 'Element'. node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js(200,74): error TS2339: Property 'consume' does not exist on type 'Event'. @@ -5339,22 +5334,18 @@ node_modules/chrome-devtools-frontend/front_end/elements/MetricsSidebarPane.js(5 node_modules/chrome-devtools-frontend/front_end/elements/MetricsSidebarPane.js(82,24): error TS2769: No overload matches this call. The last overload gave the following error. Argument of type '(Promise> | Promise)[]' is not assignable to parameter of type 'Iterable | PromiseLike>>'. - Types of property '[Symbol.iterator]' are incompatible. - Type '() => IterableIterator> | Promise>' is not assignable to type '() => Iterator | PromiseLike>, any, undefined>'. - Type 'IterableIterator> | Promise>' is not assignable to type 'Iterator | PromiseLike>, any, undefined>'. - Types of property 'next' are incompatible. - Type '(...args: [] | [undefined]) => IteratorResult> | Promise, any>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult | PromiseLike>, any>'. - Type 'IteratorResult> | Promise, any>' is not assignable to type 'IteratorResult | PromiseLike>, any>'. - Type 'IteratorYieldResult> | Promise>' is not assignable to type 'IteratorResult | PromiseLike>, any>'. - Type 'IteratorYieldResult> | Promise>' is not assignable to type 'IteratorYieldResult | PromiseLike>>'. - Type 'Promise> | Promise' is not assignable to type 'Map | PromiseLike>'. - Type 'Promise' is not assignable to type 'Map | PromiseLike>'. - Type 'Promise' is not assignable to type 'PromiseLike>'. - Types of property 'then' are incompatible. - Type '(onfulfilled?: (value: InlineStyleResult) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise<...>' is not assignable to type ', TResult2 = never>(onfulfilled?: (value: Map) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike<...>'. - Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible. - Types of parameters 'value' and 'value' are incompatible. - Type 'InlineStyleResult' is missing the following properties from type 'Map': clear, delete, forEach, get, and 8 more. + The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types. + Type 'IteratorResult> | Promise, any>' is not assignable to type 'IteratorResult | PromiseLike>, any>'. + Type 'IteratorYieldResult> | Promise>' is not assignable to type 'IteratorResult | PromiseLike>, any>'. + Type 'IteratorYieldResult> | Promise>' is not assignable to type 'IteratorYieldResult | PromiseLike>>'. + Type 'Promise> | Promise' is not assignable to type 'Map | PromiseLike>'. + Type 'Promise' is not assignable to type 'Map | PromiseLike>'. + Type 'Promise' is not assignable to type 'PromiseLike>'. + Types of property 'then' are incompatible. + Type '(onfulfilled?: (value: InlineStyleResult) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise<...>' is not assignable to type ', TResult2 = never>(onfulfilled?: (value: Map) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike<...>'. + Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible. + Types of parameters 'value' and 'value' are incompatible. + Type 'InlineStyleResult' is missing the following properties from type 'Map': clear, delete, forEach, get, and 8 more. node_modules/chrome-devtools-frontend/front_end/elements/MetricsSidebarPane.js(120,11): error TS2339: Property 'consume' does not exist on type 'Event'. node_modules/chrome-devtools-frontend/front_end/elements/MetricsSidebarPane.js(164,22): error TS2339: Property 'toFixedIfFloating' does not exist on type 'NumberConstructor'. node_modules/chrome-devtools-frontend/front_end/elements/MetricsSidebarPane.js(179,18): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. @@ -12648,22 +12639,18 @@ node_modules/chrome-devtools-frontend/front_end/ui/View.js(454,38): error TS2339 node_modules/chrome-devtools-frontend/front_end/ui/View.js(461,44): error TS2769: No overload matches this call. The last overload gave the following error. Argument of type '(Promise | Promise)[]' is not assignable to parameter of type 'Iterable>'. - Types of property '[Symbol.iterator]' are incompatible. - Type '() => IterableIterator | Promise>' is not assignable to type '() => Iterator, any, undefined>'. - Type 'IterableIterator | Promise>' is not assignable to type 'Iterator, any, undefined>'. - Types of property 'next' are incompatible. - Type '(...args: [] | [undefined]) => IteratorResult | Promise, any>' is not assignable to type '(...args: [] | [undefined]) => IteratorResult, any>'. - Type 'IteratorResult | Promise, any>' is not assignable to type 'IteratorResult, any>'. - Type 'IteratorYieldResult | Promise>' is not assignable to type 'IteratorResult, any>'. - Type 'IteratorYieldResult | Promise>' is not assignable to type 'IteratorYieldResult>'. - Type 'Promise | Promise' is not assignable to type 'void | PromiseLike'. - Type 'Promise' is not assignable to type 'void | PromiseLike'. - Type 'Promise' is not assignable to type 'PromiseLike'. - Types of property 'then' are incompatible. - Type '(onfulfilled?: (value: ToolbarItem[]) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise' is not assignable to type '(onfulfilled?: (value: void) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike'. - Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible. - Types of parameters 'value' and 'value' are incompatible. - Type 'ToolbarItem[]' is not assignable to type 'void'. + The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types. + Type 'IteratorResult | Promise, any>' is not assignable to type 'IteratorResult, any>'. + Type 'IteratorYieldResult | Promise>' is not assignable to type 'IteratorResult, any>'. + Type 'IteratorYieldResult | Promise>' is not assignable to type 'IteratorYieldResult>'. + Type 'Promise | Promise' is not assignable to type 'void | PromiseLike'. + Type 'Promise' is not assignable to type 'void | PromiseLike'. + Type 'Promise' is not assignable to type 'PromiseLike'. + Types of property 'then' are incompatible. + Type '(onfulfilled?: (value: ToolbarItem[]) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise' is not assignable to type '(onfulfilled?: (value: void) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike'. + Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible. + Types of parameters 'value' and 'value' are incompatible. + Type 'ToolbarItem[]' is not assignable to type 'void'. node_modules/chrome-devtools-frontend/front_end/ui/View.js(495,24): error TS2339: Property 'createTextChild' does not exist on type 'Element'. node_modules/chrome-devtools-frontend/front_end/ui/View.js(496,24): error TS2339: Property 'tabIndex' does not exist on type 'Element'. node_modules/chrome-devtools-frontend/front_end/ui/View.js(501,25): error TS2339: Property 'createChild' does not exist on type 'Element'. diff --git a/tests/baselines/reference/user/prettier.log b/tests/baselines/reference/user/prettier.log index 635c0bc0b36..71fb532b794 100644 --- a/tests/baselines/reference/user/prettier.log +++ b/tests/baselines/reference/user/prettier.log @@ -142,10 +142,9 @@ src/language-html/printer-html.js(314,13): error TS2769: No overload matches thi src/language-html/printer-html.js(471,11): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. Argument of type '{ type: string; parts: any; }[]' is not assignable to parameter of type 'ConcatArray'. - Types of property 'slice' are incompatible. - Type '(start?: number | undefined, end?: number | undefined) => { type: string; parts: any; }[]' is not assignable to type '(start?: number | undefined, end?: number | undefined) => never[]'. - Type '{ type: string; parts: any; }[]' is not assignable to type 'never[]'. - Type '{ type: string; parts: any; }' is not assignable to type 'never'. + The types returned by 'slice(...)' are incompatible between these types. + Type '{ type: string; parts: any; }[]' is not assignable to type 'never[]'. + Type '{ type: string; parts: any; }' is not assignable to type 'never'. Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. Argument of type '{ type: string; parts: any; }[]' is not assignable to parameter of type 'ConcatArray'. src/language-html/printer-html.js(492,11): error TS2769: No overload matches this call. @@ -200,11 +199,10 @@ src/language-js/index.js(81,60): error TS2345: Argument of type '{ override: { s src/language-js/needs-parens.js(871,14): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray<(childPath: any) => any>[]): ((childPath: any) => any)[]', gave the following error. Argument of type '(string | number)[]' is not assignable to parameter of type 'ConcatArray<(childPath: any) => any>'. - Types of property 'slice' are incompatible. - Type '(start?: number | undefined, end?: number | undefined) => (string | number)[]' is not assignable to type '(start?: number | undefined, end?: number | undefined) => ((childPath: any) => any)[]'. - Type '(string | number)[]' is not assignable to type '((childPath: any) => any)[]'. - Type 'string | number' is not assignable to type '(childPath: any) => any'. - Type 'string' is not assignable to type '(childPath: any) => any'. + The types returned by 'slice(...)' are incompatible between these types. + Type '(string | number)[]' is not assignable to type '((childPath: any) => any)[]'. + Type 'string | number' is not assignable to type '(childPath: any) => any'. + Type 'string' is not assignable to type '(childPath: any) => any'. Overload 2 of 2, '(...items: (((childPath: any) => any) | ConcatArray<(childPath: any) => any>)[]): ((childPath: any) => any)[]', gave the following error. Argument of type '(string | number)[]' is not assignable to parameter of type '((childPath: any) => any) | ConcatArray<(childPath: any) => any>'. Type '(string | number)[]' is not assignable to type 'ConcatArray<(childPath: any) => any>'. @@ -219,56 +217,55 @@ src/language-js/printer-estree.js(400,9): error TS2769: No overload matches this Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. Argument of type '{ type: string; parts: any; } | { type: string; contents: any; n: any; }' is not assignable to parameter of type 'ConcatArray'. Type '{ type: string; parts: any; }' is not assignable to type 'ConcatArray'. -src/language-js/printer-estree.js(1480,28): error TS2769: No overload matches this call. +src/language-js/printer-estree.js(1481,28): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray[]): (string | { type: string; id: any; contents: any; break: boolean; expandedStates: any; })[]', gave the following error. Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. Type '{ type: string; parts: any; }' is missing the following properties from type 'ConcatArray': length, join, slice Overload 2 of 2, '(...items: (string | { type: string; id: any; contents: any; break: boolean; expandedStates: any; } | ConcatArray)[]): (string | { ...; })[]', gave the following error. Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string | { type: string; id: any; contents: any; break: boolean; expandedStates: any; } | ConcatArray'. Type '{ type: string; parts: any; }' is missing the following properties from type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }': id, contents, break, expandedStates -src/language-js/printer-estree.js(1913,20): error TS2345: Argument of type '" "' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. -src/language-js/printer-estree.js(1915,20): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. -src/language-js/printer-estree.js(1917,18): error TS2345: Argument of type '"while ("' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. -src/language-js/printer-estree.js(1926,9): error TS2345: Argument of type '")"' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. -src/language-js/printer-estree.js(3472,11): error TS2769: No overload matches this call. +src/language-js/printer-estree.js(1914,20): error TS2345: Argument of type '" "' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. +src/language-js/printer-estree.js(1916,20): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. +src/language-js/printer-estree.js(1918,18): error TS2345: Argument of type '"while ("' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. +src/language-js/printer-estree.js(1927,9): error TS2345: Argument of type '")"' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. +src/language-js/printer-estree.js(3473,11): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. Argument of type 'never[] | { type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. Type '{ type: string; parts: any; }' is not assignable to type 'ConcatArray'. Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. Argument of type 'never[] | { type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. Type '{ type: string; parts: any; }' is not assignable to type 'ConcatArray'. -src/language-js/printer-estree.js(3901,22): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. -src/language-js/printer-estree.js(3968,14): error TS2339: Property 'comments' does not exist on type 'Expression'. +src/language-js/printer-estree.js(3902,22): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. +src/language-js/printer-estree.js(3969,14): error TS2339: Property 'comments' does not exist on type 'Expression'. Property 'comments' does not exist on type 'Identifier'. -src/language-js/printer-estree.js(3980,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"OptionalMemberExpression"' have no overlap. -src/language-js/printer-estree.js(3981,13): error TS2339: Property 'property' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. +src/language-js/printer-estree.js(3981,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"OptionalMemberExpression"' have no overlap. +src/language-js/printer-estree.js(3982,13): error TS2339: Property 'property' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. Property 'property' does not exist on type 'SimpleLiteral'. -src/language-js/printer-estree.js(3981,52): error TS2339: Property 'property' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. +src/language-js/printer-estree.js(3982,52): error TS2339: Property 'property' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. Property 'property' does not exist on type 'SimpleLiteral'. -src/language-js/printer-estree.js(3986,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"OptionalMemberExpression"' have no overlap. -src/language-js/printer-estree.js(3988,29): error TS2339: Property 'object' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. +src/language-js/printer-estree.js(3987,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"OptionalMemberExpression"' have no overlap. +src/language-js/printer-estree.js(3989,29): error TS2339: Property 'object' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. Property 'object' does not exist on type 'SimpleLiteral'. -src/language-js/printer-estree.js(3989,22): error TS2339: Property 'comments' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. +src/language-js/printer-estree.js(3990,22): error TS2339: Property 'comments' does not exist on type 'SimpleLiteral | RegExpLiteral | FunctionExpression | ArrowFunctionExpression | ArrayExpression | ObjectExpression | YieldExpression | UnaryExpression | UpdateExpression | ... 12 more ... | AwaitExpression'. Property 'comments' does not exist on type 'SimpleLiteral'. -src/language-js/printer-estree.js(3995,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"Identifier"' have no overlap. -src/language-js/printer-estree.js(3996,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"ThisExpression"' have no overlap. -src/language-js/printer-estree.js(4200,23): error TS2532: Object is possibly 'undefined'. -src/language-js/printer-estree.js(4201,24): error TS2532: Object is possibly 'undefined'. -src/language-js/printer-estree.js(4557,5): error TS2345: Argument of type '"" | { type: string; parts: any; } | { type: string; contents: any; }' is not assignable to parameter of type 'string'. +src/language-js/printer-estree.js(3996,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"Identifier"' have no overlap. +src/language-js/printer-estree.js(3997,9): error TS2367: This condition will always return 'false' since the types '"FunctionExpression" | "ClassExpression" | "ObjectExpression" | "TaggedTemplateExpression" | "CallExpression" | "ConditionalExpression" | "UpdateExpression" | "SequenceExpression" | ... 11 more ... | "MetaProperty"' and '"ThisExpression"' have no overlap. +src/language-js/printer-estree.js(4201,23): error TS2532: Object is possibly 'undefined'. +src/language-js/printer-estree.js(4202,24): error TS2532: Object is possibly 'undefined'. +src/language-js/printer-estree.js(4558,5): error TS2345: Argument of type '"" | { type: string; parts: any; } | { type: string; contents: any; }' is not assignable to parameter of type 'string'. Type '{ type: string; parts: any; }' is not assignable to type 'string'. -src/language-js/printer-estree.js(4561,16): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. -src/language-js/printer-estree.js(4609,11): error TS2322: Type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }' is not assignable to type 'string'. -src/language-js/printer-estree.js(4624,11): error TS2322: Type '{ type: string; parts: any; }' is not assignable to type 'string'. -src/language-js/printer-estree.js(4636,9): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. -src/language-js/printer-estree.js(4923,9): error TS2554: Expected 0-2 arguments, but got 3. -src/language-js/printer-estree.js(6130,7): error TS2769: No overload matches this call. +src/language-js/printer-estree.js(4562,16): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. +src/language-js/printer-estree.js(4610,11): error TS2322: Type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }' is not assignable to type 'string'. +src/language-js/printer-estree.js(4625,11): error TS2322: Type '{ type: string; parts: any; }' is not assignable to type 'string'. +src/language-js/printer-estree.js(4637,9): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. +src/language-js/printer-estree.js(4924,9): error TS2554: Expected 0-2 arguments, but got 3. +src/language-js/printer-estree.js(6131,7): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray<(childPath: any) => any>[]): ((childPath: any) => any)[]', gave the following error. Argument of type '(string | number)[]' is not assignable to parameter of type 'ConcatArray<(childPath: any) => any>'. - Types of property 'slice' are incompatible. - Type '(start?: number | undefined, end?: number | undefined) => (string | number)[]' is not assignable to type '(start?: number | undefined, end?: number | undefined) => ((childPath: any) => any)[]'. - Type '(string | number)[]' is not assignable to type '((childPath: any) => any)[]'. - Type 'string | number' is not assignable to type '(childPath: any) => any'. - Type 'string' is not assignable to type '(childPath: any) => any'. + The types returned by 'slice(...)' are incompatible between these types. + Type '(string | number)[]' is not assignable to type '((childPath: any) => any)[]'. + Type 'string | number' is not assignable to type '(childPath: any) => any'. + Type 'string' is not assignable to type '(childPath: any) => any'. Overload 2 of 2, '(...items: (((childPath: any) => any) | ConcatArray<(childPath: any) => any>)[]): ((childPath: any) => any)[]', gave the following error. Argument of type '(string | number)[]' is not assignable to parameter of type '((childPath: any) => any) | ConcatArray<(childPath: any) => any>'. Type '(string | number)[]' is not assignable to type 'ConcatArray<(childPath: any) => any>'. From aca0bb943f24c57854062b1a0bc13b1d64d73136 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Tue, 24 Sep 2019 08:30:18 -0700 Subject: [PATCH 147/159] Fix lint on master --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 7a44ac66229..71c72a4cf82 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -33314,7 +33314,7 @@ namespace ts { // Modifiers are never allowed on properties except for 'async' on a method declaration if (prop.modifiers) { - for (const mod of prop.modifiers!) { // TODO: GH#19955 + for (const mod of prop.modifiers) { if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) { grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod)); } From 4ddf1919bbdf3df09fe32cfdbe3fef7423fc5e51 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Tue, 24 Sep 2019 08:47:45 -0700 Subject: [PATCH 148/159] try eslint-disable-next-line instead --- src/compiler/checker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 71c72a4cf82..e3494a1f341 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -33314,7 +33314,8 @@ namespace ts { // Modifiers are never allowed on properties except for 'async' on a method declaration if (prop.modifiers) { - for (const mod of prop.modifiers) { + // eslint-disable-next-line no-unnecessary-type-assertion + for (const mod of prop.modifiers!) { // TODO: GH#19955 if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) { grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod)); } From 41c3e545457005c6c8fe3c78f1da56b4379bcf03 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Tue, 24 Sep 2019 09:38:44 -0700 Subject: [PATCH 149/159] change eslint-disable rule name --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index e3494a1f341..2a3f2390cf3 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -33314,7 +33314,7 @@ namespace ts { // Modifiers are never allowed on properties except for 'async' on a method declaration if (prop.modifiers) { - // eslint-disable-next-line no-unnecessary-type-assertion + // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion for (const mod of prop.modifiers!) { // TODO: GH#19955 if (mod.kind !== SyntaxKind.AsyncKeyword || prop.kind !== SyntaxKind.MethodDeclaration) { grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod)); From 8c2cd888dd56d276b2cfe4552b3eb131a167ba23 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 24 Sep 2019 08:31:00 -0700 Subject: [PATCH 150/159] Make time and tick local to test case so it doesnt affect the baseline --- .../unittests/tsbuild/amdModulesWithOut.ts | 4 +- src/testRunner/unittests/tsbuild/demo.ts | 4 +- .../unittests/tsbuild/emitDeclarationOnly.ts | 5 +- src/testRunner/unittests/tsbuild/helpers.ts | 39 ++++++-- .../inferredTypeFromTransitiveModule.ts | 6 +- .../unittests/tsbuild/lateBoundSymbol.ts | 4 +- .../unittests/tsbuild/moduleSpecifiers.ts | 25 +++-- src/testRunner/unittests/tsbuild/outFile.ts | 16 ++-- .../unittests/tsbuild/resolveJsonModule.ts | 12 +-- src/testRunner/unittests/tsbuild/sample.ts | 20 ++-- src/testRunner/unittests/tsc/helpers.ts | 5 +- .../multiple-emitHelpers-in-all-projects.js | 12 +-- .../multiple-prologues-in-all-projects.js | 12 +-- .../shebang-in-all-projects.js | 12 +-- .../stripInternal.js | 12 +-- .../triple-slash-refs-in-all-projects.js | 12 +-- .../multiple-emitHelpers-in-all-projects.js | 12 +-- .../multiple-prologues-in-all-projects.js | 12 +-- .../stripInternal.js | 10 +- .../multiple-emitHelpers-in-all-projects.js | 10 +- .../multiple-prologues-in-all-projects.js | 10 +- .../initial-Build/shebang-in-all-projects.js | 10 +- .../initial-Build/stripInternal.js | 10 +- .../triple-slash-refs-in-all-projects.js | 10 +- ...e-resolution-finds-original-source-file.js | 10 +- ...import-project-with-emitDeclarationOnly.js | 6 +- ...mports-project-with-emitDeclarationOnly.js | 6 +- ...mports-project-with-emitDeclarationOnly.js | 8 +- ...import-project-with-emitDeclarationOnly.js | 6 +- ...mports-project-with-emitDeclarationOnly.js | 6 +- ...-transitive-module-with-isolatedModules.js | 8 +- ...hange-in-signature-with-isolatedModules.js | 6 +- ...-transitive-module-with-isolatedModules.js | 6 +- ...hange-in-signature-with-isolatedModules.js | 6 +- ...zed-module-specifiers-resolve-correctly.js | 94 +++++++++---------- .../baseline-sectioned-sourcemaps.js | 12 +-- .../emitHelpers-in-all-projects.js | 12 +-- .../multiple-prologues-in-all-projects.js | 12 +-- .../shebang-in-all-projects.js | 12 +-- .../strict-in-all-projects.js | 12 +-- ...en-one-two-three-are-prepended-in-order.js | 14 +-- .../stripInternal.js | 12 +-- .../triple-slash-refs-in-all-projects.js | 12 +-- .../baseline-sectioned-sourcemaps.js | 14 +-- .../emitHelpers-in-all-projects.js | 14 +-- ...tHelpers-in-only-one-dependency-project.js | 14 +-- .../multiple-emitHelpers-in-all-projects.js | 14 +-- ...tiple-emitHelpers-in-different-projects.js | 14 +-- .../multiple-prologues-in-all-projects.js | 14 +-- ...ultiple-prologues-in-different-projects.js | 14 +-- .../shebang-in-all-projects.js | 14 +-- .../shebang-in-only-one-dependency-project.js | 14 +-- .../strict-in-all-projects.js | 14 +-- .../strict-in-one-dependency.js | 14 +-- ...en-one-two-three-are-prepended-in-order.js | 18 ++-- .../stripInternal-jsdoc-style-comment.js | 14 +-- ...en-one-two-three-are-prepended-in-order.js | 18 ++-- ...-jsdoc-style-with-comments-emit-enabled.js | 14 +-- ...en-one-two-three-are-prepended-in-order.js | 18 ++-- ...en-one-two-three-are-prepended-in-order.js | 18 ++-- ...tripInternal-with-comments-emit-enabled.js | 14 +-- .../stripInternal.js | 14 +-- .../triple-slash-refs-in-all-projects.js | 14 +-- .../triple-slash-refs-in-one-project.js | 14 +-- ...t-composite-but-uses-project-references.js | 12 +-- ...-source-files-are-empty-in-the-own-file.js | 14 +-- .../emitHelpers-in-all-projects.js | 14 +-- ...tHelpers-in-only-one-dependency-project.js | 14 +-- .../multiple-emitHelpers-in-all-projects.js | 14 +-- ...tiple-emitHelpers-in-different-projects.js | 14 +-- .../multiple-prologues-in-all-projects.js | 14 +-- ...ultiple-prologues-in-different-projects.js | 14 +-- .../strict-in-all-projects.js | 14 +-- .../strict-in-one-dependency.js | 14 +-- ...en-one-two-three-are-prepended-in-order.js | 18 ++-- .../stripInternal-jsdoc-style-comment.js | 14 +-- ...en-one-two-three-are-prepended-in-order.js | 18 ++-- ...en-one-two-three-are-prepended-in-order.js | 18 ++-- ...tripInternal-with-comments-emit-enabled.js | 14 +-- .../stripInternal.js | 14 +-- .../baseline-sectioned-sourcemaps.js | 14 +-- .../declarationMap-and-sourceMap-disabled.js | 14 +-- .../emitHelpers-in-all-projects.js | 14 +-- ...tHelpers-in-only-one-dependency-project.js | 14 +-- .../multiple-emitHelpers-in-all-projects.js | 14 +-- ...tiple-emitHelpers-in-different-projects.js | 14 +-- .../multiple-prologues-in-all-projects.js | 14 +-- ...ultiple-prologues-in-different-projects.js | 14 +-- .../initial-Build/shebang-in-all-projects.js | 14 +-- .../shebang-in-only-one-dependency-project.js | 14 +-- .../initial-Build/strict-in-all-projects.js | 14 +-- .../initial-Build/strict-in-one-dependency.js | 14 +-- ...hen-internal-is-inside-another-internal.js | 14 +-- ...en-one-two-three-are-prepended-in-order.js | 14 +-- .../stripInternal-jsdoc-style-comment.js | 14 +-- ...en-one-two-three-are-prepended-in-order.js | 14 +-- ...-jsdoc-style-with-comments-emit-enabled.js | 14 +-- ...l-when-few-members-of-enum-are-internal.js | 14 +-- ...en-one-two-three-are-prepended-in-order.js | 14 +-- ...en-one-two-three-are-prepended-in-order.js | 14 +-- ...tripInternal-with-comments-emit-enabled.js | 14 +-- .../initial-Build/stripInternal.js | 14 +-- .../triple-slash-refs-in-all-projects.js | 14 +-- .../triple-slash-refs-in-one-project.js | 14 +-- ...roject-is-not-composite-but-incremental.js | 14 +-- ...t-composite-but-uses-project-references.js | 14 +-- ...final-project-specifies-tsBuildInfoFile.js | 14 +-- ...-source-files-are-empty-in-the-own-file.js | 14 +-- .../incremental-declaration-changes/sample.js | 16 ++-- .../when-declaration-option-changes.js | 6 +- .../when-esModuleInterop-option-changes.js | 10 +- ...en-logic-config-changes-declaration-dir.js | 12 +-- .../when-module-option-changes.js | 6 +- .../when-target-option-changes.js | 6 +- .../sample.js | 16 ++-- .../tsbuild/sample1/initial-Build/sample.js | 14 +-- .../when-declaration-option-changes.js | 6 +- .../when-esModuleInterop-option-changes.js | 14 +-- .../when-logic-specifies-tsBuildInfoFile.js | 14 +-- .../when-module-option-changes.js | 6 +- .../when-target-option-changes.js | 6 +- 121 files changed, 811 insertions(+), 801 deletions(-) diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts index eef93265a7e..fdcf748cf2c 100644 --- a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -1,7 +1,6 @@ namespace ts { describe("unittests:: tsbuild:: outFile:: on amd modules with --out", () => { let outFileFs: vfs.FileSystem; - const { time, tick } = getTime(); const enum project { lib, app } function relName(path: string) { return path.slice(1); } type Sources = [string, readonly string[]]; @@ -25,7 +24,7 @@ namespace ts { ] ]; before(() => { - outFileFs = loadProjectFromDisk("tests/projects/amdModulesWithOut", time); + outFileFs = loadProjectFromDisk("tests/projects/amdModulesWithOut"); }); after(() => { outFileFs = undefined!; @@ -46,7 +45,6 @@ namespace ts { scenario: "amdModulesWithOut", subScenario, fs: () => outFileFs, - tick, commandLineArgs: ["--b", "/src/app", "--verbose"], baselineSourceMap: true, modifyFs, diff --git a/src/testRunner/unittests/tsbuild/demo.ts b/src/testRunner/unittests/tsbuild/demo.ts index baa50e69076..c8a597368ff 100644 --- a/src/testRunner/unittests/tsbuild/demo.ts +++ b/src/testRunner/unittests/tsbuild/demo.ts @@ -1,10 +1,8 @@ namespace ts { describe("unittests:: tsbuild:: on demo project", () => { let projFs: vfs.FileSystem; - const { time } = getTime(); - before(() => { - projFs = loadProjectFromDisk("tests/projects/demo", time); + projFs = loadProjectFromDisk("tests/projects/demo"); }); after(() => { diff --git a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts index 90aca9016e9..e7dff56ab9f 100644 --- a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts +++ b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts @@ -1,9 +1,8 @@ namespace ts { describe("unittests:: tsbuild:: on project with emitDeclarationOnly set to true", () => { let projFs: vfs.FileSystem; - const { time, tick } = getTime(); before(() => { - projFs = loadProjectFromDisk("tests/projects/emitDeclarationOnly", time); + projFs = loadProjectFromDisk("tests/projects/emitDeclarationOnly"); }); after(() => { projFs = undefined!; @@ -13,7 +12,6 @@ namespace ts { verifyTscIncrementalEdits({ subScenario: `only dts output in circular import project with emitDeclarationOnly${disableMap ? "" : " and declarationMap"}`, fs: () => projFs, - tick, scenario: "emitDeclarationOnly", commandLineArgs: ["--b", "/src", "--verbose"], modifyFs: disableMap ? @@ -31,7 +29,6 @@ namespace ts { verifyTscIncrementalEdits({ subScenario: `only dts output in non circular imports project with emitDeclarationOnly`, fs: () => projFs, - tick, scenario: "emitDeclarationOnly", commandLineArgs: ["--b", "/src", "--verbose"], modifyFs: fs => { diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 55c0831a861..b21c60a8617 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -113,9 +113,11 @@ interface Symbol { } `; + /** + * Load project from disk into /src folder + */ export function loadProjectFromDisk( root: string, - time?: vfs.FileSystemOptions["time"], libContentToAppend?: string ): vfs.FileSystem { const resolver = vfs.createResolver(Harness.IO); @@ -125,22 +127,22 @@ interface Symbol { }, cwd: "/", meta: { defaultLibLocation: "/lib" }, - time }); addLibAndMakeReadonly(fs, libContentToAppend); return fs; } + /** + * All the files must be in /src + */ export function loadProjectFromFiles( files: vfs.FileSet, - time?: vfs.FileSystemOptions["time"], libContentToAppend?: string ): vfs.FileSystem { const fs = new vfs.FileSystem(/*ignoreCase*/ true, { files, cwd: "/", meta: { defaultLibLocation: "/lib" }, - time }); addLibAndMakeReadonly(fs, libContentToAppend); return fs; @@ -152,6 +154,26 @@ interface Symbol { fs.makeReadonly(); } + /** + * Gets the FS mountuing existing fs's /src and /lib folder + */ + export function getFsWithTime(baseFs: vfs.FileSystem) { + const { time, tick } = getTime(); + const host = new fakes.System(baseFs) as any as vfs.FileSystemResolverHost; + host.getWorkspaceRoot = notImplemented; + const resolver = vfs.createResolver(host); + const fs = new vfs.FileSystem(/*ignoreCase*/ true, { + files: { + ["/src"]: new vfs.Mount("/src", resolver), + ["/lib"]: new vfs.Mount("/lib", resolver) + }, + cwd: "/", + meta: { defaultLibLocation: "/lib" }, + time + }); + return { fs, time, tick }; + } + export function verifyOutputsPresent(fs: vfs.FileSystem, outputs: readonly string[]) { for (const output of outputs) { assert(fs.existsSync(output), `Expect file ${output} to exist`); @@ -257,22 +279,24 @@ interface Symbol { } export interface VerifyTsBuildInput extends TscCompile { - tick: () => void; incrementalScenarios: TscIncremental[]; } export function verifyTscIncrementalEdits({ - subScenario, fs, tick, scenario, commandLineArgs, + subScenario, fs, scenario, commandLineArgs, baselineSourceMap, modifyFs, baselineReadFileCalls, incrementalScenarios }: VerifyTsBuildInput) { describe(`tsc --b ${scenario}:: ${subScenario}`, () => { + let tick: () => void; let sys: TscCompileSystem; before(() => { + let baseFs: vfs.FileSystem; + ({ fs: baseFs, tick } = getFsWithTime(fs())); sys = tscCompile({ scenario, subScenario, - fs, + fs: () => baseFs.makeReadonly(), commandLineArgs, modifyFs: fs => { if (modifyFs) modifyFs(fs); @@ -285,6 +309,7 @@ interface Symbol { }); after(() => { sys = undefined!; + tick = undefined!; }); describe("initialBuild", () => { verifyTscBaseline(() => sys); diff --git a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts index d135343a221..eb3658d14cc 100644 --- a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts +++ b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts @@ -1,9 +1,8 @@ namespace ts { describe("unittests:: tsbuild:: inferredTypeFromTransitiveModule::", () => { let projFs: vfs.FileSystem; - const { time, tick } = getTime(); before(() => { - projFs = loadProjectFromDisk("tests/projects/inferredTypeFromTransitiveModule", time); + projFs = loadProjectFromDisk("tests/projects/inferredTypeFromTransitiveModule"); }); after(() => { projFs = undefined!; @@ -13,7 +12,6 @@ namespace ts { scenario: "inferredTypeFromTransitiveModule", subScenario: "inferred type from transitive module", fs: () => projFs, - tick, commandLineArgs: ["--b", "/src", "--verbose"], incrementalScenarios: [{ buildKind: BuildKind.IncrementalDtsChange, @@ -24,7 +22,6 @@ namespace ts { verifyTscIncrementalEdits({ subScenario: "inferred type from transitive module with isolatedModules", fs: () => projFs, - tick, scenario: "inferredTypeFromTransitiveModule", commandLineArgs: ["--b", "/src", "--verbose"], modifyFs: changeToIsolatedModules, @@ -38,7 +35,6 @@ namespace ts { scenario: "inferredTypeFromTransitiveModule", subScenario: "reports errors in files affected by change in signature with isolatedModules", fs: () => projFs, - tick, commandLineArgs: ["--b", "/src", "--verbose"], modifyFs: fs => { changeToIsolatedModules(fs); diff --git a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts index fe4cf9c30e5..f2cbfca320e 100644 --- a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts +++ b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts @@ -1,9 +1,8 @@ namespace ts { describe("unittests:: tsbuild:: lateBoundSymbol:: interface is merged and contains late bound member", () => { let projFs: vfs.FileSystem; - const { time, tick } = getTime(); before(() => { - projFs = loadProjectFromDisk("tests/projects/lateBoundSymbol", time); + projFs = loadProjectFromDisk("tests/projects/lateBoundSymbol"); }); after(() => { projFs = undefined!; // Release the contents @@ -12,7 +11,6 @@ namespace ts { verifyTscIncrementalEdits({ subScenario: "interface is merged and contains late bound member", fs: () => projFs, - tick, scenario: "lateBoundSymbol", commandLineArgs: ["--b", "/src/tsconfig.json", "--verbose"], incrementalScenarios: [{ diff --git a/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts b/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts index 629e8f2dea0..81d8e170e5d 100644 --- a/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts +++ b/src/testRunner/unittests/tsbuild/moduleSpecifiers.ts @@ -1,17 +1,16 @@ namespace ts { // https://github.com/microsoft/TypeScript/issues/31696 describe("unittests:: tsbuild:: moduleSpecifiers:: synthesized module specifiers to referenced projects resolve correctly", () => { - const { time } = getTime(); verifyTsc({ scenario: "moduleSpecifiers", subScenario: `synthesized module specifiers resolve correctly`, fs: () => loadProjectFromFiles({ - "/src/common/nominal.ts": utils.dedent` + "/src/solution/common/nominal.ts": utils.dedent` export declare type Nominal = T & { [Symbol.species]: Name; }; `, - "/src/common/tsconfig.json": utils.dedent` + "/src/solution/common/tsconfig.json": utils.dedent` { "extends": "../../tsconfig.base.json", "compilerOptions": { @@ -19,12 +18,12 @@ namespace ts { }, "include": ["nominal.ts"] }`, - "/src/sub-project/index.ts": utils.dedent` + "/src/solution/sub-project/index.ts": utils.dedent` import { Nominal } from '../common/nominal'; export type MyNominal = Nominal; `, - "/src/sub-project/tsconfig.json": utils.dedent` + "/src/solution/sub-project/tsconfig.json": utils.dedent` { "extends": "../../tsconfig.base.json", "compilerOptions": { @@ -35,7 +34,7 @@ namespace ts { ], "include": ["./index.ts"] }`, - "/src/sub-project-2/index.ts": utils.dedent` + "/src/solution/sub-project-2/index.ts": utils.dedent` import { MyNominal } from '../sub-project/index'; const variable = { @@ -46,7 +45,7 @@ namespace ts { return 'key'; } `, - "/src/sub-project-2/tsconfig.json": utils.dedent` + "/src/solution/sub-project-2/tsconfig.json": utils.dedent` { "extends": "../../tsconfig.base.json", "compilerOptions": { @@ -57,7 +56,7 @@ namespace ts { ], "include": ["./index.ts"] }`, - "/src/tsconfig.json": utils.dedent` + "/src/solution/tsconfig.json": utils.dedent` { "compilerOptions": { "composite": true @@ -68,7 +67,7 @@ namespace ts { ], "include": [] }`, - "/tsconfig.base.json": utils.dedent` + "/src/tsconfig.base.json": utils.dedent` { "compilerOptions": { "skipLibCheck": true, @@ -76,17 +75,17 @@ namespace ts { "outDir": "lib", } }`, - "/tsconfig.json": utils.dedent`{ + "/src/tsconfig.json": utils.dedent`{ "compilerOptions": { "composite": true }, "references": [ - { "path": "./src" } + { "path": "./solution" } ], "include": [] }` - }, time, symbolLibContent), - commandLineArgs: ["-b", "/", "--verbose"] + }, symbolLibContent), + commandLineArgs: ["-b", "/src", "--verbose"] }); }); } diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index 2c85b0b268b..20cbe05a3c1 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -56,7 +56,6 @@ namespace ts { ] ]; const relSources = sources.map(([config, sources]) => [relName(config), sources.map(relName)]) as any as [Sources, Sources, Sources]; - const { time, tick } = getTime(); let expectedOutputFiles = [ ...outputFiles[project.first], ...outputFiles[project.second], @@ -72,7 +71,7 @@ namespace ts { [Diagnostics.Building_project_0, sources[project.third][source.config]] ]; before(() => { - outFileFs = loadProjectFromDisk("tests/projects/outfile-concat", time); + outFileFs = loadProjectFromDisk("tests/projects/outfile-concat"); }); after(() => { outFileFs = undefined!; @@ -123,7 +122,6 @@ namespace ts { const input: VerifyTsBuildInput = { subScenario, fs: () => outFileFs, - tick, scenario: "outfile-concat", commandLineArgs: ["--b", "/src/third", "--verbose"], baselineSourceMap: true, @@ -191,7 +189,7 @@ namespace ts { }); it("verify buildInfo absence results in new build", () => { - const fs = outFileFs.shadow(); + const { fs, tick } = getFsWithTime(outFileFs); const expectedOutputs = [ ...outputFiles[project.first], ...outputFiles[project.second], @@ -205,7 +203,11 @@ namespace ts { verifyOutputsPresent(fs, expectedOutputs); // Delete bundle info host.clearDiagnostics(); + + tick(); host.deleteFile(outputFiles[project.first][ext.buildinfo]); + tick(); + builder = createSolutionBuilder(host); builder.build(); host.assertDiagnosticMessages( @@ -232,14 +234,16 @@ namespace ts { }); it("rebuilds completely when version in tsbuildinfo doesnt match ts version", () => { - const fs = outFileFs.shadow(); + const { fs, tick } = getFsWithTime(outFileFs); const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host); builder.build(); host.assertDiagnosticMessages(...initialExpectedDiagnostics); host.clearDiagnostics(); + tick(); builder = createSolutionBuilder(host); changeCompilerVersion(host); + tick(); builder.build(); host.assertDiagnosticMessages( getExpectedDiagnosticForProjectsInBuild(relSources[project.first][source.config], relSources[project.second][source.config], relSources[project.third][source.config]), @@ -253,7 +257,7 @@ namespace ts { }); it("rebuilds completely when command line incremental flag changes between non dts changes", () => { - const fs = outFileFs.shadow(); + const { fs, tick } = getFsWithTime(outFileFs); // Make non composite third project replaceText(fs, sources[project.third][source.config], `"composite": true,`, ""); diff --git a/src/testRunner/unittests/tsbuild/resolveJsonModule.ts b/src/testRunner/unittests/tsbuild/resolveJsonModule.ts index 5e33afcc5ed..71ae0d4c86e 100644 --- a/src/testRunner/unittests/tsbuild/resolveJsonModule.ts +++ b/src/testRunner/unittests/tsbuild/resolveJsonModule.ts @@ -1,10 +1,9 @@ namespace ts { describe("unittests:: tsbuild:: with resolveJsonModule option on project resolveJsonModuleAndComposite", () => { let projFs: vfs.FileSystem; - const { time, tick } = getTime(); const allExpectedOutputs = ["/src/dist/src/index.js", "/src/dist/src/index.d.ts", "/src/dist/src/hello.json"]; before(() => { - projFs = loadProjectFromDisk("tests/projects/resolveJsonModuleAndComposite", time); + projFs = loadProjectFromDisk("tests/projects/resolveJsonModuleAndComposite"); }); after(() => { @@ -65,7 +64,7 @@ export default hello.hello`); }); it("with resolveJsonModule and sourceMap", () => { - const fs = projFs.shadow(); + const { fs, tick } = getFsWithTime(projFs); const configFile = "src/tsconfig_withFiles.json"; replaceText(fs, configFile, `"composite": true,`, `"composite": true, "sourceMap": true,`); const host = fakes.SolutionBuilderHost.create(fs); @@ -88,7 +87,7 @@ export default hello.hello`); }); it("with resolveJsonModule and without outDir", () => { - const fs = projFs.shadow(); + const { fs, tick } = getFsWithTime(projFs); const configFile = "src/tsconfig_withFiles.json"; replaceText(fs, configFile, `"outDir": "dist",`, ""); const host = fakes.SolutionBuilderHost.create(fs); @@ -112,10 +111,9 @@ export default hello.hello`); }); describe("unittests:: tsbuild:: with resolveJsonModule option on project importJsonFromProjectReference", () => { - const { time, tick } = getTime(); let projFs: vfs.FileSystem; before(() => { - projFs = loadProjectFromDisk("tests/projects/importJsonFromProjectReference", time); + projFs = loadProjectFromDisk("tests/projects/importJsonFromProjectReference"); }); after(() => { @@ -124,7 +122,7 @@ export default hello.hello`); it("when importing json module from project reference", () => { const expectedOutput = "/src/main/index.js"; - const fs = projFs.shadow(); + const { fs, tick } = getFsWithTime(projFs); const configFile = "src/tsconfig.json"; const stringsConfigFile = "src/strings/tsconfig.json"; const mainConfigFile = "src/main/tsconfig.json"; diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index 29a3af1224c..1a27a624197 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -1,14 +1,13 @@ namespace ts { describe("unittests:: tsbuild:: on 'sample1' project", () => { let projFs: vfs.FileSystem; - const { time, tick } = getTime(); const testsOutputs = ["/src/tests/index.js", "/src/tests/index.d.ts", "/src/tests/tsconfig.tsbuildinfo"]; const logicOutputs = ["/src/logic/index.js", "/src/logic/index.js.map", "/src/logic/index.d.ts", "/src/logic/tsconfig.tsbuildinfo"]; const coreOutputs = ["/src/core/index.js", "/src/core/index.d.ts", "/src/core/index.d.ts.map", "/src/core/tsconfig.tsbuildinfo"]; const allExpectedOutputs = [...testsOutputs, ...logicOutputs, ...coreOutputs]; before(() => { - projFs = loadProjectFromDisk("tests/projects/sample1", time); + projFs = loadProjectFromDisk("tests/projects/sample1"); }); after(() => { @@ -93,7 +92,7 @@ namespace ts { }); it("indicates that it would skip builds during a dry build", () => { - const fs = projFs.shadow(); + const { fs, tick } = getFsWithTime(projFs); const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host, ["/src/tests"], { dry: false, force: false, verbose: false }); @@ -160,7 +159,7 @@ namespace ts { describe("force builds", () => { it("always builds under --force", () => { - const fs = projFs.shadow(); + const { fs, time, tick } = getFsWithTime(projFs); const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host, ["/src/tests"], { dry: false, force: true, verbose: false }); @@ -187,7 +186,7 @@ namespace ts { describe("can detect when and what to rebuild", () => { function initializeWithBuild(opts?: BuildOptions) { - const fs = projFs.shadow(); + const { fs, tick } = getFsWithTime(projFs); const host = fakes.SolutionBuilderHost.create(fs); let builder = createSolutionBuilder(host, ["/src/tests"], { verbose: true }); builder.build(); @@ -273,7 +272,7 @@ namespace ts { }); it("does not rebuild if there is no program and bundle in the ts build info event if version doesnt match ts version", () => { - const fs = projFs.shadow(); + const { fs, tick } = getFsWithTime(projFs); const host = fakes.SolutionBuilderHost.create(fs, /*options*/ undefined, /*setParentNodes*/ undefined, createAbstractBuilder); let builder = createSolutionBuilder(host, ["/src/tests"], { verbose: true }); builder.build(); @@ -329,7 +328,7 @@ namespace ts { }); it("rebuilds when extended config file changes", () => { - const fs = projFs.shadow(); + const { fs, tick } = getFsWithTime(projFs); fs.writeFileSync("/src/tests/tsconfig.base.json", JSON.stringify({ compilerOptions: { target: "es3" } })); replaceText(fs, "/src/tests/tsconfig.json", `"references": [`, `"extends": "./tsconfig.base.json", "references": [`); const host = fakes.SolutionBuilderHost.create(fs); @@ -462,7 +461,7 @@ namespace ts { describe("project invalidation", () => { it("invalidates projects correctly", () => { - const fs = projFs.shadow(); + const { fs, time, tick } = getFsWithTime(projFs); const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], { dry: false, force: false, verbose: false }); @@ -571,7 +570,6 @@ export class cNew {}`); verifyTscIncrementalEdits({ subScenario: "sample", fs: () => projFs, - tick, scenario: "sample1", commandLineArgs: ["--b", "/src/tests", "--verbose"], baselineSourceMap: true, @@ -610,7 +608,6 @@ class someClass { }`), verifyTscIncrementalEdits({ subScenario: "when declaration option changes", fs: () => projFs, - tick, scenario: "sample1", commandLineArgs: ["--b", "/src/core", "--verbose"], modifyFs: fs => fs.writeFileSync("/src/core/tsconfig.json", `{ @@ -628,7 +625,6 @@ class someClass { }`), verifyTscIncrementalEdits({ subScenario: "when target option changes", fs: () => projFs, - tick, scenario: "sample1", commandLineArgs: ["--b", "/src/core", "--verbose"], modifyFs: fs => { @@ -655,7 +651,6 @@ class someClass { }`), verifyTscIncrementalEdits({ subScenario: "when module option changes", fs: () => projFs, - tick, scenario: "sample1", commandLineArgs: ["--b", "/src/core", "--verbose"], modifyFs: fs => fs.writeFileSync("/src/core/tsconfig.json", `{ @@ -673,7 +668,6 @@ class someClass { }`), verifyTscIncrementalEdits({ subScenario: "when esModuleInterop option changes", fs: () => projFs, - tick, scenario: "sample1", commandLineArgs: ["--b", "/src/tests", "--verbose"], modifyFs: fs => fs.writeFileSync("/src/tests/tsconfig.json", `{ diff --git a/src/testRunner/unittests/tsc/helpers.ts b/src/testRunner/unittests/tsc/helpers.ts index 7cf071ee9b7..e2229e46d45 100644 --- a/src/testRunner/unittests/tsc/helpers.ts +++ b/src/testRunner/unittests/tsc/helpers.ts @@ -228,7 +228,10 @@ namespace ts { describe(input.subScenario, () => { let sys: TscCompileSystem; before(() => { - sys = tscCompile(input); + sys = tscCompile({ + ...input, + fs: () => getFsWithTime(input.fs()).fs.makeReadonly() + }); }); after(() => { sys = undefined!; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js index b9a16cd511d..99f30881334 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -1,18 +1,18 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/app --verbose -4:23:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:23:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:23:00 PM - Building project '/src/lib/tsconfig.json'... +4:04:00 PM - Building project '/src/lib/tsconfig.json'... -4:23:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:23:00 PM - Updating output of project '/src/app/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... -4:23:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js index 027626780b2..aef9b460c46 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js @@ -1,18 +1,18 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/app --verbose -4:09:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:09:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:09:00 PM - Building project '/src/lib/tsconfig.json'... +4:04:00 PM - Building project '/src/lib/tsconfig.json'... -4:09:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:09:00 PM - Updating output of project '/src/app/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... -4:09:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js index c412a25c3c7..552db042308 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js @@ -1,18 +1,18 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/app --verbose -4:18:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:18:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:18:00 PM - Building project '/src/lib/tsconfig.json'... +4:04:00 PM - Building project '/src/lib/tsconfig.json'... -4:18:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:18:00 PM - Updating output of project '/src/app/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... -4:18:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js index 88eafccd030..54ef4f2ee1f 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js @@ -1,18 +1,18 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/app --verbose -4:37:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:37:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:37:00 PM - Building project '/src/lib/tsconfig.json'... +4:04:00 PM - Building project '/src/lib/tsconfig.json'... -4:37:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:37:00 PM - Updating output of project '/src/app/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... -4:37:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js index 059cc8fb5da..3f4f863e663 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js @@ -1,18 +1,18 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/app --verbose -4:32:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:32:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:32:00 PM - Building project '/src/lib/tsconfig.json'... +4:04:00 PM - Building project '/src/lib/tsconfig.json'... -4:32:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:32:00 PM - Updating output of project '/src/app/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... -4:32:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js index f7e8c93e8e1..16696da278d 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -1,18 +1,18 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/app --verbose -4:27:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:27:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +4:08:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:27:00 PM - Building project '/src/lib/tsconfig.json'... +4:08:00 PM - Building project '/src/lib/tsconfig.json'... -4:27:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +4:08:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:27:00 PM - Updating output of project '/src/app/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/app/tsconfig.json'... -4:27:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js index ca69e7daf20..c14352761c7 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js @@ -1,18 +1,18 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/app --verbose -4:13:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:13:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +4:08:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:13:00 PM - Building project '/src/lib/tsconfig.json'... +4:08:00 PM - Building project '/src/lib/tsconfig.json'... -4:13:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +4:08:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:13:00 PM - Updating output of project '/src/app/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/app/tsconfig.json'... -4:13:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js index cec358794ab..0ed0c54963e 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js @@ -1,16 +1,16 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/app --verbose -4:41:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:41:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +4:08:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:41:00 PM - Building project '/src/lib/tsconfig.json'... +4:08:00 PM - Building project '/src/lib/tsconfig.json'... -4:41:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +4:08:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:41:00 PM - Updating output of project '/src/app/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js index fe2dc60c063..bbc069cc44f 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/app --verbose -4:20:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:20:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist +4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist -4:20:00 PM - Building project '/src/lib/tsconfig.json'... +4:01:00 PM - Building project '/src/lib/tsconfig.json'... -4:20:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:20:00 PM - Building project '/src/app/tsconfig.json'... +4:01:00 PM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js index 682b938a5a6..b87b167bc66 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/app --verbose -4:06:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:06:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist +4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist -4:06:00 PM - Building project '/src/lib/tsconfig.json'... +4:01:00 PM - Building project '/src/lib/tsconfig.json'... -4:06:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:06:00 PM - Building project '/src/app/tsconfig.json'... +4:01:00 PM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js index 1a9f492b35a..48e53ba2ecb 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/app --verbose -4:15:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:15:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist +4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist -4:15:00 PM - Building project '/src/lib/tsconfig.json'... +4:01:00 PM - Building project '/src/lib/tsconfig.json'... -4:15:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:15:00 PM - Building project '/src/app/tsconfig.json'... +4:01:00 PM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js index e331aa605d1..2180d402e80 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/app --verbose -4:34:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:34:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist +4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist -4:34:00 PM - Building project '/src/lib/tsconfig.json'... +4:01:00 PM - Building project '/src/lib/tsconfig.json'... -4:34:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:34:00 PM - Building project '/src/app/tsconfig.json'... +4:01:00 PM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js index 009eac2b5e9..352f657481b 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/app --verbose -4:29:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:29:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist +4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist -4:29:00 PM - Building project '/src/lib/tsconfig.json'... +4:01:00 PM - Building project '/src/lib/tsconfig.json'... -4:29:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:29:00 PM - Building project '/src/app/tsconfig.json'... +4:01:00 PM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js index 0114958750b..23e2db1476a 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc -b /src/app --verbose -4:42:00 PM - Projects in this build: +4:00:00 PM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:42:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/module.js' does not exist +4:00:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/module.js' does not exist -4:42:00 PM - Building project '/src/lib/tsconfig.json'... +4:00:00 PM - Building project '/src/lib/tsconfig.json'... -4:42:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +4:00:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:42:00 PM - Building project '/src/app/tsconfig.json'... +4:00:00 PM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js index 07a9d7d5f30..30db772ad18 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src --verbose -4:09:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/tsconfig.json -4:09:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' -4:09:00 PM - Building project '/src/tsconfig.json'... +4:04:00 PM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index f31e622e19e..68d31fc370e 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src --verbose -4:14:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/tsconfig.json -4:14:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' -4:14:00 PM - Building project '/src/tsconfig.json'... +4:04:00 PM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index ad416738b6f..74786c8fde9 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -1,13 +1,13 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src --verbose -4:18:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/tsconfig.json -4:18:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' +4:08:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' -4:18:00 PM - Building project '/src/tsconfig.json'... +4:08:00 PM - Building project '/src/tsconfig.json'... -4:18:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js index 847deaf3f98..001ed2e2517 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src --verbose -4:06:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/tsconfig.json -4:06:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist -4:06:00 PM - Building project '/src/tsconfig.json'... +4:01:00 PM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index 4bf544fa8f8..f673e36cf40 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src --verbose -4:11:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/tsconfig.json -4:11:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist -4:11:00 PM - Building project '/src/tsconfig.json'... +4:01:00 PM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js index 85eb3a1aaa6..bf4bee4eab4 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js @@ -1,13 +1,13 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src --verbose -4:09:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/tsconfig.json -4:09:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' -4:09:00 PM - Building project '/src/tsconfig.json'... +4:04:00 PM - Building project '/src/tsconfig.json'... -4:09:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js index 97fc039e4be..000d32c145e 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src --verbose -4:14:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/tsconfig.json -4:14:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' -4:14:00 PM - Building project '/src/tsconfig.json'... +4:04:00 PM - Building project '/src/tsconfig.json'... src/lazyIndex.ts(4,5): error TS2554: Expected 0 arguments, but got 1. exitCode:: 1 diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js index 71ce669c39e..b743ce8ce0e 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src --verbose -4:06:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/tsconfig.json -4:06:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist -4:06:00 PM - Building project '/src/tsconfig.json'... +4:01:00 PM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js index 8b0ffb0d8b0..e8e91111756 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src --verbose -4:11:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/tsconfig.json -4:11:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist -4:11:00 PM - Building project '/src/tsconfig.json'... +4:01:00 PM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-Build/synthesized-module-specifiers-resolve-correctly.js b/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-Build/synthesized-module-specifiers-resolve-correctly.js index 55daa38318a..2701a84f6b4 100644 --- a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-Build/synthesized-module-specifiers-resolve-correctly.js +++ b/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-Build/synthesized-module-specifiers-resolve-correctly.js @@ -1,47 +1,47 @@ //// [/lib/initial-buildOutput.txt] -/lib/tsc -b / --verbose +/lib/tsc -b /src --verbose 4:00:00 PM - Projects in this build: - * src/common/tsconfig.json - * src/sub-project/tsconfig.json - * src/sub-project-2/tsconfig.json + * src/solution/common/tsconfig.json + * src/solution/sub-project/tsconfig.json + * src/solution/sub-project-2/tsconfig.json + * src/solution/tsconfig.json * src/tsconfig.json - * tsconfig.json -4:00:00 PM - Project 'src/common/tsconfig.json' is out of date because output file 'lib/src/common/nominal.js' does not exist +4:00:00 PM - Project 'src/solution/common/tsconfig.json' is out of date because output file 'src/lib/solution/common/nominal.js' does not exist -4:00:00 PM - Building project '/src/common/tsconfig.json'... +4:00:00 PM - Building project '/src/solution/common/tsconfig.json'... -4:00:00 PM - Project 'src/sub-project/tsconfig.json' is out of date because output file 'lib/src/sub-project/index.js' does not exist +4:00:00 PM - Project 'src/solution/sub-project/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project/index.js' does not exist -4:00:00 PM - Building project '/src/sub-project/tsconfig.json'... +4:00:00 PM - Building project '/src/solution/sub-project/tsconfig.json'... -4:00:00 PM - Project 'src/sub-project-2/tsconfig.json' is out of date because output file 'lib/src/sub-project-2/index.js' does not exist +4:00:00 PM - Project 'src/solution/sub-project-2/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project-2/index.js' does not exist -4:00:00 PM - Building project '/src/sub-project-2/tsconfig.json'... +4:00:00 PM - Building project '/src/solution/sub-project-2/tsconfig.json'... exitCode:: 0 -//// [/lib/src/common/nominal.d.ts] +//// [/src/lib/solution/common/nominal.d.ts] export declare type Nominal = T & { [Symbol.species]: Name; }; -//// [/lib/src/common/nominal.js] +//// [/src/lib/solution/common/nominal.js] "use strict"; exports.__esModule = true; -//// [/lib/src/common/tsconfig.tsbuildinfo] +//// [/src/lib/solution/common/tsconfig.tsbuildinfo] { "program": { "fileInfos": { - "../../lib.d.ts": { + "../../../../lib/lib.d.ts": { "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" }, - "../../../src/common/nominal.ts": { + "../../../solution/common/nominal.ts": { "version": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", "signature": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" } @@ -51,41 +51,41 @@ exports.__esModule = true; "rootDir": "../../..", "outDir": "../..", "composite": true, - "configFilePath": "../../../src/common/tsconfig.json" + "configFilePath": "../../../solution/common/tsconfig.json" }, "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../../src/common/nominal.ts", - "../../lib.d.ts" + "../../../../lib/lib.d.ts", + "../../../solution/common/nominal.ts" ] }, "version": "FakeTSVersion" } -//// [/lib/src/sub-project/index.d.ts] +//// [/src/lib/solution/sub-project/index.d.ts] import { Nominal } from '../common/nominal'; export declare type MyNominal = Nominal; -//// [/lib/src/sub-project/index.js] +//// [/src/lib/solution/sub-project/index.js] "use strict"; exports.__esModule = true; -//// [/lib/src/sub-project/tsconfig.tsbuildinfo] +//// [/src/lib/solution/sub-project/tsconfig.tsbuildinfo] { "program": { "fileInfos": { - "../../lib.d.ts": { + "../../../../lib/lib.d.ts": { "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" }, - "../../../src/common/nominal.ts": { + "../../../solution/common/nominal.ts": { "version": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n", "signature": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" }, - "../../../src/sub-project/index.ts": { + "../../../solution/sub-project/index.ts": { "version": "-22894055505-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;\n", "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n" } @@ -95,28 +95,28 @@ exports.__esModule = true; "rootDir": "../../..", "outDir": "../..", "composite": true, - "configFilePath": "../../../src/sub-project/tsconfig.json" + "configFilePath": "../../../solution/sub-project/tsconfig.json" }, "referencedMap": { - "../../../src/sub-project/index.ts": [ + "../../../solution/sub-project/index.ts": [ "../common/nominal.d.ts" ] }, "exportedModulesMap": { - "../../../src/sub-project/index.ts": [ + "../../../solution/sub-project/index.ts": [ "../common/nominal.d.ts" ] }, "semanticDiagnosticsPerFile": [ - "../../../src/common/nominal.ts", - "../../../src/sub-project/index.ts", - "../../lib.d.ts" + "../../../../lib/lib.d.ts", + "../../../solution/common/nominal.ts", + "../../../solution/sub-project/index.ts" ] }, "version": "FakeTSVersion" } -//// [/lib/src/sub-project-2/index.d.ts] +//// [/src/lib/solution/sub-project-2/index.d.ts] declare const variable: { key: import("../common/nominal").Nominal; }; @@ -124,7 +124,7 @@ export declare function getVar(): keyof typeof variable; export {}; -//// [/lib/src/sub-project-2/index.js] +//// [/src/lib/solution/sub-project-2/index.js] "use strict"; exports.__esModule = true; var variable = { @@ -136,23 +136,23 @@ function getVar() { exports.getVar = getVar; -//// [/lib/src/sub-project-2/tsconfig.tsbuildinfo] +//// [/src/lib/solution/sub-project-2/tsconfig.tsbuildinfo] { "program": { "fileInfos": { - "../../lib.d.ts": { + "../../../../lib/lib.d.ts": { "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" }, - "../../../src/common/nominal.ts": { + "../../../solution/common/nominal.ts": { "version": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n", "signature": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" }, - "../../../src/sub-project/index.ts": { + "../../../solution/sub-project/index.ts": { "version": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n", "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n" }, - "../../../src/sub-project-2/index.ts": { + "../../../solution/sub-project-2/index.ts": { "version": "-13939373533-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: 'value' as MyNominal,\n};\n\nexport function getVar(): keyof typeof variable {\n return 'key';\n}\n", "signature": "-17233212183-declare const variable: {\r\n key: import(\"../common/nominal\").Nominal;\r\n};\r\nexport declare function getVar(): keyof typeof variable;\r\nexport {};\r\n" } @@ -162,29 +162,29 @@ exports.getVar = getVar; "rootDir": "../../..", "outDir": "../..", "composite": true, - "configFilePath": "../../../src/sub-project-2/tsconfig.json" + "configFilePath": "../../../solution/sub-project-2/tsconfig.json" }, "referencedMap": { - "../../../src/sub-project-2/index.ts": [ + "../../../solution/sub-project-2/index.ts": [ "../sub-project/index.d.ts" ], - "../../../src/sub-project/index.ts": [ + "../../../solution/sub-project/index.ts": [ "../common/nominal.d.ts" ] }, "exportedModulesMap": { - "../../../src/sub-project-2/index.ts": [ + "../../../solution/sub-project-2/index.ts": [ "../common/nominal.d.ts" ], - "../../../src/sub-project/index.ts": [ + "../../../solution/sub-project/index.ts": [ "../common/nominal.d.ts" ] }, "semanticDiagnosticsPerFile": [ - "../../../src/common/nominal.ts", - "../../../src/sub-project-2/index.ts", - "../../../src/sub-project/index.ts", - "../../lib.d.ts" + "../../../../lib/lib.d.ts", + "../../../solution/common/nominal.ts", + "../../../solution/sub-project-2/index.ts", + "../../../solution/sub-project/index.ts" ] }, "version": "FakeTSVersion" diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js index b431c88cafc..9367a222e95 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:06:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:06:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:06:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -4:06:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:06:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -4:06:00 PM - Building project '/src/third/tsconfig.json'... +4:04:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js index a594bfe6e3c..dde86a0a636 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -5:18:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:18:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:18:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -5:18:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:18:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -5:18:00 PM - Building project '/src/third/tsconfig.json'... +4:04:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js index 5548b80206e..8b6e2ffc4f1 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:42:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:42:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:42:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -4:42:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:42:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -4:42:00 PM - Building project '/src/third/tsconfig.json'... +4:04:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js index 2f00e763d2d..b01cb4d4cce 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -5:04:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:04:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -5:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -5:04:00 PM - Building project '/src/third/tsconfig.json'... +4:04:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js index 8a8c99e609a..b267bf60ed3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:20:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:20:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:20:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -4:20:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:20:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -4:20:00 PM - Building project '/src/third/tsconfig.json'... +4:04:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js index 0e56e0a0d7d..4f373f2715d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -6:48:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:48:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:48:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -6:48:00 PM - Project 'src/second/tsconfig.json' is out of date because oldest output 'src/2/second-output.js' is older than newest input 'src/first' +4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because oldest output 'src/2/second-output.js' is older than newest input 'src/first' -6:48:00 PM - Building project '/src/second/tsconfig.json'... +4:04:00 PM - Building project '/src/second/tsconfig.json'... -6:48:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/second' +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/second' -6:48:00 PM - Building project '/src/third/tsconfig.json'... +4:04:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js index 773a38e6cde..6e0f9dad311 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -6:12:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:12:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -6:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -6:12:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -6:12:00 PM - Building project '/src/third/tsconfig.json'... +4:04:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js index db6e9ac1ead..bfdd60afdbe 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -5:58:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:58:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:58:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -5:58:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:58:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -5:58:00 PM - Building project '/src/third/tsconfig.json'... +4:04:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js index b207068186b..554b360c244 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:10:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:10:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:10:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -4:10:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:10:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:10:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -4:10:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js index f2b11d2a3f4..1a351abf785 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -5:22:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:22:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:22:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -5:22:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:22:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -5:22:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -5:22:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js index f2997a1a964..6c4af8b33e5 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -5:31:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:31:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:31:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -5:31:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:31:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -5:31:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -5:31:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js index 1b9b44d62fc..8b110dd43d3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -5:40:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:40:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:40:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -5:40:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:40:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -5:40:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -5:40:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js index 4464319d6fc..ca1beb99e0b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -5:49:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:49:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:49:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -5:49:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:49:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -5:49:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -5:49:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js index 9343ab267c3..f735bc5dc4c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:46:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:46:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:46:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -4:46:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:46:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:46:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -4:46:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js index 0db1eb49ecd..b5914e9854d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:55:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:55:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:55:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -4:55:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:55:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:55:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -4:55:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js index 6b63042a53a..fed09ab53ca 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -5:08:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:08:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -5:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -5:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -5:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js index 2fb81469905..3d32544f7fb 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -5:13:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:13:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:13:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -5:13:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:13:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -5:13:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -5:13:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js index ca5ea8c82a3..f5066a128eb 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:24:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:24:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:24:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -4:24:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:24:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:24:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -4:24:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js index 36ce6286c84..6959522b4b3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:33:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:33:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:33:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -4:33:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:33:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:33:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -4:33:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 5d4fa8ee0b7..83ef9f7b6c8 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -7:10:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -7:10:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -7:10:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -7:10:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -7:10:00 PM - Updating output of project '/src/second/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/second/tsconfig.json'... -7:10:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -7:10:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -7:10:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -7:10:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js index 2340b0e4eae..728eede4865 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -6:34:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:34:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:34:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -6:34:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -6:34:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -6:34:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -6:34:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 1ea7d406088..063cf4616a5 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -7:19:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -7:19:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -7:19:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -7:19:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -7:19:00 PM - Updating output of project '/src/second/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/second/tsconfig.json'... -7:19:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -7:19:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -7:19:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -7:19:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js index 24720d64a77..693db25d6cc 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -6:43:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:43:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:43:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -6:43:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -6:43:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -6:43:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -6:43:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js index 8251e1aa4ae..262c5704c9e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -6:52:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:52:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:52:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -6:52:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -6:52:00 PM - Updating output of project '/src/second/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/second/tsconfig.json'... -6:52:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -6:52:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -6:52:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -6:52:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 8398252d1a8..5485cd7efe4 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -7:01:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -7:01:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -7:01:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -7:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -7:01:00 PM - Updating output of project '/src/second/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/second/tsconfig.json'... -7:01:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -7:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -7:01:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -7:01:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js index c68bdde48bd..bef29197431 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -6:25:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:25:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:25:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -6:25:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -6:25:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -6:25:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -6:25:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js index c8e0c8e1b04..a159a645e0b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -6:16:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:16:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:16:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -6:16:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -6:16:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -6:16:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -6:16:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js index b5e50cda13a..45662bd5aed 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -6:02:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:02:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:02:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -6:02:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -6:02:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -6:02:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -6:02:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js index ac8dcf7bd97..f5b05d0504c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -6:07:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:07:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:07:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -6:07:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -6:07:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -6:07:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -6:07:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js index 56228a2fd92..42617018b17 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:15:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:15:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:15:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -4:15:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:15:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:15:00 PM - Building project '/src/third/tsconfig.json'... +4:04:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js index 6eb21089f94..fb897c92939 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -7:24:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -7:24:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -7:24:00 PM - Building project '/src/first/tsconfig.json'... +4:04:00 PM - Building project '/src/first/tsconfig.json'... -7:24:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -7:24:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -7:24:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... -7:24:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js index 6d55545ee19..e5b38afe127 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -5:26:00 PM - Projects in this build: +4:12:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:26:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:26:00 PM - Building project '/src/first/tsconfig.json'... +4:12:00 PM - Building project '/src/first/tsconfig.json'... -5:26:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:26:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -5:26:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... -5:26:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js index 42134302f36..374744c3500 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -5:35:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:35:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:35:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -5:35:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:35:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -5:35:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -5:35:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js index 19b890c40f1..8e8099d954e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -5:44:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:44:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:44:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -5:44:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:44:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -5:44:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -5:44:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js index 0a0a636d489..007758d42c4 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -5:53:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:53:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -5:53:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -5:53:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -5:53:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -5:53:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -5:53:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js index 9132feba97f..0ba862758a7 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:50:00 PM - Projects in this build: +4:12:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:50:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:50:00 PM - Building project '/src/first/tsconfig.json'... +4:12:00 PM - Building project '/src/first/tsconfig.json'... -4:50:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:50:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:50:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... -4:50:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js index 088741c1b73..63d64eb0a11 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:59:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:59:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:59:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -4:59:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:59:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:59:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -4:59:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js index e3119448dee..76ac6adeb78 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:28:00 PM - Projects in this build: +4:12:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:28:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:28:00 PM - Building project '/src/first/tsconfig.json'... +4:12:00 PM - Building project '/src/first/tsconfig.json'... -4:28:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:28:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:28:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... -4:28:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js index 6e992bc185d..41468039ec8 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:37:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:37:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:37:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -4:37:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:37:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:37:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -4:37:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index bc9b94437a9..0c29565e910 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -7:14:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -7:14:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -7:14:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -7:14:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -7:14:00 PM - Updating output of project '/src/second/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/second/tsconfig.json'... -7:14:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -7:14:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -7:14:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -7:14:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js index 1a106adf19c..6062b244d25 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -6:38:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:38:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:38:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -6:38:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -6:38:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -6:38:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -6:38:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js index 5e547185659..ce3ce9947b2 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -6:56:00 PM - Projects in this build: +4:12:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:56:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:56:00 PM - Building project '/src/first/tsconfig.json'... +4:12:00 PM - Building project '/src/first/tsconfig.json'... -6:56:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:12:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -6:56:00 PM - Updating output of project '/src/second/tsconfig.json'... +4:12:00 PM - Updating output of project '/src/second/tsconfig.json'... -6:56:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +4:12:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -6:56:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -6:56:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... -6:56:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index ff191dc3a7e..7abd0fd5f78 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -7:05:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -7:05:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -7:05:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -7:05:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -7:05:00 PM - Updating output of project '/src/second/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/second/tsconfig.json'... -7:05:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -7:05:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -7:05:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -7:05:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js index 5c771ba3a0b..634fb0a5b02 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -6:29:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:29:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:29:00 PM - Building project '/src/first/tsconfig.json'... +4:08:00 PM - Building project '/src/first/tsconfig.json'... -6:29:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -6:29:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -6:29:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... -6:29:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js index a3581a937ed..3d1c7b448b6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -6:20:00 PM - Projects in this build: +4:12:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:20:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -6:20:00 PM - Building project '/src/first/tsconfig.json'... +4:12:00 PM - Building project '/src/first/tsconfig.json'... -6:20:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -6:20:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -6:20:00 PM - Updating output of project '/src/third/tsconfig.json'... +4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... -6:20:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/baseline-sectioned-sourcemaps.js index a951b2cb946..2f7ba873ad3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/baseline-sectioned-sourcemaps.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:03:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:03:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:03:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -4:03:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:03:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -4:03:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:03:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/declarationMap-and-sourceMap-disabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/declarationMap-and-sourceMap-disabled.js index 5e580fb97ee..675fda54149 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/declarationMap-and-sourceMap-disabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/declarationMap-and-sourceMap-disabled.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -7:25:00 PM - Projects in this build: +4:00:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -7:25:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -7:25:00 PM - Building project '/src/first/tsconfig.json'... +4:00:00 PM - Building project '/src/first/tsconfig.json'... -7:25:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -7:25:00 PM - Building project '/src/second/tsconfig.json'... +4:00:00 PM - Building project '/src/second/tsconfig.json'... -7:25:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -7:25:00 PM - Building project '/src/third/tsconfig.json'... +4:00:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js index e5c10192dce..3130e072f76 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -5:15:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:15:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -5:15:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -5:15:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -5:15:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -5:15:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -5:15:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js index e1ae40062b0..5e2363bdbe3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -5:28:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:28:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -5:28:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -5:28:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -5:28:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -5:28:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -5:28:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js index e4e8ee215d7..da32ae34a23 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -5:37:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:37:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -5:37:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -5:37:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -5:37:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -5:37:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -5:37:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js index 7182bfe769f..cda562a0911 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -5:46:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:46:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -5:46:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -5:46:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -5:46:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -5:46:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -5:46:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-all-projects.js index b4b83f79c3f..b77ccd7276f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:39:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:39:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:39:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -4:39:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:39:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -4:39:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:39:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-different-projects.js index 1ab05fa7b18..476c1c92004 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-different-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:52:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:52:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:52:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -4:52:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:52:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -4:52:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:52:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-all-projects.js index fe0703e4775..a7dbc818b70 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -5:01:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -5:01:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -5:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -5:01:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -5:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -5:01:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-only-one-dependency-project.js index 82ba099392d..42351781f92 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-only-one-dependency-project.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -5:10:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:10:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -5:10:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -5:10:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -5:10:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -5:10:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -5:10:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-all-projects.js index dc8faa1b228..515d0e260d8 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:17:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:17:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:17:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -4:17:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:17:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -4:17:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:17:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-one-dependency.js index 309286ba7c1..4c801cc2b1e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-one-dependency.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:30:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:30:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:30:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -4:30:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:30:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -4:30:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:30:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-baseline-when-internal-is-inside-another-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-baseline-when-internal-is-inside-another-internal.js index 3e818c2e02d..295d79ddce8 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-baseline-when-internal-is-inside-another-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-baseline-when-internal-is-inside-another-internal.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -7:20:00 PM - Projects in this build: +4:00:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -7:20:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -7:20:00 PM - Building project '/src/first/tsconfig.json'... +4:00:00 PM - Building project '/src/first/tsconfig.json'... -7:20:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -7:20:00 PM - Building project '/src/second/tsconfig.json'... +4:00:00 PM - Building project '/src/second/tsconfig.json'... -7:20:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -7:20:00 PM - Building project '/src/third/tsconfig.json'... +4:00:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 04c0ab44444..5a785fe0232 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -7:07:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -7:07:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -7:07:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -7:07:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -7:07:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -7:07:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -7:07:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment.js index adc3d302937..6e60def2dc2 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -6:31:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:31:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -6:31:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -6:31:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -6:31:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -6:31:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -6:31:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index b9ff3b044eb..2fbfbc496bf 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -7:16:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -7:16:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -7:16:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -7:16:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -7:16:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -7:16:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -7:16:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled.js index 6e5d9fb5d8a..6832eef63fc 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -6:40:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:40:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -6:40:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -6:40:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -6:40:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -6:40:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -6:40:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-few-members-of-enum-are-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-few-members-of-enum-are-internal.js index 5bff1f01ba9..37b97a2e325 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-few-members-of-enum-are-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-few-members-of-enum-are-internal.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -7:20:00 PM - Projects in this build: +4:00:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -7:20:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -7:20:00 PM - Building project '/src/first/tsconfig.json'... +4:00:00 PM - Building project '/src/first/tsconfig.json'... -7:20:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -7:20:00 PM - Building project '/src/second/tsconfig.json'... +4:00:00 PM - Building project '/src/second/tsconfig.json'... -7:20:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -7:20:00 PM - Building project '/src/third/tsconfig.json'... +4:00:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-one-two-three-are-prepended-in-order.js index 3a8ac1e88a3..edd66e3d3f6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -6:45:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:45:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -6:45:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -6:45:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -6:45:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -6:45:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -6:45:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 5e5fdf4270f..9cce635b198 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -6:58:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:58:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -6:58:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -6:58:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -6:58:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -6:58:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -6:58:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled.js index 3627b2e3eac..836399723c6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -6:22:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:22:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -6:22:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -6:22:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -6:22:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -6:22:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -6:22:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal.js index 5a42ece8405..6c3036fe151 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -6:09:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:09:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -6:09:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -6:09:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -6:09:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -6:09:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -6:09:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-all-projects.js index 90762184b5a..d75f09700f3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -5:55:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -5:55:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -5:55:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -5:55:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -5:55:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -5:55:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -5:55:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-one-project.js index 53907dad2fa..79fbe880295 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-one-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-one-project.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -6:04:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -6:04:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -6:04:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -6:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -6:04:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -6:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -6:04:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-incremental.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-incremental.js index c5a0d34a649..dc62ade0d97 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-incremental.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-incremental.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:16:00 PM - Projects in this build: +4:00:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:16:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:16:00 PM - Building project '/src/first/tsconfig.json'... +4:00:00 PM - Building project '/src/first/tsconfig.json'... -4:16:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:16:00 PM - Building project '/src/second/tsconfig.json'... +4:00:00 PM - Building project '/src/second/tsconfig.json'... -4:16:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:16:00 PM - Building project '/src/third/tsconfig.json'... +4:00:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-uses-project-references.js index 41678cfdadb..655ea2d37bd 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-uses-project-references.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-uses-project-references.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:12:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:12:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -4:12:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:12:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:12:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-specifies-tsBuildInfoFile.js index a133ea36bd0..89d143e06b4 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-specifies-tsBuildInfoFile.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:16:00 PM - Projects in this build: +4:00:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:16:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:16:00 PM - Building project '/src/first/tsconfig.json'... +4:00:00 PM - Building project '/src/first/tsconfig.json'... -4:16:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:16:00 PM - Building project '/src/second/tsconfig.json'... +4:00:00 PM - Building project '/src/second/tsconfig.json'... -4:16:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:16:00 PM - Building project '/src/third/tsconfig.json'... +4:00:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-source-files-are-empty-in-the-own-file.js index 2026a80c7c6..2464f8287d2 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-source-files-are-empty-in-the-own-file.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-source-files-are-empty-in-the-own-file.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -7:21:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -7:21:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -7:21:00 PM - Building project '/src/first/tsconfig.json'... +4:01:00 PM - Building project '/src/first/tsconfig.json'... -7:21:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -7:21:00 PM - Building project '/src/second/tsconfig.json'... +4:01:00 PM - Building project '/src/second/tsconfig.json'... -7:21:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -7:21:00 PM - Building project '/src/third/tsconfig.json'... +4:01:00 PM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js index f8dfbb246a3..12929fe77d3 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js @@ -1,23 +1,23 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/tests --verbose -4:19:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:19:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' +4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' -4:19:00 PM - Building project '/src/core/tsconfig.json'... +4:04:00 PM - Building project '/src/core/tsconfig.json'... -4:19:00 PM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... +4:04:00 PM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... -4:19:00 PM - Project 'src/logic/tsconfig.json' is out of date because oldest output 'src/logic/index.js' is older than newest input 'src/core' +4:04:00 PM - Project 'src/logic/tsconfig.json' is out of date because oldest output 'src/logic/index.js' is older than newest input 'src/core' -4:19:00 PM - Building project '/src/logic/tsconfig.json'... +4:04:00 PM - Building project '/src/logic/tsconfig.json'... -4:19:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/core' +4:04:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/core' -4:19:00 PM - Building project '/src/tests/tsconfig.json'... +4:04:00 PM - Building project '/src/tests/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js index 236b9b805ca..d46e6bf0f86 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/core --verbose -4:32:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/core/tsconfig.json -4:32:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.d.ts' does not exist +4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.d.ts' does not exist -4:32:00 PM - Building project '/src/core/tsconfig.json'... +4:04:00 PM - Building project '/src/core/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js index 16370626344..2bdd1aa6219 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js @@ -1,17 +1,17 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/tests --verbose -4:47:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:47:00 PM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' +4:04:00 PM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' -4:47:00 PM - Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than oldest output 'src/logic/index.js' +4:04:00 PM - Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than oldest output 'src/logic/index.js' -4:47:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/tests/tsconfig.json' +4:04:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/tests/tsconfig.json' -4:47:00 PM - Building project '/src/tests/tsconfig.json'... +4:04:00 PM - Building project '/src/tests/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js index a7e30496a60..ba39ab2202f 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/tests --verbose -4:27:00 PM - Projects in this build: +4:12:00 PM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:27:00 PM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' +4:12:00 PM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' -4:27:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/decls/index.d.ts' does not exist +4:12:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/decls/index.d.ts' does not exist -4:27:00 PM - Building project '/src/logic/tsconfig.json'... +4:12:00 PM - Building project '/src/logic/tsconfig.json'... -4:27:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/logic' +4:12:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/logic' -4:27:00 PM - Building project '/src/tests/tsconfig.json'... +4:12:00 PM - Building project '/src/tests/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js index a869296127b..5fa1cac3e7e 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/core --verbose -4:42:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/core/tsconfig.json -4:42:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' +4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' -4:42:00 PM - Building project '/src/core/tsconfig.json'... +4:04:00 PM - Building project '/src/core/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js index d6a9b6feaa7..b8e3134eb7f 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/core --verbose -4:37:00 PM - Projects in this build: +4:04:00 PM - Projects in this build: * src/core/tsconfig.json -4:37:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' +4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' -4:37:00 PM - Building project '/src/core/tsconfig.json'... +4:04:00 PM - Building project '/src/core/tsconfig.json'... TSFILE: /src/core/anotherModule.js TSFILE: /src/core/index.js diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js index 63beda515f6..09055358c26 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js @@ -1,23 +1,23 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/tests --verbose -4:23:00 PM - Projects in this build: +4:08:00 PM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:23:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' +4:08:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' -4:23:00 PM - Building project '/src/core/tsconfig.json'... +4:08:00 PM - Building project '/src/core/tsconfig.json'... -4:23:00 PM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... +4:08:00 PM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... -4:23:00 PM - Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +4:08:00 PM - Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies -4:23:00 PM - Updating output timestamps of project '/src/logic/tsconfig.json'... +4:08:00 PM - Updating output timestamps of project '/src/logic/tsconfig.json'... -4:23:00 PM - Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +4:08:00 PM - Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies -4:23:00 PM - Updating output timestamps of project '/src/tests/tsconfig.json'... +4:08:00 PM - Updating output timestamps of project '/src/tests/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/sample.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/sample.js index 8290c68c568..6dce93cacfd 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-Build/sample.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/tests --verbose -4:16:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:16:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist -4:16:00 PM - Building project '/src/core/tsconfig.json'... +4:01:00 PM - Building project '/src/core/tsconfig.json'... -4:16:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist +4:01:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist -4:16:00 PM - Building project '/src/logic/tsconfig.json'... +4:01:00 PM - Building project '/src/logic/tsconfig.json'... -4:16:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist +4:01:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist -4:16:00 PM - Building project '/src/tests/tsconfig.json'... +4:01:00 PM - Building project '/src/tests/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-declaration-option-changes.js index 4c3061e4442..5e1f8e0cab2 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-declaration-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-declaration-option-changes.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/core --verbose -4:29:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/core/tsconfig.json -4:29:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist -4:29:00 PM - Building project '/src/core/tsconfig.json'... +4:01:00 PM - Building project '/src/core/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-esModuleInterop-option-changes.js index 0a438a70cfa..74b9a998ff1 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-esModuleInterop-option-changes.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/tests --verbose -4:44:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:44:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist -4:44:00 PM - Building project '/src/core/tsconfig.json'... +4:01:00 PM - Building project '/src/core/tsconfig.json'... -4:44:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist +4:01:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist -4:44:00 PM - Building project '/src/logic/tsconfig.json'... +4:01:00 PM - Building project '/src/logic/tsconfig.json'... -4:44:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist +4:01:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist -4:44:00 PM - Building project '/src/tests/tsconfig.json'... +4:01:00 PM - Building project '/src/tests/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-specifies-tsBuildInfoFile.js index 383e6cc4524..480116121fc 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-specifies-tsBuildInfoFile.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/tests --verbose -4:28:00 PM - Projects in this build: +4:00:00 PM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:28:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +4:00:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist -4:28:00 PM - Building project '/src/core/tsconfig.json'... +4:00:00 PM - Building project '/src/core/tsconfig.json'... -4:28:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist +4:00:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist -4:28:00 PM - Building project '/src/logic/tsconfig.json'... +4:00:00 PM - Building project '/src/logic/tsconfig.json'... -4:28:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist +4:00:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist -4:28:00 PM - Building project '/src/tests/tsconfig.json'... +4:00:00 PM - Building project '/src/tests/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-module-option-changes.js index 1334ec16723..7d38706c85e 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-module-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-module-option-changes.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/core --verbose -4:39:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/core/tsconfig.json -4:39:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist -4:39:00 PM - Building project '/src/core/tsconfig.json'... +4:01:00 PM - Building project '/src/core/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-target-option-changes.js index a47a3cb18c7..b9370cc5639 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-target-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-target-option-changes.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/core --verbose -4:34:00 PM - Projects in this build: +4:01:00 PM - Projects in this build: * src/core/tsconfig.json -4:34:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist -4:34:00 PM - Building project '/src/core/tsconfig.json'... +4:01:00 PM - Building project '/src/core/tsconfig.json'... TSFILE: /src/core/anotherModule.js TSFILE: /src/core/index.js From f24cad20e2256eaf733ff3b7e44ea1a1f8061e22 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 24 Sep 2019 12:15:37 -0700 Subject: [PATCH 151/159] Update the error summary reporter to take sys as parameter --- src/testRunner/unittests/tsc/helpers.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/testRunner/unittests/tsc/helpers.ts b/src/testRunner/unittests/tsc/helpers.ts index e2229e46d45..ad1d64ac285 100644 --- a/src/testRunner/unittests/tsc/helpers.ts +++ b/src/testRunner/unittests/tsc/helpers.ts @@ -69,7 +69,7 @@ namespace ts { } } - function createReportErrorSummary(options: CompilerOptions): ReportEmitErrorSummary | undefined { + function createReportErrorSummary(sys: TscCompileSystem, options: CompilerOptions): ReportEmitErrorSummary | undefined { return options.pretty ? errorCount => sys.write(getErrorSummaryText(errorCount, sys.newLine)) : undefined; @@ -93,7 +93,7 @@ namespace ts { program, reportDiagnostic, s => sys.write(s + sys.newLine), - createReportErrorSummary(options) + createReportErrorSummary(sys, options) ); baselineBuildInfo([config], sys.vfs, sys.writtenFiles); return sys.exit(exitStatus); @@ -109,7 +109,7 @@ namespace ts { configFileParsingDiagnostics: getConfigFileParsingDiagnostics(config), projectReferences, reportDiagnostic, - reportErrorSummary: createReportErrorSummary(options), + reportErrorSummary: createReportErrorSummary(sys, options), }); baselineBuildInfo([config], sys.vfs, sys.writtenFiles); return sys.exit(exitCode); @@ -131,7 +131,7 @@ namespace ts { /*createProgram*/ undefined, reportDiagnostic, createBuilderStatusReporter(sys, buildOptions.pretty), - createReportErrorSummary(buildOptions) + createReportErrorSummary(sys, buildOptions) ); fakes.patchSolutionBuilderHost(buildHost, sys); const builder = createSolutionBuilder(buildHost, projects, buildOptions); From fd3ba679ec174180acac5c89e572a8ccba97870b Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 24 Sep 2019 12:22:42 -0700 Subject: [PATCH 152/159] Reword the option description per feedback --- src/compiler/commandLineParser.ts | 2 +- src/compiler/diagnosticMessages.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index ca113fb2b33..fd0d428d54b 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -776,7 +776,7 @@ namespace ts { name: "disableSourceOfProjectReferenceRedirect", type: "boolean", category: Diagnostics.Advanced_Options, - description: Diagnostics.Disable_using_source_of_project_reference_redirect_files + description: Diagnostics.Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects }, { name: "noImplicitUseStrict", diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 3b4b25986c2..fa62a0bb514 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -4003,7 +4003,7 @@ "category": "Message", "code": 6220 }, - "Disable using source of project reference redirect files.": { + "Disable use of source files instead of declaration files from referenced projects.": { "category": "Message", "code": 6221 }, From bdd74b031ff41b1161e423058ab2dd177da3f806 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 24 Sep 2019 13:52:56 -0700 Subject: [PATCH 153/159] Remove all baselines --- .../modules-and-globals-mixed-in-amd.js | 584 -- .../multiple-emitHelpers-in-all-projects.js | 1332 ---- .../multiple-prologues-in-all-projects.js | 857 --- .../shebang-in-all-projects.js | 594 -- .../stripInternal.js | 3776 ----------- .../triple-slash-refs-in-all-projects.js | 734 -- .../multiple-emitHelpers-in-all-projects.js | 1160 ---- .../multiple-prologues-in-all-projects.js | 1129 ---- .../stripInternal.js | 4651 ------------- .../modules-and-globals-mixed-in-amd.js | 835 --- .../multiple-emitHelpers-in-all-projects.js | 1731 ----- .../multiple-prologues-in-all-projects.js | 1169 ---- .../initial-Build/shebang-in-all-projects.js | 866 --- .../initial-Build/stripInternal.js | 4727 ------------- .../triple-slash-refs-in-all-projects.js | 1076 --- ...e-resolution-finds-original-source-file.js | 856 --- ...-emitDeclarationOnly-and-declarationMap.js | 121 - ...import-project-with-emitDeclarationOnly.js | 114 - ...mports-project-with-emitDeclarationOnly.js | 100 - ...mports-project-with-emitDeclarationOnly.js | 90 - ...-emitDeclarationOnly-and-declarationMap.js | 135 - ...import-project-with-emitDeclarationOnly.js | 144 - ...mports-project-with-emitDeclarationOnly.js | 116 - ...-transitive-module-with-isolatedModules.js | 110 - .../inferred-type-from-transitive-module.js | 110 - ...hange-in-signature-with-isolatedModules.js | 24 - ...-transitive-module-with-isolatedModules.js | 155 - .../inferred-type-from-transitive-module.js | 144 - ...hange-in-signature-with-isolatedModules.js | 163 - ...s-merged-and-contains-late-bound-member.js | 79 - ...s-merged-and-contains-late-bound-member.js | 70 - ...zed-module-specifiers-resolve-correctly.js | 192 - .../baseline-sectioned-sourcemaps.js | 1301 ---- .../emitHelpers-in-all-projects.js | 1700 ----- .../multiple-prologues-in-all-projects.js | 1501 ----- .../shebang-in-all-projects.js | 1320 ---- .../strict-in-all-projects.js | 1361 ---- ...en-one-two-three-are-prepended-in-order.js | 5505 --------------- .../stripInternal.js | 2697 -------- .../triple-slash-refs-in-all-projects.js | 1571 ----- .../baseline-sectioned-sourcemaps.js | 961 --- .../emitHelpers-in-all-projects.js | 1281 ---- ...tHelpers-in-only-one-dependency-project.js | 1077 --- .../multiple-emitHelpers-in-all-projects.js | 1856 ------ ...tiple-emitHelpers-in-different-projects.js | 1389 ---- .../multiple-prologues-in-all-projects.js | 1155 ---- ...ultiple-prologues-in-different-projects.js | 1053 --- .../shebang-in-all-projects.js | 972 --- .../shebang-in-only-one-dependency-project.js | 942 --- .../strict-in-all-projects.js | 1021 --- .../strict-in-one-dependency.js | 950 --- ...en-one-two-three-are-prepended-in-order.js | 4307 ------------ .../stripInternal-jsdoc-style-comment.js | 2313 ------- ...en-one-two-three-are-prepended-in-order.js | 4507 ------------- ...-jsdoc-style-with-comments-emit-enabled.js | 2413 ------- ...en-one-two-three-are-prepended-in-order.js | 4329 ------------ ...en-one-two-three-are-prepended-in-order.js | 4507 ------------- ...tripInternal-with-comments-emit-enabled.js | 2413 ------- .../stripInternal.js | 2335 ------- .../triple-slash-refs-in-all-projects.js | 1122 ---- .../triple-slash-refs-in-one-project.js | 979 --- ...t-composite-but-uses-project-references.js | 785 --- ...-source-files-are-empty-in-the-own-file.js | 865 --- .../emitHelpers-in-all-projects.js | 1548 ----- ...tHelpers-in-only-one-dependency-project.js | 1570 ----- .../multiple-emitHelpers-in-all-projects.js | 2250 ------- ...tiple-emitHelpers-in-different-projects.js | 1670 ----- .../multiple-prologues-in-all-projects.js | 1534 ----- ...ultiple-prologues-in-different-projects.js | 1432 ---- .../strict-in-all-projects.js | 1395 ---- .../strict-in-one-dependency.js | 1334 ---- ...en-one-two-three-are-prepended-in-order.js | 1985 ------ .../stripInternal-jsdoc-style-comment.js | 943 --- ...en-one-two-three-are-prepended-in-order.js | 2007 ------ ...en-one-two-three-are-prepended-in-order.js | 1985 ------ ...tripInternal-with-comments-emit-enabled.js | 943 --- .../stripInternal.js | 965 --- .../baseline-sectioned-sourcemaps.js | 1741 ----- .../declarationMap-and-sourceMap-disabled.js | 900 --- .../emitHelpers-in-all-projects.js | 2298 ------- ...tHelpers-in-only-one-dependency-project.js | 2066 ------ .../multiple-emitHelpers-in-all-projects.js | 3308 --------- ...tiple-emitHelpers-in-different-projects.js | 2545 ------- .../multiple-prologues-in-all-projects.js | 2158 ------ ...ultiple-prologues-in-different-projects.js | 1995 ------ .../initial-Build/shebang-in-all-projects.js | 1806 ----- .../shebang-in-only-one-dependency-project.js | 1748 ----- .../initial-Build/strict-in-all-projects.js | 1894 ------ .../initial-Build/strict-in-one-dependency.js | 1780 ----- ...hen-internal-is-inside-another-internal.js | 2252 ------- ...en-one-two-three-are-prepended-in-order.js | 5566 ---------------- .../stripInternal-jsdoc-style-comment.js | 5257 --------------- ...en-one-two-three-are-prepended-in-order.js | 5924 ----------------- ...-jsdoc-style-with-comments-emit-enabled.js | 5627 ---------------- ...l-when-few-members-of-enum-are-internal.js | 2742 -------- ...en-one-two-three-are-prepended-in-order.js | 5586 ---------------- ...en-one-two-three-are-prepended-in-order.js | 5788 ---------------- ...tripInternal-with-comments-emit-enabled.js | 5497 --------------- .../initial-Build/stripInternal.js | 5277 --------------- .../triple-slash-refs-in-all-projects.js | 2114 ------ .../triple-slash-refs-in-one-project.js | 1871 ------ ...roject-is-not-composite-but-incremental.js | 1744 ----- ...t-composite-but-uses-project-references.js | 1590 ----- ...final-project-specifies-tsBuildInfoFile.js | 1745 ----- ...-source-files-are-empty-in-the-own-file.js | 1624 ----- .../incremental-declaration-changes/sample.js | 366 - .../when-declaration-option-changes.js | 71 - .../when-esModuleInterop-option-changes.js | 115 - ...en-logic-config-changes-declaration-dir.js | 172 - .../when-module-option-changes.js | 78 - .../when-target-option-changes.js | 91 - .../sample.js | 100 - .../tsbuild/sample1/initial-Build/sample.js | 531 -- .../when-declaration-option-changes.js | 74 - .../when-esModuleInterop-option-changes.js | 259 - .../when-logic-specifies-tsBuildInfoFile.js | 548 -- .../when-module-option-changes.js | 74 - .../when-target-option-changes.js | 108 - 118 files changed, 197023 deletions(-) delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/modules-and-globals-mixed-in-amd.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js delete mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js delete mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js delete mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js delete mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js delete mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js delete mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js delete mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js delete mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js delete mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js delete mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js delete mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js delete mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module.js delete mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js delete mode 100644 tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js delete mode 100644 tests/baselines/reference/tsbuild/lateBoundSymbol/initial-Build/interface-is-merged-and-contains-late-bound-member.js delete mode 100644 tests/baselines/reference/tsbuild/moduleSpecifiers/initial-Build/synthesized-module-specifiers-resolve-correctly.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/baseline-sectioned-sourcemaps.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/declarationMap-and-sourceMap-disabled.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-different-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-only-one-dependency-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-one-dependency.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-baseline-when-internal-is-inside-another-internal.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-few-members-of-enum-are-internal.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-one-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-incremental.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-uses-project-references.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-specifies-tsBuildInfoFile.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-source-files-are-empty-in-the-own-file.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/initial-Build/sample.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/initial-Build/when-declaration-option-changes.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/initial-Build/when-esModuleInterop-option-changes.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-specifies-tsBuildInfoFile.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/initial-Build/when-module-option-changes.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/initial-Build/when-target-option-changes.js diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js deleted file mode 100644 index d84e3661d87..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js +++ /dev/null @@ -1,584 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/app --verbose -4:04:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -4:04:00 PM - Building project '/src/lib/tsconfig.json'... - -4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/module.js] -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(6, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(6, 12) Source(1, 28) + SourceIndex(1) -3 >Emitted(6, 13) Source(1, 29) + SourceIndex(1) -4 >Emitted(6, 16) Source(1, 32) + SourceIndex(1) -5 >Emitted(6, 17) Source(1, 33) + SourceIndex(1) -6 >Emitted(6, 26) Source(1, 34) + SourceIndex(1) -7 >Emitted(6, 27) Source(1, 35) + SourceIndex(1) -8 >Emitted(6, 28) Source(1, 36) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(17, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(17, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(17, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(17, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(17, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(17, 20) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(19, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(19, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(19, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(19, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(19, 16) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 438, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 0, - "end": 438, - "kind": "text" - } - ] - }, - { - "pos": 438, - "end": 639, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - }, - { - "pos": 171, - "end": 253, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (0-438):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-438) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (438-639) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-171):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-171) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (171-253) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; - -====================================================================== - -//// [/src/lib/file1.ts] -export const x = 10;console.log(x); - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(6, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(6, 12) Source(1, 28) + SourceIndex(1) -3 >Emitted(6, 13) Source(1, 29) + SourceIndex(1) -4 >Emitted(6, 16) Source(1, 32) + SourceIndex(1) -5 >Emitted(6, 17) Source(1, 33) + SourceIndex(1) -6 >Emitted(6, 26) Source(1, 34) + SourceIndex(1) -7 >Emitted(6, 27) Source(1, 35) + SourceIndex(1) -8 >Emitted(6, 28) Source(1, 36) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 438, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-438) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-171) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js deleted file mode 100644 index 99f30881334..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,1332 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/app --verbose -4:04:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -4:04:00 PM - Building project '/src/lib/tsconfig.json'... - -4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/module.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -libfile0Spread.apply(void 0, __spread([10, 20, 30])); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - function forlibfile1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; - function forappfile3Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } -}); -var myVar = 30; -function appfile4Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -appfile4Spread.apply(void 0, __spread([10, 20, 30])); -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^^^^^^^^^^^^^^^^^-> -1-> - > -2 >libfile0Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) -4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) -5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) -6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) -7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) -8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) -9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) -10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) -11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(43, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > function -3 > forlibfile1Rest -1->Emitted(44, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(45, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(45, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(45, 42) Source(2, 48) + SourceIndex(1) -4 >Emitted(45, 44) Source(2, 9) + SourceIndex(1) -5 >Emitted(45, 52) Source(2, 10) + SourceIndex(1) -6 >Emitted(45, 54) Source(2, 12) + SourceIndex(1) -7 >Emitted(45, 78) Source(2, 48) + SourceIndex(1) -8 >Emitted(45, 79) Source(2, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(46, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(46, 6) Source(3, 2) + SourceIndex(1) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(47, 5) Source(3, 2) + SourceIndex(1) -2 >Emitted(47, 12) Source(3, 9) + SourceIndex(1) -3 >Emitted(47, 13) Source(3, 10) + SourceIndex(1) -4 >Emitted(47, 16) Source(3, 13) + SourceIndex(1) -5 >Emitted(47, 17) Source(3, 14) + SourceIndex(1) -6 >Emitted(47, 26) Source(3, 15) + SourceIndex(1) -7 >Emitted(47, 27) Source(3, 16) + SourceIndex(1) -8 >Emitted(47, 28) Source(3, 17) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(52, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(52, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(52, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(52, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(52, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(52, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(54, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(54, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(54, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(54, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(54, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(54, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(58, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(58, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(58, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(58, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(58, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(58, 20) Source(1, 21) + SourceIndex(4) ---- ->>> function forappfile3Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >import { x } from "file1"; -2 > function -3 > forappfile3Rest -1->Emitted(59, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(59, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(59, 29) Source(2, 51) + SourceIndex(4) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(60, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(60, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(60, 42) Source(3, 48) + SourceIndex(4) -4 >Emitted(60, 44) Source(3, 9) + SourceIndex(4) -5 >Emitted(60, 52) Source(3, 10) + SourceIndex(4) -6 >Emitted(60, 54) Source(3, 12) + SourceIndex(4) -7 >Emitted(60, 78) Source(3, 48) + SourceIndex(4) -8 >Emitted(60, 79) Source(3, 49) + SourceIndex(4) ---- ->>> } -1 >^^^^ -2 > ^ -1 > - > -2 > } -1 >Emitted(61, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(61, 6) Source(4, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^-> -1 > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(63, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(63, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(63, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(63, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(63, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(63, 16) Source(1, 18) + SourceIndex(5) ---- ->>>function appfile4Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > appfile4Spread -1->Emitted(64, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(64, 10) Source(2, 10) + SourceIndex(5) -3 >Emitted(64, 24) Source(2, 24) + SourceIndex(5) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(65, 5) Source(2, 25) + SourceIndex(5) -2 >Emitted(65, 16) Source(2, 39) + SourceIndex(5) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(66, 10) Source(2, 25) + SourceIndex(5) -2 >Emitted(66, 20) Source(2, 39) + SourceIndex(5) -3 >Emitted(66, 22) Source(2, 25) + SourceIndex(5) -4 >Emitted(66, 43) Source(2, 39) + SourceIndex(5) -5 >Emitted(66, 45) Source(2, 25) + SourceIndex(5) -6 >Emitted(66, 49) Source(2, 39) + SourceIndex(5) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(67, 9) Source(2, 25) + SourceIndex(5) -2 >Emitted(67, 31) Source(2, 39) + SourceIndex(5) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(69, 1) Source(2, 43) + SourceIndex(5) -2 >Emitted(69, 2) Source(2, 44) + SourceIndex(5) ---- ->>>appfile4Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >appfile4Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(70, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(70, 15) Source(3, 15) + SourceIndex(5) -3 >Emitted(70, 39) Source(3, 19) + SourceIndex(5) -4 >Emitted(70, 40) Source(3, 20) + SourceIndex(5) -5 >Emitted(70, 42) Source(3, 22) + SourceIndex(5) -6 >Emitted(70, 44) Source(3, 24) + SourceIndex(5) -7 >Emitted(70, 46) Source(3, 26) + SourceIndex(5) -8 >Emitted(70, 48) Source(3, 28) + SourceIndex(5) -9 >Emitted(70, 50) Source(3, 30) + SourceIndex(5) -10>Emitted(70, 51) Source(3, 31) + SourceIndex(5) -11>Emitted(70, 54) Source(3, 33) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 1180, - "end": 1935, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 1180, - "end": 1935, - "kind": "text" - } - ] - }, - { - "pos": 1935, - "end": 2453, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 227, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 227, - "kind": "text" - } - ] - }, - { - "pos": 227, - "end": 365, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (1180-1935):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1180-1935) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -libfile0Spread.apply(void 0, __spread([10, 20, 30])); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - function forlibfile1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (1935-2453) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; - function forappfile3Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } -}); -var myVar = 30; -function appfile4Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -appfile4Spread.apply(void 0, __spread([10, 20, 30])); - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-227):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-227) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (227-365) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; -declare function appfile4Spread(...b: number[]): void; - -====================================================================== - -//// [/src/lib/file1.ts] -export const x = 10;function forlibfile1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(x); - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -libfile0Spread.apply(void 0, __spread([10, 20, 30])); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - function forlibfile1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^^^^^^^^^^^^^^^^^-> -1-> - > -2 >libfile0Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) -4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) -5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) -6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) -7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) -8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) -9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) -10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) -11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(43, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > function -3 > forlibfile1Rest -1->Emitted(44, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(45, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(45, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(45, 42) Source(2, 48) + SourceIndex(1) -4 >Emitted(45, 44) Source(2, 9) + SourceIndex(1) -5 >Emitted(45, 52) Source(2, 10) + SourceIndex(1) -6 >Emitted(45, 54) Source(2, 12) + SourceIndex(1) -7 >Emitted(45, 78) Source(2, 48) + SourceIndex(1) -8 >Emitted(45, 79) Source(2, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(46, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(46, 6) Source(3, 2) + SourceIndex(1) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(47, 5) Source(3, 2) + SourceIndex(1) -2 >Emitted(47, 12) Source(3, 9) + SourceIndex(1) -3 >Emitted(47, 13) Source(3, 10) + SourceIndex(1) -4 >Emitted(47, 16) Source(3, 13) + SourceIndex(1) -5 >Emitted(47, 17) Source(3, 14) + SourceIndex(1) -6 >Emitted(47, 26) Source(3, 15) + SourceIndex(1) -7 >Emitted(47, 27) Source(3, 16) + SourceIndex(1) -8 >Emitted(47, 28) Source(3, 17) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(52, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(52, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(52, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(52, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(52, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(52, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(54, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(54, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(54, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(54, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(54, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(54, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 1180, - "end": 1935, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:read", - "typescript:spread", - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 227, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (1180-1935) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -libfile0Spread.apply(void 0, __spread([10, 20, 30])); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - function forlibfile1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-227) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js deleted file mode 100644 index aef9b460c46..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,857 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/app --verbose -4:04:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -4:04:00 PM - Building project '/src/lib/tsconfig.json'... - -4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/module.js] -"use strict"; -"myPrologue"; -"myPrologue3"; -"myPrologue2"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/global.ts","file4.ts","../lib/file1.ts","../lib/file2.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/global.ts,file4.ts,../lib/file1.ts,../lib/file2.ts,file3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) -3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1-> -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue" - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1->Emitted(5, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(5, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(5, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(5, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(5, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(9, 5) Source(1, 14) + SourceIndex(3) -2 >Emitted(9, 13) Source(1, 14) + SourceIndex(3) -3 >Emitted(9, 14) Source(1, 15) + SourceIndex(3) -4 >Emitted(9, 17) Source(1, 18) + SourceIndex(3) -5 >Emitted(9, 19) Source(1, 20) + SourceIndex(3) -6 >Emitted(9, 20) Source(1, 21) + SourceIndex(3) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(10, 5) Source(1, 21) + SourceIndex(3) -2 >Emitted(10, 12) Source(1, 28) + SourceIndex(3) -3 >Emitted(10, 13) Source(1, 29) + SourceIndex(3) -4 >Emitted(10, 16) Source(1, 32) + SourceIndex(3) -5 >Emitted(10, 17) Source(1, 33) + SourceIndex(3) -6 >Emitted(10, 26) Source(1, 34) + SourceIndex(3) -7 >Emitted(10, 27) Source(1, 35) + SourceIndex(3) -8 >Emitted(10, 28) Source(1, 36) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologueFile"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > "myPrologueFile" -3 > -1 >Emitted(14, 5) Source(1, 1) + SourceIndex(4) -2 >Emitted(14, 21) Source(1, 17) + SourceIndex(4) -3 >Emitted(14, 22) Source(1, 17) + SourceIndex(4) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1->Emitted(16, 5) Source(2, 14) + SourceIndex(4) -2 >Emitted(16, 13) Source(2, 14) + SourceIndex(4) -3 >Emitted(16, 14) Source(2, 15) + SourceIndex(4) -4 >Emitted(16, 17) Source(2, 18) + SourceIndex(4) -5 >Emitted(16, 19) Source(2, 20) + SourceIndex(4) -6 >Emitted(16, 20) Source(2, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(18, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(18, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(18, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(18, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(18, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(18, 22) Source(2, 24) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologue"; -1->^^^^ -2 > ^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > "myPrologue" -3 > -1->Emitted(21, 5) Source(1, 1) + SourceIndex(5) -2 >Emitted(21, 17) Source(1, 13) + SourceIndex(5) -3 >Emitted(21, 18) Source(1, 13) + SourceIndex(5) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(23, 5) Source(2, 14) + SourceIndex(5) -2 >Emitted(23, 13) Source(2, 14) + SourceIndex(5) -3 >Emitted(23, 14) Source(2, 15) + SourceIndex(5) -4 >Emitted(23, 17) Source(2, 18) + SourceIndex(5) -5 >Emitted(23, 19) Source(2, 20) + SourceIndex(5) -6 >Emitted(23, 20) Source(2, 21) + SourceIndex(5) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 >"myPrologue2"; - > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(25, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(25, 5) Source(2, 7) + SourceIndex(2) -3 >Emitted(25, 10) Source(2, 12) + SourceIndex(2) -4 >Emitted(25, 13) Source(2, 15) + SourceIndex(2) -5 >Emitted(25, 15) Source(2, 17) + SourceIndex(2) -6 >Emitted(25, 16) Source(2, 18) + SourceIndex(2) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 62, - "end": 523, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 62, - "end": 523, - "kind": "text" - } - ] - }, - { - "pos": 523, - "end": 743, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 1, - "text": "\"myPrologue2\";", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 14, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue2" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - }, - { - "pos": 171, - "end": 253, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prepend: (62-523):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (62-523) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (523-743) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-171):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-171) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (171-253) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; - -====================================================================== - -//// [/src/lib/file1.ts] -export const x = 10;console.log(x); - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -"use strict"; -"myPrologue"; -"myPrologue3"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,global.ts,file1.ts,file2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1-> -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue" - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(4, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(8, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(8, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(8, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(8, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(8, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(8, 20) Source(1, 21) + SourceIndex(2) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(9, 5) Source(1, 21) + SourceIndex(2) -2 >Emitted(9, 12) Source(1, 28) + SourceIndex(2) -3 >Emitted(9, 13) Source(1, 29) + SourceIndex(2) -4 >Emitted(9, 16) Source(1, 32) + SourceIndex(2) -5 >Emitted(9, 17) Source(1, 33) + SourceIndex(2) -6 >Emitted(9, 26) Source(1, 34) + SourceIndex(2) -7 >Emitted(9, 27) Source(1, 35) + SourceIndex(2) -8 >Emitted(9, 28) Source(1, 36) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologueFile"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > "myPrologueFile" -3 > -1 >Emitted(13, 5) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 21) Source(1, 17) + SourceIndex(3) -3 >Emitted(13, 22) Source(1, 17) + SourceIndex(3) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1->Emitted(15, 5) Source(2, 14) + SourceIndex(3) -2 >Emitted(15, 13) Source(2, 14) + SourceIndex(3) -3 >Emitted(15, 14) Source(2, 15) + SourceIndex(3) -4 >Emitted(15, 17) Source(2, 18) + SourceIndex(3) -5 >Emitted(15, 19) Source(2, 20) + SourceIndex(3) -6 >Emitted(15, 20) Source(2, 21) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(17, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(17, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(17, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(17, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(17, 22) Source(2, 24) + SourceIndex(1) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 46, - "end": 507, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue\"", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 12, - "expression": { - "pos": 0, - "end": 12, - "text": "myPrologue" - } - } - ] - }, - { - "file": 3, - "text": "\"myPrologue3\"", - "directives": [ - { - "pos": 0, - "end": 13, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -text: (46-507) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-171) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js deleted file mode 100644 index 552db042308..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js +++ /dev/null @@ -1,594 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/app --verbose -4:04:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -4:04:00 PM - Building project '/src/lib/tsconfig.json'... - -4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/module.js] -#!someshebang lib file0 -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>#!someshebang lib file0 ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >#!someshebang lib file0 - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^-> -1->#!someshebang lib file1 - >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(6, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(6, 13) Source(2, 14) + SourceIndex(1) -3 >Emitted(6, 14) Source(2, 15) + SourceIndex(1) -4 >Emitted(6, 17) Source(2, 18) + SourceIndex(1) -5 >Emitted(6, 19) Source(2, 20) + SourceIndex(1) -6 >Emitted(6, 20) Source(2, 21) + SourceIndex(1) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(7, 5) Source(2, 21) + SourceIndex(1) -2 >Emitted(7, 12) Source(2, 28) + SourceIndex(1) -3 >Emitted(7, 13) Source(2, 29) + SourceIndex(1) -4 >Emitted(7, 16) Source(2, 32) + SourceIndex(1) -5 >Emitted(7, 17) Source(2, 33) + SourceIndex(1) -6 >Emitted(7, 26) Source(2, 34) + SourceIndex(1) -7 >Emitted(7, 27) Source(2, 35) + SourceIndex(1) -8 >Emitted(7, 28) Source(2, 36) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->#!someshebang app file3 - >export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(18, 5) Source(2, 14) + SourceIndex(4) -2 >Emitted(18, 13) Source(2, 14) + SourceIndex(4) -3 >Emitted(18, 14) Source(2, 15) + SourceIndex(4) -4 >Emitted(18, 17) Source(2, 18) + SourceIndex(4) -5 >Emitted(18, 19) Source(2, 20) + SourceIndex(4) -6 >Emitted(18, 20) Source(2, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(20, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(20, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(20, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(20, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(20, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(20, 16) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 25, - "end": 463, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 25, - "end": 463, - "kind": "text" - } - ] - }, - { - "pos": 463, - "end": 664, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 25, - "end": 196, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 25, - "end": 196, - "kind": "text" - } - ] - }, - { - "pos": 196, - "end": 278, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (25-463):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (25-463) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (463-664) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (25-196):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (25-196) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (196-278) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; - -====================================================================== - -//// [/src/lib/file1.ts] -#!someshebang lib file1 -export const x = 10;console.log(x); - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -#!someshebang lib file0 -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>#!someshebang lib file0 ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >#!someshebang lib file0 - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^-> -1->#!someshebang lib file1 - >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(6, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(6, 13) Source(2, 14) + SourceIndex(1) -3 >Emitted(6, 14) Source(2, 15) + SourceIndex(1) -4 >Emitted(6, 17) Source(2, 18) + SourceIndex(1) -5 >Emitted(6, 19) Source(2, 20) + SourceIndex(1) -6 >Emitted(6, 20) Source(2, 21) + SourceIndex(1) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(7, 5) Source(2, 21) + SourceIndex(1) -2 >Emitted(7, 12) Source(2, 28) + SourceIndex(1) -3 >Emitted(7, 13) Source(2, 29) + SourceIndex(1) -4 >Emitted(7, 16) Source(2, 32) + SourceIndex(1) -5 >Emitted(7, 17) Source(2, 33) + SourceIndex(1) -6 >Emitted(7, 26) Source(2, 34) + SourceIndex(1) -7 >Emitted(7, 27) Source(2, 35) + SourceIndex(1) -8 >Emitted(7, 28) Source(2, 36) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 25, - "end": 463, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 25, - "end": 196, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (25-463) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (25-196) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js deleted file mode 100644 index 54ef4f2ee1f..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js +++ /dev/null @@ -1,3776 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/app --verbose -4:04:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -4:04:00 PM - Building project '/src/lib/tsconfig.json'... - -4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/module.js] -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN = exports.normalN || (exports.normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther = exports.internalOther || (exports.internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>/*@internal*/ var myGlob = 20; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >/*@internal*/ -3 > -4 > const -5 > myGlob -6 > = -7 > 20 -8 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) -5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) -6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) -7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) -8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) ---- ->>> var normalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) ---- ->>> /*@internal*/ function normalC() { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->export class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) -2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) -3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) -2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) -2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) -3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) -4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) -5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) -6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) -7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) -2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) -3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) -2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) -3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) -4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) -5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) -6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) -7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) -8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) -9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) -2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) -3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) -4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) -5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) -6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) -7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) ---- ->>> return normalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) -2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) -3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) -4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) ---- ->>> exports.normalC = normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > normalC -1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) ---- ->>> var normalN; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} - > -2 > export namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) -3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) -4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) ---- ->>> (function (normalN) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export namespace -3 > normalN -1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) -3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) -2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) -3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) -2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) -3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) -4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) ---- ->>> normalN.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) -2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) -3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) -4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function foo() { } -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) -2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) -3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) -4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) -5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) -6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) -7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) ---- ->>> normalN.foo = foo; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) -2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) -3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) -4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) -2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) -3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) -4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) -5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) -6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) ---- ->>> (function (someNamespace) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) -3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) -2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) -3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) -4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) ---- ->>> someNamespace.C = C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) -2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) -3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) -4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) -2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) -3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) -4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) -5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) -6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) -7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) -8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) -9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) ---- ->>> /*@internal*/ var someOther; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) -2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) -3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) -4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) -5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) -6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) ---- ->>> (function (someOther) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) -3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) -3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) -4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) -3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) -2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) -3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) -4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) -2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) -3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) -4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) -2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) -3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) -4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) -5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) -6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) -7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) -8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) -9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) -2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) -3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) -4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) -5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) -6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) -7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) -8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) -9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) -2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) -3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) -5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) -6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) -7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) -8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) -9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) -2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) -3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) -4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) -5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) -6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) -7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) -2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) -3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) -4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) -5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) -3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) -3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) -3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) -3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) -2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) -3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) -4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) -5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) -6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) -7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) -8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) -9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) ---- ->>> })(normalN = exports.normalN || (exports.normalN = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -10> ^^^-> -1 > - > -2 > } -3 > -4 > normalN -5 > -6 > normalN -7 > -8 > normalN -9 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) -2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) -3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) -4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) -5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) -6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) -7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) -8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) -9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) ---- ->>> /*@internal*/ var internalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 > /*@internal*/ -3 > -1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) -2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) -3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) ---- ->>> function internalC() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class internalC { -2 > } -1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) ---- ->>> return internalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class internalC {} -1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) -2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) -3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) -4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) ---- ->>> exports.internalC = internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^-> -1-> -2 > internalC -1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) -2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function internalfoo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> {} - > -2 > /*@internal*/ -3 > -4 > export function -5 > internalfoo -6 > () { -7 > } -1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) -2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) -3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) -4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) -5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) -6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) -7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) ---- ->>> exports.internalfoo = internalfoo; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^-> -1 > -2 > export function internalfoo() {} -1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalNamespace -6 > { export class someClass {} } -1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) -2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) -3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) -4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) -5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) -6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) ---- ->>> (function (internalNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > internalNamespace -1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) -3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) -2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) -3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) -4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) -2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) -3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) -4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) ---- ->>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > -8 > internalNamespace -9 > { export class someClass {} } -1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) -2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) -3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) -4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) -5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) -6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) -7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) -8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) -9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) ---- ->>> /*@internal*/ var internalOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) -2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) -3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) -4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) -5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) -6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) ---- ->>> (function (internalOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 > export namespace -3 > internalOther -1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) -3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) -3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) -4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) -3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) -2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) -3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) -4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) -2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) -3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) -4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) -2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) -3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) -4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) -5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) -6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) -7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) -8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) -9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) ---- ->>> })(internalOther = exports.internalOther || (exports.internalOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > internalOther -5 > -6 > internalOther -7 > -8 > internalOther -9 > .something { export class someClass {} } -1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) -2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) -3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) -4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) -5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) -6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) -7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) -8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) -9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalImport = internalNamespace.someClass; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) -2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) -3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) -5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) -6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) -7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) -8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) -9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) -10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) -2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) -3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) -4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) -5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) -6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) -7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) -8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) -2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) -3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) -4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) -5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) -3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) -3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) -3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) -3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) ---- ->>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) -2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) -3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) -4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) -5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) -6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) -7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) -8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) -9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) ---- ->>> console.log(exports.x); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1 > -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1 >Emitted(96, 5) Source(26, 51) + SourceIndex(1) -2 >Emitted(96, 12) Source(26, 58) + SourceIndex(1) -3 >Emitted(96, 13) Source(26, 59) + SourceIndex(1) -4 >Emitted(96, 16) Source(26, 62) + SourceIndex(1) -5 >Emitted(96, 17) Source(26, 63) + SourceIndex(1) -6 >Emitted(96, 26) Source(26, 64) + SourceIndex(1) -7 >Emitted(96, 27) Source(26, 65) + SourceIndex(1) -8 >Emitted(96, 28) Source(26, 66) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(101, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(101, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(101, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(101, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(101, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(101, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(103, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(103, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(103, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(103, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(103, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(103, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(107, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(107, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(107, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(107, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(107, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(107, 20) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(109, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(109, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(109, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(109, 16) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4158, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 0, - "end": 4158, - "kind": "text" - } - ] - }, - { - "pos": 4158, - "end": 4359, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 217, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 217, - "kind": "text" - } - ] - }, - { - "pos": 217, - "end": 299, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (0-4158):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-4158) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN = exports.normalN || (exports.normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther = exports.internalOther || (exports.internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (4158-4359) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-217):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-217) -declare module "file1" { - export const x = 10; - export class normalC { - } - export namespace normalN { - } -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (217-299) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; - -====================================================================== - -//// [/src/lib/file1.ts] -export const x = 10; -export class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -export namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ export class internalC {} -/*@internal*/ export function internalfoo() {} -/*@internal*/ export namespace internalNamespace { export class someClass {} } -/*@internal*/ export namespace internalOther.something { export class someClass {} } -/*@internal*/ export import internalImport = internalNamespace.someClass; -/*@internal*/ export type internalType = internalC; -/*@internal*/ export const internalConst = 10; -/*@internal*/ export enum internalEnum { a, b, c }console.log(x); - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN = exports.normalN || (exports.normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther = exports.internalOther || (exports.internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>/*@internal*/ var myGlob = 20; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >/*@internal*/ -3 > -4 > const -5 > myGlob -6 > = -7 > 20 -8 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) -5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) -6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) -7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) -8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) ---- ->>> var normalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) ---- ->>> /*@internal*/ function normalC() { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->export class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) -2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) -3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) -2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) -2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) -3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) -4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) -5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) -6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) -7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) -2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) -3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) -2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) -3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) -4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) -5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) -6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) -7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) -8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) -9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) -2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) -3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) -4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) -5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) -6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) -7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) ---- ->>> return normalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) -2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) -3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) -4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) ---- ->>> exports.normalC = normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > normalC -1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) ---- ->>> var normalN; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} - > -2 > export namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) -3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) -4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) ---- ->>> (function (normalN) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export namespace -3 > normalN -1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) -3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) -2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) -3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) -2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) -3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) -4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) ---- ->>> normalN.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) -2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) -3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) -4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function foo() { } -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) -2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) -3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) -4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) -5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) -6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) -7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) ---- ->>> normalN.foo = foo; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) -2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) -3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) -4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) -2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) -3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) -4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) -5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) -6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) ---- ->>> (function (someNamespace) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) -3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) -2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) -3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) -4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) ---- ->>> someNamespace.C = C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) -2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) -3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) -4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) -2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) -3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) -4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) -5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) -6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) -7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) -8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) -9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) ---- ->>> /*@internal*/ var someOther; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) -2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) -3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) -4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) -5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) -6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) ---- ->>> (function (someOther) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) -3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) -3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) -4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) -3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) -2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) -3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) -4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) -2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) -3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) -4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) -2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) -3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) -4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) -5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) -6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) -7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) -8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) -9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) -2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) -3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) -4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) -5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) -6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) -7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) -8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) -9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) -2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) -3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) -5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) -6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) -7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) -8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) -9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) -2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) -3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) -4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) -5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) -6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) -7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) -2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) -3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) -4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) -5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) -3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) -3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) -3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) -3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) -2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) -3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) -4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) -5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) -6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) -7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) -8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) -9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) ---- ->>> })(normalN = exports.normalN || (exports.normalN = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -10> ^^^-> -1 > - > -2 > } -3 > -4 > normalN -5 > -6 > normalN -7 > -8 > normalN -9 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) -2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) -3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) -4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) -5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) -6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) -7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) -8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) -9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) ---- ->>> /*@internal*/ var internalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 > /*@internal*/ -3 > -1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) -2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) -3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) ---- ->>> function internalC() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class internalC { -2 > } -1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) ---- ->>> return internalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class internalC {} -1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) -2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) -3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) -4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) ---- ->>> exports.internalC = internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^-> -1-> -2 > internalC -1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) -2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function internalfoo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> {} - > -2 > /*@internal*/ -3 > -4 > export function -5 > internalfoo -6 > () { -7 > } -1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) -2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) -3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) -4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) -5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) -6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) -7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) ---- ->>> exports.internalfoo = internalfoo; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^-> -1 > -2 > export function internalfoo() {} -1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalNamespace -6 > { export class someClass {} } -1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) -2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) -3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) -4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) -5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) -6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) ---- ->>> (function (internalNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > internalNamespace -1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) -3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) -2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) -3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) -4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) -2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) -3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) -4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) ---- ->>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > -8 > internalNamespace -9 > { export class someClass {} } -1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) -2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) -3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) -4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) -5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) -6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) -7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) -8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) -9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) ---- ->>> /*@internal*/ var internalOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) -2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) -3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) -4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) -5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) -6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) ---- ->>> (function (internalOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 > export namespace -3 > internalOther -1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) -3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) -3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) -4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) -3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) -2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) -3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) -4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) -2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) -3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) -4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) -2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) -3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) -4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) -5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) -6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) -7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) -8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) -9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) ---- ->>> })(internalOther = exports.internalOther || (exports.internalOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > internalOther -5 > -6 > internalOther -7 > -8 > internalOther -9 > .something { export class someClass {} } -1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) -2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) -3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) -4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) -5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) -6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) -7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) -8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) -9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalImport = internalNamespace.someClass; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) -2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) -3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) -5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) -6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) -7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) -8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) -9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) -10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) -2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) -3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) -4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) -5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) -6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) -7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) -8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) -2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) -3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) -4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) -5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) -3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) -3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) -3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) -3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) ---- ->>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) -2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) -3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) -4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) -5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) -6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) -7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) -8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) -9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) ---- ->>> console.log(exports.x); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1 > -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1 >Emitted(96, 5) Source(26, 51) + SourceIndex(1) -2 >Emitted(96, 12) Source(26, 58) + SourceIndex(1) -3 >Emitted(96, 13) Source(26, 59) + SourceIndex(1) -4 >Emitted(96, 16) Source(26, 62) + SourceIndex(1) -5 >Emitted(96, 17) Source(26, 63) + SourceIndex(1) -6 >Emitted(96, 26) Source(26, 64) + SourceIndex(1) -7 >Emitted(96, 27) Source(26, 65) + SourceIndex(1) -8 >Emitted(96, 28) Source(26, 66) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(101, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(101, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(101, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(101, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(101, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(101, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(103, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(103, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(103, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(103, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(103, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(103, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4158, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 26, - "kind": "internal" - }, - { - "pos": 28, - "end": 108, - "kind": "text" - }, - { - "pos": 108, - "end": 212, - "kind": "internal" - }, - { - "pos": 214, - "end": 253, - "kind": "text" - }, - { - "pos": 253, - "end": 721, - "kind": "internal" - }, - { - "pos": 723, - "end": 730, - "kind": "text" - }, - { - "pos": 730, - "end": 1219, - "kind": "internal" - }, - { - "pos": 1221, - "end": 1312, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-4158) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN = exports.normalN || (exports.normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther = exports.internalOther || (exports.internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -internal: (0-26) -declare const myGlob = 20; ----------------------------------------------------------------------- -text: (28-108) -declare module "file1" { - export const x = 10; - export class normalC { - ----------------------------------------------------------------------- -internal: (108-212) - constructor(); - prop: string; - method(): void; - /*@internal*/ c: number; ----------------------------------------------------------------------- -text: (214-253) - } - export namespace normalN { - ----------------------------------------------------------------------- -internal: (253-721) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (723-730) - } - ----------------------------------------------------------------------- -internal: (730-1219) - export class internalC { - } - export function internalfoo(): void; - export namespace internalNamespace { - class someClass { - } - } - export namespace internalOther.something { - class someClass { - } - } - export import internalImport = internalNamespace.someClass; - export type internalType = internalC; - export const internalConst = 10; - export enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (1221-1312) -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js deleted file mode 100644 index 3f4f863e663..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js +++ /dev/null @@ -1,734 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/app --verbose -4:04:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -4:04:00 PM - Building project '/src/lib/tsconfig.json'... - -4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/module.js] -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -/// -var file4Const = new appfile4(); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>/// -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 >/// -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0) ---- ->>>var file0Const = new libfile0(); -1 > -2 >^^^^ -3 > ^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^ -7 > ^^ -8 > ^ -1 > - > -2 >const -3 > file0Const -4 > = -5 > new -6 > libfile0 -7 > () -8 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0) -4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0) -5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) -6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0) -7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0) -8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0) ---- ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0) -5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0) -6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(7, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(8, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(8, 12) Source(1, 28) + SourceIndex(1) -3 >Emitted(8, 13) Source(1, 29) + SourceIndex(1) -4 >Emitted(8, 16) Source(1, 32) + SourceIndex(1) -5 >Emitted(8, 17) Source(1, 33) + SourceIndex(1) -6 >Emitted(8, 26) Source(1, 34) + SourceIndex(1) -7 >Emitted(8, 27) Source(1, 35) + SourceIndex(1) -8 >Emitted(8, 28) Source(1, 36) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(13, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(13, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(13, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(13, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(13, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(13, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(15, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(15, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(15, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(19, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(19, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(19, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(19, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(19, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(19, 20) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>/// -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 >/// -1 >Emitted(21, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(21, 40) Source(1, 40) + SourceIndex(5) ---- ->>>var file4Const = new appfile4(); -1 > -2 >^^^^ -3 > ^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^ -7 > ^^ -8 > ^ -1 > - > -2 >const -3 > file4Const -4 > = -5 > new -6 > appfile4 -7 > () -8 > ; -1 >Emitted(22, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(2, 7) + SourceIndex(5) -3 >Emitted(22, 15) Source(2, 17) + SourceIndex(5) -4 >Emitted(22, 18) Source(2, 20) + SourceIndex(5) -5 >Emitted(22, 22) Source(2, 24) + SourceIndex(5) -6 >Emitted(22, 30) Source(2, 32) + SourceIndex(5) -7 >Emitted(22, 32) Source(2, 34) + SourceIndex(5) -8 >Emitted(22, 33) Source(2, 35) + SourceIndex(5) ---- ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(23, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(3, 7) + SourceIndex(5) -3 >Emitted(23, 10) Source(3, 12) + SourceIndex(5) -4 >Emitted(23, 13) Source(3, 15) + SourceIndex(5) -5 >Emitted(23, 15) Source(3, 17) + SourceIndex(5) -6 >Emitted(23, 16) Source(3, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 513, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 0, - "end": 513, - "kind": "text" - } - ] - }, - { - "pos": 513, - "end": 789, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "reference", - "data": "tripleRef.d.ts" - }, - { - "pos": 41, - "end": 87, - "kind": "reference", - "data": "../lib/tripleRef.d.ts" - }, - { - "pos": 89, - "end": 297, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 89, - "end": 297, - "kind": "text" - } - ] - }, - { - "pos": 297, - "end": 416, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (0-513):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-513) -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (513-789) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -/// -var file4Const = new appfile4(); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -reference: (0-39):: tripleRef.d.ts -/// ----------------------------------------------------------------------- -reference: (41-87):: ../lib/tripleRef.d.ts -/// ----------------------------------------------------------------------- -prepend: (89-297):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (89-297) -declare const file0Const: libfile0; -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (297-416) -declare module "file3" { - export const z = 30; -} -declare const file4Const: appfile4; -declare const myVar = 30; - -====================================================================== - -//// [/src/lib/file1.ts] -export const x = 10;console.log(x); - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>/// -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 >/// -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0) ---- ->>>var file0Const = new libfile0(); -1 > -2 >^^^^ -3 > ^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^ -7 > ^^ -8 > ^ -1 > - > -2 >const -3 > file0Const -4 > = -5 > new -6 > libfile0 -7 > () -8 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0) -4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0) -5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) -6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0) -7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0) -8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0) ---- ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0) -5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0) -6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(7, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(8, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(8, 12) Source(1, 28) + SourceIndex(1) -3 >Emitted(8, 13) Source(1, 29) + SourceIndex(1) -4 >Emitted(8, 16) Source(1, 32) + SourceIndex(1) -5 >Emitted(8, 17) Source(1, 33) + SourceIndex(1) -6 >Emitted(8, 26) Source(1, 34) + SourceIndex(1) -7 >Emitted(8, 27) Source(1, 35) + SourceIndex(1) -8 >Emitted(8, 28) Source(1, 36) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(13, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(13, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(13, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(13, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(13, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(13, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(15, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(15, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(15, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 513, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "reference", - "data": "tripleRef.d.ts" - }, - { - "pos": 41, - "end": 249, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-513) -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -reference: (0-39):: tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (41-249) -declare const file0Const: libfile0; -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js deleted file mode 100644 index 16696da278d..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,1160 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/app --verbose -4:08:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:08:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -4:08:00 PM - Building project '/src/lib/tsconfig.json'... - -4:08:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -4:08:00 PM - Updating output of project '/src/app/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/module.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -libfile0Spread.apply(void 0, __spread([10, 20, 30])); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - function forlibfile1Rest() { } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; - function forappfile3Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } -}); -var myVar = 30; -function appfile4Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -appfile4Spread.apply(void 0, __spread([10, 20, 30])); -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;;;;;ICArC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^^^^^^^^^^^^^^^^^-> -1-> - > -2 >libfile0Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) -4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) -5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) -6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) -7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) -8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) -9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) -10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) -11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(43, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> -2 > function -3 > forlibfile1Rest -4 > () { -5 > } -1->Emitted(44, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1) -4 >Emitted(44, 34) Source(1, 50) + SourceIndex(1) -5 >Emitted(44, 35) Source(1, 51) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(49, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(49, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(49, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(49, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(49, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(49, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(51, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(51, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(51, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(51, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(51, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(51, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(55, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(55, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(55, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(55, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(55, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(55, 20) Source(1, 21) + SourceIndex(4) ---- ->>> function forappfile3Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >import { x } from "file1"; -2 > function -3 > forappfile3Rest -1->Emitted(56, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(56, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(56, 29) Source(2, 51) + SourceIndex(4) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(57, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(57, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(57, 42) Source(3, 48) + SourceIndex(4) -4 >Emitted(57, 44) Source(3, 9) + SourceIndex(4) -5 >Emitted(57, 52) Source(3, 10) + SourceIndex(4) -6 >Emitted(57, 54) Source(3, 12) + SourceIndex(4) -7 >Emitted(57, 78) Source(3, 48) + SourceIndex(4) -8 >Emitted(57, 79) Source(3, 49) + SourceIndex(4) ---- ->>> } -1 >^^^^ -2 > ^ -1 > - > -2 > } -1 >Emitted(58, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(58, 6) Source(4, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^-> -1 > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(60, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(60, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(60, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(60, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(60, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(60, 16) Source(1, 18) + SourceIndex(5) ---- ->>>function appfile4Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > appfile4Spread -1->Emitted(61, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(61, 10) Source(2, 10) + SourceIndex(5) -3 >Emitted(61, 24) Source(2, 24) + SourceIndex(5) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(62, 5) Source(2, 25) + SourceIndex(5) -2 >Emitted(62, 16) Source(2, 39) + SourceIndex(5) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(63, 10) Source(2, 25) + SourceIndex(5) -2 >Emitted(63, 20) Source(2, 39) + SourceIndex(5) -3 >Emitted(63, 22) Source(2, 25) + SourceIndex(5) -4 >Emitted(63, 43) Source(2, 39) + SourceIndex(5) -5 >Emitted(63, 45) Source(2, 25) + SourceIndex(5) -6 >Emitted(63, 49) Source(2, 39) + SourceIndex(5) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(64, 9) Source(2, 25) + SourceIndex(5) -2 >Emitted(64, 31) Source(2, 39) + SourceIndex(5) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(66, 1) Source(2, 43) + SourceIndex(5) -2 >Emitted(66, 2) Source(2, 44) + SourceIndex(5) ---- ->>>appfile4Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >appfile4Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(67, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(67, 15) Source(3, 15) + SourceIndex(5) -3 >Emitted(67, 39) Source(3, 19) + SourceIndex(5) -4 >Emitted(67, 40) Source(3, 20) + SourceIndex(5) -5 >Emitted(67, 42) Source(3, 22) + SourceIndex(5) -6 >Emitted(67, 44) Source(3, 24) + SourceIndex(5) -7 >Emitted(67, 46) Source(3, 26) + SourceIndex(5) -8 >Emitted(67, 48) Source(3, 28) + SourceIndex(5) -9 >Emitted(67, 50) Source(3, 30) + SourceIndex(5) -10>Emitted(67, 51) Source(3, 31) + SourceIndex(5) -11>Emitted(67, 54) Source(3, 33) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 1180, - "end": 1821, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 1180, - "end": 1821, - "kind": "text" - } - ] - }, - { - "pos": 1821, - "end": 2339, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 227, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 227, - "kind": "text" - } - ] - }, - { - "pos": 227, - "end": 365, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (1180-1821):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1180-1821) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -libfile0Spread.apply(void 0, __spread([10, 20, 30])); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - function forlibfile1Rest() { } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (1821-2339) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; - function forappfile3Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } -}); -var myVar = 30; -function appfile4Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -appfile4Spread.apply(void 0, __spread([10, 20, 30])); - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-227):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-227) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (227-365) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; -declare function appfile4Spread(...b: number[]): void; - -====================================================================== - -//// [/src/lib/file1.ts] -export const x = 10;function forlibfile1Rest() { } - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -libfile0Spread.apply(void 0, __spread([10, 20, 30])); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - function forlibfile1Rest() { } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;;;;;ICArC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(21, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(21, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(21, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(21, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(21, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(22, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(22, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(22, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(23, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(23, 16) Source(2, 39) + SourceIndex(0) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(24, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(24, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(24, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(24, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(24, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(24, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(25, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(25, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(27, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(27, 2) Source(2, 44) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^^^^^^^^^^^^^^^^^-> -1-> - > -2 >libfile0Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(28, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(28, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(28, 39) Source(3, 19) + SourceIndex(0) -4 >Emitted(28, 40) Source(3, 20) + SourceIndex(0) -5 >Emitted(28, 42) Source(3, 22) + SourceIndex(0) -6 >Emitted(28, 44) Source(3, 24) + SourceIndex(0) -7 >Emitted(28, 46) Source(3, 26) + SourceIndex(0) -8 >Emitted(28, 48) Source(3, 28) + SourceIndex(0) -9 >Emitted(28, 50) Source(3, 30) + SourceIndex(0) -10>Emitted(28, 51) Source(3, 31) + SourceIndex(0) -11>Emitted(28, 54) Source(3, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(32, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(32, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(32, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(32, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(32, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(32, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> -2 > function -3 > forlibfile1Rest -4 > () { -5 > } -1->Emitted(33, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(33, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(33, 29) Source(1, 45) + SourceIndex(1) -4 >Emitted(33, 34) Source(1, 50) + SourceIndex(1) -5 >Emitted(33, 35) Source(1, 51) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(38, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(38, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(38, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(38, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(38, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(38, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(40, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(40, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(40, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(40, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(40, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(40, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1319, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:read", - "typescript:spread" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 227, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -text: (678-1319) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -libfile0Spread.apply(void 0, __spread([10, 20, 30])); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - function forlibfile1Rest() { } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-227) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js deleted file mode 100644 index c14352761c7..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,1129 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/app --verbose -4:08:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:08:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -4:08:00 PM - Building project '/src/lib/tsconfig.json'... - -4:08:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -4:08:00 PM - Updating output of project '/src/app/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} - -//// [/src/app/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >"myPrologue" - > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >"myPrologue5" - > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(3, 5) Source(2, 1) + SourceIndex(1) -2 >Emitted(3, 11) Source(2, 7) + SourceIndex(1) -3 >Emitted(3, 12) Source(2, 8) + SourceIndex(1) -4 >Emitted(3, 18) Source(2, 14) + SourceIndex(1) -5 >Emitted(3, 19) Source(2, 15) + SourceIndex(1) -6 >Emitted(3, 24) Source(2, 20) + SourceIndex(1) -7 >Emitted(3, 25) Source(2, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >"myPrologueFile" - > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) -2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) -3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) -4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) -5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) -6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) -7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 >"myPrologue3" - > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) -3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) -4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) -5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) -6 >Emitted(8, 32) Source(2, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file3.ts -------------------------------------------------------------------- ->>>declare module "file3" { ->>> export const z = 30; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >"myPrologue" - > -2 > export -3 > -4 > const -5 > z -6 > = 30 -7 > ; -1 >Emitted(10, 5) Source(2, 1) + SourceIndex(4) -2 >Emitted(10, 11) Source(2, 7) + SourceIndex(4) -3 >Emitted(10, 12) Source(2, 8) + SourceIndex(4) -4 >Emitted(10, 18) Source(2, 14) + SourceIndex(4) -5 >Emitted(10, 19) Source(2, 15) + SourceIndex(4) -6 >Emitted(10, 24) Source(2, 20) + SourceIndex(4) -7 >Emitted(10, 25) Source(2, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file4.ts -------------------------------------------------------------------- ->>>} ->>>declare const myVar = 30; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^^^-> -1 >"myPrologue2"; - > -2 > -3 > const -4 > myVar -5 > = 30 -6 > ; -1 >Emitted(12, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(12, 9) Source(2, 1) + SourceIndex(5) -3 >Emitted(12, 15) Source(2, 7) + SourceIndex(5) -4 >Emitted(12, 20) Source(2, 12) + SourceIndex(5) -5 >Emitted(12, 25) Source(2, 17) + SourceIndex(5) -6 >Emitted(12, 26) Source(2, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.js] -"use strict"; -"myPrologue"; -"myPrologue3"; -"myPrologue2"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue5"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/global.ts","file4.ts","../lib/file1.ts","../lib/file2.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;IGDlB,aAAa,CAAA;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICDpB,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/global.ts,file4.ts,../lib/file1.ts,../lib/file2.ts,file3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) -3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1-> -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue" - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1->Emitted(5, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(5, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(5, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(5, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(5, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologue5"; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > "myPrologue5" -3 > -1->Emitted(8, 5) Source(1, 1) + SourceIndex(3) -2 >Emitted(8, 18) Source(1, 14) + SourceIndex(3) -3 >Emitted(8, 19) Source(1, 14) + SourceIndex(3) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(10, 5) Source(2, 14) + SourceIndex(3) -2 >Emitted(10, 13) Source(2, 14) + SourceIndex(3) -3 >Emitted(10, 14) Source(2, 15) + SourceIndex(3) -4 >Emitted(10, 17) Source(2, 18) + SourceIndex(3) -5 >Emitted(10, 19) Source(2, 20) + SourceIndex(3) -6 >Emitted(10, 20) Source(2, 21) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologueFile"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > "myPrologueFile" -3 > -1 >Emitted(14, 5) Source(1, 1) + SourceIndex(4) -2 >Emitted(14, 21) Source(1, 17) + SourceIndex(4) -3 >Emitted(14, 22) Source(1, 17) + SourceIndex(4) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1->Emitted(16, 5) Source(2, 14) + SourceIndex(4) -2 >Emitted(16, 13) Source(2, 14) + SourceIndex(4) -3 >Emitted(16, 14) Source(2, 15) + SourceIndex(4) -4 >Emitted(16, 17) Source(2, 18) + SourceIndex(4) -5 >Emitted(16, 19) Source(2, 20) + SourceIndex(4) -6 >Emitted(16, 20) Source(2, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(18, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(18, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(18, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(18, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(18, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(18, 22) Source(2, 24) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologue"; -1->^^^^ -2 > ^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > "myPrologue" -3 > -1->Emitted(21, 5) Source(1, 1) + SourceIndex(5) -2 >Emitted(21, 17) Source(1, 13) + SourceIndex(5) -3 >Emitted(21, 18) Source(1, 13) + SourceIndex(5) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(23, 5) Source(2, 14) + SourceIndex(5) -2 >Emitted(23, 13) Source(2, 14) + SourceIndex(5) -3 >Emitted(23, 14) Source(2, 15) + SourceIndex(5) -4 >Emitted(23, 17) Source(2, 18) + SourceIndex(5) -5 >Emitted(23, 19) Source(2, 20) + SourceIndex(5) -6 >Emitted(23, 20) Source(2, 21) + SourceIndex(5) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 >"myPrologue2"; - > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(25, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(25, 5) Source(2, 7) + SourceIndex(2) -3 >Emitted(25, 10) Source(2, 12) + SourceIndex(2) -4 >Emitted(25, 13) Source(2, 15) + SourceIndex(2) -5 >Emitted(25, 15) Source(2, 17) + SourceIndex(2) -6 >Emitted(25, 16) Source(2, 18) + SourceIndex(2) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 62, - "end": 514, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 62, - "end": 514, - "kind": "text" - } - ] - }, - { - "pos": 514, - "end": 734, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 1, - "text": "\"myPrologue2\";", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 14, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue2" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - }, - { - "pos": 171, - "end": 253, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prepend: (62-514):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (62-514) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue5"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (514-734) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-171):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-171) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (171-253) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; - -====================================================================== - -//// [/src/lib/file1.ts] -"myPrologue5" -export const x = 10; - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >"myPrologue" - > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >"myPrologue5" - > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(3, 5) Source(2, 1) + SourceIndex(1) -2 >Emitted(3, 11) Source(2, 7) + SourceIndex(1) -3 >Emitted(3, 12) Source(2, 8) + SourceIndex(1) -4 >Emitted(3, 18) Source(2, 14) + SourceIndex(1) -5 >Emitted(3, 19) Source(2, 15) + SourceIndex(1) -6 >Emitted(3, 24) Source(2, 20) + SourceIndex(1) -7 >Emitted(3, 25) Source(2, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >"myPrologueFile" - > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) -2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) -3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) -4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) -5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) -6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) -7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 >"myPrologue3" - > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) -3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) -4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) -5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) -6 >Emitted(8, 32) Source(2, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -"use strict"; -"myPrologue"; -"myPrologue3"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue5"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;IEDlB,aAAa,CAAA;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICDpB,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,global.ts,file1.ts,file2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1-> -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue" - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(4, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologue5"; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > "myPrologue5" -3 > -1->Emitted(7, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) -3 >Emitted(7, 19) Source(1, 14) + SourceIndex(2) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(9, 5) Source(2, 14) + SourceIndex(2) -2 >Emitted(9, 13) Source(2, 14) + SourceIndex(2) -3 >Emitted(9, 14) Source(2, 15) + SourceIndex(2) -4 >Emitted(9, 17) Source(2, 18) + SourceIndex(2) -5 >Emitted(9, 19) Source(2, 20) + SourceIndex(2) -6 >Emitted(9, 20) Source(2, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologueFile"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > "myPrologueFile" -3 > -1 >Emitted(13, 5) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 21) Source(1, 17) + SourceIndex(3) -3 >Emitted(13, 22) Source(1, 17) + SourceIndex(3) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1->Emitted(15, 5) Source(2, 14) + SourceIndex(3) -2 >Emitted(15, 13) Source(2, 14) + SourceIndex(3) -3 >Emitted(15, 14) Source(2, 15) + SourceIndex(3) -4 >Emitted(15, 17) Source(2, 18) + SourceIndex(3) -5 >Emitted(15, 19) Source(2, 20) + SourceIndex(3) -6 >Emitted(15, 20) Source(2, 21) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(17, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(17, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(17, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(17, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(17, 22) Source(2, 24) + SourceIndex(1) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 46, - "end": 498, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue\"", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 12, - "expression": { - "pos": 0, - "end": 12, - "text": "myPrologue" - } - } - ] - }, - { - "file": 3, - "text": "\"myPrologue3\"", - "directives": [ - { - "pos": 0, - "end": 13, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -text: (46-498) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue5"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-171) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js deleted file mode 100644 index 0ed0c54963e..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js +++ /dev/null @@ -1,4651 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/app --verbose -4:08:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:08:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -4:08:00 PM - Building project '/src/lib/tsconfig.json'... - -4:08:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -4:08:00 PM - Updating output of project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/module.d.ts] -declare module "file1" { - export class normalC { - } - export namespace normalN { - } -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; -//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";IACA,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} - -//// [/src/app/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: ../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export class normalC { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^ -1 >/*@internal*/ export const x = 10; - > -2 > export -3 > class -4 > normalC -1 >Emitted(2, 5) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 18) Source(2, 14) + SourceIndex(0) -4 >Emitted(2, 25) Source(2, 21) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(3, 6) Source(8, 2) + SourceIndex(0) ---- ->>> export namespace normalN { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^ -5 > ^ -1-> - > -2 > export -3 > namespace -4 > normalN -5 > -1->Emitted(4, 5) Source(9, 1) + SourceIndex(0) -2 >Emitted(4, 11) Source(9, 7) + SourceIndex(0) -3 >Emitted(4, 22) Source(9, 18) + SourceIndex(0) -4 >Emitted(4, 29) Source(9, 25) + SourceIndex(0) -5 >Emitted(4, 30) Source(9, 26) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 >{ - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(5, 6) Source(18, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(8, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(8, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(8, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(8, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(8, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(8, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 9) Source(1, 1) + SourceIndex(2) -3 >Emitted(10, 15) Source(1, 7) + SourceIndex(2) -4 >Emitted(10, 26) Source(1, 18) + SourceIndex(2) -5 >Emitted(10, 31) Source(1, 23) + SourceIndex(2) -6 >Emitted(10, 32) Source(1, 24) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file3.ts -------------------------------------------------------------------- ->>>declare module "file3" { ->>> export const z = 30; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > z -6 > = 30 -7 > ; -1 >Emitted(12, 5) Source(1, 1) + SourceIndex(3) -2 >Emitted(12, 11) Source(1, 7) + SourceIndex(3) -3 >Emitted(12, 12) Source(1, 8) + SourceIndex(3) -4 >Emitted(12, 18) Source(1, 14) + SourceIndex(3) -5 >Emitted(12, 19) Source(1, 15) + SourceIndex(3) -6 >Emitted(12, 24) Source(1, 20) + SourceIndex(3) -7 >Emitted(12, 25) Source(1, 21) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file4.ts -------------------------------------------------------------------- ->>>} ->>>declare const myVar = 30; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^^^-> -1 > -2 > -3 > const -4 > myVar -5 > = 30 -6 > ; -1 >Emitted(14, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(14, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(14, 15) Source(1, 7) + SourceIndex(4) -4 >Emitted(14, 20) Source(1, 12) + SourceIndex(4) -5 >Emitted(14, 25) Source(1, 17) + SourceIndex(4) -6 >Emitted(14, 26) Source(1, 18) + SourceIndex(4) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.js] -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - /*@internal*/ exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN = exports.normalN || (exports.normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther = exports.internalOther || (exports.internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>/*@internal*/ var myGlob = 20; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >/*@internal*/ -3 > -4 > const -5 > myGlob -6 > = -7 > 20 -8 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) -5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) -6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) -7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) -8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> /*@internal*/ exports.x = 10; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^ -6 > ^^^ -7 > ^^ -8 > ^ -9 > ^^^^^^^^^^^^^^-> -1-> -2 > /*@internal*/ -3 > export const -4 > -5 > x -6 > = -7 > 10 -8 > ; -1->Emitted(5, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 14) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 28) + SourceIndex(1) -4 >Emitted(5, 27) Source(1, 28) + SourceIndex(1) -5 >Emitted(5, 28) Source(1, 29) + SourceIndex(1) -6 >Emitted(5, 31) Source(1, 32) + SourceIndex(1) -7 >Emitted(5, 33) Source(1, 34) + SourceIndex(1) -8 >Emitted(5, 34) Source(1, 35) + SourceIndex(1) ---- ->>> var normalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) ---- ->>> /*@internal*/ function normalC() { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->export class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) -2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) -3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) -2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) -2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) -3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) -4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) -5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) -6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) -7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) -2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) -3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) -2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) -3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) -4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) -5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) -6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) -7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) -8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) -9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) -2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) -3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) -4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) -5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) -6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) -7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) ---- ->>> return normalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) -2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) -3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) -4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) ---- ->>> exports.normalC = normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > normalC -1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) ---- ->>> var normalN; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} - > -2 > export namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) -3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) -4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) ---- ->>> (function (normalN) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export namespace -3 > normalN -1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) -3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) -2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) -3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) -2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) -3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) -4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) ---- ->>> normalN.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) -2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) -3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) -4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function foo() { } -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) -2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) -3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) -4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) -5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) -6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) -7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) ---- ->>> normalN.foo = foo; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) -2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) -3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) -4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) -2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) -3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) -4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) -5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) -6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) ---- ->>> (function (someNamespace) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) -3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) -2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) -3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) -4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) ---- ->>> someNamespace.C = C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) -2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) -3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) -4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) -2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) -3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) -4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) -5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) -6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) -7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) -8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) -9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) ---- ->>> /*@internal*/ var someOther; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) -2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) -3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) -4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) -5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) -6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) ---- ->>> (function (someOther) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) -3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) -3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) -4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) -3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) -2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) -3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) -4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) -2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) -3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) -4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) -2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) -3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) -4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) -5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) -6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) -7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) -8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) -9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) -2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) -3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) -4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) -5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) -6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) -7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) -8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) -9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) -2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) -3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) -5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) -6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) -7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) -8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) -9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) -2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) -3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) -4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) -5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) -6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) -7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) -2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) -3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) -4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) -5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) -3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) -3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) -3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) -3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) -2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) -3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) -4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) -5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) -6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) -7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) -8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) -9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) ---- ->>> })(normalN = exports.normalN || (exports.normalN = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -10> ^^^-> -1 > - > -2 > } -3 > -4 > normalN -5 > -6 > normalN -7 > -8 > normalN -9 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) -2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) -3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) -4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) -5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) -6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) -7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) -8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) -9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) ---- ->>> /*@internal*/ var internalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 > /*@internal*/ -3 > -1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) -2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) -3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) ---- ->>> function internalC() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class internalC { -2 > } -1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) ---- ->>> return internalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class internalC {} -1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) -2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) -3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) -4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) ---- ->>> exports.internalC = internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^-> -1-> -2 > internalC -1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) -2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function internalfoo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> {} - > -2 > /*@internal*/ -3 > -4 > export function -5 > internalfoo -6 > () { -7 > } -1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) -2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) -3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) -4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) -5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) -6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) -7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) ---- ->>> exports.internalfoo = internalfoo; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^-> -1 > -2 > export function internalfoo() {} -1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalNamespace -6 > { export class someClass {} } -1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) -2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) -3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) -4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) -5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) -6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) ---- ->>> (function (internalNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > internalNamespace -1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) -3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) -2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) -3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) -4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) -2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) -3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) -4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) ---- ->>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > -8 > internalNamespace -9 > { export class someClass {} } -1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) -2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) -3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) -4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) -5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) -6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) -7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) -8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) -9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) ---- ->>> /*@internal*/ var internalOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) -2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) -3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) -4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) -5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) -6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) ---- ->>> (function (internalOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 > export namespace -3 > internalOther -1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) -3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) -3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) -4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) -3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) -2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) -3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) -4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) -2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) -3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) -4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) -2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) -3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) -4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) -5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) -6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) -7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) -8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) -9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) ---- ->>> })(internalOther = exports.internalOther || (exports.internalOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > internalOther -5 > -6 > internalOther -7 > -8 > internalOther -9 > .something { export class someClass {} } -1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) -2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) -3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) -4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) -5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) -6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) -7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) -8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) -9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalImport = internalNamespace.someClass; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) -2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) -3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) -5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) -6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) -7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) -8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) -9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) -10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) -2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) -3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) -4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) -5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) -6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) -7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) -8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) -2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) -3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) -4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) -5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) -3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) -3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) -3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) -3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) ---- ->>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) -2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) -3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) -4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) -5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) -6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) -7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) -8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) -9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(100, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(100, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(100, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(100, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(100, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(100, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(102, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(102, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(102, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(102, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(102, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(106, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(106, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(106, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(106, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(106, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(106, 20) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(108, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(108, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(108, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(108, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(108, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(108, 16) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4143, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 0, - "end": 4143, - "kind": "text" - } - ] - }, - { - "pos": 4143, - "end": 4344, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 191, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 191, - "kind": "text" - } - ] - }, - { - "pos": 191, - "end": 273, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (0-4143):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-4143) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - /*@internal*/ exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN = exports.normalN || (exports.normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther = exports.internalOther || (exports.internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (4143-4344) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-191):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-191) -declare module "file1" { - export class normalC { - } - export namespace normalN { - } -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (191-273) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; - -====================================================================== - -//// [/src/lib/file1.ts] -/*@internal*/ export const x = 10; -export class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -export namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ export class internalC {} -/*@internal*/ export function internalfoo() {} -/*@internal*/ export namespace internalNamespace { export class someClass {} } -/*@internal*/ export namespace internalOther.something { export class someClass {} } -/*@internal*/ export import internalImport = internalNamespace.someClass; -/*@internal*/ export type internalType = internalC; -/*@internal*/ export const internalConst = 10; -/*@internal*/ export enum internalEnum { a, b, c } - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;sBACF,CAAC,EACM,MAAM;KAClC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >/*@internal*/ -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 9) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 21) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 27) + SourceIndex(0) -5 >Emitted(1, 26) Source(1, 32) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^^^-> -1 >/*@internal*/ -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(3, 5) Source(1, 15) + SourceIndex(1) -2 >Emitted(3, 11) Source(1, 21) + SourceIndex(1) -3 >Emitted(3, 12) Source(1, 22) + SourceIndex(1) -4 >Emitted(3, 18) Source(1, 28) + SourceIndex(1) -5 >Emitted(3, 19) Source(1, 29) + SourceIndex(1) -6 >Emitted(3, 24) Source(1, 34) + SourceIndex(1) -7 >Emitted(3, 25) Source(1, 35) + SourceIndex(1) ---- ->>> export class normalC { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^ -1-> - > -2 > export -3 > class -4 > normalC -1->Emitted(4, 5) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) -3 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) -4 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(6, 9) Source(4, 19) + SourceIndex(1) -2 >Emitted(6, 13) Source(4, 23) + SourceIndex(1) -3 >Emitted(6, 15) Source(4, 25) + SourceIndex(1) -4 >Emitted(6, 21) Source(4, 31) + SourceIndex(1) -5 >Emitted(6, 22) Source(4, 32) + SourceIndex(1) ---- ->>> method(): void; -1->^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(7, 9) Source(5, 19) + SourceIndex(1) -2 >Emitted(7, 15) Source(5, 25) + SourceIndex(1) ---- ->>> /*@internal*/ c: number; -1->^^^^^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(8, 23) Source(6, 23) + SourceIndex(1) -2 >Emitted(8, 24) Source(6, 24) + SourceIndex(1) -3 >Emitted(8, 26) Source(7, 30) + SourceIndex(1) -4 >Emitted(8, 32) Source(7, 36) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(9, 6) Source(8, 2) + SourceIndex(1) ---- ->>> export namespace normalN { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^ -5 > ^ -1-> - > -2 > export -3 > namespace -4 > normalN -5 > -1->Emitted(10, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(10, 11) Source(9, 7) + SourceIndex(1) -3 >Emitted(10, 22) Source(9, 18) + SourceIndex(1) -4 >Emitted(10, 29) Source(9, 25) + SourceIndex(1) -5 >Emitted(10, 30) Source(9, 26) + SourceIndex(1) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(11, 9) Source(10, 19) + SourceIndex(1) -2 >Emitted(11, 15) Source(10, 32) + SourceIndex(1) -3 >Emitted(11, 16) Source(10, 33) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(12, 10) Source(10, 37) + SourceIndex(1) ---- ->>> function foo(): void; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(13, 9) Source(11, 19) + SourceIndex(1) -2 >Emitted(13, 18) Source(11, 35) + SourceIndex(1) -3 >Emitted(13, 21) Source(11, 38) + SourceIndex(1) -4 >Emitted(13, 30) Source(11, 43) + SourceIndex(1) ---- ->>> namespace someNamespace { -1->^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(14, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(14, 19) Source(12, 36) + SourceIndex(1) -3 >Emitted(14, 32) Source(12, 49) + SourceIndex(1) -4 >Emitted(14, 33) Source(12, 50) + SourceIndex(1) ---- ->>> class C { -1 >^^^^^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(15, 13) Source(12, 52) + SourceIndex(1) -2 >Emitted(15, 19) Source(12, 65) + SourceIndex(1) -3 >Emitted(15, 20) Source(12, 66) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^^^^^ -1 > {} -1 >Emitted(16, 14) Source(12, 69) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(17, 10) Source(12, 71) + SourceIndex(1) ---- ->>> namespace someOther.something { -1->^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(18, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(18, 19) Source(13, 36) + SourceIndex(1) -3 >Emitted(18, 28) Source(13, 45) + SourceIndex(1) -4 >Emitted(18, 29) Source(13, 46) + SourceIndex(1) -5 >Emitted(18, 38) Source(13, 55) + SourceIndex(1) -6 >Emitted(18, 39) Source(13, 56) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(19, 13) Source(13, 58) + SourceIndex(1) -2 >Emitted(19, 19) Source(13, 71) + SourceIndex(1) -3 >Emitted(19, 28) Source(13, 80) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^^^^^ -1 > {} -1 >Emitted(20, 14) Source(13, 83) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(21, 10) Source(13, 85) + SourceIndex(1) ---- ->>> export import someImport = someNamespace.C; -1->^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(22, 9) Source(14, 19) + SourceIndex(1) -2 >Emitted(22, 15) Source(14, 25) + SourceIndex(1) -3 >Emitted(22, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(22, 33) Source(14, 43) + SourceIndex(1) -5 >Emitted(22, 36) Source(14, 46) + SourceIndex(1) -6 >Emitted(22, 49) Source(14, 59) + SourceIndex(1) -7 >Emitted(22, 50) Source(14, 60) + SourceIndex(1) -8 >Emitted(22, 51) Source(14, 61) + SourceIndex(1) -9 >Emitted(22, 52) Source(14, 62) + SourceIndex(1) ---- ->>> type internalType = internalC; -1 >^^^^^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(23, 9) Source(15, 19) + SourceIndex(1) -2 >Emitted(23, 14) Source(15, 31) + SourceIndex(1) -3 >Emitted(23, 26) Source(15, 43) + SourceIndex(1) -4 >Emitted(23, 29) Source(15, 46) + SourceIndex(1) -5 >Emitted(23, 38) Source(15, 55) + SourceIndex(1) -6 >Emitted(23, 39) Source(15, 56) + SourceIndex(1) ---- ->>> const internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(24, 9) Source(16, 26) + SourceIndex(1) -2 >Emitted(24, 15) Source(16, 32) + SourceIndex(1) -3 >Emitted(24, 28) Source(16, 45) + SourceIndex(1) -4 >Emitted(24, 33) Source(16, 50) + SourceIndex(1) -5 >Emitted(24, 34) Source(16, 51) + SourceIndex(1) ---- ->>> enum internalEnum { -1 >^^^^^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(25, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(25, 14) Source(17, 31) + SourceIndex(1) -3 >Emitted(25, 26) Source(17, 43) + SourceIndex(1) ---- ->>> a = 0, -1 >^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(26, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(26, 14) Source(17, 47) + SourceIndex(1) -3 >Emitted(26, 18) Source(17, 47) + SourceIndex(1) ---- ->>> b = 1, -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(27, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(27, 14) Source(17, 50) + SourceIndex(1) -3 >Emitted(27, 18) Source(17, 50) + SourceIndex(1) ---- ->>> c = 2 -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(28, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(28, 14) Source(17, 53) + SourceIndex(1) -3 >Emitted(28, 18) Source(17, 53) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > } -1 >Emitted(29, 10) Source(17, 55) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(30, 6) Source(18, 2) + SourceIndex(1) ---- ->>> export class internalC { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 > export -3 > class -4 > internalC -1->Emitted(31, 5) Source(19, 15) + SourceIndex(1) -2 >Emitted(31, 11) Source(19, 21) + SourceIndex(1) -3 >Emitted(31, 18) Source(19, 28) + SourceIndex(1) -4 >Emitted(31, 27) Source(19, 37) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(32, 6) Source(19, 40) + SourceIndex(1) ---- ->>> export function internalfoo(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^ -6 > ^-> -1-> - >/*@internal*/ -2 > export -3 > function -4 > internalfoo -5 > () {} -1->Emitted(33, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(33, 11) Source(20, 21) + SourceIndex(1) -3 >Emitted(33, 21) Source(20, 31) + SourceIndex(1) -4 >Emitted(33, 32) Source(20, 42) + SourceIndex(1) -5 >Emitted(33, 41) Source(20, 47) + SourceIndex(1) ---- ->>> export namespace internalNamespace { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 > export -3 > namespace -4 > internalNamespace -5 > -1->Emitted(34, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(34, 11) Source(21, 21) + SourceIndex(1) -3 >Emitted(34, 22) Source(21, 32) + SourceIndex(1) -4 >Emitted(34, 39) Source(21, 49) + SourceIndex(1) -5 >Emitted(34, 40) Source(21, 50) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(35, 9) Source(21, 52) + SourceIndex(1) -2 >Emitted(35, 15) Source(21, 65) + SourceIndex(1) -3 >Emitted(35, 24) Source(21, 74) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(36, 10) Source(21, 77) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(37, 6) Source(21, 79) + SourceIndex(1) ---- ->>> export namespace internalOther.something { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -1-> - >/*@internal*/ -2 > export -3 > namespace -4 > internalOther -5 > . -6 > something -7 > -1->Emitted(38, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(38, 11) Source(22, 21) + SourceIndex(1) -3 >Emitted(38, 22) Source(22, 32) + SourceIndex(1) -4 >Emitted(38, 35) Source(22, 45) + SourceIndex(1) -5 >Emitted(38, 36) Source(22, 46) + SourceIndex(1) -6 >Emitted(38, 45) Source(22, 55) + SourceIndex(1) -7 >Emitted(38, 46) Source(22, 56) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(39, 9) Source(22, 58) + SourceIndex(1) -2 >Emitted(39, 15) Source(22, 71) + SourceIndex(1) -3 >Emitted(39, 24) Source(22, 80) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(40, 10) Source(22, 83) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(41, 6) Source(22, 85) + SourceIndex(1) ---- ->>> export import internalImport = internalNamespace.someClass; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^^^ -9 > ^ -1-> - >/*@internal*/ -2 > export -3 > import -4 > internalImport -5 > = -6 > internalNamespace -7 > . -8 > someClass -9 > ; -1->Emitted(42, 5) Source(23, 15) + SourceIndex(1) -2 >Emitted(42, 11) Source(23, 21) + SourceIndex(1) -3 >Emitted(42, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(42, 33) Source(23, 43) + SourceIndex(1) -5 >Emitted(42, 36) Source(23, 46) + SourceIndex(1) -6 >Emitted(42, 53) Source(23, 63) + SourceIndex(1) -7 >Emitted(42, 54) Source(23, 64) + SourceIndex(1) -8 >Emitted(42, 63) Source(23, 73) + SourceIndex(1) -9 >Emitted(42, 64) Source(23, 74) + SourceIndex(1) ---- ->>> export type internalType = internalC; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^ -7 > ^ -1 > - >/*@internal*/ -2 > export -3 > type -4 > internalType -5 > = -6 > internalC -7 > ; -1 >Emitted(43, 5) Source(24, 15) + SourceIndex(1) -2 >Emitted(43, 11) Source(24, 21) + SourceIndex(1) -3 >Emitted(43, 17) Source(24, 27) + SourceIndex(1) -4 >Emitted(43, 29) Source(24, 39) + SourceIndex(1) -5 >Emitted(43, 32) Source(24, 42) + SourceIndex(1) -6 >Emitted(43, 41) Source(24, 51) + SourceIndex(1) -7 >Emitted(43, 42) Source(24, 52) + SourceIndex(1) ---- ->>> export const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1 > - >/*@internal*/ -2 > export -3 > -4 > const -5 > internalConst -6 > = 10 -7 > ; -1 >Emitted(44, 5) Source(25, 15) + SourceIndex(1) -2 >Emitted(44, 11) Source(25, 21) + SourceIndex(1) -3 >Emitted(44, 12) Source(25, 22) + SourceIndex(1) -4 >Emitted(44, 18) Source(25, 28) + SourceIndex(1) -5 >Emitted(44, 31) Source(25, 41) + SourceIndex(1) -6 >Emitted(44, 36) Source(25, 46) + SourceIndex(1) -7 >Emitted(44, 37) Source(25, 47) + SourceIndex(1) ---- ->>> export enum internalEnum { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 > export -3 > enum -4 > internalEnum -1 >Emitted(45, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(45, 11) Source(26, 21) + SourceIndex(1) -3 >Emitted(45, 17) Source(26, 27) + SourceIndex(1) -4 >Emitted(45, 29) Source(26, 39) + SourceIndex(1) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(46, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(46, 10) Source(26, 43) + SourceIndex(1) -3 >Emitted(46, 14) Source(26, 43) + SourceIndex(1) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(47, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(47, 10) Source(26, 46) + SourceIndex(1) -3 >Emitted(47, 14) Source(26, 46) + SourceIndex(1) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(48, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(48, 10) Source(26, 49) + SourceIndex(1) -3 >Emitted(48, 14) Source(26, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(49, 6) Source(26, 51) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(52, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(52, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(52, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(52, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(52, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(52, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(52, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(54, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(54, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(54, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(54, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(54, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(54, 32) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - /*@internal*/ exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN = exports.normalN || (exports.normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther = exports.internalOther || (exports.internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>/*@internal*/ var myGlob = 20; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >/*@internal*/ -3 > -4 > const -5 > myGlob -6 > = -7 > 20 -8 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) -5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) -6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) -7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) -8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> /*@internal*/ exports.x = 10; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^ -6 > ^^^ -7 > ^^ -8 > ^ -9 > ^^^^^^^^^^^^^^-> -1-> -2 > /*@internal*/ -3 > export const -4 > -5 > x -6 > = -7 > 10 -8 > ; -1->Emitted(5, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 14) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 28) + SourceIndex(1) -4 >Emitted(5, 27) Source(1, 28) + SourceIndex(1) -5 >Emitted(5, 28) Source(1, 29) + SourceIndex(1) -6 >Emitted(5, 31) Source(1, 32) + SourceIndex(1) -7 >Emitted(5, 33) Source(1, 34) + SourceIndex(1) -8 >Emitted(5, 34) Source(1, 35) + SourceIndex(1) ---- ->>> var normalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) ---- ->>> /*@internal*/ function normalC() { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->export class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) -2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) -3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) -2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) -2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) -3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) -4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) -5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) -6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) -7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) -2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) -3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) -2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) -3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) -4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) -5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) -6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) -7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) -8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) -9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) -2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) -3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) -4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) -5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) -6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) -7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) ---- ->>> return normalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) -2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) -3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) -4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) ---- ->>> exports.normalC = normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > normalC -1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) ---- ->>> var normalN; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} - > -2 > export namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) -3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) -4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) ---- ->>> (function (normalN) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export namespace -3 > normalN -1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) -3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) -2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) -3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) -2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) -3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) -4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) ---- ->>> normalN.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) -2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) -3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) -4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function foo() { } -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) -2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) -3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) -4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) -5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) -6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) -7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) ---- ->>> normalN.foo = foo; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) -2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) -3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) -4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) -2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) -3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) -4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) -5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) -6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) ---- ->>> (function (someNamespace) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) -3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) -2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) -3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) -4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) ---- ->>> someNamespace.C = C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) -2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) -3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) -4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) -2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) -3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) -4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) -5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) -6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) -7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) -8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) -9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) ---- ->>> /*@internal*/ var someOther; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) -2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) -3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) -4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) -5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) -6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) ---- ->>> (function (someOther) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) -3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) -3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) -4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) -3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) -2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) -3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) -4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) -2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) -3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) -4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) -2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) -3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) -4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) -5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) -6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) -7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) -8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) -9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) -2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) -3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) -4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) -5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) -6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) -7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) -8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) -9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) -2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) -3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) -5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) -6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) -7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) -8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) -9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) -2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) -3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) -4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) -5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) -6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) -7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) -2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) -3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) -4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) -5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) -3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) -3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) -3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) -3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) -2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) -3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) -4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) -5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) -6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) -7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) -8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) -9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) ---- ->>> })(normalN = exports.normalN || (exports.normalN = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -10> ^^^-> -1 > - > -2 > } -3 > -4 > normalN -5 > -6 > normalN -7 > -8 > normalN -9 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) -2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) -3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) -4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) -5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) -6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) -7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) -8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) -9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) ---- ->>> /*@internal*/ var internalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 > /*@internal*/ -3 > -1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) -2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) -3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) ---- ->>> function internalC() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class internalC { -2 > } -1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) ---- ->>> return internalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class internalC {} -1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) -2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) -3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) -4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) ---- ->>> exports.internalC = internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^-> -1-> -2 > internalC -1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) -2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function internalfoo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> {} - > -2 > /*@internal*/ -3 > -4 > export function -5 > internalfoo -6 > () { -7 > } -1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) -2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) -3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) -4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) -5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) -6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) -7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) ---- ->>> exports.internalfoo = internalfoo; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^-> -1 > -2 > export function internalfoo() {} -1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalNamespace -6 > { export class someClass {} } -1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) -2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) -3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) -4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) -5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) -6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) ---- ->>> (function (internalNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > internalNamespace -1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) -3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) -2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) -3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) -4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) -2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) -3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) -4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) ---- ->>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > -8 > internalNamespace -9 > { export class someClass {} } -1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) -2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) -3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) -4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) -5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) -6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) -7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) -8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) -9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) ---- ->>> /*@internal*/ var internalOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) -2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) -3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) -4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) -5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) -6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) ---- ->>> (function (internalOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 > export namespace -3 > internalOther -1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) -3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) -3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) -4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) -3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) -2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) -3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) -4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) -2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) -3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) -4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) -2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) -3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) -4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) -5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) -6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) -7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) -8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) -9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) ---- ->>> })(internalOther = exports.internalOther || (exports.internalOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > internalOther -5 > -6 > internalOther -7 > -8 > internalOther -9 > .something { export class someClass {} } -1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) -2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) -3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) -4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) -5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) -6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) -7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) -8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) -9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalImport = internalNamespace.someClass; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) -2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) -3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) -5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) -6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) -7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) -8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) -9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) -10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) -2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) -3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) -4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) -5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) -6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) -7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) -8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) -2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) -3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) -4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) -5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) -3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) -3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) -3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) -3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) ---- ->>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) -2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) -3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) -4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) -5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) -6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) -7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) -8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) -9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(100, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(100, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(100, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(100, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(100, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(100, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(102, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(102, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(102, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(102, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(102, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4143, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 26, - "kind": "internal" - }, - { - "pos": 28, - "end": 54, - "kind": "text" - }, - { - "pos": 54, - "end": 78, - "kind": "internal" - }, - { - "pos": 80, - "end": 108, - "kind": "text" - }, - { - "pos": 108, - "end": 212, - "kind": "internal" - }, - { - "pos": 214, - "end": 253, - "kind": "text" - }, - { - "pos": 253, - "end": 721, - "kind": "internal" - }, - { - "pos": 723, - "end": 730, - "kind": "text" - }, - { - "pos": 730, - "end": 1219, - "kind": "internal" - }, - { - "pos": 1221, - "end": 1312, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-4143) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - /*@internal*/ exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN = exports.normalN || (exports.normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther = exports.internalOther || (exports.internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -internal: (0-26) -declare const myGlob = 20; ----------------------------------------------------------------------- -text: (28-54) -declare module "file1" { - ----------------------------------------------------------------------- -internal: (54-78) - export const x = 10; ----------------------------------------------------------------------- -text: (80-108) - export class normalC { - ----------------------------------------------------------------------- -internal: (108-212) - constructor(); - prop: string; - method(): void; - /*@internal*/ c: number; ----------------------------------------------------------------------- -text: (214-253) - } - export namespace normalN { - ----------------------------------------------------------------------- -internal: (253-721) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (723-730) - } - ----------------------------------------------------------------------- -internal: (730-1219) - export class internalC { - } - export function internalfoo(): void; - export namespace internalNamespace { - class someClass { - } - } - export namespace internalOther.something { - class someClass { - } - } - export import internalImport = internalNamespace.someClass; - export type internalType = internalC; - export const internalConst = 10; - export enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (1221-1312) -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/modules-and-globals-mixed-in-amd.js deleted file mode 100644 index 2773ed36d67..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/modules-and-globals-mixed-in-amd.js +++ /dev/null @@ -1,835 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/app --verbose -4:01:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist - -4:01:00 PM - Building project '/src/lib/tsconfig.json'... - -4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist - -4:01:00 PM - Building project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/module.d.ts] -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; -//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} - -//// [/src/app/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file3.ts -------------------------------------------------------------------- ->>>declare module "file3" { ->>> export const z = 30; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > z -6 > = 30 -7 > ; -1 >Emitted(10, 5) Source(1, 1) + SourceIndex(4) -2 >Emitted(10, 11) Source(1, 7) + SourceIndex(4) -3 >Emitted(10, 12) Source(1, 8) + SourceIndex(4) -4 >Emitted(10, 18) Source(1, 14) + SourceIndex(4) -5 >Emitted(10, 19) Source(1, 15) + SourceIndex(4) -6 >Emitted(10, 24) Source(1, 20) + SourceIndex(4) -7 >Emitted(10, 25) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file4.ts -------------------------------------------------------------------- ->>>} ->>>declare const myVar = 30; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^^^-> -1 > -2 > -3 > const -4 > myVar -5 > = 30 -6 > ; -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(12, 9) Source(1, 1) + SourceIndex(5) -3 >Emitted(12, 15) Source(1, 7) + SourceIndex(5) -4 >Emitted(12, 20) Source(1, 12) + SourceIndex(5) -5 >Emitted(12, 25) Source(1, 17) + SourceIndex(5) -6 >Emitted(12, 26) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.js] -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(10, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(10, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(10, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(10, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(10, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(10, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(12, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(12, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(12, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(12, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(12, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(16, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(16, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(16, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(16, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(16, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(16, 20) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(18, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(18, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(18, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(18, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(18, 16) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 409, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 0, - "end": 409, - "kind": "text" - } - ] - }, - { - "pos": 409, - "end": 610, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - }, - { - "pos": 171, - "end": 253, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (0-409):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-409) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (409-610) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-171):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-171) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (171-253) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; - -====================================================================== - -//// [/src/lib/module.d.ts] -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(10, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(10, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(10, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(10, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(10, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(10, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(12, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(12, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(12, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(12, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(12, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 409, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-409) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-171) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js deleted file mode 100644 index bbc069cc44f..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,1731 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/app --verbose -4:01:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist - -4:01:00 PM - Building project '/src/lib/tsconfig.json'... - -4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist - -4:01:00 PM - Building project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1";function forappfile3Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - -//// [/src/app/file4.ts] -const myVar = 30; -function appfile4Spread(...b: number[]) { } -appfile4Spread(...[10, 20, 30]); - -//// [/src/app/module.d.ts] -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; -declare function appfile4Spread(...b: number[]): void; -//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;;ICD3C,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} - -//// [/src/app/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) ---- ->>>declare function libfile0Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 18) Source(2, 10) + SourceIndex(0) -3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) -4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) -5 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) -6 >Emitted(2, 39) Source(2, 31) + SourceIndex(0) -7 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) -8 >Emitted(2, 47) Source(2, 39) + SourceIndex(0) -9 >Emitted(2, 55) Source(2, 44) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(4, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(4, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(4, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(4, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(4, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(4, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file3.ts -------------------------------------------------------------------- ->>>declare module "file3" { ->>> export const z = 30; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > z -6 > = 30 -7 > ; -1 >Emitted(11, 5) Source(1, 1) + SourceIndex(4) -2 >Emitted(11, 11) Source(1, 7) + SourceIndex(4) -3 >Emitted(11, 12) Source(1, 8) + SourceIndex(4) -4 >Emitted(11, 18) Source(1, 14) + SourceIndex(4) -5 >Emitted(11, 19) Source(1, 15) + SourceIndex(4) -6 >Emitted(11, 24) Source(1, 20) + SourceIndex(4) -7 >Emitted(11, 25) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file4.ts -------------------------------------------------------------------- ->>>} ->>>declare const myVar = 30; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > -3 > const -4 > myVar -5 > = 30 -6 > ; -1 >Emitted(13, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(13, 9) Source(1, 1) + SourceIndex(5) -3 >Emitted(13, 15) Source(1, 7) + SourceIndex(5) -4 >Emitted(13, 20) Source(1, 12) + SourceIndex(5) -5 >Emitted(13, 25) Source(1, 17) + SourceIndex(5) -6 >Emitted(13, 26) Source(1, 18) + SourceIndex(5) ---- ->>>declare function appfile4Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > appfile4Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(14, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(14, 18) Source(2, 10) + SourceIndex(5) -3 >Emitted(14, 32) Source(2, 24) + SourceIndex(5) -4 >Emitted(14, 33) Source(2, 25) + SourceIndex(5) -5 >Emitted(14, 36) Source(2, 28) + SourceIndex(5) -6 >Emitted(14, 39) Source(2, 31) + SourceIndex(5) -7 >Emitted(14, 45) Source(2, 37) + SourceIndex(5) -8 >Emitted(14, 47) Source(2, 39) + SourceIndex(5) -9 >Emitted(14, 55) Source(2, 44) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -libfile0Spread.apply(void 0, __spread([10, 20, 30])); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - function forlibfile1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; - function forappfile3Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } -}); -var myVar = 30; -function appfile4Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -appfile4Spread.apply(void 0, __spread([10, 20, 30])); -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^^^^^^^^^^^^^^^^^-> -1-> - > -2 >libfile0Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) -4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) -5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) -6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) -7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) -8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) -9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) -10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) -11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(43, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > function -3 > forlibfile1Rest -1->Emitted(44, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(45, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(45, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(45, 42) Source(2, 48) + SourceIndex(1) -4 >Emitted(45, 44) Source(2, 9) + SourceIndex(1) -5 >Emitted(45, 52) Source(2, 10) + SourceIndex(1) -6 >Emitted(45, 54) Source(2, 12) + SourceIndex(1) -7 >Emitted(45, 78) Source(2, 48) + SourceIndex(1) -8 >Emitted(45, 79) Source(2, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^ -2 > ^ -1 > - > -2 > } -1 >Emitted(46, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(46, 6) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(51, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(51, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(51, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(51, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(51, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(51, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(53, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(53, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(53, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(53, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(53, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(53, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(57, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(57, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(57, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(57, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(57, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(57, 20) Source(1, 21) + SourceIndex(4) ---- ->>> function forappfile3Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >import { x } from "file1"; -2 > function -3 > forappfile3Rest -1->Emitted(58, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(58, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(58, 29) Source(2, 51) + SourceIndex(4) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(59, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(59, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(59, 42) Source(3, 48) + SourceIndex(4) -4 >Emitted(59, 44) Source(3, 9) + SourceIndex(4) -5 >Emitted(59, 52) Source(3, 10) + SourceIndex(4) -6 >Emitted(59, 54) Source(3, 12) + SourceIndex(4) -7 >Emitted(59, 78) Source(3, 48) + SourceIndex(4) -8 >Emitted(59, 79) Source(3, 49) + SourceIndex(4) ---- ->>> } -1 >^^^^ -2 > ^ -1 > - > -2 > } -1 >Emitted(60, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(60, 6) Source(4, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^-> -1 > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(62, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(62, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(62, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(62, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(62, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(62, 16) Source(1, 18) + SourceIndex(5) ---- ->>>function appfile4Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > appfile4Spread -1->Emitted(63, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(63, 10) Source(2, 10) + SourceIndex(5) -3 >Emitted(63, 24) Source(2, 24) + SourceIndex(5) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(64, 5) Source(2, 25) + SourceIndex(5) -2 >Emitted(64, 16) Source(2, 39) + SourceIndex(5) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(65, 10) Source(2, 25) + SourceIndex(5) -2 >Emitted(65, 20) Source(2, 39) + SourceIndex(5) -3 >Emitted(65, 22) Source(2, 25) + SourceIndex(5) -4 >Emitted(65, 43) Source(2, 39) + SourceIndex(5) -5 >Emitted(65, 45) Source(2, 25) + SourceIndex(5) -6 >Emitted(65, 49) Source(2, 39) + SourceIndex(5) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(66, 9) Source(2, 25) + SourceIndex(5) -2 >Emitted(66, 31) Source(2, 39) + SourceIndex(5) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(68, 1) Source(2, 43) + SourceIndex(5) -2 >Emitted(68, 2) Source(2, 44) + SourceIndex(5) ---- ->>>appfile4Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >appfile4Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(69, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(69, 15) Source(3, 15) + SourceIndex(5) -3 >Emitted(69, 39) Source(3, 19) + SourceIndex(5) -4 >Emitted(69, 40) Source(3, 20) + SourceIndex(5) -5 >Emitted(69, 42) Source(3, 22) + SourceIndex(5) -6 >Emitted(69, 44) Source(3, 24) + SourceIndex(5) -7 >Emitted(69, 46) Source(3, 26) + SourceIndex(5) -8 >Emitted(69, 48) Source(3, 28) + SourceIndex(5) -9 >Emitted(69, 50) Source(3, 30) + SourceIndex(5) -10>Emitted(69, 51) Source(3, 31) + SourceIndex(5) -11>Emitted(69, 54) Source(3, 33) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 1180, - "end": 1906, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 1180, - "end": 1906, - "kind": "text" - } - ] - }, - { - "pos": 1906, - "end": 2424, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 227, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 227, - "kind": "text" - } - ] - }, - { - "pos": 227, - "end": 365, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (1180-1906):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1180-1906) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -libfile0Spread.apply(void 0, __spread([10, 20, 30])); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - function forlibfile1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (1906-2424) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; - function forappfile3Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } -}); -var myVar = 30; -function appfile4Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -appfile4Spread.apply(void 0, __spread([10, 20, 30])); - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-227):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-227) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (227-365) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; -declare function appfile4Spread(...b: number[]): void; - -====================================================================== - -//// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - "references": [ - { "path": "../lib", "prepend": true } - ] -} - -//// [/src/lib/file0.ts] -const myGlob = 20; -function libfile0Spread(...b: number[]) { } -libfile0Spread(...[10, 20, 30]); - -//// [/src/lib/file1.ts] -export const x = 10;function forlibfile1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - -//// [/src/lib/module.d.ts] -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;;ICD3C,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) ---- ->>>declare function libfile0Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 18) Source(2, 10) + SourceIndex(0) -3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) -4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) -5 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) -6 >Emitted(2, 39) Source(2, 31) + SourceIndex(0) -7 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) -8 >Emitted(2, 47) Source(2, 39) + SourceIndex(0) -9 >Emitted(2, 55) Source(2, 44) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(4, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(4, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(4, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(4, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(4, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(4, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -libfile0Spread.apply(void 0, __spread([10, 20, 30])); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - function forlibfile1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^^^^^^^^^^^^^^^^^-> -1-> - > -2 >libfile0Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) -4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) -5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) -6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) -7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) -8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) -9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) -10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) -11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(43, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > function -3 > forlibfile1Rest -1->Emitted(44, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(45, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(45, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(45, 42) Source(2, 48) + SourceIndex(1) -4 >Emitted(45, 44) Source(2, 9) + SourceIndex(1) -5 >Emitted(45, 52) Source(2, 10) + SourceIndex(1) -6 >Emitted(45, 54) Source(2, 12) + SourceIndex(1) -7 >Emitted(45, 78) Source(2, 48) + SourceIndex(1) -8 >Emitted(45, 79) Source(2, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^ -2 > ^ -1 > - > -2 > } -1 >Emitted(46, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(46, 6) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(51, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(51, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(51, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(51, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(51, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(51, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(53, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(53, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(53, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(53, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(53, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(53, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 1180, - "end": 1906, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:read", - "typescript:spread", - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 227, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (1180-1906) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -libfile0Spread.apply(void 0, __spread([10, 20, 30])); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - function forlibfile1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-227) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "downlevelIteration": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - -} - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js deleted file mode 100644 index b87b167bc66..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,1169 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/app --verbose -4:01:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist - -4:01:00 PM - Building project '/src/lib/tsconfig.json'... - -4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist - -4:01:00 PM - Building project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/file3.ts] -"myPrologue" -export const z = 30; -import { x } from "file1"; - -//// [/src/app/file4.ts] -"myPrologue2"; -const myVar = 30; - -//// [/src/app/module.d.ts] -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; -//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} - -//// [/src/app/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >"myPrologue" - > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >"myPrologueFile" - > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) -2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) -3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) -4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) -5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) -6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) -7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 >"myPrologue3" - > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) -3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) -4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) -5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) -6 >Emitted(8, 32) Source(2, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file3.ts -------------------------------------------------------------------- ->>>declare module "file3" { ->>> export const z = 30; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >"myPrologue" - > -2 > export -3 > -4 > const -5 > z -6 > = 30 -7 > ; -1 >Emitted(10, 5) Source(2, 1) + SourceIndex(4) -2 >Emitted(10, 11) Source(2, 7) + SourceIndex(4) -3 >Emitted(10, 12) Source(2, 8) + SourceIndex(4) -4 >Emitted(10, 18) Source(2, 14) + SourceIndex(4) -5 >Emitted(10, 19) Source(2, 15) + SourceIndex(4) -6 >Emitted(10, 24) Source(2, 20) + SourceIndex(4) -7 >Emitted(10, 25) Source(2, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file4.ts -------------------------------------------------------------------- ->>>} ->>>declare const myVar = 30; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^^^-> -1 >"myPrologue2"; - > -2 > -3 > const -4 > myVar -5 > = 30 -6 > ; -1 >Emitted(12, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(12, 9) Source(2, 1) + SourceIndex(5) -3 >Emitted(12, 15) Source(2, 7) + SourceIndex(5) -4 >Emitted(12, 20) Source(2, 12) + SourceIndex(5) -5 >Emitted(12, 25) Source(2, 17) + SourceIndex(5) -6 >Emitted(12, 26) Source(2, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.js] -"use strict"; -"myPrologue"; -"myPrologue3"; -"myPrologue2"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/global.ts","file4.ts","../lib/file1.ts","../lib/file2.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/global.ts,file4.ts,../lib/file1.ts,../lib/file2.ts,file3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) -3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1-> -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue" - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1->Emitted(5, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(5, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(5, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(5, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(5, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(9, 5) Source(1, 14) + SourceIndex(3) -2 >Emitted(9, 13) Source(1, 14) + SourceIndex(3) -3 >Emitted(9, 14) Source(1, 15) + SourceIndex(3) -4 >Emitted(9, 17) Source(1, 18) + SourceIndex(3) -5 >Emitted(9, 19) Source(1, 20) + SourceIndex(3) -6 >Emitted(9, 20) Source(1, 21) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologueFile"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > "myPrologueFile" -3 > -1 >Emitted(13, 5) Source(1, 1) + SourceIndex(4) -2 >Emitted(13, 21) Source(1, 17) + SourceIndex(4) -3 >Emitted(13, 22) Source(1, 17) + SourceIndex(4) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1->Emitted(15, 5) Source(2, 14) + SourceIndex(4) -2 >Emitted(15, 13) Source(2, 14) + SourceIndex(4) -3 >Emitted(15, 14) Source(2, 15) + SourceIndex(4) -4 >Emitted(15, 17) Source(2, 18) + SourceIndex(4) -5 >Emitted(15, 19) Source(2, 20) + SourceIndex(4) -6 >Emitted(15, 20) Source(2, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(17, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(17, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(17, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(17, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(17, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(17, 22) Source(2, 24) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologue"; -1->^^^^ -2 > ^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > "myPrologue" -3 > -1->Emitted(20, 5) Source(1, 1) + SourceIndex(5) -2 >Emitted(20, 17) Source(1, 13) + SourceIndex(5) -3 >Emitted(20, 18) Source(1, 13) + SourceIndex(5) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(22, 5) Source(2, 14) + SourceIndex(5) -2 >Emitted(22, 13) Source(2, 14) + SourceIndex(5) -3 >Emitted(22, 14) Source(2, 15) + SourceIndex(5) -4 >Emitted(22, 17) Source(2, 18) + SourceIndex(5) -5 >Emitted(22, 19) Source(2, 20) + SourceIndex(5) -6 >Emitted(22, 20) Source(2, 21) + SourceIndex(5) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 >"myPrologue2"; - > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(24, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(24, 5) Source(2, 7) + SourceIndex(2) -3 >Emitted(24, 10) Source(2, 12) + SourceIndex(2) -4 >Emitted(24, 13) Source(2, 15) + SourceIndex(2) -5 >Emitted(24, 15) Source(2, 17) + SourceIndex(2) -6 >Emitted(24, 16) Source(2, 18) + SourceIndex(2) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 62, - "end": 494, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 62, - "end": 494, - "kind": "text" - } - ] - }, - { - "pos": 494, - "end": 714, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 1, - "text": "\"myPrologue2\";", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 14, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue2" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - }, - { - "pos": 171, - "end": 253, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prepend: (62-494):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (62-494) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (494-714) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-171):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-171) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (171-253) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; - -====================================================================== - -//// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - "references": [ - { "path": "../lib", "prepend": true } - ] -} - -//// [/src/lib/file0.ts] -"myPrologue" -const myGlob = 20; - -//// [/src/lib/file2.ts] -"myPrologueFile" -export const y = 20; - -//// [/src/lib/global.ts] -"myPrologue3" -const globalConst = 10; - -//// [/src/lib/module.d.ts] -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >"myPrologue" - > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >"myPrologueFile" - > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) -2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) -3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) -4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) -5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) -6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) -7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 >"myPrologue3" - > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) -3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) -4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) -5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) -6 >Emitted(8, 32) Source(2, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -"use strict"; -"myPrologue"; -"myPrologue3"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,global.ts,file1.ts,file2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1-> -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue" - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(4, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(8, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(8, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(8, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(8, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(8, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(8, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologueFile"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > "myPrologueFile" -3 > -1 >Emitted(12, 5) Source(1, 1) + SourceIndex(3) -2 >Emitted(12, 21) Source(1, 17) + SourceIndex(3) -3 >Emitted(12, 22) Source(1, 17) + SourceIndex(3) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1->Emitted(14, 5) Source(2, 14) + SourceIndex(3) -2 >Emitted(14, 13) Source(2, 14) + SourceIndex(3) -3 >Emitted(14, 14) Source(2, 15) + SourceIndex(3) -4 >Emitted(14, 17) Source(2, 18) + SourceIndex(3) -5 >Emitted(14, 19) Source(2, 20) + SourceIndex(3) -6 >Emitted(14, 20) Source(2, 21) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(16, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(16, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(16, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(16, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(16, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(16, 22) Source(2, 24) + SourceIndex(1) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 46, - "end": 478, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue\"", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 12, - "expression": { - "pos": 0, - "end": 12, - "text": "myPrologue" - } - } - ] - }, - { - "file": 3, - "text": "\"myPrologue3\"", - "directives": [ - { - "pos": 0, - "end": 13, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -text: (46-478) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-171) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - -} - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js deleted file mode 100644 index 48e53ba2ecb..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js +++ /dev/null @@ -1,866 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/app --verbose -4:01:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist - -4:01:00 PM - Building project '/src/lib/tsconfig.json'... - -4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist - -4:01:00 PM - Building project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/file3.ts] -#!someshebang app file3 -export const z = 30; -import { x } from "file1"; - -//// [/src/app/module.d.ts] -#!someshebang lib file0 -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; -//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC"} - -//// [/src/app/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>#!someshebang lib file0 ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >#!someshebang lib file0 - > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) -5 >Emitted(2, 26) Source(2, 18) + SourceIndex(0) -6 >Emitted(2, 27) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >#!someshebang lib file1 - > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(4, 5) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) -3 >Emitted(4, 12) Source(2, 8) + SourceIndex(1) -4 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) -5 >Emitted(4, 19) Source(2, 15) + SourceIndex(1) -6 >Emitted(4, 24) Source(2, 20) + SourceIndex(1) -7 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file3.ts -------------------------------------------------------------------- ->>>declare module "file3" { ->>> export const z = 30; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >#!someshebang app file3 - > -2 > export -3 > -4 > const -5 > z -6 > = 30 -7 > ; -1 >Emitted(11, 5) Source(2, 1) + SourceIndex(4) -2 >Emitted(11, 11) Source(2, 7) + SourceIndex(4) -3 >Emitted(11, 12) Source(2, 8) + SourceIndex(4) -4 >Emitted(11, 18) Source(2, 14) + SourceIndex(4) -5 >Emitted(11, 19) Source(2, 15) + SourceIndex(4) -6 >Emitted(11, 24) Source(2, 20) + SourceIndex(4) -7 >Emitted(11, 25) Source(2, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file4.ts -------------------------------------------------------------------- ->>>} ->>>declare const myVar = 30; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^^^-> -1 > -2 > -3 > const -4 > myVar -5 > = 30 -6 > ; -1 >Emitted(13, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(13, 9) Source(1, 1) + SourceIndex(5) -3 >Emitted(13, 15) Source(1, 7) + SourceIndex(5) -4 >Emitted(13, 20) Source(1, 12) + SourceIndex(5) -5 >Emitted(13, 25) Source(1, 17) + SourceIndex(5) -6 >Emitted(13, 26) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.js] -#!someshebang lib file0 -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>#!someshebang lib file0 ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >#!someshebang lib file0 - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->#!someshebang lib file1 - >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(6, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(6, 13) Source(2, 14) + SourceIndex(1) -3 >Emitted(6, 14) Source(2, 15) + SourceIndex(1) -4 >Emitted(6, 17) Source(2, 18) + SourceIndex(1) -5 >Emitted(6, 19) Source(2, 20) + SourceIndex(1) -6 >Emitted(6, 20) Source(2, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->#!someshebang app file3 - >export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(17, 5) Source(2, 14) + SourceIndex(4) -2 >Emitted(17, 13) Source(2, 14) + SourceIndex(4) -3 >Emitted(17, 14) Source(2, 15) + SourceIndex(4) -4 >Emitted(17, 17) Source(2, 18) + SourceIndex(4) -5 >Emitted(17, 19) Source(2, 20) + SourceIndex(4) -6 >Emitted(17, 20) Source(2, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(19, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(19, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(19, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(19, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(19, 16) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 25, - "end": 434, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 25, - "end": 434, - "kind": "text" - } - ] - }, - { - "pos": 434, - "end": 635, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 25, - "end": 196, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 25, - "end": 196, - "kind": "text" - } - ] - }, - { - "pos": 196, - "end": 278, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (25-434):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (25-434) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (434-635) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (25-196):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (25-196) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (196-278) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; - -====================================================================== - -//// [/src/lib/file0.ts] -#!someshebang lib file0 -const myGlob = 20; - -//// [/src/lib/file1.ts] -#!someshebang lib file1 -export const x = 10; - -//// [/src/lib/module.d.ts] -#!someshebang lib file0 -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>#!someshebang lib file0 ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >#!someshebang lib file0 - > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) -5 >Emitted(2, 26) Source(2, 18) + SourceIndex(0) -6 >Emitted(2, 27) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >#!someshebang lib file1 - > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(4, 5) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) -3 >Emitted(4, 12) Source(2, 8) + SourceIndex(1) -4 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) -5 >Emitted(4, 19) Source(2, 15) + SourceIndex(1) -6 >Emitted(4, 24) Source(2, 20) + SourceIndex(1) -7 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -#!someshebang lib file0 -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>#!someshebang lib file0 ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >#!someshebang lib file0 - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->#!someshebang lib file1 - >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(6, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(6, 13) Source(2, 14) + SourceIndex(1) -3 >Emitted(6, 14) Source(2, 15) + SourceIndex(1) -4 >Emitted(6, 17) Source(2, 18) + SourceIndex(1) -5 >Emitted(6, 19) Source(2, 20) + SourceIndex(1) -6 >Emitted(6, 20) Source(2, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 25, - "end": 434, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 25, - "end": 196, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (25-434) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (25-196) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js deleted file mode 100644 index 2180d402e80..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js +++ /dev/null @@ -1,4727 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/app --verbose -4:01:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist - -4:01:00 PM - Building project '/src/lib/tsconfig.json'... - -4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist - -4:01:00 PM - Building project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/module.d.ts] -declare module "file1" { - export const x = 10; - export class normalC { - } - export namespace normalN { - } -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; -//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} - -//// [/src/app/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: ../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^^^-> -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(2, 5) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(1, 7) + SourceIndex(0) -3 >Emitted(2, 12) Source(1, 8) + SourceIndex(0) -4 >Emitted(2, 18) Source(1, 14) + SourceIndex(0) -5 >Emitted(2, 19) Source(1, 15) + SourceIndex(0) -6 >Emitted(2, 24) Source(1, 20) + SourceIndex(0) -7 >Emitted(2, 25) Source(1, 21) + SourceIndex(0) ---- ->>> export class normalC { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^ -1-> - > -2 > export -3 > class -4 > normalC -1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) -2 >Emitted(3, 11) Source(2, 7) + SourceIndex(0) -3 >Emitted(3, 18) Source(2, 14) + SourceIndex(0) -4 >Emitted(3, 25) Source(2, 21) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(4, 6) Source(8, 2) + SourceIndex(0) ---- ->>> export namespace normalN { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^ -5 > ^ -1-> - > -2 > export -3 > namespace -4 > normalN -5 > -1->Emitted(5, 5) Source(9, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(9, 7) + SourceIndex(0) -3 >Emitted(5, 22) Source(9, 18) + SourceIndex(0) -4 >Emitted(5, 29) Source(9, 25) + SourceIndex(0) -5 >Emitted(5, 30) Source(9, 26) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 >{ - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(6, 6) Source(18, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(9, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(9, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(9, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(9, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(9, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(9, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(11, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(11, 9) Source(1, 1) + SourceIndex(2) -3 >Emitted(11, 15) Source(1, 7) + SourceIndex(2) -4 >Emitted(11, 26) Source(1, 18) + SourceIndex(2) -5 >Emitted(11, 31) Source(1, 23) + SourceIndex(2) -6 >Emitted(11, 32) Source(1, 24) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file3.ts -------------------------------------------------------------------- ->>>declare module "file3" { ->>> export const z = 30; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > z -6 > = 30 -7 > ; -1 >Emitted(13, 5) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 11) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 12) Source(1, 8) + SourceIndex(3) -4 >Emitted(13, 18) Source(1, 14) + SourceIndex(3) -5 >Emitted(13, 19) Source(1, 15) + SourceIndex(3) -6 >Emitted(13, 24) Source(1, 20) + SourceIndex(3) -7 >Emitted(13, 25) Source(1, 21) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file4.ts -------------------------------------------------------------------- ->>>} ->>>declare const myVar = 30; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^^^-> -1 > -2 > -3 > const -4 > myVar -5 > = 30 -6 > ; -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(15, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(15, 15) Source(1, 7) + SourceIndex(4) -4 >Emitted(15, 20) Source(1, 12) + SourceIndex(4) -5 >Emitted(15, 25) Source(1, 17) + SourceIndex(4) -6 >Emitted(15, 26) Source(1, 18) + SourceIndex(4) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.js] -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN = exports.normalN || (exports.normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther = exports.internalOther || (exports.internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>/*@internal*/ var myGlob = 20; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >/*@internal*/ -3 > -4 > const -5 > myGlob -6 > = -7 > 20 -8 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) -5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) -6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) -7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) -8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) ---- ->>> var normalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) ---- ->>> /*@internal*/ function normalC() { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->export class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) -2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) -3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) -2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) -2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) -3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) -4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) -5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) -6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) -7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) -2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) -3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) -2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) -3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) -4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) -5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) -6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) -7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) -8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) -9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) -2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) -3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) -4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) -5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) -6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) -7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) ---- ->>> return normalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) -2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) -3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) -4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) ---- ->>> exports.normalC = normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > normalC -1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) ---- ->>> var normalN; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} - > -2 > export namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) -3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) -4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) ---- ->>> (function (normalN) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export namespace -3 > normalN -1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) -3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) -2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) -3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) -2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) -3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) -4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) ---- ->>> normalN.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) -2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) -3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) -4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function foo() { } -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) -2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) -3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) -4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) -5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) -6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) -7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) ---- ->>> normalN.foo = foo; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) -2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) -3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) -4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) -2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) -3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) -4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) -5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) -6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) ---- ->>> (function (someNamespace) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) -3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) -2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) -3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) -4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) ---- ->>> someNamespace.C = C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) -2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) -3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) -4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) -2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) -3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) -4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) -5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) -6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) -7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) -8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) -9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) ---- ->>> /*@internal*/ var someOther; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) -2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) -3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) -4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) -5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) -6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) ---- ->>> (function (someOther) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) -3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) -3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) -4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) -3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) -2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) -3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) -4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) -2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) -3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) -4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) -2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) -3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) -4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) -5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) -6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) -7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) -8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) -9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) -2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) -3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) -4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) -5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) -6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) -7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) -8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) -9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) -2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) -3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) -5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) -6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) -7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) -8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) -9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) -2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) -3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) -4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) -5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) -6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) -7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) -2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) -3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) -4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) -5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) -3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) -3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) -3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) -3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) -2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) -3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) -4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) -5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) -6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) -7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) -8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) -9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) ---- ->>> })(normalN = exports.normalN || (exports.normalN = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -10> ^^^-> -1 > - > -2 > } -3 > -4 > normalN -5 > -6 > normalN -7 > -8 > normalN -9 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) -2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) -3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) -4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) -5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) -6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) -7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) -8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) -9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) ---- ->>> /*@internal*/ var internalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 > /*@internal*/ -3 > -1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) -2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) -3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) ---- ->>> function internalC() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class internalC { -2 > } -1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) ---- ->>> return internalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class internalC {} -1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) -2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) -3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) -4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) ---- ->>> exports.internalC = internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^-> -1-> -2 > internalC -1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) -2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function internalfoo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> {} - > -2 > /*@internal*/ -3 > -4 > export function -5 > internalfoo -6 > () { -7 > } -1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) -2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) -3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) -4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) -5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) -6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) -7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) ---- ->>> exports.internalfoo = internalfoo; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^-> -1 > -2 > export function internalfoo() {} -1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalNamespace -6 > { export class someClass {} } -1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) -2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) -3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) -4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) -5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) -6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) ---- ->>> (function (internalNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > internalNamespace -1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) -3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) -2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) -3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) -4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) -2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) -3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) -4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) ---- ->>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > -8 > internalNamespace -9 > { export class someClass {} } -1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) -2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) -3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) -4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) -5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) -6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) -7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) -8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) -9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) ---- ->>> /*@internal*/ var internalOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) -2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) -3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) -4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) -5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) -6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) ---- ->>> (function (internalOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 > export namespace -3 > internalOther -1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) -3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) -3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) -4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) -3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) -2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) -3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) -4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) -2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) -3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) -4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) -2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) -3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) -4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) -5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) -6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) -7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) -8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) -9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) ---- ->>> })(internalOther = exports.internalOther || (exports.internalOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > internalOther -5 > -6 > internalOther -7 > -8 > internalOther -9 > .something { export class someClass {} } -1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) -2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) -3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) -4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) -5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) -6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) -7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) -8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) -9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalImport = internalNamespace.someClass; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) -2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) -3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) -5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) -6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) -7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) -8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) -9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) -10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) -2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) -3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) -4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) -5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) -6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) -7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) -8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) -2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) -3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) -4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) -5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) -3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) -3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) -3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) -3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) ---- ->>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) -2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) -3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) -4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) -5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) -6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) -7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) -8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) -9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(100, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(100, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(100, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(100, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(100, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(100, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(102, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(102, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(102, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(102, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(102, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(106, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(106, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(106, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(106, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(106, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(106, 20) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(108, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(108, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(108, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(108, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(108, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(108, 16) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4129, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 0, - "end": 4129, - "kind": "text" - } - ] - }, - { - "pos": 4129, - "end": 4330, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 217, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 217, - "kind": "text" - } - ] - }, - { - "pos": 217, - "end": 299, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (0-4129):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-4129) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN = exports.normalN || (exports.normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther = exports.internalOther || (exports.internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (4129-4330) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-217):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-217) -declare module "file1" { - export const x = 10; - export class normalC { - } - export namespace normalN { - } -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (217-299) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; - -====================================================================== - -//// [/src/app/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, -"stripInternal": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "module.js" - }, - "exclude": ["module.d.ts"] - "references": [ - { "path": "../lib", "prepend": true } - ] -} - -//// [/src/lib/file0.ts] -/*@internal*/ const myGlob = 20; - -//// [/src/lib/file1.ts] -export const x = 10; -export class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -export namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ export class internalC {} -/*@internal*/ export function internalfoo() {} -/*@internal*/ export namespace internalNamespace { export class someClass {} } -/*@internal*/ export namespace internalOther.something { export class someClass {} } -/*@internal*/ export import internalImport = internalNamespace.someClass; -/*@internal*/ export type internalType = internalC; -/*@internal*/ export const internalConst = 10; -/*@internal*/ export enum internalEnum { a, b, c } - -//// [/src/lib/module.d.ts] -declare const myGlob = 20; -declare module "file1" { - export const x = 10; - export class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: number; - } - export namespace normalN { - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } - } - export class internalC { - } - export function internalfoo(): void; - export namespace internalNamespace { - class someClass { - } - } - export namespace internalOther.something { - class someClass { - } - } - export import internalImport = internalNamespace.someClass; - export type internalType = internalC; - export const internalConst = 10; - export enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAhC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;sBACF,CAAC,EACM,MAAM;KAClC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >/*@internal*/ -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 9) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 21) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 27) + SourceIndex(0) -5 >Emitted(1, 26) Source(1, 32) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^^^-> -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) ---- ->>> export class normalC { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^ -1-> - > -2 > export -3 > class -4 > normalC -1->Emitted(4, 5) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) -3 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) -4 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(6, 9) Source(4, 19) + SourceIndex(1) -2 >Emitted(6, 13) Source(4, 23) + SourceIndex(1) -3 >Emitted(6, 15) Source(4, 25) + SourceIndex(1) -4 >Emitted(6, 21) Source(4, 31) + SourceIndex(1) -5 >Emitted(6, 22) Source(4, 32) + SourceIndex(1) ---- ->>> method(): void; -1->^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(7, 9) Source(5, 19) + SourceIndex(1) -2 >Emitted(7, 15) Source(5, 25) + SourceIndex(1) ---- ->>> /*@internal*/ c: number; -1->^^^^^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(8, 23) Source(6, 23) + SourceIndex(1) -2 >Emitted(8, 24) Source(6, 24) + SourceIndex(1) -3 >Emitted(8, 26) Source(7, 30) + SourceIndex(1) -4 >Emitted(8, 32) Source(7, 36) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(9, 6) Source(8, 2) + SourceIndex(1) ---- ->>> export namespace normalN { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^ -5 > ^ -1-> - > -2 > export -3 > namespace -4 > normalN -5 > -1->Emitted(10, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(10, 11) Source(9, 7) + SourceIndex(1) -3 >Emitted(10, 22) Source(9, 18) + SourceIndex(1) -4 >Emitted(10, 29) Source(9, 25) + SourceIndex(1) -5 >Emitted(10, 30) Source(9, 26) + SourceIndex(1) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(11, 9) Source(10, 19) + SourceIndex(1) -2 >Emitted(11, 15) Source(10, 32) + SourceIndex(1) -3 >Emitted(11, 16) Source(10, 33) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(12, 10) Source(10, 37) + SourceIndex(1) ---- ->>> function foo(): void; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(13, 9) Source(11, 19) + SourceIndex(1) -2 >Emitted(13, 18) Source(11, 35) + SourceIndex(1) -3 >Emitted(13, 21) Source(11, 38) + SourceIndex(1) -4 >Emitted(13, 30) Source(11, 43) + SourceIndex(1) ---- ->>> namespace someNamespace { -1->^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(14, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(14, 19) Source(12, 36) + SourceIndex(1) -3 >Emitted(14, 32) Source(12, 49) + SourceIndex(1) -4 >Emitted(14, 33) Source(12, 50) + SourceIndex(1) ---- ->>> class C { -1 >^^^^^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(15, 13) Source(12, 52) + SourceIndex(1) -2 >Emitted(15, 19) Source(12, 65) + SourceIndex(1) -3 >Emitted(15, 20) Source(12, 66) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^^^^^ -1 > {} -1 >Emitted(16, 14) Source(12, 69) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(17, 10) Source(12, 71) + SourceIndex(1) ---- ->>> namespace someOther.something { -1->^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(18, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(18, 19) Source(13, 36) + SourceIndex(1) -3 >Emitted(18, 28) Source(13, 45) + SourceIndex(1) -4 >Emitted(18, 29) Source(13, 46) + SourceIndex(1) -5 >Emitted(18, 38) Source(13, 55) + SourceIndex(1) -6 >Emitted(18, 39) Source(13, 56) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(19, 13) Source(13, 58) + SourceIndex(1) -2 >Emitted(19, 19) Source(13, 71) + SourceIndex(1) -3 >Emitted(19, 28) Source(13, 80) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^^^^^ -1 > {} -1 >Emitted(20, 14) Source(13, 83) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(21, 10) Source(13, 85) + SourceIndex(1) ---- ->>> export import someImport = someNamespace.C; -1->^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(22, 9) Source(14, 19) + SourceIndex(1) -2 >Emitted(22, 15) Source(14, 25) + SourceIndex(1) -3 >Emitted(22, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(22, 33) Source(14, 43) + SourceIndex(1) -5 >Emitted(22, 36) Source(14, 46) + SourceIndex(1) -6 >Emitted(22, 49) Source(14, 59) + SourceIndex(1) -7 >Emitted(22, 50) Source(14, 60) + SourceIndex(1) -8 >Emitted(22, 51) Source(14, 61) + SourceIndex(1) -9 >Emitted(22, 52) Source(14, 62) + SourceIndex(1) ---- ->>> type internalType = internalC; -1 >^^^^^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(23, 9) Source(15, 19) + SourceIndex(1) -2 >Emitted(23, 14) Source(15, 31) + SourceIndex(1) -3 >Emitted(23, 26) Source(15, 43) + SourceIndex(1) -4 >Emitted(23, 29) Source(15, 46) + SourceIndex(1) -5 >Emitted(23, 38) Source(15, 55) + SourceIndex(1) -6 >Emitted(23, 39) Source(15, 56) + SourceIndex(1) ---- ->>> const internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(24, 9) Source(16, 26) + SourceIndex(1) -2 >Emitted(24, 15) Source(16, 32) + SourceIndex(1) -3 >Emitted(24, 28) Source(16, 45) + SourceIndex(1) -4 >Emitted(24, 33) Source(16, 50) + SourceIndex(1) -5 >Emitted(24, 34) Source(16, 51) + SourceIndex(1) ---- ->>> enum internalEnum { -1 >^^^^^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(25, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(25, 14) Source(17, 31) + SourceIndex(1) -3 >Emitted(25, 26) Source(17, 43) + SourceIndex(1) ---- ->>> a = 0, -1 >^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(26, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(26, 14) Source(17, 47) + SourceIndex(1) -3 >Emitted(26, 18) Source(17, 47) + SourceIndex(1) ---- ->>> b = 1, -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(27, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(27, 14) Source(17, 50) + SourceIndex(1) -3 >Emitted(27, 18) Source(17, 50) + SourceIndex(1) ---- ->>> c = 2 -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(28, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(28, 14) Source(17, 53) + SourceIndex(1) -3 >Emitted(28, 18) Source(17, 53) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > } -1 >Emitted(29, 10) Source(17, 55) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(30, 6) Source(18, 2) + SourceIndex(1) ---- ->>> export class internalC { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 > export -3 > class -4 > internalC -1->Emitted(31, 5) Source(19, 15) + SourceIndex(1) -2 >Emitted(31, 11) Source(19, 21) + SourceIndex(1) -3 >Emitted(31, 18) Source(19, 28) + SourceIndex(1) -4 >Emitted(31, 27) Source(19, 37) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(32, 6) Source(19, 40) + SourceIndex(1) ---- ->>> export function internalfoo(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^ -6 > ^-> -1-> - >/*@internal*/ -2 > export -3 > function -4 > internalfoo -5 > () {} -1->Emitted(33, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(33, 11) Source(20, 21) + SourceIndex(1) -3 >Emitted(33, 21) Source(20, 31) + SourceIndex(1) -4 >Emitted(33, 32) Source(20, 42) + SourceIndex(1) -5 >Emitted(33, 41) Source(20, 47) + SourceIndex(1) ---- ->>> export namespace internalNamespace { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 > export -3 > namespace -4 > internalNamespace -5 > -1->Emitted(34, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(34, 11) Source(21, 21) + SourceIndex(1) -3 >Emitted(34, 22) Source(21, 32) + SourceIndex(1) -4 >Emitted(34, 39) Source(21, 49) + SourceIndex(1) -5 >Emitted(34, 40) Source(21, 50) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(35, 9) Source(21, 52) + SourceIndex(1) -2 >Emitted(35, 15) Source(21, 65) + SourceIndex(1) -3 >Emitted(35, 24) Source(21, 74) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(36, 10) Source(21, 77) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(37, 6) Source(21, 79) + SourceIndex(1) ---- ->>> export namespace internalOther.something { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -1-> - >/*@internal*/ -2 > export -3 > namespace -4 > internalOther -5 > . -6 > something -7 > -1->Emitted(38, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(38, 11) Source(22, 21) + SourceIndex(1) -3 >Emitted(38, 22) Source(22, 32) + SourceIndex(1) -4 >Emitted(38, 35) Source(22, 45) + SourceIndex(1) -5 >Emitted(38, 36) Source(22, 46) + SourceIndex(1) -6 >Emitted(38, 45) Source(22, 55) + SourceIndex(1) -7 >Emitted(38, 46) Source(22, 56) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(39, 9) Source(22, 58) + SourceIndex(1) -2 >Emitted(39, 15) Source(22, 71) + SourceIndex(1) -3 >Emitted(39, 24) Source(22, 80) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(40, 10) Source(22, 83) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(41, 6) Source(22, 85) + SourceIndex(1) ---- ->>> export import internalImport = internalNamespace.someClass; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^^^ -9 > ^ -1-> - >/*@internal*/ -2 > export -3 > import -4 > internalImport -5 > = -6 > internalNamespace -7 > . -8 > someClass -9 > ; -1->Emitted(42, 5) Source(23, 15) + SourceIndex(1) -2 >Emitted(42, 11) Source(23, 21) + SourceIndex(1) -3 >Emitted(42, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(42, 33) Source(23, 43) + SourceIndex(1) -5 >Emitted(42, 36) Source(23, 46) + SourceIndex(1) -6 >Emitted(42, 53) Source(23, 63) + SourceIndex(1) -7 >Emitted(42, 54) Source(23, 64) + SourceIndex(1) -8 >Emitted(42, 63) Source(23, 73) + SourceIndex(1) -9 >Emitted(42, 64) Source(23, 74) + SourceIndex(1) ---- ->>> export type internalType = internalC; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^ -7 > ^ -1 > - >/*@internal*/ -2 > export -3 > type -4 > internalType -5 > = -6 > internalC -7 > ; -1 >Emitted(43, 5) Source(24, 15) + SourceIndex(1) -2 >Emitted(43, 11) Source(24, 21) + SourceIndex(1) -3 >Emitted(43, 17) Source(24, 27) + SourceIndex(1) -4 >Emitted(43, 29) Source(24, 39) + SourceIndex(1) -5 >Emitted(43, 32) Source(24, 42) + SourceIndex(1) -6 >Emitted(43, 41) Source(24, 51) + SourceIndex(1) -7 >Emitted(43, 42) Source(24, 52) + SourceIndex(1) ---- ->>> export const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1 > - >/*@internal*/ -2 > export -3 > -4 > const -5 > internalConst -6 > = 10 -7 > ; -1 >Emitted(44, 5) Source(25, 15) + SourceIndex(1) -2 >Emitted(44, 11) Source(25, 21) + SourceIndex(1) -3 >Emitted(44, 12) Source(25, 22) + SourceIndex(1) -4 >Emitted(44, 18) Source(25, 28) + SourceIndex(1) -5 >Emitted(44, 31) Source(25, 41) + SourceIndex(1) -6 >Emitted(44, 36) Source(25, 46) + SourceIndex(1) -7 >Emitted(44, 37) Source(25, 47) + SourceIndex(1) ---- ->>> export enum internalEnum { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 > export -3 > enum -4 > internalEnum -1 >Emitted(45, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(45, 11) Source(26, 21) + SourceIndex(1) -3 >Emitted(45, 17) Source(26, 27) + SourceIndex(1) -4 >Emitted(45, 29) Source(26, 39) + SourceIndex(1) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(46, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(46, 10) Source(26, 43) + SourceIndex(1) -3 >Emitted(46, 14) Source(26, 43) + SourceIndex(1) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(47, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(47, 10) Source(26, 46) + SourceIndex(1) -3 >Emitted(47, 14) Source(26, 46) + SourceIndex(1) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(48, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(48, 10) Source(26, 49) + SourceIndex(1) -3 >Emitted(48, 14) Source(26, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(49, 6) Source(26, 51) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(52, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(52, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(52, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(52, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(52, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(52, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(52, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(54, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(54, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(54, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(54, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(54, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(54, 32) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN = exports.normalN || (exports.normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther = exports.internalOther || (exports.internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>/*@internal*/ var myGlob = 20; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >/*@internal*/ -3 > -4 > const -5 > myGlob -6 > = -7 > 20 -8 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) -5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) -6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) -7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) -8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) ---- ->>> var normalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) ---- ->>> /*@internal*/ function normalC() { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->export class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) -2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) -3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) -2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) -2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) -3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) -4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) -5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) -6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) -7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) -2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) -3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) -2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) -3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) -4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) -5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) -6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) -7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) -8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) -9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) -2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) -3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) -4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) -5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) -6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) -7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) ---- ->>> return normalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) -2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) -3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) -4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) ---- ->>> exports.normalC = normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > normalC -1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) ---- ->>> var normalN; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} - > -2 > export namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) -3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) -4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) ---- ->>> (function (normalN) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export namespace -3 > normalN -1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) -3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) -2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) -3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) -2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) -3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) -4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) ---- ->>> normalN.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) -2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) -3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) -4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function foo() { } -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) -2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) -3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) -4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) -5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) -6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) -7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) ---- ->>> normalN.foo = foo; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) -2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) -3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) -4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) -2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) -3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) -4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) -5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) -6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) ---- ->>> (function (someNamespace) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) -3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) -2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) -3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) -4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) ---- ->>> someNamespace.C = C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) -2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) -3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) -4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) -2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) -3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) -4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) -5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) -6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) -7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) -8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) -9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) ---- ->>> /*@internal*/ var someOther; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) -2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) -3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) -4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) -5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) -6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) ---- ->>> (function (someOther) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) -3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) -3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) -4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) -3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) -2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) -3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) -4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) -2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) -3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) -4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) -2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) -3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) -4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) -5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) -6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) -7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) -8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) -9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) -2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) -3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) -4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) -5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) -6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) -7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) -8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) -9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) -2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) -3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) -5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) -6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) -7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) -8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) -9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) -2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) -3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) -4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) -5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) -6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) -7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) -2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) -3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) -4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) -5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) -3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) -3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) -3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) -3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) -2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) -3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) -4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) -5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) -6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) -7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) -8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) -9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) ---- ->>> })(normalN = exports.normalN || (exports.normalN = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -10> ^^^-> -1 > - > -2 > } -3 > -4 > normalN -5 > -6 > normalN -7 > -8 > normalN -9 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) -2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) -3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) -4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) -5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) -6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) -7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) -8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) -9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) ---- ->>> /*@internal*/ var internalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 > /*@internal*/ -3 > -1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) -2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) -3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) ---- ->>> function internalC() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class internalC { -2 > } -1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) ---- ->>> return internalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class internalC {} -1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) -2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) -3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) -4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) ---- ->>> exports.internalC = internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^-> -1-> -2 > internalC -1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) -2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function internalfoo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> {} - > -2 > /*@internal*/ -3 > -4 > export function -5 > internalfoo -6 > () { -7 > } -1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) -2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) -3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) -4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) -5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) -6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) -7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) ---- ->>> exports.internalfoo = internalfoo; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^-> -1 > -2 > export function internalfoo() {} -1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalNamespace -6 > { export class someClass {} } -1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) -2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) -3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) -4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) -5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) -6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) ---- ->>> (function (internalNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > internalNamespace -1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) -3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) -2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) -3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) -4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) -2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) -3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) -4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) ---- ->>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > -8 > internalNamespace -9 > { export class someClass {} } -1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) -2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) -3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) -4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) -5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) -6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) -7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) -8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) -9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) ---- ->>> /*@internal*/ var internalOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) -2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) -3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) -4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) -5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) -6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) ---- ->>> (function (internalOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 > export namespace -3 > internalOther -1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) -3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) -3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) -4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) -3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) -2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) -3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) -4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) -2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) -3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) -4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) -2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) -3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) -4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) -5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) -6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) -7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) -8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) -9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) ---- ->>> })(internalOther = exports.internalOther || (exports.internalOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > internalOther -5 > -6 > internalOther -7 > -8 > internalOther -9 > .something { export class someClass {} } -1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) -2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) -3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) -4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) -5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) -6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) -7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) -8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) -9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalImport = internalNamespace.someClass; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) -2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) -3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) -5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) -6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) -7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) -8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) -9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) -10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) -2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) -3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) -4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) -5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) -6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) -7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) -8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) -2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) -3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) -4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) -5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) -3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) -3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) -3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) -3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) ---- ->>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) -2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) -3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) -4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) -5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) -6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) -7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) -8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) -9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(100, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(100, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(100, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(100, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(100, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(100, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(102, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(102, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(102, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(102, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(102, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4129, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 26, - "kind": "internal" - }, - { - "pos": 28, - "end": 108, - "kind": "text" - }, - { - "pos": 108, - "end": 212, - "kind": "internal" - }, - { - "pos": 214, - "end": 253, - "kind": "text" - }, - { - "pos": 253, - "end": 721, - "kind": "internal" - }, - { - "pos": 723, - "end": 730, - "kind": "text" - }, - { - "pos": 730, - "end": 1219, - "kind": "internal" - }, - { - "pos": 1221, - "end": 1312, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-4129) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN = exports.normalN || (exports.normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther = exports.internalOther || (exports.internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -internal: (0-26) -declare const myGlob = 20; ----------------------------------------------------------------------- -text: (28-108) -declare module "file1" { - export const x = 10; - export class normalC { - ----------------------------------------------------------------------- -internal: (108-212) - constructor(); - prop: string; - method(): void; - /*@internal*/ c: number; ----------------------------------------------------------------------- -text: (214-253) - } - export namespace normalN { - ----------------------------------------------------------------------- -internal: (253-721) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (723-730) - } - ----------------------------------------------------------------------- -internal: (730-1219) - export class internalC { - } - export function internalfoo(): void; - export namespace internalNamespace { - class someClass { - } - } - export namespace internalOther.something { - class someClass { - } - } - export import internalImport = internalNamespace.someClass; - export type internalType = internalC; - export const internalConst = 10; - export enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (1221-1312) -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js deleted file mode 100644 index 352f657481b..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js +++ /dev/null @@ -1,1076 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/app --verbose -4:01:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist - -4:01:00 PM - Building project '/src/lib/tsconfig.json'... - -4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist - -4:01:00 PM - Building project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/file4.ts] -/// -const file4Const = new appfile4(); -const myVar = 30; - -//// [/src/app/module.d.ts] -/// -/// -declare const file0Const: libfile0; -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -declare module "file3" { - export const z = 30; -} -declare const file4Const: appfile4; -declare const myVar = 30; -//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC"} - -//// [/src/app/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>/// ->>>/// ->>>declare const file0Const: libfile0; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 >/// - > -2 > -3 > const -4 > file0Const -5 > = new libfile0() -6 > ; -1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(3, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(3, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(3, 25) Source(2, 17) + SourceIndex(0) -5 >Emitted(3, 35) Source(2, 34) + SourceIndex(0) -6 >Emitted(3, 36) Source(2, 35) + SourceIndex(0) ---- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(4, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(3, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(3, 7) + SourceIndex(0) -4 >Emitted(4, 21) Source(3, 13) + SourceIndex(0) -5 >Emitted(4, 26) Source(3, 18) + SourceIndex(0) -6 >Emitted(4, 27) Source(3, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(6, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(6, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(6, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(6, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(6, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(9, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(9, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(9, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(9, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(9, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(9, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(11, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(11, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(11, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(11, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(11, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(11, 32) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file3.ts -------------------------------------------------------------------- ->>>declare module "file3" { ->>> export const z = 30; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > z -6 > = 30 -7 > ; -1 >Emitted(13, 5) Source(1, 1) + SourceIndex(4) -2 >Emitted(13, 11) Source(1, 7) + SourceIndex(4) -3 >Emitted(13, 12) Source(1, 8) + SourceIndex(4) -4 >Emitted(13, 18) Source(1, 14) + SourceIndex(4) -5 >Emitted(13, 19) Source(1, 15) + SourceIndex(4) -6 >Emitted(13, 24) Source(1, 20) + SourceIndex(4) -7 >Emitted(13, 25) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file4.ts -------------------------------------------------------------------- ->>>} ->>>declare const file4Const: appfile4; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 >/// - > -2 > -3 > const -4 > file4Const -5 > = new appfile4() -6 > ; -1 >Emitted(15, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(15, 9) Source(2, 1) + SourceIndex(5) -3 >Emitted(15, 15) Source(2, 7) + SourceIndex(5) -4 >Emitted(15, 25) Source(2, 17) + SourceIndex(5) -5 >Emitted(15, 35) Source(2, 34) + SourceIndex(5) -6 >Emitted(15, 36) Source(2, 35) + SourceIndex(5) ---- ->>>declare const myVar = 30; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^^^-> -1 > - > -2 > -3 > const -4 > myVar -5 > = 30 -6 > ; -1 >Emitted(16, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(16, 9) Source(3, 1) + SourceIndex(5) -3 >Emitted(16, 15) Source(3, 7) + SourceIndex(5) -4 >Emitted(16, 20) Source(3, 12) + SourceIndex(5) -5 >Emitted(16, 25) Source(3, 17) + SourceIndex(5) -6 >Emitted(16, 26) Source(3, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.js] -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -/// -var file4Const = new appfile4(); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>/// -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 >/// -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0) ---- ->>>var file0Const = new libfile0(); -1 > -2 >^^^^ -3 > ^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^ -7 > ^^ -8 > ^ -1 > - > -2 >const -3 > file0Const -4 > = -5 > new -6 > libfile0 -7 > () -8 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0) -4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0) -5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) -6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0) -7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0) -8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0) ---- ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0) -5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0) -6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(7, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(18, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(18, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(18, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(18, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(18, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(18, 20) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>/// -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 >/// -1 >Emitted(20, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(20, 40) Source(1, 40) + SourceIndex(5) ---- ->>>var file4Const = new appfile4(); -1 > -2 >^^^^ -3 > ^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^ -7 > ^^ -8 > ^ -1 > - > -2 >const -3 > file4Const -4 > = -5 > new -6 > appfile4 -7 > () -8 > ; -1 >Emitted(21, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(21, 5) Source(2, 7) + SourceIndex(5) -3 >Emitted(21, 15) Source(2, 17) + SourceIndex(5) -4 >Emitted(21, 18) Source(2, 20) + SourceIndex(5) -5 >Emitted(21, 22) Source(2, 24) + SourceIndex(5) -6 >Emitted(21, 30) Source(2, 32) + SourceIndex(5) -7 >Emitted(21, 32) Source(2, 34) + SourceIndex(5) -8 >Emitted(21, 33) Source(2, 35) + SourceIndex(5) ---- ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(22, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(3, 7) + SourceIndex(5) -3 >Emitted(22, 10) Source(3, 12) + SourceIndex(5) -4 >Emitted(22, 13) Source(3, 15) + SourceIndex(5) -5 >Emitted(22, 15) Source(3, 17) + SourceIndex(5) -6 >Emitted(22, 16) Source(3, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 484, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 0, - "end": 484, - "kind": "text" - } - ] - }, - { - "pos": 484, - "end": 760, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "reference", - "data": "tripleRef.d.ts" - }, - { - "pos": 41, - "end": 87, - "kind": "reference", - "data": "../lib/tripleRef.d.ts" - }, - { - "pos": 89, - "end": 297, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 89, - "end": 297, - "kind": "text" - } - ] - }, - { - "pos": 297, - "end": 416, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (0-484):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-484) -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (484-760) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -/// -var file4Const = new appfile4(); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -reference: (0-39):: tripleRef.d.ts -/// ----------------------------------------------------------------------- -reference: (41-87):: ../lib/tripleRef.d.ts -/// ----------------------------------------------------------------------- -prepend: (89-297):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (89-297) -declare const file0Const: libfile0; -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (297-416) -declare module "file3" { - export const z = 30; -} -declare const file4Const: appfile4; -declare const myVar = 30; - -====================================================================== - -//// [/src/app/tripleRef.d.ts] -declare class appfile4 { } - -//// [/src/lib/file0.ts] -/// -const file0Const = new libfile0(); -const myGlob = 20; - -//// [/src/lib/module.d.ts] -/// -declare const file0Const: libfile0; -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>/// ->>>declare const file0Const: libfile0; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 >/// - > -2 > -3 > const -4 > file0Const -5 > = new libfile0() -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(2, 25) Source(2, 17) + SourceIndex(0) -5 >Emitted(2, 35) Source(2, 34) + SourceIndex(0) -6 >Emitted(2, 36) Source(2, 35) + SourceIndex(0) ---- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 9) Source(3, 1) + SourceIndex(0) -3 >Emitted(3, 15) Source(3, 7) + SourceIndex(0) -4 >Emitted(3, 21) Source(3, 13) + SourceIndex(0) -5 >Emitted(3, 26) Source(3, 18) + SourceIndex(0) -6 >Emitted(3, 27) Source(3, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(5, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(5, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(5, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(5, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(8, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(8, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(8, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(8, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(8, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(8, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(10, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(10, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(10, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(10, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(10, 32) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>/// -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 >/// -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0) ---- ->>>var file0Const = new libfile0(); -1 > -2 >^^^^ -3 > ^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^ -7 > ^^ -8 > ^ -1 > - > -2 >const -3 > file0Const -4 > = -5 > new -6 > libfile0 -7 > () -8 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0) -4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0) -5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) -6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0) -7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0) -8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0) ---- ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0) -5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0) -6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(7, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 484, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "reference", - "data": "tripleRef.d.ts" - }, - { - "pos": 41, - "end": 249, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-484) -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -reference: (0-39):: tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (41-249) -declare const file0Const: libfile0; -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/tripleRef.d.ts] -declare class libfile0 { } - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js deleted file mode 100644 index 23e2db1476a..00000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/when-the-module-resolution-finds-original-source-file.js +++ /dev/null @@ -1,856 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc -b /src/app --verbose -4:00:00 PM - Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -4:00:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/module.js' does not exist - -4:00:00 PM - Building project '/src/lib/tsconfig.json'... - -4:00:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist - -4:00:00 PM - Building project '/src/app/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/app/file3.ts] -export const z = 30; -import { x } from "lib/file1"; - -//// [/src/app/module.d.ts] -declare const myGlob = 20; -declare module "lib/file1" { - export const x = 10; -} -declare module "lib/file2" { - export const y = 20; -} -declare const globalConst = 10; -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; -//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} - -//// [/src/app/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^-> -1 > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>declare module "lib/file1" { ->>> export const x = 10; -1->^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1-> -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1->Emitted(3, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "lib/file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file3.ts -------------------------------------------------------------------- ->>>declare module "file3" { ->>> export const z = 30; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > z -6 > = 30 -7 > ; -1 >Emitted(10, 5) Source(1, 1) + SourceIndex(4) -2 >Emitted(10, 11) Source(1, 7) + SourceIndex(4) -3 >Emitted(10, 12) Source(1, 8) + SourceIndex(4) -4 >Emitted(10, 18) Source(1, 14) + SourceIndex(4) -5 >Emitted(10, 19) Source(1, 15) + SourceIndex(4) -6 >Emitted(10, 24) Source(1, 20) + SourceIndex(4) -7 >Emitted(10, 25) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.d.ts -sourceFile:file4.ts -------------------------------------------------------------------- ->>>} ->>>declare const myVar = 30; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^^^-> -1 > -2 > -3 > const -4 > myVar -5 > = 30 -6 > ; -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(12, 9) Source(1, 1) + SourceIndex(5) -3 >Emitted(12, 15) Source(1, 7) + SourceIndex(5) -4 >Emitted(12, 20) Source(1, 12) + SourceIndex(5) -5 >Emitted(12, 25) Source(1, 17) + SourceIndex(5) -6 >Emitted(12, 26) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/app/module.js] -var myGlob = 20; -define("lib/file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("lib/file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; -//# sourceMappingURL=module.js.map - -//// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} - -//// [/src/app/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("lib/file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("lib/file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(10, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(10, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(10, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(10, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(10, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(10, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(12, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(12, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(12, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(12, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(12, 22) Source(1, 24) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file3.ts -------------------------------------------------------------------- ->>>define("file3", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(16, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(16, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(16, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(16, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(16, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(16, 20) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(18, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(18, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(18, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(18, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(18, 16) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 417, - "kind": "prepend", - "data": "../module.js", - "texts": [ - { - "pos": 0, - "end": 417, - "kind": "text" - } - ] - }, - { - "pos": 417, - "end": 618, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 179, - "kind": "prepend", - "data": "../module.d.ts", - "texts": [ - { - "pos": 0, - "end": 179, - "kind": "text" - } - ] - }, - { - "pos": 179, - "end": 261, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (0-417):: ../module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-417) -var myGlob = 20; -define("lib/file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("lib/file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (417-618) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-179):: ../module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-179) -declare const myGlob = 20; -declare module "lib/file1" { - export const x = 10; -} -declare module "lib/file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (179-261) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; - -====================================================================== - -//// [/src/lib/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "module": "amd", - "composite": true, - "sourceMap": true, - "declarationMap": true, - "strict": false, - "outFile": "../module.js", "rootDir": "../" - }, - "exclude": ["module.d.ts"] - -} - -//// [/src/module.d.ts] -declare const myGlob = 20; -declare module "lib/file1" { - export const x = 10; -} -declare module "lib/file2" { - export const y = 20; -} -declare const globalConst = 10; -//# sourceMappingURL=module.d.ts.map - -//// [/src/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["lib/file0.ts","lib/file1.ts","lib/file2.ts","lib/global.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} - -//// [/src/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: lib/file0.ts,lib/file1.ts,lib/file2.ts,lib/global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/module.d.ts -sourceFile:lib/file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^-> -1 > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/module.d.ts -sourceFile:lib/file1.ts -------------------------------------------------------------------- ->>>declare module "lib/file1" { ->>> export const x = 10; -1->^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1-> -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1->Emitted(3, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/module.d.ts -sourceFile:lib/file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "lib/file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/module.d.ts -sourceFile:lib/global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/module.js] -var myGlob = 20; -define("lib/file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("lib/file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["lib/file0.ts","lib/file1.ts","lib/file2.ts","lib/global.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: lib/file0.ts,lib/file1.ts,lib/file2.ts,lib/global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/module.js -sourceFile:lib/file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/module.js -sourceFile:lib/file1.ts -------------------------------------------------------------------- ->>>define("lib/file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/module.js -sourceFile:lib/file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("lib/file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(10, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(10, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(10, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(10, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(10, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(10, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/module.js -sourceFile:lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(12, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(12, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(12, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(12, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(12, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/module.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./lib/file0.ts", - "./lib/file1.ts", - "./lib/file2.ts", - "./lib/global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 417, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 179, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/module.js ----------------------------------------------------------------------- -text: (0-417) -var myGlob = 20; -define("lib/file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = 10; -}); -define("lib/file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/module.d.ts ----------------------------------------------------------------------- -text: (0-179) -declare const myGlob = 20; -declare module "lib/file1" { - export const x = 10; -} -declare module "lib/file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js deleted file mode 100644 index f6c9acc7f49..00000000000 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js +++ /dev/null @@ -1,121 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src --verbose -4:04:00 PM - Projects in this build: - * src/tsconfig.json - -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' - -4:04:00 PM - Building project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/lib/a.d.ts] -import { B } from "./b"; -export interface A { - b: B; - foo: any; -} -//# sourceMappingURL=a.d.ts.map - -//// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"} - -//// [/src/lib/b.d.ts] file written with same contents -//// [/src/lib/b.d.ts.map] file written with same contents -//// [/src/lib/c.d.ts] file written with same contents -//// [/src/lib/c.d.ts.map] file written with same contents -//// [/src/lib/index.d.ts] file written with same contents -//// [/src/lib/index.d.ts.map] file written with same contents -//// [/src/src/a.ts] -import { B } from "./b"; - -export interface A { - b: B; foo: any; -} - - -//// [/src/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./src/c.ts": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-21569163793-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n//# sourceMappingURL=c.d.ts.map" - }, - "./src/b.ts": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "25318058868-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n//# sourceMappingURL=b.d.ts.map" - }, - "./src/a.ts": { - "version": "-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", - "signature": "-11119001497-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n foo: any;\r\n}\r\n//# sourceMappingURL=a.d.ts.map" - }, - "./src/index.ts": { - "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "signature": "14762544269-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n//# sourceMappingURL=index.d.ts.map" - } - }, - "options": { - "incremental": true, - "target": 1, - "module": 1, - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "outDir": "./lib", - "composite": true, - "strict": true, - "esModuleInterop": true, - "alwaysStrict": true, - "rootDir": "./src", - "emitDeclarationOnly": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./src/a.ts": [ - "./src/b.ts" - ], - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ], - "./src/index.ts": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts" - ] - }, - "exportedModulesMap": { - "./src/a.ts": [ - "./src/b.ts" - ], - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ], - "./src/index.ts": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/index.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js deleted file mode 100644 index 30db772ad18..00000000000 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ /dev/null @@ -1,114 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src --verbose -4:04:00 PM - Projects in this build: - * src/tsconfig.json - -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' - -4:04:00 PM - Building project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/lib/a.d.ts] -import { B } from "./b"; -export interface A { - b: B; - foo: any; -} - - -//// [/src/lib/b.d.ts] file written with same contents -//// [/src/lib/c.d.ts] file written with same contents -//// [/src/lib/index.d.ts] file written with same contents -//// [/src/src/a.ts] -import { B } from "./b"; - -export interface A { - b: B; foo: any; -} - - -//// [/src/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./src/c.ts": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n" - }, - "./src/b.ts": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n" - }, - "./src/a.ts": { - "version": "-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", - "signature": "-7639584379-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n foo: any;\r\n}\r\n" - }, - "./src/index.ts": { - "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "signature": "-6009477228-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n" - } - }, - "options": { - "incremental": true, - "target": 1, - "module": 1, - "declaration": true, - "sourceMap": true, - "outDir": "./lib", - "composite": true, - "strict": true, - "esModuleInterop": true, - "alwaysStrict": true, - "rootDir": "./src", - "emitDeclarationOnly": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./src/a.ts": [ - "./src/b.ts" - ], - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ], - "./src/index.ts": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts" - ] - }, - "exportedModulesMap": { - "./src/a.ts": [ - "./src/b.ts" - ], - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ], - "./src/index.ts": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/index.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js deleted file mode 100644 index 68d31fc370e..00000000000 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ /dev/null @@ -1,100 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src --verbose -4:04:00 PM - Projects in this build: - * src/tsconfig.json - -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' - -4:04:00 PM - Building project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/lib/a.d.ts] -export declare class B { - prop: string; -} -export interface A { - b: B; - foo: any; -} -//# sourceMappingURL=a.d.ts.map - -//// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAElC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"} - -//// [/src/lib/b.d.ts] file written with same contents -//// [/src/lib/b.d.ts.map] file written with same contents -//// [/src/lib/c.d.ts] file written with same contents -//// [/src/lib/c.d.ts.map] file written with same contents -//// [/src/src/a.ts] -export class B { prop = "hello"; } - -export interface A { - b: B; foo: any; -} - - -//// [/src/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./src/a.ts": { - "version": "7973388544-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B; foo: any;\n}\n", - "signature": "3224647069-export declare class B {\r\n prop: string;\r\n}\r\nexport interface A {\r\n b: B;\r\n foo: any;\r\n}\r\n//# sourceMappingURL=a.d.ts.map" - }, - "./src/c.ts": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-21569163793-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n//# sourceMappingURL=c.d.ts.map" - }, - "./src/b.ts": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "25318058868-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n//# sourceMappingURL=b.d.ts.map" - } - }, - "options": { - "incremental": true, - "target": 1, - "module": 1, - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "outDir": "./lib", - "composite": true, - "strict": true, - "esModuleInterop": true, - "alwaysStrict": true, - "rootDir": "./src", - "emitDeclarationOnly": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ] - }, - "exportedModulesMap": { - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", - "./src/a.ts", - "./src/b.ts", - "./src/c.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js deleted file mode 100644 index 74786c8fde9..00000000000 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ /dev/null @@ -1,90 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src --verbose -4:08:00 PM - Projects in this build: - * src/tsconfig.json - -4:08:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' - -4:08:00 PM - Building project '/src/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/lib/a.d.ts] file written with same contents -//// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} - -//// [/src/src/a.ts] -export class B { prop = "hello"; } - -class C { } -export interface A { - b: B; -} - - -//// [/src/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./src/a.ts": { - "version": "6651905050-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n", - "signature": "-14608980923-export declare class B {\r\n prop: string;\r\n}\r\nexport interface A {\r\n b: B;\r\n}\r\n//# sourceMappingURL=a.d.ts.map" - }, - "./src/c.ts": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-21569163793-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n//# sourceMappingURL=c.d.ts.map" - }, - "./src/b.ts": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "25318058868-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n//# sourceMappingURL=b.d.ts.map" - } - }, - "options": { - "incremental": true, - "target": 1, - "module": 1, - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "outDir": "./lib", - "composite": true, - "strict": true, - "esModuleInterop": true, - "alwaysStrict": true, - "rootDir": "./src", - "emitDeclarationOnly": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ] - }, - "exportedModulesMap": { - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", - "./src/a.ts", - "./src/b.ts", - "./src/c.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js deleted file mode 100644 index 516bc472994..00000000000 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js +++ /dev/null @@ -1,135 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src --verbose -4:01:00 PM - Projects in this build: - * src/tsconfig.json - -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist - -4:01:00 PM - Building project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/lib/a.d.ts] -import { B } from "./b"; -export interface A { - b: B; -} -//# sourceMappingURL=a.d.ts.map - -//// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} - -//// [/src/lib/b.d.ts] -import { C } from "./c"; -export interface B { - b: C; -} -//# sourceMappingURL=b.d.ts.map - -//// [/src/lib/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} - -//// [/src/lib/c.d.ts] -import { A } from "./a"; -export interface C { - a: A; -} -//# sourceMappingURL=c.d.ts.map - -//// [/src/lib/c.d.ts.map] -{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} - -//// [/src/lib/index.d.ts] -export { A } from "./a"; -export { B } from "./b"; -export { C } from "./c"; -//# sourceMappingURL=index.d.ts.map - -//// [/src/lib/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"} - -//// [/src/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./src/c.ts": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-21569163793-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n//# sourceMappingURL=c.d.ts.map" - }, - "./src/b.ts": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "25318058868-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n//# sourceMappingURL=b.d.ts.map" - }, - "./src/a.ts": { - "version": "-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", - "signature": "-4935617457-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n}\r\n//# sourceMappingURL=a.d.ts.map" - }, - "./src/index.ts": { - "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "signature": "14762544269-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n//# sourceMappingURL=index.d.ts.map" - } - }, - "options": { - "incremental": true, - "target": 1, - "module": 1, - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "outDir": "./lib", - "composite": true, - "strict": true, - "esModuleInterop": true, - "alwaysStrict": true, - "rootDir": "./src", - "emitDeclarationOnly": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./src/a.ts": [ - "./src/b.ts" - ], - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ], - "./src/index.ts": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts" - ] - }, - "exportedModulesMap": { - "./src/a.ts": [ - "./src/b.ts" - ], - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ], - "./src/index.ts": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/index.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js deleted file mode 100644 index 001ed2e2517..00000000000 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ /dev/null @@ -1,144 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src --verbose -4:01:00 PM - Projects in this build: - * src/tsconfig.json - -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist - -4:01:00 PM - Building project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/lib/a.d.ts] -import { B } from "./b"; -export interface A { - b: B; -} - - -//// [/src/lib/b.d.ts] -import { C } from "./c"; -export interface B { - b: C; -} - - -//// [/src/lib/c.d.ts] -import { A } from "./a"; -export interface C { - a: A; -} - - -//// [/src/lib/index.d.ts] -export { A } from "./a"; -export { B } from "./b"; -export { C } from "./c"; - - -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "incremental": true, /* Enable incremental compilation */ - "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "declaration": true, /* Generates corresponding '.d.ts' file. */ - /* Generates a sourcemap for each corresponding '.d.ts' file. */ - "sourceMap": true, /* Generates corresponding '.map' file. */ - "outDir": "./lib", /* Redirect output structure to the directory. */ - "composite": true, /* Enable project compilation */ - "strict": true, /* Enable all strict type-checking options. */ - - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ - - "alwaysStrict": true, - "rootDir": "src", - "emitDeclarationOnly": true - } -} - - -//// [/src/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./src/c.ts": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n" - }, - "./src/b.ts": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n" - }, - "./src/a.ts": { - "version": "-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", - "signature": "-4206296467-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n}\r\n" - }, - "./src/index.ts": { - "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", - "signature": "-6009477228-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n" - } - }, - "options": { - "incremental": true, - "target": 1, - "module": 1, - "declaration": true, - "sourceMap": true, - "outDir": "./lib", - "composite": true, - "strict": true, - "esModuleInterop": true, - "alwaysStrict": true, - "rootDir": "./src", - "emitDeclarationOnly": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./src/a.ts": [ - "./src/b.ts" - ], - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ], - "./src/index.ts": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts" - ] - }, - "exportedModulesMap": { - "./src/a.ts": [ - "./src/b.ts" - ], - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ], - "./src/index.ts": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/index.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js deleted file mode 100644 index f673e36cf40..00000000000 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-Build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ /dev/null @@ -1,116 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src --verbose -4:01:00 PM - Projects in this build: - * src/tsconfig.json - -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist - -4:01:00 PM - Building project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/lib/a.d.ts] -export declare class B { - prop: string; -} -export interface A { - b: B; -} -//# sourceMappingURL=a.d.ts.map - -//// [/src/lib/a.d.ts.map] -{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAElC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} - -//// [/src/lib/b.d.ts] -import { C } from "./c"; -export interface B { - b: C; -} -//# sourceMappingURL=b.d.ts.map - -//// [/src/lib/b.d.ts.map] -{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} - -//// [/src/lib/c.d.ts] -import { A } from "./a"; -export interface C { - a: A; -} -//# sourceMappingURL=c.d.ts.map - -//// [/src/lib/c.d.ts.map] -{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} - -//// [/src/src/index.ts] unlink -//// [/src/src/a.ts] -export class B { prop = "hello"; } - -export interface A { - b: B; -} - - -//// [/src/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./src/a.ts": { - "version": "11179224639-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n", - "signature": "-14608980923-export declare class B {\r\n prop: string;\r\n}\r\nexport interface A {\r\n b: B;\r\n}\r\n//# sourceMappingURL=a.d.ts.map" - }, - "./src/c.ts": { - "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", - "signature": "-21569163793-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n//# sourceMappingURL=c.d.ts.map" - }, - "./src/b.ts": { - "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", - "signature": "25318058868-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n//# sourceMappingURL=b.d.ts.map" - } - }, - "options": { - "incremental": true, - "target": 1, - "module": 1, - "declaration": true, - "declarationMap": true, - "sourceMap": true, - "outDir": "./lib", - "composite": true, - "strict": true, - "esModuleInterop": true, - "alwaysStrict": true, - "rootDir": "./src", - "emitDeclarationOnly": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ] - }, - "exportedModulesMap": { - "./src/b.ts": [ - "./src/c.ts" - ], - "./src/c.ts": [ - "./src/a.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", - "./src/a.ts", - "./src/b.ts", - "./src/c.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js deleted file mode 100644 index bf4bee4eab4..00000000000 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js +++ /dev/null @@ -1,110 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src --verbose -4:04:00 PM - Projects in this build: - * src/tsconfig.json - -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' - -4:04:00 PM - Building project '/src/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); - -//// [/src/obj/bar.d.ts] -declare const _default: () => void; -export default _default; - - -//// [/src/obj/bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar() { -}); - - -//// [/src/obj/index.d.ts] -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; - - -//// [/src/obj/lazyIndex.d.ts] file written with same contents -//// [/src/obj/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../bar.ts": { - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", - "signature": "-9232740537-declare const _default: () => void;\r\nexport default _default;\r\n" - }, - "../bundling.ts": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", - "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" - }, - "../global.d.ts": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" - }, - "../lazyindex.ts": { - "version": "-6956449754-export { default as bar } from './bar';\n", - "signature": "-6224542381-export { default as bar } from './bar';\r\n" - }, - "../index.ts": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "6256067474-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\r\n" - } - }, - "options": { - "target": 1, - "declaration": true, - "outDir": "./", - "incremental": true, - "isolatedModules": true, - "configFilePath": "../tsconfig.json" - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyindex.ts" - ], - "../lazyindex.ts": [ - "../bar.ts" - ] - }, - "exportedModulesMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyindex.ts" - ], - "../lazyindex.ts": [ - "../bar.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../index.ts", - "../lazyindex.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js deleted file mode 100644 index 391ee8b2b0a..00000000000 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js +++ /dev/null @@ -1,110 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src --verbose -4:04:00 PM - Projects in this build: - * src/tsconfig.json - -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' - -4:04:00 PM - Building project '/src/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); - -//// [/src/obj/bar.d.ts] -declare const _default: () => void; -export default _default; - - -//// [/src/obj/bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar() { -}); - - -//// [/src/obj/index.d.ts] -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; - - -//// [/src/obj/lazyIndex.d.ts] file written with same contents -//// [/src/obj/lazyIndex.js] file written with same contents -//// [/src/obj/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../bar.ts": { - "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", - "signature": "-9232740537-declare const _default: () => void;\r\nexport default _default;\r\n" - }, - "../bundling.ts": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", - "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" - }, - "../global.d.ts": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" - }, - "../lazyindex.ts": { - "version": "-6956449754-export { default as bar } from './bar';\n", - "signature": "-6224542381-export { default as bar } from './bar';\r\n" - }, - "../index.ts": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "6256067474-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\r\n" - } - }, - "options": { - "target": 1, - "declaration": true, - "outDir": "./", - "incremental": true, - "configFilePath": "../tsconfig.json" - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyindex.ts" - ], - "../lazyindex.ts": [ - "../bar.ts" - ] - }, - "exportedModulesMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyindex.ts" - ], - "../lazyindex.ts": [ - "../bar.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../index.ts", - "../lazyindex.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js deleted file mode 100644 index 000d32c145e..00000000000 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js +++ /dev/null @@ -1,24 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src --verbose -4:04:00 PM - Projects in this build: - * src/tsconfig.json - -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' - -4:04:00 PM - Building project '/src/tsconfig.json'... - -src/lazyIndex.ts(4,5): error TS2554: Expected 0 arguments, but got 1. -exitCode:: 1 - - -//// [/src/bar.ts] -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); - diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js deleted file mode 100644 index b743ce8ce0e..00000000000 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module-with-isolatedModules.js +++ /dev/null @@ -1,155 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src --verbose -4:01:00 PM - Projects in this build: - * src/tsconfig.json - -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist - -4:01:00 PM - Building project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/obj/bar.d.ts] -declare const _default: (param: string) => void; -export default _default; - - -//// [/src/obj/bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - - -//// [/src/obj/bundling.d.ts] -export declare class LazyModule { - private importCallback; - constructor(importCallback: () => Promise); -} -export declare class LazyAction any, TModule> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); -} - - -//// [/src/obj/bundling.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var LazyModule = /** @class */ (function () { - function LazyModule(importCallback) { - this.importCallback = importCallback; - } - return LazyModule; -}()); -exports.LazyModule = LazyModule; -var LazyAction = /** @class */ (function () { - function LazyAction(_lazyModule, _getter) { - } - return LazyAction; -}()); -exports.LazyAction = LazyAction; - - -//// [/src/obj/index.d.ts] -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - - -//// [/src/obj/index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var bundling_1 = require("./bundling"); -var lazyModule = new bundling_1.LazyModule(function () { - return Promise.resolve().then(function () { return require('./lazyIndex'); }); -}); -exports.lazyBar = new bundling_1.LazyAction(lazyModule, function (m) { return m.bar; }); - - -//// [/src/obj/lazyIndex.d.ts] -export { default as bar } from './bar'; - - -//// [/src/obj/lazyIndex.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var bar_1 = require("./bar"); -exports.bar = bar_1.default; - - -//// [/src/obj/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../bar.ts": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", - "signature": "11191036521-declare const _default: (param: string) => void;\r\nexport default _default;\r\n" - }, - "../bundling.ts": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", - "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" - }, - "../global.d.ts": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" - }, - "../lazyindex.ts": { - "version": "-6956449754-export { default as bar } from './bar';\n", - "signature": "-6224542381-export { default as bar } from './bar';\r\n" - }, - "../index.ts": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "18468008756-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\r\n" - } - }, - "options": { - "target": 1, - "declaration": true, - "outDir": "./", - "incremental": true, - "isolatedModules": true, - "configFilePath": "../tsconfig.json" - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyindex.ts" - ], - "../lazyindex.ts": [ - "../bar.ts" - ] - }, - "exportedModulesMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyindex.ts" - ], - "../lazyindex.ts": [ - "../bar.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../index.ts", - "../lazyindex.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true, "isolatedModules": true - } -} - diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module.js deleted file mode 100644 index c97faefa51b..00000000000 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/inferred-type-from-transitive-module.js +++ /dev/null @@ -1,144 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src --verbose -4:01:00 PM - Projects in this build: - * src/tsconfig.json - -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist - -4:01:00 PM - Building project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/obj/bar.d.ts] -declare const _default: (param: string) => void; -export default _default; - - -//// [/src/obj/bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - - -//// [/src/obj/bundling.d.ts] -export declare class LazyModule { - private importCallback; - constructor(importCallback: () => Promise); -} -export declare class LazyAction any, TModule> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); -} - - -//// [/src/obj/bundling.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var LazyModule = /** @class */ (function () { - function LazyModule(importCallback) { - this.importCallback = importCallback; - } - return LazyModule; -}()); -exports.LazyModule = LazyModule; -var LazyAction = /** @class */ (function () { - function LazyAction(_lazyModule, _getter) { - } - return LazyAction; -}()); -exports.LazyAction = LazyAction; - - -//// [/src/obj/index.d.ts] -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - - -//// [/src/obj/index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var bundling_1 = require("./bundling"); -var lazyModule = new bundling_1.LazyModule(function () { - return Promise.resolve().then(function () { return require('./lazyIndex'); }); -}); -exports.lazyBar = new bundling_1.LazyAction(lazyModule, function (m) { return m.bar; }); - - -//// [/src/obj/lazyIndex.d.ts] -export { default as bar } from './bar'; - - -//// [/src/obj/lazyIndex.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var bar_1 = require("./bar"); -exports.bar = bar_1.default; - - -//// [/src/obj/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../bar.ts": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", - "signature": "11191036521-declare const _default: (param: string) => void;\r\nexport default _default;\r\n" - }, - "../bundling.ts": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", - "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" - }, - "../global.d.ts": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" - }, - "../lazyindex.ts": { - "version": "-6956449754-export { default as bar } from './bar';\n", - "signature": "-6224542381-export { default as bar } from './bar';\r\n" - }, - "../index.ts": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "18468008756-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\r\n" - } - }, - "options": { - "target": 1, - "declaration": true, - "outDir": "./", - "incremental": true, - "configFilePath": "../tsconfig.json" - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyindex.ts" - ], - "../lazyindex.ts": [ - "../bar.ts" - ] - }, - "exportedModulesMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyindex.ts" - ], - "../lazyindex.ts": [ - "../bar.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../index.ts", - "../lazyindex.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js deleted file mode 100644 index e8e91111756..00000000000 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-Build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js +++ /dev/null @@ -1,163 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src --verbose -4:01:00 PM - Projects in this build: - * src/tsconfig.json - -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist - -4:01:00 PM - Building project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/lazyIndex.ts] -export { default as bar } from './bar'; - -import { default as bar } from './bar'; -bar("hello"); - -//// [/src/obj/bar.d.ts] -declare const _default: (param: string) => void; -export default _default; - - -//// [/src/obj/bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - - -//// [/src/obj/bundling.d.ts] -export declare class LazyModule { - private importCallback; - constructor(importCallback: () => Promise); -} -export declare class LazyAction any, TModule> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); -} - - -//// [/src/obj/bundling.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var LazyModule = /** @class */ (function () { - function LazyModule(importCallback) { - this.importCallback = importCallback; - } - return LazyModule; -}()); -exports.LazyModule = LazyModule; -var LazyAction = /** @class */ (function () { - function LazyAction(_lazyModule, _getter) { - } - return LazyAction; -}()); -exports.LazyAction = LazyAction; - - -//// [/src/obj/index.d.ts] -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - - -//// [/src/obj/index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var bundling_1 = require("./bundling"); -var lazyModule = new bundling_1.LazyModule(function () { - return Promise.resolve().then(function () { return require('./lazyIndex'); }); -}); -exports.lazyBar = new bundling_1.LazyAction(lazyModule, function (m) { return m.bar; }); - - -//// [/src/obj/lazyIndex.d.ts] -export { default as bar } from './bar'; - - -//// [/src/obj/lazyIndex.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var bar_1 = require("./bar"); -exports.bar = bar_1.default; -var bar_2 = require("./bar"); -bar_2.default("hello"); - - -//// [/src/obj/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../bar.ts": { - "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", - "signature": "11191036521-declare const _default: (param: string) => void;\r\nexport default _default;\r\n" - }, - "../bundling.ts": { - "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", - "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" - }, - "../global.d.ts": { - "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", - "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" - }, - "../lazyindex.ts": { - "version": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", - "signature": "-6224542381-export { default as bar } from './bar';\r\n" - }, - "../index.ts": { - "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "18468008756-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\r\n" - } - }, - "options": { - "target": 1, - "declaration": true, - "outDir": "./", - "incremental": true, - "isolatedModules": true, - "configFilePath": "../tsconfig.json" - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyindex.ts" - ], - "../lazyindex.ts": [ - "../bar.ts" - ] - }, - "exportedModulesMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyindex.ts" - ], - "../lazyindex.ts": [ - "../bar.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../index.ts", - "../lazyindex.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true, "isolatedModules": true - } -} - diff --git a/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js b/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js deleted file mode 100644 index 8b430f96e07..00000000000 --- a/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js +++ /dev/null @@ -1,79 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/tsconfig.json --verbose -4:04:00 PM - Projects in this build: - * src/tsconfig.json - -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/src/hkt.js' is older than newest input 'src/src/main.ts' - -4:04:00 PM - Building project '/src/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/src/main.js] -"use strict"; -exports.__esModule = true; -var sym = Symbol(); - - -//// [/src/src/main.ts] -import { HKT } from "./hkt"; - -const sym = Symbol(); - -declare module "./hkt" { - interface HKT { - [sym]: { a: T } - } -} - -type A = HKT[typeof sym]; - -//// [/src/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./src/globals.d.ts": { - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "signature": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;" - }, - "./src/hkt.ts": { - "version": "675797797-export interface HKT { }", - "signature": "2373810515-export interface HKT {\r\n}\r\n" - }, - "./src/main.ts": { - "version": "-27494779858-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];", - "signature": "-7779857705-declare const sym: unique symbol;\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: {\r\n a: T;\r\n };\r\n }\r\n}\r\nexport {};\r\n" - } - }, - "options": { - "rootDir": "./src", - "incremental": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./src/main.ts": [ - "./src/hkt.ts" - ] - }, - "exportedModulesMap": { - "./src/main.ts": [ - "./src/hkt.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", - "./src/globals.d.ts", - "./src/hkt.ts", - "./src/main.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-Build/interface-is-merged-and-contains-late-bound-member.js b/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-Build/interface-is-merged-and-contains-late-bound-member.js deleted file mode 100644 index 1138bdc9f23..00000000000 --- a/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-Build/interface-is-merged-and-contains-late-bound-member.js +++ /dev/null @@ -1,70 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/tsconfig.json --verbose -4:01:00 PM - Projects in this build: - * src/tsconfig.json - -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/src/hkt.js' does not exist - -4:01:00 PM - Building project '/src/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/src/hkt.js] -"use strict"; -exports.__esModule = true; - - -//// [/src/src/main.js] -"use strict"; -exports.__esModule = true; -var sym = Symbol(); -var x = 10; - - -//// [/src/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./src/globals.d.ts": { - "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", - "signature": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;" - }, - "./src/hkt.ts": { - "version": "675797797-export interface HKT { }", - "signature": "2373810515-export interface HKT {\r\n}\r\n" - }, - "./src/main.ts": { - "version": "-28387946490-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\nconst x = 10;\r\ntype A = HKT[typeof sym];", - "signature": "-7779857705-declare const sym: unique symbol;\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: {\r\n a: T;\r\n };\r\n }\r\n}\r\nexport {};\r\n" - } - }, - "options": { - "rootDir": "./src", - "incremental": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./src/main.ts": [ - "./src/hkt.ts" - ] - }, - "exportedModulesMap": { - "./src/main.ts": [ - "./src/hkt.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", - "./src/globals.d.ts", - "./src/hkt.ts", - "./src/main.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-Build/synthesized-module-specifiers-resolve-correctly.js b/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-Build/synthesized-module-specifiers-resolve-correctly.js deleted file mode 100644 index 2701a84f6b4..00000000000 --- a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-Build/synthesized-module-specifiers-resolve-correctly.js +++ /dev/null @@ -1,192 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc -b /src --verbose -4:00:00 PM - Projects in this build: - * src/solution/common/tsconfig.json - * src/solution/sub-project/tsconfig.json - * src/solution/sub-project-2/tsconfig.json - * src/solution/tsconfig.json - * src/tsconfig.json - -4:00:00 PM - Project 'src/solution/common/tsconfig.json' is out of date because output file 'src/lib/solution/common/nominal.js' does not exist - -4:00:00 PM - Building project '/src/solution/common/tsconfig.json'... - -4:00:00 PM - Project 'src/solution/sub-project/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project/index.js' does not exist - -4:00:00 PM - Building project '/src/solution/sub-project/tsconfig.json'... - -4:00:00 PM - Project 'src/solution/sub-project-2/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project-2/index.js' does not exist - -4:00:00 PM - Building project '/src/solution/sub-project-2/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/lib/solution/common/nominal.d.ts] -export declare type Nominal = T & { - [Symbol.species]: Name; -}; - - -//// [/src/lib/solution/common/nominal.js] -"use strict"; -exports.__esModule = true; - - -//// [/src/lib/solution/common/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../../../lib/lib.d.ts": { - "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" - }, - "../../../solution/common/nominal.ts": { - "version": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", - "signature": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" - } - }, - "options": { - "skipLibCheck": true, - "rootDir": "../../..", - "outDir": "../..", - "composite": true, - "configFilePath": "../../../solution/common/tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../../../lib/lib.d.ts", - "../../../solution/common/nominal.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/solution/sub-project/index.d.ts] -import { Nominal } from '../common/nominal'; -export declare type MyNominal = Nominal; - - -//// [/src/lib/solution/sub-project/index.js] -"use strict"; -exports.__esModule = true; - - -//// [/src/lib/solution/sub-project/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../../../lib/lib.d.ts": { - "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" - }, - "../../../solution/common/nominal.ts": { - "version": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n", - "signature": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" - }, - "../../../solution/sub-project/index.ts": { - "version": "-22894055505-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;\n", - "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n" - } - }, - "options": { - "skipLibCheck": true, - "rootDir": "../../..", - "outDir": "../..", - "composite": true, - "configFilePath": "../../../solution/sub-project/tsconfig.json" - }, - "referencedMap": { - "../../../solution/sub-project/index.ts": [ - "../common/nominal.d.ts" - ] - }, - "exportedModulesMap": { - "../../../solution/sub-project/index.ts": [ - "../common/nominal.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../../../lib/lib.d.ts", - "../../../solution/common/nominal.ts", - "../../../solution/sub-project/index.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/lib/solution/sub-project-2/index.d.ts] -declare const variable: { - key: import("../common/nominal").Nominal; -}; -export declare function getVar(): keyof typeof variable; -export {}; - - -//// [/src/lib/solution/sub-project-2/index.js] -"use strict"; -exports.__esModule = true; -var variable = { - key: 'value' -}; -function getVar() { - return 'key'; -} -exports.getVar = getVar; - - -//// [/src/lib/solution/sub-project-2/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../../../lib/lib.d.ts": { - "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" - }, - "../../../solution/common/nominal.ts": { - "version": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n", - "signature": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" - }, - "../../../solution/sub-project/index.ts": { - "version": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n", - "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n" - }, - "../../../solution/sub-project-2/index.ts": { - "version": "-13939373533-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: 'value' as MyNominal,\n};\n\nexport function getVar(): keyof typeof variable {\n return 'key';\n}\n", - "signature": "-17233212183-declare const variable: {\r\n key: import(\"../common/nominal\").Nominal;\r\n};\r\nexport declare function getVar(): keyof typeof variable;\r\nexport {};\r\n" - } - }, - "options": { - "skipLibCheck": true, - "rootDir": "../../..", - "outDir": "../..", - "composite": true, - "configFilePath": "../../../solution/sub-project-2/tsconfig.json" - }, - "referencedMap": { - "../../../solution/sub-project-2/index.ts": [ - "../sub-project/index.d.ts" - ], - "../../../solution/sub-project/index.ts": [ - "../common/nominal.d.ts" - ] - }, - "exportedModulesMap": { - "../../../solution/sub-project-2/index.ts": [ - "../common/nominal.d.ts" - ], - "../../../solution/sub-project/index.ts": [ - "../common/nominal.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../../../lib/lib.d.ts", - "../../../solution/common/nominal.ts", - "../../../solution/sub-project-2/index.ts", - "../../../solution/sub-project/index.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js deleted file mode 100644 index 9367a222e95..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js +++ /dev/null @@ -1,1301 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -4:04:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - { - "pos": 109, - "end": 394, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 109, - "end": 394, - "kind": "text" - } - ] - }, - { - "pos": 394, - "end": 430, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - }, - { - "pos": 156, - "end": 256, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 156, - "end": 256, - "kind": "text" - } - ] - }, - { - "pos": 256, - "end": 275, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-109):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (109-394):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (109-394) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (394-430) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (156-256) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (256-275) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js deleted file mode 100644 index dde86a0a636..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js +++ /dev/null @@ -1,1700 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -4:04:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 728, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 207, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (502-728) -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-207) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare var c: C; -declare function forthirdthird_part1Rest(): void; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) ---- ->>>declare function forthirdthird_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - >c.doSomething(); - > -2 >function -3 > forthirdthird_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(23, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(24, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(26, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(28, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(28, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(28, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(29, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(29, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(29, 38) Source(13, 48) + SourceIndex(3) -4 >Emitted(29, 40) Source(13, 9) + SourceIndex(3) -5 >Emitted(29, 48) Source(13, 10) + SourceIndex(3) -6 >Emitted(29, 50) Source(13, 12) + SourceIndex(3) -7 >Emitted(29, 74) Source(13, 48) + SourceIndex(3) -8 >Emitted(29, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(30, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(30, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(31, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(32, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(33, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(34, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(34, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(34, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(35, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(35, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(35, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(35, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(35, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(35, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(35, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(35, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(36, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(37, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(38, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(39, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(39, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(39, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(39, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(39, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(39, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(39, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(39, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(40, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(40, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(40, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(40, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(40, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(40, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(41, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(41, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(41, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(42, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(42, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(42, 38) Source(4, 48) + SourceIndex(5) -4 >Emitted(42, 40) Source(4, 9) + SourceIndex(5) -5 >Emitted(42, 48) Source(4, 10) + SourceIndex(5) -6 >Emitted(42, 50) Source(4, 12) + SourceIndex(5) -7 >Emitted(42, 74) Source(4, 48) + SourceIndex(5) -8 >Emitted(42, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(43, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(43, 2) Source(5, 2) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 728, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 502, - "end": 728, - "kind": "text" - } - ] - }, - { - "pos": 728, - "end": 1132, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 728, - "end": 1132, - "kind": "text" - } - ] - }, - { - "pos": 1132, - "end": 1285, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 207, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 207, - "kind": "text" - } - ] - }, - { - "pos": 207, - "end": 360, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 207, - "end": 360, - "kind": "text" - } - ] - }, - { - "pos": 360, - "end": 430, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (502-728):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (502-728) -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (728-1132):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (728-1132) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1132-1285) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-207):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-207) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (207-360):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (207-360) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (360-430) -declare var c: C; -declare function forthirdthird_part1Rest(): void; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js deleted file mode 100644 index 8b6e2ffc4f1..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,1501 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -4:04:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(6, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue"; -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- ->>>var s = "Hola, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 139, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue\"", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 12, - "expression": { - "pos": 0, - "end": 12, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (30-139) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -"myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(6, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >"myPrologue" - > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1->"myPrologue2"; - > -2 >class -3 > C -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue3"; - >"myPrologue"; - > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(3, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(3, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(3, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(3, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(3, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue"; -"myPrologue2"; -"myPrologue3"; -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >"myPrologue3" -3 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) -3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1->"myPrologue" - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(5, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) -3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) -4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) -5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) -6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) -7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) -8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) -9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) -3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) -3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) -4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(11, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(11, 5) Source(6, 11) + SourceIndex(5) -3 >Emitted(11, 6) Source(6, 12) + SourceIndex(5) -4 >Emitted(11, 7) Source(12, 2) + SourceIndex(5) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(12, 12) Source(6, 11) + SourceIndex(5) -3 >Emitted(12, 13) Source(6, 12) + SourceIndex(5) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(13, 5) Source(7, 5) + SourceIndex(5) -2 >Emitted(13, 14) Source(7, 14) + SourceIndex(5) -3 >Emitted(13, 15) Source(7, 15) + SourceIndex(5) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(14, 9) Source(8, 9) + SourceIndex(5) -2 >Emitted(14, 16) Source(8, 16) + SourceIndex(5) -3 >Emitted(14, 17) Source(8, 17) + SourceIndex(5) -4 >Emitted(14, 20) Source(8, 20) + SourceIndex(5) -5 >Emitted(14, 21) Source(8, 21) + SourceIndex(5) -6 >Emitted(14, 30) Source(8, 30) + SourceIndex(5) -7 >Emitted(14, 31) Source(8, 31) + SourceIndex(5) -8 >Emitted(14, 32) Source(8, 32) + SourceIndex(5) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(15, 5) Source(9, 5) + SourceIndex(5) -2 >Emitted(15, 6) Source(9, 6) + SourceIndex(5) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(16, 5) Source(11, 5) + SourceIndex(5) -2 >Emitted(16, 6) Source(11, 6) + SourceIndex(5) -3 >Emitted(16, 8) Source(11, 8) + SourceIndex(5) -4 >Emitted(16, 9) Source(11, 9) + SourceIndex(5) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(17, 1) Source(12, 1) + SourceIndex(5) -2 >Emitted(17, 2) Source(12, 2) + SourceIndex(5) -3 >Emitted(17, 4) Source(6, 11) + SourceIndex(5) -4 >Emitted(17, 5) Source(6, 12) + SourceIndex(5) -5 >Emitted(17, 10) Source(6, 11) + SourceIndex(5) -6 >Emitted(17, 11) Source(6, 12) + SourceIndex(5) -7 >Emitted(17, 19) Source(12, 2) + SourceIndex(5) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(18, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(19, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(20, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(21, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(21, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(21, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(22, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(22, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(22, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(22, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(22, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(22, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(22, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(22, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(23, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(24, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(25, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(25, 6) Source(6, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1->"myPrologue3"; - >"myPrologue"; - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(26, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(26, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(26, 6) Source(3, 6) + SourceIndex(2) -4 >Emitted(26, 9) Source(3, 9) + SourceIndex(2) -5 >Emitted(26, 13) Source(3, 13) + SourceIndex(2) -6 >Emitted(26, 14) Source(3, 14) + SourceIndex(2) -7 >Emitted(26, 16) Source(3, 16) + SourceIndex(2) -8 >Emitted(26, 17) Source(3, 17) + SourceIndex(2) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(27, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(27, 2) Source(4, 2) + SourceIndex(2) -3 >Emitted(27, 3) Source(4, 3) + SourceIndex(2) -4 >Emitted(27, 14) Source(4, 14) + SourceIndex(2) -5 >Emitted(27, 16) Source(4, 16) + SourceIndex(2) -6 >Emitted(27, 17) Source(4, 17) + SourceIndex(2) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 62, - "end": 171, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 62, - "end": 171, - "kind": "text" - } - ] - }, - { - "pos": 171, - "end": 456, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 171, - "end": 456, - "kind": "text" - } - ] - }, - { - "pos": 456, - "end": 492, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue3\";\n\"myPrologue\";", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 14, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - }, - { - "pos": 14, - "end": 28, - "expression": { - "pos": 14, - "end": 27, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - }, - { - "pos": 156, - "end": 256, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 156, - "end": 256, - "kind": "text" - } - ] - }, - { - "pos": 256, - "end": 275, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -prepend: (62-171):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (62-171) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (171-456):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (171-456) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (456-492) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (156-256) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (256-275) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js deleted file mode 100644 index b01cb4d4cce..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js +++ /dev/null @@ -1,1320 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -4:04:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >#!someshebang first first_PART1 - > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(5, 32) Source(6, 24) + SourceIndex(0) -6 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -#!someshebang first first_PART1 -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 33, - "end": 142, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 33, - "end": 189, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (33-142) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (33-189) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >#!someshebang first first_PART1 - > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(5, 32) Source(6, 24) + SourceIndex(0) -6 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >#!someshebang second second_part1 - > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(2, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(6, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1->#!someshebang third third_part1 - > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(2, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(2, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(2, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(2, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(2, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(2, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -#!someshebang first first_PART1 -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(6, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(12, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(6, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(6, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(7, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(7, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(7, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(8, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(8, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(8, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(8, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(8, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(8, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(8, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(8, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(9, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(11, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(11, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(11, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(11, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(6, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(6, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(6, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(6, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(12, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1->#!someshebang third third_part1 - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(2, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(2, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(2, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(2, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(3, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(3, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(3, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(3, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(3, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 33, - "end": 142, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 33, - "end": 142, - "kind": "text" - } - ] - }, - { - "pos": 142, - "end": 427, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 142, - "end": 427, - "kind": "text" - } - ] - }, - { - "pos": 427, - "end": 463, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 33, - "end": 189, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 33, - "end": 189, - "kind": "text" - } - ] - }, - { - "pos": 189, - "end": 289, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 189, - "end": 289, - "kind": "text" - } - ] - }, - { - "pos": 289, - "end": 308, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (33-142):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (33-142) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (142-427):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (142-427) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (427-463) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (33-189):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (33-189) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (189-289):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (189-289) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (289-308) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js deleted file mode 100644 index b267bf60ed3..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js +++ /dev/null @@ -1,1361 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -4:04:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 124, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (15-124) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 124, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 15, - "end": 124, - "kind": "text" - } - ] - }, - { - "pos": 124, - "end": 409, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 124, - "end": 409, - "kind": "text" - } - ] - }, - { - "pos": 409, - "end": 445, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - }, - { - "pos": 156, - "end": 256, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 156, - "end": 256, - "kind": "text" - } - ] - }, - { - "pos": 256, - "end": 275, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prepend: (15-124):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (15-124) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (124-409):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (124-409) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (409-445) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (156-256) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (256-275) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index 4f373f2715d..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,5505 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because oldest output 'src/2/second-output.js' is older than newest input 'src/first' - -4:04:00 PM - Building project '/src/second/tsconfig.json'... - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/second' - -4:04:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts": 2, - "/src/third/third_part1.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.js": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/2/second-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { - constructor(); - prop: string; - method(): void; - c: number; -} -declare namespace normalN { - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(17, 5) Source(17, 23) + SourceIndex(2) -2 >Emitted(17, 6) Source(17, 24) + SourceIndex(2) -3 >Emitted(17, 8) Source(18, 30) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 36) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(20, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(20, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(20, 12) Source(21, 33) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(21, 6) Source(21, 37) + SourceIndex(2) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(22, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(22, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(22, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(22, 26) Source(22, 43) + SourceIndex(2) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(23, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(23, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(23, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(23, 29) Source(23, 50) + SourceIndex(2) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(24, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(24, 16) Source(23, 66) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(25, 10) Source(23, 69) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(26, 6) Source(23, 71) + SourceIndex(2) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(27, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(27, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(27, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(27, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(27, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(27, 35) Source(24, 56) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(28, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 80) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(29, 10) Source(24, 83) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(30, 6) Source(24, 85) + SourceIndex(2) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(31, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(31, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(31, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(31, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(31, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(31, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(31, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(31, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(31, 48) Source(25, 62) + SourceIndex(2) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(32, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(32, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(32, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(32, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(32, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(32, 35) Source(26, 56) + SourceIndex(2) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(33, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(33, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(33, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(33, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(33, 30) Source(27, 51) + SourceIndex(2) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(34, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(34, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(34, 22) Source(28, 43) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(35, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(35, 14) Source(28, 47) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(36, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 50) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(37, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 53) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(38, 6) Source(28, 55) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >class -3 > internalC -1->Emitted(40, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(40, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(40, 24) Source(30, 30) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(41, 2) Source(30, 33) + SourceIndex(2) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(42, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(42, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(42, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(42, 38) Source(31, 40) + SourceIndex(2) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(43, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(43, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(43, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(43, 37) Source(32, 43) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(44, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(44, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(44, 20) Source(32, 67) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(45, 6) Source(32, 70) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(46, 2) Source(32, 72) + SourceIndex(2) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(47, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(47, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(47, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(47, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(47, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(47, 43) Source(33, 49) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(48, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(48, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(48, 20) Source(33, 73) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(49, 6) Source(33, 76) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(50, 2) Source(33, 78) + SourceIndex(2) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(51, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(51, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(51, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(51, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(51, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(51, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(51, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(51, 53) Source(34, 67) + SourceIndex(2) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(52, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(52, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(52, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(52, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(52, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(52, 39) Source(35, 45) + SourceIndex(2) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(53, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(53, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(53, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(53, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(53, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(53, 34) Source(36, 40) + SourceIndex(2) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(54, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(54, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(54, 26) Source(37, 32) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(55, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(55, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(55, 10) Source(37, 36) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(56, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 39) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(57, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 42) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(58, 2) Source(37, 44) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - { - "pos": 109, - "end": 3161, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 156, - "kind": "text" - } - ] - }, - { - "pos": 156, - "end": 233, - "kind": "text" - }, - { - "pos": 233, - "end": 307, - "kind": "internal" - }, - { - "pos": 309, - "end": 341, - "kind": "text" - }, - { - "pos": 341, - "end": 733, - "kind": "internal" - }, - { - "pos": 735, - "end": 738, - "kind": "text" - }, - { - "pos": 738, - "end": 1151, - "kind": "internal" - }, - { - "pos": 1153, - "end": 1201, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-109):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (109-3161) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-156):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (41-156) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (156-233) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (233-307) - constructor(); - prop: string; - method(): void; - c: number; ----------------------------------------------------------------------- -text: (309-341) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (341-733) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (735-738) -} - ----------------------------------------------------------------------- -internal: (738-1151) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1153-1201) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 156, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-156) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare const s = "Hola, world"; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(1, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3161, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3161, - "kind": "text" - } - ] - }, - { - "pos": 3161, - "end": 3197, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 275, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 275, - "kind": "text" - } - ] - }, - { - "pos": 275, - "end": 294, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3161):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3161) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3161-3197) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-275):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-275) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (275-294) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js deleted file mode 100644 index 6e0f9dad311..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js +++ /dev/null @@ -1,2697 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -4:04:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 156, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-156) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare const s = "Hola, world"; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(1, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - { - "pos": 109, - "end": 3161, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 109, - "end": 3161, - "kind": "text" - } - ] - }, - { - "pos": 3161, - "end": 3197, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 115, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 115, - "kind": "text" - } - ] - }, - { - "pos": 115, - "end": 275, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 115, - "end": 275, - "kind": "text" - } - ] - }, - { - "pos": 275, - "end": 294, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-109):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (109-3161):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (109-3161) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3161-3197) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-115):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-115) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (115-275):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (115-275) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (275-294) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js deleted file mode 100644 index bfdd60afdbe..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js +++ /dev/null @@ -1,1571 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -4:04:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/tripleRef.d.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/second/tripleRef.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/third/tripleRef.d.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -/// -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>/// ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(5, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(5, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(5, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>declare const first_part2Const: firstfirst_part2; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > first_part2Const -5 > = new firstfirst_part2() -6 > ; -1->Emitted(9, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(9, 9) Source(2, 1) + SourceIndex(1) -3 >Emitted(9, 15) Source(2, 7) + SourceIndex(1) -4 >Emitted(9, 31) Source(2, 23) + SourceIndex(1) -5 >Emitted(9, 49) Source(2, 48) + SourceIndex(1) -6 >Emitted(9, 50) Source(2, 49) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(10, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 42, - "kind": "reference", - "data": "../tripleRef.d.ts" - }, - { - "pos": 44, - "end": 251, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-157) -var s = "Hola, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -reference: (0-42):: ../tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (44-251) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -/// -/// -/// -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare const third_part1Const: thirdthird_part1; -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>/// ->>>/// ->>>/// ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(4, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(4, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(5, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(5, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(5, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(5, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(5, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(6, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(7, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(7, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(7, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(7, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(7, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(7, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(8, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(8, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(8, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(9, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(9, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>declare const first_part2Const: firstfirst_part2; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > first_part2Const -5 > = new firstfirst_part2() -6 > ; -1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 9) Source(2, 1) + SourceIndex(1) -3 >Emitted(11, 15) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 31) Source(2, 23) + SourceIndex(1) -5 >Emitted(11, 49) Source(2, 48) + SourceIndex(1) -6 >Emitted(11, 50) Source(2, 49) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(12, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(12, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(12, 30) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare const second_part1Const: secondsecond_part1; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > second_part1Const -5 > = new secondsecond_part1() -6 > ; -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 9) Source(2, 1) + SourceIndex(3) -3 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -4 >Emitted(13, 32) Source(2, 24) + SourceIndex(3) -5 >Emitted(13, 52) Source(2, 51) + SourceIndex(3) -6 >Emitted(13, 53) Source(2, 52) + SourceIndex(3) ---- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > - > -2 >namespace -3 > N -4 > -1 >Emitted(14, 1) Source(3, 1) + SourceIndex(3) -2 >Emitted(14, 19) Source(3, 11) + SourceIndex(3) -3 >Emitted(14, 20) Source(3, 12) + SourceIndex(3) -4 >Emitted(14, 21) Source(3, 13) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(16, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(16, 19) Source(7, 11) + SourceIndex(3) -3 >Emitted(16, 20) Source(7, 12) + SourceIndex(3) -4 >Emitted(16, 21) Source(7, 13) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(17, 2) Source(13, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 15) Source(1, 7) + SourceIndex(4) -3 >Emitted(18, 16) Source(1, 8) + SourceIndex(4) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 16) Source(2, 16) + SourceIndex(4) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(20, 2) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare const third_part1Const: thirdthird_part1; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > third_part1Const -5 > = new thirdthird_part1() -6 > ; -1->Emitted(21, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(21, 9) Source(2, 1) + SourceIndex(5) -3 >Emitted(21, 15) Source(2, 7) + SourceIndex(5) -4 >Emitted(21, 31) Source(2, 23) + SourceIndex(5) -5 >Emitted(21, 49) Source(2, 48) + SourceIndex(5) -6 >Emitted(21, 50) Source(2, 49) + SourceIndex(5) ---- ->>>declare var c: C; -1 > -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1 >Emitted(22, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(22, 9) Source(3, 1) + SourceIndex(5) -3 >Emitted(22, 13) Source(3, 5) + SourceIndex(5) -4 >Emitted(22, 14) Source(3, 6) + SourceIndex(5) -5 >Emitted(22, 17) Source(3, 16) + SourceIndex(5) -6 >Emitted(22, 18) Source(3, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hola, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var second_part1Const = new secondsecond_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > second_part1Const -4 > = -5 > new -6 > secondsecond_part1 -7 > () -8 > ; -1->Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(2, 7) + SourceIndex(3) -3 >Emitted(8, 22) Source(2, 24) + SourceIndex(3) -4 >Emitted(8, 25) Source(2, 27) + SourceIndex(3) -5 >Emitted(8, 29) Source(2, 31) + SourceIndex(3) -6 >Emitted(8, 47) Source(2, 49) + SourceIndex(3) -7 >Emitted(8, 49) Source(2, 51) + SourceIndex(3) -8 >Emitted(8, 50) Source(2, 52) + SourceIndex(3) ---- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(7, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(13, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(7, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(7, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(8, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(8, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(9, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(9, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(9, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(9, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(9, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(9, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(9, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(9, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(12, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(12, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(12, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(12, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(7, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(7, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(7, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(7, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(13, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var third_part1Const = new thirdthird_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > third_part1Const -4 > = -5 > new -6 > thirdthird_part1 -7 > () -8 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(2, 7) + SourceIndex(5) -3 >Emitted(24, 21) Source(2, 23) + SourceIndex(5) -4 >Emitted(24, 24) Source(2, 26) + SourceIndex(5) -5 >Emitted(24, 28) Source(2, 30) + SourceIndex(5) -6 >Emitted(24, 44) Source(2, 46) + SourceIndex(5) -7 >Emitted(24, 46) Source(2, 48) + SourceIndex(5) -8 >Emitted(24, 47) Source(2, 49) + SourceIndex(5) ---- ->>>var c = new C(); -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1 > - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1 >Emitted(25, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(25, 5) Source(3, 5) + SourceIndex(5) -3 >Emitted(25, 6) Source(3, 6) + SourceIndex(5) -4 >Emitted(25, 9) Source(3, 9) + SourceIndex(5) -5 >Emitted(25, 13) Source(3, 13) + SourceIndex(5) -6 >Emitted(25, 14) Source(3, 14) + SourceIndex(5) -7 >Emitted(25, 16) Source(3, 16) + SourceIndex(5) -8 >Emitted(25, 17) Source(3, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(26, 1) Source(4, 1) + SourceIndex(5) -2 >Emitted(26, 2) Source(4, 2) + SourceIndex(5) -3 >Emitted(26, 3) Source(4, 3) + SourceIndex(5) -4 >Emitted(26, 14) Source(4, 14) + SourceIndex(5) -5 >Emitted(26, 16) Source(4, 16) + SourceIndex(5) -6 >Emitted(26, 17) Source(4, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 493, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 157, - "end": 493, - "kind": "text" - } - ] - }, - { - "pos": 493, - "end": 577, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 45, - "kind": "reference", - "data": "../../tripleRef.d.ts" - }, - { - "pos": 47, - "end": 101, - "kind": "reference", - "data": "../../../first/tripleRef.d.ts" - }, - { - "pos": 103, - "end": 158, - "kind": "reference", - "data": "../../../second/tripleRef.d.ts" - }, - { - "pos": 160, - "end": 367, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 160, - "end": 367, - "kind": "text" - } - ] - }, - { - "pos": 367, - "end": 521, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 367, - "end": 521, - "kind": "text" - } - ] - }, - { - "pos": 521, - "end": 591, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -var s = "Hola, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (157-493):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (157-493) -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (493-577) -var third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -reference: (0-45):: ../../tripleRef.d.ts -/// ----------------------------------------------------------------------- -reference: (47-101):: ../../../first/tripleRef.d.ts -/// ----------------------------------------------------------------------- -reference: (103-158):: ../../../second/tripleRef.d.ts -/// ----------------------------------------------------------------------- -prepend: (160-367):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (160-367) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (367-521):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (367-521) -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (521-591) -declare const third_part1Const: thirdthird_part1; -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js deleted file mode 100644 index 554b360c244..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js +++ /dev/null @@ -1,961 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 412, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 412, - "kind": "text" - } - ] - }, - { - "pos": 412, - "end": 448, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-412):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-412) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (412-448) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js deleted file mode 100644 index 1a351abf785..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js +++ /dev/null @@ -1,1281 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 746, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (502-746) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(22, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(22, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(22, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(23, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(23, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(23, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(24, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(24, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(24, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(25, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(25, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(25, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(25, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(25, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(25, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(25, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(25, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(26, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(26, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(27, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(27, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(27, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(27, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(28, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(28, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(28, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(28, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(28, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(28, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(28, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(29, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(29, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(29, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(30, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(30, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(30, 38) Source(13, 48) + SourceIndex(3) -4 >Emitted(30, 40) Source(13, 9) + SourceIndex(3) -5 >Emitted(30, 48) Source(13, 10) + SourceIndex(3) -6 >Emitted(30, 50) Source(13, 12) + SourceIndex(3) -7 >Emitted(30, 74) Source(13, 48) + SourceIndex(3) -8 >Emitted(30, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(31, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(31, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(32, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(33, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(34, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(34, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(35, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(35, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(35, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(36, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(36, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(36, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(36, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(36, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(36, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(36, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(36, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(37, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(37, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(38, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(39, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(39, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(39, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(39, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(40, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(40, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(40, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(40, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(40, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(40, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(40, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(40, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(41, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(41, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(41, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(41, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(41, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(41, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(42, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(42, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(42, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(43, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(43, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(43, 38) Source(4, 48) + SourceIndex(5) -4 >Emitted(43, 40) Source(4, 9) + SourceIndex(5) -5 >Emitted(43, 48) Source(4, 10) + SourceIndex(5) -6 >Emitted(43, 50) Source(4, 12) + SourceIndex(5) -7 >Emitted(43, 74) Source(4, 48) + SourceIndex(5) -8 >Emitted(43, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(44, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(44, 2) Source(5, 2) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 746, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 502, - "end": 746, - "kind": "text" - } - ] - }, - { - "pos": 746, - "end": 1150, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 746, - "end": 1150, - "kind": "text" - } - ] - }, - { - "pos": 1150, - "end": 1303, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 361, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 361, - "kind": "text" - } - ] - }, - { - "pos": 361, - "end": 431, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (502-746):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (502-746) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (746-1150):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (746-1150) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1150-1303) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-361) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (361-431) -declare var c: C; -declare function forthirdthird_part1Rest(): void; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js deleted file mode 100644 index 6c4af8b33e5..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js +++ /dev/null @@ -1,1077 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 39) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 46) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 47) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 50) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 51) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 52) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 53) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 54) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 167, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-167) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { }console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(15, 1) Source(12, 39) + SourceIndex(0) -2 >Emitted(15, 8) Source(12, 46) + SourceIndex(0) -3 >Emitted(15, 9) Source(12, 47) + SourceIndex(0) -4 >Emitted(15, 12) Source(12, 50) + SourceIndex(0) -5 >Emitted(15, 13) Source(12, 51) + SourceIndex(0) -6 >Emitted(15, 14) Source(12, 52) + SourceIndex(0) -7 >Emitted(15, 15) Source(12, 53) + SourceIndex(0) -8 >Emitted(15, 16) Source(12, 54) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(16, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(16, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(16, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(16, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(16, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(16, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(16, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(16, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(17, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(17, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(17, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(18, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(18, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(18, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(18, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(19, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(20, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(20, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(20, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(21, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(21, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(22, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(22, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(22, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(23, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(23, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(23, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(23, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(23, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(23, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(23, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(23, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(24, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(24, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(25, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(25, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(25, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(25, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(26, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(26, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(26, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(26, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(26, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(26, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(27, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(27, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(27, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(28, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(28, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(28, 38) Source(13, 48) + SourceIndex(3) -4 >Emitted(28, 40) Source(13, 9) + SourceIndex(3) -5 >Emitted(28, 48) Source(13, 10) + SourceIndex(3) -6 >Emitted(28, 50) Source(13, 12) + SourceIndex(3) -7 >Emitted(28, 74) Source(13, 48) + SourceIndex(3) -8 >Emitted(28, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(29, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(29, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(30, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(31, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(32, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(33, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(33, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(33, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(34, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(34, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(34, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(34, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(34, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(34, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(34, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(34, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(35, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(36, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(37, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(37, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(38, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(38, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(38, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(38, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(38, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(38, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(38, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(38, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(39, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(39, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(39, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(39, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(39, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(39, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 669, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 502, - "end": 669, - "kind": "text" - } - ] - }, - { - "pos": 669, - "end": 1073, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 669, - "end": 1073, - "kind": "text" - } - ] - }, - { - "pos": 1073, - "end": 1109, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 361, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 361, - "kind": "text" - } - ] - }, - { - "pos": 361, - "end": 380, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (502-669):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (502-669) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (669-1073):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (669-1073) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1073-1109) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-361) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (361-380) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js deleted file mode 100644 index 8b110dd43d3..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,1856 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(37, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(37, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(37, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(37, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(37, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(37, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(37, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(37, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(38, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(38, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(38, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(38, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(38, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(38, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(38, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(38, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(38, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(39, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(39, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(39, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(40, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(40, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(40, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(40, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -1->Emitted(42, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(42, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(42, 32) Source(4, 32) + SourceIndex(2) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(43, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(43, 16) Source(4, 47) + SourceIndex(2) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(44, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(44, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(44, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(44, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(44, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(44, 49) Source(4, 47) + SourceIndex(2) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(45, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(45, 31) Source(4, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(47, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(47, 2) Source(4, 52) + SourceIndex(2) ---- ->>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >firstfirst_part3Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(48, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(48, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(48, 47) Source(5, 27) + SourceIndex(2) -4 >Emitted(48, 48) Source(5, 28) + SourceIndex(2) -5 >Emitted(48, 50) Source(5, 30) + SourceIndex(2) -6 >Emitted(48, 52) Source(5, 32) + SourceIndex(2) -7 >Emitted(48, 54) Source(5, 34) + SourceIndex(2) -8 >Emitted(48, 56) Source(5, 36) + SourceIndex(2) -9 >Emitted(48, 58) Source(5, 38) + SourceIndex(2) -10>Emitted(48, 59) Source(5, 39) + SourceIndex(2) -11>Emitted(48, 62) Source(5, 41) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1636, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 272, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -text: (1180-1636) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-272) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -function thirdthird_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACP1C,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(37, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(37, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(37, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(37, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(37, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(37, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(37, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(37, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(38, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(38, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(38, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(38, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(38, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(38, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(38, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(38, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(38, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(39, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(39, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(39, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(40, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(40, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(40, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(40, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -1->Emitted(42, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(42, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(42, 32) Source(4, 32) + SourceIndex(2) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(43, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(43, 16) Source(4, 47) + SourceIndex(2) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(44, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(44, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(44, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(44, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(44, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(44, 49) Source(4, 47) + SourceIndex(2) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(45, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(45, 31) Source(4, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(47, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(47, 2) Source(4, 52) + SourceIndex(2) ---- ->>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >firstfirst_part3Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(48, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(48, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(48, 47) Source(5, 27) + SourceIndex(2) -4 >Emitted(48, 48) Source(5, 28) + SourceIndex(2) -5 >Emitted(48, 50) Source(5, 30) + SourceIndex(2) -6 >Emitted(48, 52) Source(5, 32) + SourceIndex(2) -7 >Emitted(48, 54) Source(5, 34) + SourceIndex(2) -8 >Emitted(48, 56) Source(5, 36) + SourceIndex(2) -9 >Emitted(48, 58) Source(5, 38) + SourceIndex(2) -10>Emitted(48, 59) Source(5, 39) + SourceIndex(2) -11>Emitted(48, 62) Source(5, 41) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(49, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(49, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(49, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(49, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(50, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(50, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(50, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(51, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(51, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(51, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(52, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(52, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(52, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(52, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(52, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(52, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(52, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(52, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(53, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(53, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(54, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(54, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(54, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(54, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(55, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(55, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(55, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(55, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(55, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(55, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(55, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(56, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(56, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(56, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(57, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(57, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(57, 38) Source(13, 48) + SourceIndex(3) -4 >Emitted(57, 40) Source(13, 9) + SourceIndex(3) -5 >Emitted(57, 48) Source(13, 10) + SourceIndex(3) -6 >Emitted(57, 50) Source(13, 12) + SourceIndex(3) -7 >Emitted(57, 74) Source(13, 48) + SourceIndex(3) -8 >Emitted(57, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(58, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(58, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(59, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(60, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(61, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(61, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(62, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(62, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(62, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(63, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(63, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(63, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(63, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(63, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(63, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(63, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(63, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(64, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(64, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(65, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(65, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(66, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(66, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(66, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(66, 6) Source(5, 2) + SourceIndex(4) ---- ->>>function secondsecond_part2Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part2Spread -1->Emitted(67, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(67, 10) Source(7, 10) + SourceIndex(4) -3 >Emitted(67, 34) Source(7, 34) + SourceIndex(4) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(68, 5) Source(7, 35) + SourceIndex(4) -2 >Emitted(68, 16) Source(7, 49) + SourceIndex(4) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(69, 10) Source(7, 35) + SourceIndex(4) -2 >Emitted(69, 20) Source(7, 49) + SourceIndex(4) -3 >Emitted(69, 22) Source(7, 35) + SourceIndex(4) -4 >Emitted(69, 43) Source(7, 49) + SourceIndex(4) -5 >Emitted(69, 45) Source(7, 35) + SourceIndex(4) -6 >Emitted(69, 49) Source(7, 49) + SourceIndex(4) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(70, 9) Source(7, 35) + SourceIndex(4) -2 >Emitted(70, 31) Source(7, 49) + SourceIndex(4) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(72, 1) Source(7, 53) + SourceIndex(4) -2 >Emitted(72, 2) Source(7, 54) + SourceIndex(4) ---- ->>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >secondsecond_part2Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(73, 1) Source(8, 1) + SourceIndex(4) -2 >Emitted(73, 25) Source(8, 25) + SourceIndex(4) -3 >Emitted(73, 49) Source(8, 29) + SourceIndex(4) -4 >Emitted(73, 50) Source(8, 30) + SourceIndex(4) -5 >Emitted(73, 52) Source(8, 32) + SourceIndex(4) -6 >Emitted(73, 54) Source(8, 34) + SourceIndex(4) -7 >Emitted(73, 56) Source(8, 36) + SourceIndex(4) -8 >Emitted(73, 58) Source(8, 38) + SourceIndex(4) -9 >Emitted(73, 60) Source(8, 40) + SourceIndex(4) -10>Emitted(73, 61) Source(8, 41) + SourceIndex(4) -11>Emitted(73, 64) Source(8, 43) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1 > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1 >Emitted(74, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(74, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(74, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(74, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(74, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(74, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(74, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(74, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(75, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(75, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(75, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(75, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(75, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(75, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(76, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(76, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(76, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(77, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(77, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(77, 38) Source(4, 48) + SourceIndex(5) -4 >Emitted(77, 40) Source(4, 9) + SourceIndex(5) -5 >Emitted(77, 48) Source(4, 10) + SourceIndex(5) -6 >Emitted(77, 50) Source(4, 12) + SourceIndex(5) -7 >Emitted(77, 74) Source(4, 48) + SourceIndex(5) -8 >Emitted(77, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(78, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(78, 2) Source(5, 2) + SourceIndex(5) ---- ->>>function thirdthird_part1Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > thirdthird_part1Spread -1->Emitted(79, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(79, 10) Source(6, 10) + SourceIndex(5) -3 >Emitted(79, 32) Source(6, 32) + SourceIndex(5) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(80, 5) Source(6, 33) + SourceIndex(5) -2 >Emitted(80, 16) Source(6, 47) + SourceIndex(5) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(81, 10) Source(6, 33) + SourceIndex(5) -2 >Emitted(81, 20) Source(6, 47) + SourceIndex(5) -3 >Emitted(81, 22) Source(6, 33) + SourceIndex(5) -4 >Emitted(81, 43) Source(6, 47) + SourceIndex(5) -5 >Emitted(81, 45) Source(6, 33) + SourceIndex(5) -6 >Emitted(81, 49) Source(6, 47) + SourceIndex(5) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(82, 9) Source(6, 33) + SourceIndex(5) -2 >Emitted(82, 31) Source(6, 47) + SourceIndex(5) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(84, 1) Source(6, 51) + SourceIndex(5) -2 >Emitted(84, 2) Source(6, 52) + SourceIndex(5) ---- ->>>thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >thirdthird_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(85, 1) Source(7, 1) + SourceIndex(5) -2 >Emitted(85, 23) Source(7, 23) + SourceIndex(5) -3 >Emitted(85, 47) Source(7, 27) + SourceIndex(5) -4 >Emitted(85, 48) Source(7, 28) + SourceIndex(5) -5 >Emitted(85, 50) Source(7, 30) + SourceIndex(5) -6 >Emitted(85, 52) Source(7, 32) + SourceIndex(5) -7 >Emitted(85, 54) Source(7, 34) + SourceIndex(5) -8 >Emitted(85, 56) Source(7, 36) + SourceIndex(5) -9 >Emitted(85, 58) Source(7, 38) + SourceIndex(5) -10>Emitted(85, 59) Source(7, 39) + SourceIndex(5) -11>Emitted(85, 62) Source(7, 41) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1636, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 1180, - "end": 1636, - "kind": "text" - } - ] - }, - { - "pos": 1636, - "end": 2256, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 1636, - "end": 2256, - "kind": "text" - } - ] - }, - { - "pos": 2256, - "end": 2621, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 272, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 272, - "kind": "text" - } - ] - }, - { - "pos": 272, - "end": 491, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 272, - "end": 491, - "kind": "text" - } - ] - }, - { - "pos": 491, - "end": 625, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -prepend: (1180-1636):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1180-1636) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); - ----------------------------------------------------------------------- -prepend: (1636-2256):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1636-2256) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); - ----------------------------------------------------------------------- -text: (2256-2621) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -function thirdthird_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-272):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-272) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; - ----------------------------------------------------------------------- -prepend: (272-491):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (272-491) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare function secondsecond_part2Spread(...b: number[]): void; - ----------------------------------------------------------------------- -text: (491-625) -declare var c: C; -declare function forthirdthird_part1Rest(): void; -declare function thirdthird_part1Spread(...b: number[]): void; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js deleted file mode 100644 index ca1beb99e0b..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js +++ /dev/null @@ -1,1389 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 746, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (502-746) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(37, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(37, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(37, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(37, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(37, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(37, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(37, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(37, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(38, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(38, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(38, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(38, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(38, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(38, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(38, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(38, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(38, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(39, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(39, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(39, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(40, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(40, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(40, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(40, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(42, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(42, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(42, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(42, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(43, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(43, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(43, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(44, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(44, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(44, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(45, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(45, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(45, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(45, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(45, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(45, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(45, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(45, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(46, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(46, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(47, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(47, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(47, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(47, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(48, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(48, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(48, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(48, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(48, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(48, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(48, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function secondsecond_part1Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part1Spread -1->Emitted(49, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(49, 10) Source(13, 10) + SourceIndex(3) -3 >Emitted(49, 34) Source(13, 34) + SourceIndex(3) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(50, 5) Source(13, 35) + SourceIndex(3) -2 >Emitted(50, 16) Source(13, 49) + SourceIndex(3) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(51, 10) Source(13, 35) + SourceIndex(3) -2 >Emitted(51, 20) Source(13, 49) + SourceIndex(3) -3 >Emitted(51, 22) Source(13, 35) + SourceIndex(3) -4 >Emitted(51, 43) Source(13, 49) + SourceIndex(3) -5 >Emitted(51, 45) Source(13, 35) + SourceIndex(3) -6 >Emitted(51, 49) Source(13, 49) + SourceIndex(3) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(52, 9) Source(13, 35) + SourceIndex(3) -2 >Emitted(52, 31) Source(13, 49) + SourceIndex(3) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(54, 1) Source(13, 53) + SourceIndex(3) -2 >Emitted(54, 2) Source(13, 54) + SourceIndex(3) ---- ->>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >secondsecond_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(55, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(55, 25) Source(14, 25) + SourceIndex(3) -3 >Emitted(55, 49) Source(14, 29) + SourceIndex(3) -4 >Emitted(55, 50) Source(14, 30) + SourceIndex(3) -5 >Emitted(55, 52) Source(14, 32) + SourceIndex(3) -6 >Emitted(55, 54) Source(14, 34) + SourceIndex(3) -7 >Emitted(55, 56) Source(14, 36) + SourceIndex(3) -8 >Emitted(55, 58) Source(14, 38) + SourceIndex(3) -9 >Emitted(55, 60) Source(14, 40) + SourceIndex(3) -10>Emitted(55, 61) Source(14, 41) + SourceIndex(3) -11>Emitted(55, 64) Source(14, 43) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(56, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(57, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(58, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(58, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(59, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(59, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(59, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(60, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(60, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(60, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(60, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(60, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(60, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(60, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(60, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(61, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(61, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(62, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(62, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(63, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(63, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(63, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(63, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(64, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(64, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(64, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(64, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(64, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(64, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(64, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(65, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(65, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(65, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(65, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(65, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(65, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(66, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(66, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(66, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(67, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(67, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(67, 38) Source(4, 48) + SourceIndex(5) -4 >Emitted(67, 40) Source(4, 9) + SourceIndex(5) -5 >Emitted(67, 48) Source(4, 10) + SourceIndex(5) -6 >Emitted(67, 50) Source(4, 12) + SourceIndex(5) -7 >Emitted(67, 74) Source(4, 48) + SourceIndex(5) -8 >Emitted(67, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(68, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(68, 2) Source(5, 2) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1424, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 1180, - "end": 1424, - "kind": "text" - } - ] - }, - { - "pos": 1424, - "end": 1925, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 1424, - "end": 1925, - "kind": "text" - } - ] - }, - { - "pos": 1925, - "end": 2078, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 374, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 374, - "kind": "text" - } - ] - }, - { - "pos": 374, - "end": 444, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -prepend: (1180-1424):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1180-1424) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (1424-1925):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1424-1925) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1925-2078) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-374):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-374) -declare namespace N { -} -declare namespace N { -} -declare function secondsecond_part1Spread(...b: number[]): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (374-444) -declare var c: C; -declare function forthirdthird_part1Rest(): void; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js deleted file mode 100644 index f735bc5dc4c..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,1155 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(9, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 157, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue\"", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 12, - "expression": { - "pos": 0, - "end": 12, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (30-157) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -"myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue"; -"myPrologue2"; -"myPrologue3"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >"myPrologue3" -3 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) -3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1->"myPrologue" - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(5, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(7, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(7, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(7, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(7, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(7, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(7, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(7, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(7, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(8, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(8, 8) Source(1, 8) + SourceIndex(3) -3 >Emitted(8, 9) Source(1, 9) + SourceIndex(3) -4 >Emitted(8, 12) Source(1, 12) + SourceIndex(3) -5 >Emitted(8, 13) Source(1, 13) + SourceIndex(3) -6 >Emitted(8, 14) Source(1, 14) + SourceIndex(3) -7 >Emitted(8, 16) Source(1, 16) + SourceIndex(3) -8 >Emitted(8, 17) Source(1, 17) + SourceIndex(3) -9 >Emitted(8, 18) Source(1, 18) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(9, 10) Source(1, 10) + SourceIndex(4) -3 >Emitted(9, 11) Source(1, 11) + SourceIndex(4) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(10, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(10, 12) Source(2, 12) + SourceIndex(4) -3 >Emitted(10, 28) Source(2, 28) + SourceIndex(4) -4 >Emitted(10, 29) Source(2, 29) + SourceIndex(4) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(11, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(11, 2) Source(3, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(12, 5) Source(6, 11) + SourceIndex(5) -3 >Emitted(12, 6) Source(6, 12) + SourceIndex(5) -4 >Emitted(12, 7) Source(12, 2) + SourceIndex(5) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(13, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(13, 12) Source(6, 11) + SourceIndex(5) -3 >Emitted(13, 13) Source(6, 12) + SourceIndex(5) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(14, 5) Source(7, 5) + SourceIndex(5) -2 >Emitted(14, 14) Source(7, 14) + SourceIndex(5) -3 >Emitted(14, 15) Source(7, 15) + SourceIndex(5) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(15, 9) Source(8, 9) + SourceIndex(5) -2 >Emitted(15, 16) Source(8, 16) + SourceIndex(5) -3 >Emitted(15, 17) Source(8, 17) + SourceIndex(5) -4 >Emitted(15, 20) Source(8, 20) + SourceIndex(5) -5 >Emitted(15, 21) Source(8, 21) + SourceIndex(5) -6 >Emitted(15, 30) Source(8, 30) + SourceIndex(5) -7 >Emitted(15, 31) Source(8, 31) + SourceIndex(5) -8 >Emitted(15, 32) Source(8, 32) + SourceIndex(5) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(16, 5) Source(9, 5) + SourceIndex(5) -2 >Emitted(16, 6) Source(9, 6) + SourceIndex(5) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(17, 5) Source(11, 5) + SourceIndex(5) -2 >Emitted(17, 6) Source(11, 6) + SourceIndex(5) -3 >Emitted(17, 8) Source(11, 8) + SourceIndex(5) -4 >Emitted(17, 9) Source(11, 9) + SourceIndex(5) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(18, 1) Source(12, 1) + SourceIndex(5) -2 >Emitted(18, 2) Source(12, 2) + SourceIndex(5) -3 >Emitted(18, 4) Source(6, 11) + SourceIndex(5) -4 >Emitted(18, 5) Source(6, 12) + SourceIndex(5) -5 >Emitted(18, 10) Source(6, 11) + SourceIndex(5) -6 >Emitted(18, 11) Source(6, 12) + SourceIndex(5) -7 >Emitted(18, 19) Source(12, 2) + SourceIndex(5) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(19, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(20, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(21, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(21, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(22, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(22, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(22, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(23, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(23, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(23, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(23, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(23, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(23, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(23, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(23, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(24, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(24, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(25, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(26, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1->"myPrologue3"; - >"myPrologue"; - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(27, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(27, 6) Source(3, 6) + SourceIndex(2) -4 >Emitted(27, 9) Source(3, 9) + SourceIndex(2) -5 >Emitted(27, 13) Source(3, 13) + SourceIndex(2) -6 >Emitted(27, 14) Source(3, 14) + SourceIndex(2) -7 >Emitted(27, 16) Source(3, 16) + SourceIndex(2) -8 >Emitted(27, 17) Source(3, 17) + SourceIndex(2) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(28, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(28, 2) Source(4, 2) + SourceIndex(2) -3 >Emitted(28, 3) Source(4, 3) + SourceIndex(2) -4 >Emitted(28, 14) Source(4, 14) + SourceIndex(2) -5 >Emitted(28, 16) Source(4, 16) + SourceIndex(2) -6 >Emitted(28, 17) Source(4, 17) + SourceIndex(2) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 62, - "end": 189, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 62, - "end": 189, - "kind": "text" - } - ] - }, - { - "pos": 189, - "end": 474, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 189, - "end": 474, - "kind": "text" - } - ] - }, - { - "pos": 474, - "end": 510, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue3\";\n\"myPrologue\";", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 14, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - }, - { - "pos": 14, - "end": 28, - "expression": { - "pos": 14, - "end": 27, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -prepend: (62-189):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (62-189) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (189-474):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (189-474) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (474-510) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js deleted file mode 100644 index b5914e9854d..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js +++ /dev/null @@ -1,1053 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 142, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (15-142) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue"; -"myPrologue2"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../second/second_part1.ts","../../../second/second_part2.ts","../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../second/second_part1.ts,../../../second/second_part2.ts,../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1->interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(4, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(4, 6) Source(5, 8) + SourceIndex(2) -4 >Emitted(4, 9) Source(5, 11) + SourceIndex(2) -5 >Emitted(4, 23) Source(5, 25) + SourceIndex(2) -6 >Emitted(4, 24) Source(5, 26) + SourceIndex(2) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(5, 1) Source(11, 1) + SourceIndex(2) -2 >Emitted(5, 8) Source(11, 8) + SourceIndex(2) -3 >Emitted(5, 9) Source(11, 9) + SourceIndex(2) -4 >Emitted(5, 12) Source(11, 12) + SourceIndex(2) -5 >Emitted(5, 13) Source(11, 13) + SourceIndex(2) -6 >Emitted(5, 14) Source(11, 14) + SourceIndex(2) -7 >Emitted(5, 15) Source(11, 15) + SourceIndex(2) -8 >Emitted(5, 16) Source(11, 16) + SourceIndex(2) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(6, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(6, 8) Source(12, 8) + SourceIndex(2) -3 >Emitted(6, 9) Source(12, 9) + SourceIndex(2) -4 >Emitted(6, 12) Source(12, 12) + SourceIndex(2) -5 >Emitted(6, 13) Source(12, 13) + SourceIndex(2) -6 >Emitted(6, 14) Source(12, 14) + SourceIndex(2) -7 >Emitted(6, 15) Source(12, 15) + SourceIndex(2) -8 >Emitted(6, 16) Source(12, 16) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) -3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) -4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) -5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) -6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) -7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) -8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) -9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) -3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) -3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) -4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(11, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(11, 5) Source(6, 11) + SourceIndex(0) -3 >Emitted(11, 6) Source(6, 12) + SourceIndex(0) -4 >Emitted(11, 7) Source(12, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(12, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(12, 12) Source(6, 11) + SourceIndex(0) -3 >Emitted(12, 13) Source(6, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(13, 5) Source(7, 5) + SourceIndex(0) -2 >Emitted(13, 14) Source(7, 14) + SourceIndex(0) -3 >Emitted(13, 15) Source(7, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(14, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(14, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(14, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(14, 20) Source(8, 20) + SourceIndex(0) -5 >Emitted(14, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(14, 30) Source(8, 30) + SourceIndex(0) -7 >Emitted(14, 31) Source(8, 31) + SourceIndex(0) -8 >Emitted(14, 32) Source(8, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(15, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(15, 6) Source(9, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(16, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(16, 6) Source(11, 6) + SourceIndex(0) -3 >Emitted(16, 8) Source(11, 8) + SourceIndex(0) -4 >Emitted(16, 9) Source(11, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(17, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(17, 2) Source(12, 2) + SourceIndex(0) -3 >Emitted(17, 4) Source(6, 11) + SourceIndex(0) -4 >Emitted(17, 5) Source(6, 12) + SourceIndex(0) -5 >Emitted(17, 10) Source(6, 11) + SourceIndex(0) -6 >Emitted(17, 11) Source(6, 12) + SourceIndex(0) -7 >Emitted(17, 19) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(18, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(19, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(20, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(21, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(21, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(21, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(22, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(22, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(22, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(22, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(22, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(22, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(22, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(22, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(23, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(24, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(25, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(25, 6) Source(6, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(26, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(26, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(26, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(26, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(26, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(26, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(26, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(26, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(27, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(27, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(27, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(27, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(27, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(27, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 46, - "end": 173, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 46, - "end": 173, - "kind": "text" - } - ] - }, - { - "pos": 173, - "end": 458, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 173, - "end": 458, - "kind": "text" - } - ] - }, - { - "pos": 458, - "end": 494, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prepend: (46-173):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (46-173) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (173-458):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (173-458) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (458-494) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js deleted file mode 100644 index fed09ab53ca..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js +++ /dev/null @@ -1,972 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/2/second-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -#!someshebang first first_PART1 -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 33, - "end": 160, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 33, - "end": 190, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (33-160) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (33-190) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -#!someshebang first first_PART1 -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(6, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(12, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(6, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(6, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(7, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(7, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(7, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(8, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(8, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(8, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(8, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(8, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(8, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(8, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(8, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(9, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(11, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(11, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(11, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(11, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(6, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(6, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(6, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(6, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(12, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1->#!someshebang third third_part1 - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(2, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(2, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(2, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(2, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(3, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(3, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(3, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(3, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(3, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 33, - "end": 160, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 33, - "end": 160, - "kind": "text" - } - ] - }, - { - "pos": 160, - "end": 445, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 160, - "end": 445, - "kind": "text" - } - ] - }, - { - "pos": 445, - "end": 481, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 33, - "end": 190, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 33, - "end": 190, - "kind": "text" - } - ] - }, - { - "pos": 190, - "end": 290, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 190, - "end": 290, - "kind": "text" - } - ] - }, - { - "pos": 290, - "end": 309, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (33-160):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (33-160) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (160-445):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (160-445) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (445-481) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (33-190):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (33-190) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (190-290):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (190-290) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (290-309) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js deleted file mode 100644 index 3d32544f7fb..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js +++ /dev/null @@ -1,942 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -#!someshebang second second_part1 -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang second second_part1 ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(6, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(12, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(6, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(6, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(7, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(7, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(7, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(8, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(8, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(8, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(8, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(8, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(8, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(8, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(8, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(9, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(11, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(11, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(11, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(11, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(6, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(6, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(6, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(6, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(12, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 35, - "end": 162, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 35, - "end": 162, - "kind": "text" - } - ] - }, - { - "pos": 162, - "end": 447, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 162, - "end": 447, - "kind": "text" - } - ] - }, - { - "pos": 447, - "end": 483, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 35, - "end": 192, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 35, - "end": 192, - "kind": "text" - } - ] - }, - { - "pos": 192, - "end": 292, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 192, - "end": 292, - "kind": "text" - } - ] - }, - { - "pos": 292, - "end": 311, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (35-162):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (35-162) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (162-447):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (162-447) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (447-483) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (35-192):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (35-192) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (192-292):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (192-292) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (292-311) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js deleted file mode 100644 index f5066a128eb..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js +++ /dev/null @@ -1,1021 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 142, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (15-142) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 142, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 15, - "end": 142, - "kind": "text" - } - ] - }, - { - "pos": 142, - "end": 427, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 142, - "end": 427, - "kind": "text" - } - ] - }, - { - "pos": 427, - "end": 463, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prepend: (15-142):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (15-142) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (142-427):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (142-427) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (427-463) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js deleted file mode 100644 index 6959522b4b3..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js +++ /dev/null @@ -1,950 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 142, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 15, - "end": 142, - "kind": "text" - } - ] - }, - { - "pos": 142, - "end": 427, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 142, - "end": 427, - "kind": "text" - } - ] - }, - { - "pos": 427, - "end": 463, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prepend: (15-142):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (15-142) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (142-427):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (142-427) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (427-463) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index 83ef9f7b6c8..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,4307 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/second/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(18, 5) Source(16, 20) + SourceIndex(3) -2 >Emitted(18, 29) Source(16, 26) + SourceIndex(3) -3 >Emitted(18, 32) Source(16, 20) + SourceIndex(3) -4 >Emitted(18, 46) Source(16, 31) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(19, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(20, 14) Source(17, 20) + SourceIndex(3) -2 >Emitted(20, 28) Source(17, 30) + SourceIndex(3) -3 >Emitted(20, 35) Source(17, 37) + SourceIndex(3) -4 >Emitted(20, 37) Source(17, 39) + SourceIndex(3) -5 >Emitted(20, 38) Source(17, 40) + SourceIndex(3) -6 >Emitted(20, 39) Source(17, 41) + SourceIndex(3) -7 >Emitted(20, 40) Source(17, 42) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(21, 14) Source(18, 20) + SourceIndex(3) -2 >Emitted(21, 24) Source(18, 26) + SourceIndex(3) -3 >Emitted(21, 27) Source(18, 37) + SourceIndex(3) -4 >Emitted(21, 31) Source(18, 41) + SourceIndex(3) -5 >Emitted(21, 32) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(35, 5) Source(22, 20) + SourceIndex(3) -2 >Emitted(35, 14) Source(22, 36) + SourceIndex(3) -3 >Emitted(35, 17) Source(22, 39) + SourceIndex(3) -4 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -5 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(36, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 9) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 22) Source(23, 50) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(38, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(45, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 9) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 18) Source(24, 46) + SourceIndex(3) -4 >Emitted(46, 19) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(47, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(56, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(57, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(58, 5) Source(25, 34) + SourceIndex(3) -2 >Emitted(58, 23) Source(25, 44) + SourceIndex(3) -3 >Emitted(58, 26) Source(25, 47) + SourceIndex(3) -4 >Emitted(58, 39) Source(25, 60) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 61) + SourceIndex(3) -6 >Emitted(58, 41) Source(25, 62) + SourceIndex(3) -7 >Emitted(58, 42) Source(25, 63) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(59, 5) Source(27, 33) + SourceIndex(3) -2 >Emitted(59, 26) Source(27, 46) + SourceIndex(3) -3 >Emitted(59, 29) Source(27, 49) + SourceIndex(3) -4 >Emitted(59, 31) Source(27, 51) + SourceIndex(3) -5 >Emitted(59, 32) Source(27, 52) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 9) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 21) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(61, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(65, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(72, 1) Source(31, 16) + SourceIndex(3) -2 >Emitted(72, 10) Source(31, 25) + SourceIndex(3) -3 >Emitted(72, 21) Source(31, 36) + SourceIndex(3) -4 >Emitted(72, 26) Source(31, 40) + SourceIndex(3) -5 >Emitted(72, 27) Source(31, 41) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 5) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 22) Source(32, 43) + SourceIndex(3) -4 >Emitted(73, 23) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(74, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 5) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 18) Source(33, 39) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(83, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(92, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(94, 1) Source(34, 16) + SourceIndex(3) -2 >Emitted(94, 5) Source(34, 23) + SourceIndex(3) -3 >Emitted(94, 19) Source(34, 37) + SourceIndex(3) -4 >Emitted(94, 22) Source(34, 40) + SourceIndex(3) -5 >Emitted(94, 39) Source(34, 57) + SourceIndex(3) -6 >Emitted(94, 40) Source(34, 58) + SourceIndex(3) -7 >Emitted(94, 49) Source(34, 67) + SourceIndex(3) -8 >Emitted(94, 50) Source(34, 68) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(95, 1) Source(36, 16) + SourceIndex(3) -2 >Emitted(95, 5) Source(36, 22) + SourceIndex(3) -3 >Emitted(95, 18) Source(36, 35) + SourceIndex(3) -4 >Emitted(95, 21) Source(36, 38) + SourceIndex(3) -5 >Emitted(95, 23) Source(36, 40) + SourceIndex(3) -6 >Emitted(95, 24) Source(36, 41) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 5) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 17) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(97, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3179, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 308, - "kind": "internal" - }, - { - "pos": 310, - "end": 342, - "kind": "text" - }, - { - "pos": 342, - "end": 734, - "kind": "internal" - }, - { - "pos": 736, - "end": 739, - "kind": "text" - }, - { - "pos": 739, - "end": 1152, - "kind": "internal" - }, - { - "pos": 1154, - "end": 1202, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (127-3179) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-308) - constructor(); - prop: string; - method(): void; - c: number; ----------------------------------------------------------------------- -text: (310-342) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (342-734) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (736-739) -} - ----------------------------------------------------------------------- -internal: (739-1152) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1154-1202) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(18, 5) Source(16, 20) + SourceIndex(3) -2 >Emitted(18, 29) Source(16, 26) + SourceIndex(3) -3 >Emitted(18, 32) Source(16, 20) + SourceIndex(3) -4 >Emitted(18, 46) Source(16, 31) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(19, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(20, 14) Source(17, 20) + SourceIndex(3) -2 >Emitted(20, 28) Source(17, 30) + SourceIndex(3) -3 >Emitted(20, 35) Source(17, 37) + SourceIndex(3) -4 >Emitted(20, 37) Source(17, 39) + SourceIndex(3) -5 >Emitted(20, 38) Source(17, 40) + SourceIndex(3) -6 >Emitted(20, 39) Source(17, 41) + SourceIndex(3) -7 >Emitted(20, 40) Source(17, 42) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(21, 14) Source(18, 20) + SourceIndex(3) -2 >Emitted(21, 24) Source(18, 26) + SourceIndex(3) -3 >Emitted(21, 27) Source(18, 37) + SourceIndex(3) -4 >Emitted(21, 31) Source(18, 41) + SourceIndex(3) -5 >Emitted(21, 32) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(35, 5) Source(22, 20) + SourceIndex(3) -2 >Emitted(35, 14) Source(22, 36) + SourceIndex(3) -3 >Emitted(35, 17) Source(22, 39) + SourceIndex(3) -4 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -5 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(36, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 9) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 22) Source(23, 50) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(38, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(45, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 9) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 18) Source(24, 46) + SourceIndex(3) -4 >Emitted(46, 19) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(47, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(56, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(57, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(58, 5) Source(25, 34) + SourceIndex(3) -2 >Emitted(58, 23) Source(25, 44) + SourceIndex(3) -3 >Emitted(58, 26) Source(25, 47) + SourceIndex(3) -4 >Emitted(58, 39) Source(25, 60) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 61) + SourceIndex(3) -6 >Emitted(58, 41) Source(25, 62) + SourceIndex(3) -7 >Emitted(58, 42) Source(25, 63) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(59, 5) Source(27, 33) + SourceIndex(3) -2 >Emitted(59, 26) Source(27, 46) + SourceIndex(3) -3 >Emitted(59, 29) Source(27, 49) + SourceIndex(3) -4 >Emitted(59, 31) Source(27, 51) + SourceIndex(3) -5 >Emitted(59, 32) Source(27, 52) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 9) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 21) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(61, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(65, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(72, 1) Source(31, 16) + SourceIndex(3) -2 >Emitted(72, 10) Source(31, 25) + SourceIndex(3) -3 >Emitted(72, 21) Source(31, 36) + SourceIndex(3) -4 >Emitted(72, 26) Source(31, 40) + SourceIndex(3) -5 >Emitted(72, 27) Source(31, 41) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 5) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 22) Source(32, 43) + SourceIndex(3) -4 >Emitted(73, 23) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(74, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 5) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 18) Source(33, 39) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(83, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(92, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(94, 1) Source(34, 16) + SourceIndex(3) -2 >Emitted(94, 5) Source(34, 23) + SourceIndex(3) -3 >Emitted(94, 19) Source(34, 37) + SourceIndex(3) -4 >Emitted(94, 22) Source(34, 40) + SourceIndex(3) -5 >Emitted(94, 39) Source(34, 57) + SourceIndex(3) -6 >Emitted(94, 40) Source(34, 58) + SourceIndex(3) -7 >Emitted(94, 49) Source(34, 67) + SourceIndex(3) -8 >Emitted(94, 50) Source(34, 68) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(95, 1) Source(36, 16) + SourceIndex(3) -2 >Emitted(95, 5) Source(36, 22) + SourceIndex(3) -3 >Emitted(95, 18) Source(36, 35) + SourceIndex(3) -4 >Emitted(95, 21) Source(36, 38) + SourceIndex(3) -5 >Emitted(95, 23) Source(36, 40) + SourceIndex(3) -6 >Emitted(95, 24) Source(36, 41) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 5) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 17) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(97, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3179, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3179, - "kind": "text" - } - ] - }, - { - "pos": 3179, - "end": 3215, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3179):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3179) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3179-3215) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-276) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js deleted file mode 100644 index 728eede4865..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js +++ /dev/null @@ -1,2313 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(18, 5) Source(16, 20) + SourceIndex(3) -2 >Emitted(18, 29) Source(16, 26) + SourceIndex(3) -3 >Emitted(18, 32) Source(16, 20) + SourceIndex(3) -4 >Emitted(18, 46) Source(16, 31) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(19, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(20, 14) Source(17, 20) + SourceIndex(3) -2 >Emitted(20, 28) Source(17, 30) + SourceIndex(3) -3 >Emitted(20, 35) Source(17, 37) + SourceIndex(3) -4 >Emitted(20, 37) Source(17, 39) + SourceIndex(3) -5 >Emitted(20, 38) Source(17, 40) + SourceIndex(3) -6 >Emitted(20, 39) Source(17, 41) + SourceIndex(3) -7 >Emitted(20, 40) Source(17, 42) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(21, 14) Source(18, 20) + SourceIndex(3) -2 >Emitted(21, 24) Source(18, 26) + SourceIndex(3) -3 >Emitted(21, 27) Source(18, 37) + SourceIndex(3) -4 >Emitted(21, 31) Source(18, 41) + SourceIndex(3) -5 >Emitted(21, 32) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(35, 5) Source(22, 20) + SourceIndex(3) -2 >Emitted(35, 14) Source(22, 36) + SourceIndex(3) -3 >Emitted(35, 17) Source(22, 39) + SourceIndex(3) -4 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -5 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(36, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 9) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 22) Source(23, 50) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(38, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(45, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 9) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 18) Source(24, 46) + SourceIndex(3) -4 >Emitted(46, 19) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(47, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(56, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(57, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(58, 5) Source(25, 34) + SourceIndex(3) -2 >Emitted(58, 23) Source(25, 44) + SourceIndex(3) -3 >Emitted(58, 26) Source(25, 47) + SourceIndex(3) -4 >Emitted(58, 39) Source(25, 60) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 61) + SourceIndex(3) -6 >Emitted(58, 41) Source(25, 62) + SourceIndex(3) -7 >Emitted(58, 42) Source(25, 63) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(59, 5) Source(27, 33) + SourceIndex(3) -2 >Emitted(59, 26) Source(27, 46) + SourceIndex(3) -3 >Emitted(59, 29) Source(27, 49) + SourceIndex(3) -4 >Emitted(59, 31) Source(27, 51) + SourceIndex(3) -5 >Emitted(59, 32) Source(27, 52) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 9) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 21) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(61, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(65, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(72, 1) Source(31, 16) + SourceIndex(3) -2 >Emitted(72, 10) Source(31, 25) + SourceIndex(3) -3 >Emitted(72, 21) Source(31, 36) + SourceIndex(3) -4 >Emitted(72, 26) Source(31, 40) + SourceIndex(3) -5 >Emitted(72, 27) Source(31, 41) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 5) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 22) Source(32, 43) + SourceIndex(3) -4 >Emitted(73, 23) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(74, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 5) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 18) Source(33, 39) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(83, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(92, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(94, 1) Source(34, 16) + SourceIndex(3) -2 >Emitted(94, 5) Source(34, 23) + SourceIndex(3) -3 >Emitted(94, 19) Source(34, 37) + SourceIndex(3) -4 >Emitted(94, 22) Source(34, 40) + SourceIndex(3) -5 >Emitted(94, 39) Source(34, 57) + SourceIndex(3) -6 >Emitted(94, 40) Source(34, 58) + SourceIndex(3) -7 >Emitted(94, 49) Source(34, 67) + SourceIndex(3) -8 >Emitted(94, 50) Source(34, 68) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(95, 1) Source(36, 16) + SourceIndex(3) -2 >Emitted(95, 5) Source(36, 22) + SourceIndex(3) -3 >Emitted(95, 18) Source(36, 35) + SourceIndex(3) -4 >Emitted(95, 21) Source(36, 38) + SourceIndex(3) -5 >Emitted(95, 23) Source(36, 40) + SourceIndex(3) -6 >Emitted(95, 24) Source(36, 41) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 5) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 17) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(97, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3179, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 3179, - "kind": "text" - } - ] - }, - { - "pos": 3179, - "end": 3215, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 116, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 116, - "kind": "text" - } - ] - }, - { - "pos": 116, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 116, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-3179):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-3179) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3179-3215) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-116) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (116-276) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index 063cf4616a5..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,4507 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/second/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /**@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /**@internal*/ -3 > -1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) -3 >Emitted(16, 20) Source(14, 20) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) ---- ->>> /**@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /**@internal*/ prop: string; - > -2 > /**@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(18, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) -3 >Emitted(18, 20) Source(16, 20) + SourceIndex(3) -4 >Emitted(18, 44) Source(16, 26) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 20) + SourceIndex(3) -6 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) -7 >Emitted(18, 62) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^-> -1 > - > /**@internal*/ -2 > get -3 > c -1 >Emitted(19, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) ---- ->>> /**@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /**@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(20, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(20, 23) Source(17, 19) + SourceIndex(3) -3 >Emitted(20, 29) Source(17, 20) + SourceIndex(3) -4 >Emitted(20, 43) Source(17, 30) + SourceIndex(3) -5 >Emitted(20, 50) Source(17, 37) + SourceIndex(3) -6 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) -7 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) -8 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) -9 >Emitted(20, 55) Source(17, 42) + SourceIndex(3) ---- ->>> /**@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(21, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(21, 23) Source(18, 19) + SourceIndex(3) -3 >Emitted(21, 29) Source(18, 20) + SourceIndex(3) -4 >Emitted(21, 39) Source(18, 26) + SourceIndex(3) -5 >Emitted(21, 42) Source(18, 37) + SourceIndex(3) -6 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) -7 >Emitted(21, 47) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /**@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /**@internal*/ -3 > -1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) -3 >Emitted(29, 20) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) ---- ->>> /**@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) -3 >Emitted(35, 20) Source(22, 20) + SourceIndex(3) -4 >Emitted(35, 29) Source(22, 36) + SourceIndex(3) -5 >Emitted(35, 32) Source(22, 39) + SourceIndex(3) -6 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) -7 >Emitted(35, 38) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(36, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) ---- ->>> /**@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) -3 >Emitted(37, 20) Source(23, 20) + SourceIndex(3) -4 >Emitted(37, 24) Source(23, 37) + SourceIndex(3) -5 >Emitted(37, 37) Source(23, 50) + SourceIndex(3) -6 >Emitted(37, 38) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(38, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(45, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) ---- ->>> /**@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) -3 >Emitted(46, 20) Source(24, 20) + SourceIndex(3) -4 >Emitted(46, 24) Source(24, 37) + SourceIndex(3) -5 >Emitted(46, 33) Source(24, 46) + SourceIndex(3) -6 >Emitted(46, 34) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(47, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(56, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(57, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) ---- ->>> /**@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /**@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(58, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(58, 19) Source(25, 19) + SourceIndex(3) -3 >Emitted(58, 20) Source(25, 34) + SourceIndex(3) -4 >Emitted(58, 38) Source(25, 44) + SourceIndex(3) -5 >Emitted(58, 41) Source(25, 47) + SourceIndex(3) -6 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) -7 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) -8 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) -9 >Emitted(58, 57) Source(25, 63) + SourceIndex(3) ---- ->>> /**@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > -2 > /**@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(59, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(59, 19) Source(27, 19) + SourceIndex(3) -3 >Emitted(59, 20) Source(27, 33) + SourceIndex(3) -4 >Emitted(59, 41) Source(27, 46) + SourceIndex(3) -5 >Emitted(59, 44) Source(27, 49) + SourceIndex(3) -6 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) -7 >Emitted(59, 47) Source(27, 52) + SourceIndex(3) ---- ->>> /**@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) -3 >Emitted(60, 20) Source(28, 20) + SourceIndex(3) -4 >Emitted(60, 24) Source(28, 32) + SourceIndex(3) -5 >Emitted(60, 36) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(61, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(65, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/**@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 >/**@internal*/ -3 > -1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) -3 >Emitted(67, 16) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) ---- ->>>/**@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) -3 >Emitted(72, 16) Source(31, 16) + SourceIndex(3) -4 >Emitted(72, 25) Source(31, 25) + SourceIndex(3) -5 >Emitted(72, 36) Source(31, 36) + SourceIndex(3) -6 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) -7 >Emitted(72, 42) Source(31, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) -3 >Emitted(73, 16) Source(32, 16) + SourceIndex(3) -4 >Emitted(73, 20) Source(32, 26) + SourceIndex(3) -5 >Emitted(73, 37) Source(32, 43) + SourceIndex(3) -6 >Emitted(73, 38) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(74, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) ---- ->>>/**@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) -3 >Emitted(82, 16) Source(33, 16) + SourceIndex(3) -4 >Emitted(82, 20) Source(33, 26) + SourceIndex(3) -5 >Emitted(82, 33) Source(33, 39) + SourceIndex(3) -6 >Emitted(82, 34) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(83, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(92, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) ---- ->>>/**@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) -3 >Emitted(94, 16) Source(34, 16) + SourceIndex(3) -4 >Emitted(94, 20) Source(34, 23) + SourceIndex(3) -5 >Emitted(94, 34) Source(34, 37) + SourceIndex(3) -6 >Emitted(94, 37) Source(34, 40) + SourceIndex(3) -7 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) -8 >Emitted(94, 55) Source(34, 58) + SourceIndex(3) -9 >Emitted(94, 64) Source(34, 67) + SourceIndex(3) -10>Emitted(94, 65) Source(34, 68) + SourceIndex(3) ---- ->>>/**@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/**@internal*/ type internalType = internalC; - > -2 >/**@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) -3 >Emitted(95, 16) Source(36, 16) + SourceIndex(3) -4 >Emitted(95, 20) Source(36, 22) + SourceIndex(3) -5 >Emitted(95, 33) Source(36, 35) + SourceIndex(3) -6 >Emitted(95, 36) Source(36, 38) + SourceIndex(3) -7 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) -8 >Emitted(95, 39) Source(36, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) -3 >Emitted(96, 16) Source(37, 16) + SourceIndex(3) -4 >Emitted(96, 20) Source(37, 21) + SourceIndex(3) -5 >Emitted(96, 32) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(97, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3561, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 172, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 54, - "kind": "internal" - }, - { - "pos": 56, - "end": 172, - "kind": "text" - } - ] - }, - { - "pos": 172, - "end": 249, - "kind": "text" - }, - { - "pos": 249, - "end": 398, - "kind": "internal" - }, - { - "pos": 400, - "end": 432, - "kind": "text" - }, - { - "pos": 432, - "end": 944, - "kind": "internal" - }, - { - "pos": 946, - "end": 949, - "kind": "text" - }, - { - "pos": 949, - "end": 1482, - "kind": "internal" - }, - { - "pos": 1484, - "end": 1532, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (127-3561) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-172):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-54) -/**@internal*/ interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (56-172) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (172-249) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (249-398) - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; ----------------------------------------------------------------------- -text: (400-432) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (432-944) - /**@internal*/ class C { - } - /**@internal*/ function foo(): void; - /**@internal*/ namespace someNamespace { - class C { - } - } - /**@internal*/ namespace someOther.something { - class someClass { - } - } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ type internalType = internalC; - /**@internal*/ const internalConst = 10; - /**@internal*/ enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (946-949) -} - ----------------------------------------------------------------------- -internal: (949-1482) -/**@internal*/ declare class internalC { -} -/**@internal*/ declare function internalfoo(): void; -/**@internal*/ declare namespace internalNamespace { - class someClass { - } -} -/**@internal*/ declare namespace internalOther.something { - class someClass { - } -} -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ declare type internalType = internalC; -/**@internal*/ declare const internalConst = 10; -/**@internal*/ declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1484-1532) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 54, - "kind": "internal" - }, - { - "pos": 56, - "end": 172, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-54) -/**@internal*/ interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (56-172) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /**@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /**@internal*/ -3 > -1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) -3 >Emitted(16, 20) Source(14, 20) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) ---- ->>> /**@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /**@internal*/ prop: string; - > -2 > /**@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(18, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) -3 >Emitted(18, 20) Source(16, 20) + SourceIndex(3) -4 >Emitted(18, 44) Source(16, 26) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 20) + SourceIndex(3) -6 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) -7 >Emitted(18, 62) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^-> -1 > - > /**@internal*/ -2 > get -3 > c -1 >Emitted(19, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) ---- ->>> /**@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /**@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(20, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(20, 23) Source(17, 19) + SourceIndex(3) -3 >Emitted(20, 29) Source(17, 20) + SourceIndex(3) -4 >Emitted(20, 43) Source(17, 30) + SourceIndex(3) -5 >Emitted(20, 50) Source(17, 37) + SourceIndex(3) -6 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) -7 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) -8 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) -9 >Emitted(20, 55) Source(17, 42) + SourceIndex(3) ---- ->>> /**@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(21, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(21, 23) Source(18, 19) + SourceIndex(3) -3 >Emitted(21, 29) Source(18, 20) + SourceIndex(3) -4 >Emitted(21, 39) Source(18, 26) + SourceIndex(3) -5 >Emitted(21, 42) Source(18, 37) + SourceIndex(3) -6 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) -7 >Emitted(21, 47) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /**@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /**@internal*/ -3 > -1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) -3 >Emitted(29, 20) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) ---- ->>> /**@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) -3 >Emitted(35, 20) Source(22, 20) + SourceIndex(3) -4 >Emitted(35, 29) Source(22, 36) + SourceIndex(3) -5 >Emitted(35, 32) Source(22, 39) + SourceIndex(3) -6 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) -7 >Emitted(35, 38) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(36, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) ---- ->>> /**@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) -3 >Emitted(37, 20) Source(23, 20) + SourceIndex(3) -4 >Emitted(37, 24) Source(23, 37) + SourceIndex(3) -5 >Emitted(37, 37) Source(23, 50) + SourceIndex(3) -6 >Emitted(37, 38) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(38, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(45, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) ---- ->>> /**@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) -3 >Emitted(46, 20) Source(24, 20) + SourceIndex(3) -4 >Emitted(46, 24) Source(24, 37) + SourceIndex(3) -5 >Emitted(46, 33) Source(24, 46) + SourceIndex(3) -6 >Emitted(46, 34) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(47, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(56, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(57, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) ---- ->>> /**@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /**@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(58, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(58, 19) Source(25, 19) + SourceIndex(3) -3 >Emitted(58, 20) Source(25, 34) + SourceIndex(3) -4 >Emitted(58, 38) Source(25, 44) + SourceIndex(3) -5 >Emitted(58, 41) Source(25, 47) + SourceIndex(3) -6 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) -7 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) -8 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) -9 >Emitted(58, 57) Source(25, 63) + SourceIndex(3) ---- ->>> /**@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > -2 > /**@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(59, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(59, 19) Source(27, 19) + SourceIndex(3) -3 >Emitted(59, 20) Source(27, 33) + SourceIndex(3) -4 >Emitted(59, 41) Source(27, 46) + SourceIndex(3) -5 >Emitted(59, 44) Source(27, 49) + SourceIndex(3) -6 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) -7 >Emitted(59, 47) Source(27, 52) + SourceIndex(3) ---- ->>> /**@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) -3 >Emitted(60, 20) Source(28, 20) + SourceIndex(3) -4 >Emitted(60, 24) Source(28, 32) + SourceIndex(3) -5 >Emitted(60, 36) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(61, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(65, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/**@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 >/**@internal*/ -3 > -1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) -3 >Emitted(67, 16) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) ---- ->>>/**@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) -3 >Emitted(72, 16) Source(31, 16) + SourceIndex(3) -4 >Emitted(72, 25) Source(31, 25) + SourceIndex(3) -5 >Emitted(72, 36) Source(31, 36) + SourceIndex(3) -6 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) -7 >Emitted(72, 42) Source(31, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) -3 >Emitted(73, 16) Source(32, 16) + SourceIndex(3) -4 >Emitted(73, 20) Source(32, 26) + SourceIndex(3) -5 >Emitted(73, 37) Source(32, 43) + SourceIndex(3) -6 >Emitted(73, 38) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(74, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) ---- ->>>/**@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) -3 >Emitted(82, 16) Source(33, 16) + SourceIndex(3) -4 >Emitted(82, 20) Source(33, 26) + SourceIndex(3) -5 >Emitted(82, 33) Source(33, 39) + SourceIndex(3) -6 >Emitted(82, 34) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(83, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(92, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) ---- ->>>/**@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) -3 >Emitted(94, 16) Source(34, 16) + SourceIndex(3) -4 >Emitted(94, 20) Source(34, 23) + SourceIndex(3) -5 >Emitted(94, 34) Source(34, 37) + SourceIndex(3) -6 >Emitted(94, 37) Source(34, 40) + SourceIndex(3) -7 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) -8 >Emitted(94, 55) Source(34, 58) + SourceIndex(3) -9 >Emitted(94, 64) Source(34, 67) + SourceIndex(3) -10>Emitted(94, 65) Source(34, 68) + SourceIndex(3) ---- ->>>/**@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/**@internal*/ type internalType = internalC; - > -2 >/**@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) -3 >Emitted(95, 16) Source(36, 16) + SourceIndex(3) -4 >Emitted(95, 20) Source(36, 22) + SourceIndex(3) -5 >Emitted(95, 33) Source(36, 35) + SourceIndex(3) -6 >Emitted(95, 36) Source(36, 38) + SourceIndex(3) -7 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) -8 >Emitted(95, 39) Source(36, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) -3 >Emitted(96, 16) Source(37, 16) + SourceIndex(3) -4 >Emitted(96, 20) Source(37, 21) + SourceIndex(3) -5 >Emitted(96, 32) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(97, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3561, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3561, - "kind": "text" - } - ] - }, - { - "pos": 3561, - "end": 3597, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3561):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3561) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3561-3597) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-276) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js deleted file mode 100644 index 693db25d6cc..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ /dev/null @@ -1,2413 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 54, - "kind": "internal" - }, - { - "pos": 56, - "end": 172, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-54) -/**@internal*/ interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (56-172) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /**@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /**@internal*/ -3 > -1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) -3 >Emitted(16, 20) Source(14, 20) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) ---- ->>> /**@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /**@internal*/ prop: string; - > -2 > /**@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(18, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) -3 >Emitted(18, 20) Source(16, 20) + SourceIndex(3) -4 >Emitted(18, 44) Source(16, 26) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 20) + SourceIndex(3) -6 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) -7 >Emitted(18, 62) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^-> -1 > - > /**@internal*/ -2 > get -3 > c -1 >Emitted(19, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) ---- ->>> /**@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /**@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(20, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(20, 23) Source(17, 19) + SourceIndex(3) -3 >Emitted(20, 29) Source(17, 20) + SourceIndex(3) -4 >Emitted(20, 43) Source(17, 30) + SourceIndex(3) -5 >Emitted(20, 50) Source(17, 37) + SourceIndex(3) -6 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) -7 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) -8 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) -9 >Emitted(20, 55) Source(17, 42) + SourceIndex(3) ---- ->>> /**@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(21, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(21, 23) Source(18, 19) + SourceIndex(3) -3 >Emitted(21, 29) Source(18, 20) + SourceIndex(3) -4 >Emitted(21, 39) Source(18, 26) + SourceIndex(3) -5 >Emitted(21, 42) Source(18, 37) + SourceIndex(3) -6 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) -7 >Emitted(21, 47) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /**@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /**@internal*/ -3 > -1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) -3 >Emitted(29, 20) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) ---- ->>> /**@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) -3 >Emitted(35, 20) Source(22, 20) + SourceIndex(3) -4 >Emitted(35, 29) Source(22, 36) + SourceIndex(3) -5 >Emitted(35, 32) Source(22, 39) + SourceIndex(3) -6 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) -7 >Emitted(35, 38) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(36, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) ---- ->>> /**@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) -3 >Emitted(37, 20) Source(23, 20) + SourceIndex(3) -4 >Emitted(37, 24) Source(23, 37) + SourceIndex(3) -5 >Emitted(37, 37) Source(23, 50) + SourceIndex(3) -6 >Emitted(37, 38) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(38, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(45, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) ---- ->>> /**@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) -3 >Emitted(46, 20) Source(24, 20) + SourceIndex(3) -4 >Emitted(46, 24) Source(24, 37) + SourceIndex(3) -5 >Emitted(46, 33) Source(24, 46) + SourceIndex(3) -6 >Emitted(46, 34) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(47, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(56, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(57, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) ---- ->>> /**@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /**@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(58, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(58, 19) Source(25, 19) + SourceIndex(3) -3 >Emitted(58, 20) Source(25, 34) + SourceIndex(3) -4 >Emitted(58, 38) Source(25, 44) + SourceIndex(3) -5 >Emitted(58, 41) Source(25, 47) + SourceIndex(3) -6 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) -7 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) -8 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) -9 >Emitted(58, 57) Source(25, 63) + SourceIndex(3) ---- ->>> /**@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > -2 > /**@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(59, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(59, 19) Source(27, 19) + SourceIndex(3) -3 >Emitted(59, 20) Source(27, 33) + SourceIndex(3) -4 >Emitted(59, 41) Source(27, 46) + SourceIndex(3) -5 >Emitted(59, 44) Source(27, 49) + SourceIndex(3) -6 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) -7 >Emitted(59, 47) Source(27, 52) + SourceIndex(3) ---- ->>> /**@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) -3 >Emitted(60, 20) Source(28, 20) + SourceIndex(3) -4 >Emitted(60, 24) Source(28, 32) + SourceIndex(3) -5 >Emitted(60, 36) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(61, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(65, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/**@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 >/**@internal*/ -3 > -1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) -3 >Emitted(67, 16) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) ---- ->>>/**@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) -3 >Emitted(72, 16) Source(31, 16) + SourceIndex(3) -4 >Emitted(72, 25) Source(31, 25) + SourceIndex(3) -5 >Emitted(72, 36) Source(31, 36) + SourceIndex(3) -6 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) -7 >Emitted(72, 42) Source(31, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) -3 >Emitted(73, 16) Source(32, 16) + SourceIndex(3) -4 >Emitted(73, 20) Source(32, 26) + SourceIndex(3) -5 >Emitted(73, 37) Source(32, 43) + SourceIndex(3) -6 >Emitted(73, 38) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(74, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) ---- ->>>/**@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) -3 >Emitted(82, 16) Source(33, 16) + SourceIndex(3) -4 >Emitted(82, 20) Source(33, 26) + SourceIndex(3) -5 >Emitted(82, 33) Source(33, 39) + SourceIndex(3) -6 >Emitted(82, 34) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(83, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(92, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) ---- ->>>/**@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) -3 >Emitted(94, 16) Source(34, 16) + SourceIndex(3) -4 >Emitted(94, 20) Source(34, 23) + SourceIndex(3) -5 >Emitted(94, 34) Source(34, 37) + SourceIndex(3) -6 >Emitted(94, 37) Source(34, 40) + SourceIndex(3) -7 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) -8 >Emitted(94, 55) Source(34, 58) + SourceIndex(3) -9 >Emitted(94, 64) Source(34, 67) + SourceIndex(3) -10>Emitted(94, 65) Source(34, 68) + SourceIndex(3) ---- ->>>/**@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/**@internal*/ type internalType = internalC; - > -2 >/**@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) -3 >Emitted(95, 16) Source(36, 16) + SourceIndex(3) -4 >Emitted(95, 20) Source(36, 22) + SourceIndex(3) -5 >Emitted(95, 33) Source(36, 35) + SourceIndex(3) -6 >Emitted(95, 36) Source(36, 38) + SourceIndex(3) -7 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) -8 >Emitted(95, 39) Source(36, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) -3 >Emitted(96, 16) Source(37, 16) + SourceIndex(3) -4 >Emitted(96, 20) Source(37, 21) + SourceIndex(3) -5 >Emitted(96, 32) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(97, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3561, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 3561, - "kind": "text" - } - ] - }, - { - "pos": 3561, - "end": 3597, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 116, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 116, - "kind": "text" - } - ] - }, - { - "pos": 116, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 116, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-3561):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-3561) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3561-3597) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-116) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (116-276) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index 262c5704c9e..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,4329 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/second/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 2, - "/src/2/second-output.js": 2, - "/src/2/second-output.js.map": 2, - "/src/2/second-output.d.ts": 2, - "/src/2/second-output.d.ts.map": 2, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1 -} - -//// [/src/2/second-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(18, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(18, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(18, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(18, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(19, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(20, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(20, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(20, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(20, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(20, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(20, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(20, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(21, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(21, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(21, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(21, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(21, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(35, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(35, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(35, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(35, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(36, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(38, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(45, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(46, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(47, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(56, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(57, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(58, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(58, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(58, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(58, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(58, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(58, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(59, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(59, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(59, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(59, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(59, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(61, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(65, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(72, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(72, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(72, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(72, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(72, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(73, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(74, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(83, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(92, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(94, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(94, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(94, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(94, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(94, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(94, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(94, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(95, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(95, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(95, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(95, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(95, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(97, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3179, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 308, - "kind": "internal" - }, - { - "pos": 310, - "end": 342, - "kind": "text" - }, - { - "pos": 342, - "end": 734, - "kind": "internal" - }, - { - "pos": 736, - "end": 739, - "kind": "text" - }, - { - "pos": 739, - "end": 1152, - "kind": "internal" - }, - { - "pos": 1154, - "end": 1202, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (127-3179) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-308) - constructor(); - prop: string; - method(): void; - c: number; ----------------------------------------------------------------------- -text: (310-342) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (342-734) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (736-739) -} - ----------------------------------------------------------------------- -internal: (739-1152) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1154-1202) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(18, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(18, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(18, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(18, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(19, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(20, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(20, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(20, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(20, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(20, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(20, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(20, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(21, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(21, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(21, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(21, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(21, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(35, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(35, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(35, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(35, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(36, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(38, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(45, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(46, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(47, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(56, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(57, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(58, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(58, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(58, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(58, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(58, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(58, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(59, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(59, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(59, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(59, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(59, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(61, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(65, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(72, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(72, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(72, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(72, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(72, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(73, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(74, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(83, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(92, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(94, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(94, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(94, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(94, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(94, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(94, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(94, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(95, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(95, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(95, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(95, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(95, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(97, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3179, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3179, - "kind": "text" - } - ] - }, - { - "pos": 3179, - "end": 3215, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3179):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3179) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3179-3215) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-276) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index 5485cd7efe4..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,4507 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/second/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(16, 18) Source(14, 18) + SourceIndex(3) -3 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(18, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(18, 18) Source(16, 18) + SourceIndex(3) -3 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) -4 >Emitted(18, 43) Source(16, 25) + SourceIndex(3) -5 >Emitted(18, 46) Source(16, 19) + SourceIndex(3) -6 >Emitted(18, 60) Source(16, 30) + SourceIndex(3) -7 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(19, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(20, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(20, 22) Source(17, 18) + SourceIndex(3) -3 >Emitted(20, 28) Source(17, 19) + SourceIndex(3) -4 >Emitted(20, 42) Source(17, 29) + SourceIndex(3) -5 >Emitted(20, 49) Source(17, 36) + SourceIndex(3) -6 >Emitted(20, 51) Source(17, 38) + SourceIndex(3) -7 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) -8 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) -9 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(21, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(21, 22) Source(18, 18) + SourceIndex(3) -3 >Emitted(21, 28) Source(18, 19) + SourceIndex(3) -4 >Emitted(21, 38) Source(18, 25) + SourceIndex(3) -5 >Emitted(21, 41) Source(18, 36) + SourceIndex(3) -6 >Emitted(21, 45) Source(18, 40) + SourceIndex(3) -7 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(29, 18) Source(21, 18) + SourceIndex(3) -3 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(35, 18) Source(22, 18) + SourceIndex(3) -3 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) -4 >Emitted(35, 28) Source(22, 35) + SourceIndex(3) -5 >Emitted(35, 31) Source(22, 38) + SourceIndex(3) -6 >Emitted(35, 36) Source(22, 42) + SourceIndex(3) -7 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(36, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(37, 18) Source(23, 18) + SourceIndex(3) -3 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 36) + SourceIndex(3) -5 >Emitted(37, 36) Source(23, 49) + SourceIndex(3) -6 >Emitted(37, 37) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(38, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(45, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) ---- ->>> /*@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(46, 18) Source(24, 18) + SourceIndex(3) -3 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) -4 >Emitted(46, 23) Source(24, 36) + SourceIndex(3) -5 >Emitted(46, 32) Source(24, 45) + SourceIndex(3) -6 >Emitted(46, 33) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(47, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(56, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(57, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(58, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(58, 18) Source(25, 18) + SourceIndex(3) -3 >Emitted(58, 19) Source(25, 33) + SourceIndex(3) -4 >Emitted(58, 37) Source(25, 43) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 46) + SourceIndex(3) -6 >Emitted(58, 53) Source(25, 59) + SourceIndex(3) -7 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) -8 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) -9 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(59, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(59, 18) Source(27, 18) + SourceIndex(3) -3 >Emitted(59, 19) Source(27, 32) + SourceIndex(3) -4 >Emitted(59, 40) Source(27, 45) + SourceIndex(3) -5 >Emitted(59, 43) Source(27, 48) + SourceIndex(3) -6 >Emitted(59, 45) Source(27, 50) + SourceIndex(3) -7 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(60, 18) Source(28, 18) + SourceIndex(3) -3 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) -4 >Emitted(60, 23) Source(28, 31) + SourceIndex(3) -5 >Emitted(60, 35) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(61, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(65, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(67, 14) Source(30, 14) + SourceIndex(3) -3 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(72, 14) Source(31, 14) + SourceIndex(3) -3 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) -4 >Emitted(72, 24) Source(31, 24) + SourceIndex(3) -5 >Emitted(72, 35) Source(31, 35) + SourceIndex(3) -6 >Emitted(72, 40) Source(31, 39) + SourceIndex(3) -7 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(73, 14) Source(32, 14) + SourceIndex(3) -3 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) -4 >Emitted(73, 19) Source(32, 25) + SourceIndex(3) -5 >Emitted(73, 36) Source(32, 42) + SourceIndex(3) -6 >Emitted(73, 37) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(74, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(82, 14) Source(33, 14) + SourceIndex(3) -3 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 25) + SourceIndex(3) -5 >Emitted(82, 32) Source(33, 38) + SourceIndex(3) -6 >Emitted(82, 33) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(83, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(92, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(94, 14) Source(34, 14) + SourceIndex(3) -3 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) -4 >Emitted(94, 19) Source(34, 22) + SourceIndex(3) -5 >Emitted(94, 33) Source(34, 36) + SourceIndex(3) -6 >Emitted(94, 36) Source(34, 39) + SourceIndex(3) -7 >Emitted(94, 53) Source(34, 56) + SourceIndex(3) -8 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) -9 >Emitted(94, 63) Source(34, 66) + SourceIndex(3) -10>Emitted(94, 64) Source(34, 67) + SourceIndex(3) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(95, 14) Source(36, 14) + SourceIndex(3) -3 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) -4 >Emitted(95, 19) Source(36, 21) + SourceIndex(3) -5 >Emitted(95, 32) Source(36, 34) + SourceIndex(3) -6 >Emitted(95, 35) Source(36, 37) + SourceIndex(3) -7 >Emitted(95, 37) Source(36, 39) + SourceIndex(3) -8 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(96, 14) Source(37, 14) + SourceIndex(3) -3 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) -4 >Emitted(96, 19) Source(37, 20) + SourceIndex(3) -5 >Emitted(96, 31) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(97, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3543, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 322, - "kind": "internal" - }, - { - "pos": 324, - "end": 356, - "kind": "text" - }, - { - "pos": 356, - "end": 748, - "kind": "internal" - }, - { - "pos": 750, - "end": 753, - "kind": "text" - }, - { - "pos": 753, - "end": 1166, - "kind": "internal" - }, - { - "pos": 1168, - "end": 1216, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (127-3543) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-322) - constructor(); - prop: string; - method(): void; - /*@internal*/ c: number; ----------------------------------------------------------------------- -text: (324-356) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (356-748) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (750-753) -} - ----------------------------------------------------------------------- -internal: (753-1166) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1168-1216) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(16, 18) Source(14, 18) + SourceIndex(3) -3 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(18, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(18, 18) Source(16, 18) + SourceIndex(3) -3 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) -4 >Emitted(18, 43) Source(16, 25) + SourceIndex(3) -5 >Emitted(18, 46) Source(16, 19) + SourceIndex(3) -6 >Emitted(18, 60) Source(16, 30) + SourceIndex(3) -7 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(19, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(20, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(20, 22) Source(17, 18) + SourceIndex(3) -3 >Emitted(20, 28) Source(17, 19) + SourceIndex(3) -4 >Emitted(20, 42) Source(17, 29) + SourceIndex(3) -5 >Emitted(20, 49) Source(17, 36) + SourceIndex(3) -6 >Emitted(20, 51) Source(17, 38) + SourceIndex(3) -7 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) -8 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) -9 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(21, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(21, 22) Source(18, 18) + SourceIndex(3) -3 >Emitted(21, 28) Source(18, 19) + SourceIndex(3) -4 >Emitted(21, 38) Source(18, 25) + SourceIndex(3) -5 >Emitted(21, 41) Source(18, 36) + SourceIndex(3) -6 >Emitted(21, 45) Source(18, 40) + SourceIndex(3) -7 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(29, 18) Source(21, 18) + SourceIndex(3) -3 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(35, 18) Source(22, 18) + SourceIndex(3) -3 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) -4 >Emitted(35, 28) Source(22, 35) + SourceIndex(3) -5 >Emitted(35, 31) Source(22, 38) + SourceIndex(3) -6 >Emitted(35, 36) Source(22, 42) + SourceIndex(3) -7 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(36, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(37, 18) Source(23, 18) + SourceIndex(3) -3 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 36) + SourceIndex(3) -5 >Emitted(37, 36) Source(23, 49) + SourceIndex(3) -6 >Emitted(37, 37) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(38, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(45, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) ---- ->>> /*@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(46, 18) Source(24, 18) + SourceIndex(3) -3 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) -4 >Emitted(46, 23) Source(24, 36) + SourceIndex(3) -5 >Emitted(46, 32) Source(24, 45) + SourceIndex(3) -6 >Emitted(46, 33) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(47, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(56, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(57, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(58, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(58, 18) Source(25, 18) + SourceIndex(3) -3 >Emitted(58, 19) Source(25, 33) + SourceIndex(3) -4 >Emitted(58, 37) Source(25, 43) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 46) + SourceIndex(3) -6 >Emitted(58, 53) Source(25, 59) + SourceIndex(3) -7 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) -8 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) -9 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(59, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(59, 18) Source(27, 18) + SourceIndex(3) -3 >Emitted(59, 19) Source(27, 32) + SourceIndex(3) -4 >Emitted(59, 40) Source(27, 45) + SourceIndex(3) -5 >Emitted(59, 43) Source(27, 48) + SourceIndex(3) -6 >Emitted(59, 45) Source(27, 50) + SourceIndex(3) -7 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(60, 18) Source(28, 18) + SourceIndex(3) -3 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) -4 >Emitted(60, 23) Source(28, 31) + SourceIndex(3) -5 >Emitted(60, 35) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(61, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(65, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(67, 14) Source(30, 14) + SourceIndex(3) -3 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(72, 14) Source(31, 14) + SourceIndex(3) -3 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) -4 >Emitted(72, 24) Source(31, 24) + SourceIndex(3) -5 >Emitted(72, 35) Source(31, 35) + SourceIndex(3) -6 >Emitted(72, 40) Source(31, 39) + SourceIndex(3) -7 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(73, 14) Source(32, 14) + SourceIndex(3) -3 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) -4 >Emitted(73, 19) Source(32, 25) + SourceIndex(3) -5 >Emitted(73, 36) Source(32, 42) + SourceIndex(3) -6 >Emitted(73, 37) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(74, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(82, 14) Source(33, 14) + SourceIndex(3) -3 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 25) + SourceIndex(3) -5 >Emitted(82, 32) Source(33, 38) + SourceIndex(3) -6 >Emitted(82, 33) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(83, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(92, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(94, 14) Source(34, 14) + SourceIndex(3) -3 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) -4 >Emitted(94, 19) Source(34, 22) + SourceIndex(3) -5 >Emitted(94, 33) Source(34, 36) + SourceIndex(3) -6 >Emitted(94, 36) Source(34, 39) + SourceIndex(3) -7 >Emitted(94, 53) Source(34, 56) + SourceIndex(3) -8 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) -9 >Emitted(94, 63) Source(34, 66) + SourceIndex(3) -10>Emitted(94, 64) Source(34, 67) + SourceIndex(3) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(95, 14) Source(36, 14) + SourceIndex(3) -3 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) -4 >Emitted(95, 19) Source(36, 21) + SourceIndex(3) -5 >Emitted(95, 32) Source(36, 34) + SourceIndex(3) -6 >Emitted(95, 35) Source(36, 37) + SourceIndex(3) -7 >Emitted(95, 37) Source(36, 39) + SourceIndex(3) -8 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(96, 14) Source(37, 14) + SourceIndex(3) -3 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) -4 >Emitted(96, 19) Source(37, 20) + SourceIndex(3) -5 >Emitted(96, 31) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(97, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3543, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3543, - "kind": "text" - } - ] - }, - { - "pos": 3543, - "end": 3579, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3543):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3543) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3543-3579) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-276) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js deleted file mode 100644 index bef29197431..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js +++ /dev/null @@ -1,2413 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(16, 18) Source(14, 18) + SourceIndex(3) -3 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(18, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(18, 18) Source(16, 18) + SourceIndex(3) -3 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) -4 >Emitted(18, 43) Source(16, 25) + SourceIndex(3) -5 >Emitted(18, 46) Source(16, 19) + SourceIndex(3) -6 >Emitted(18, 60) Source(16, 30) + SourceIndex(3) -7 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(19, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(20, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(20, 22) Source(17, 18) + SourceIndex(3) -3 >Emitted(20, 28) Source(17, 19) + SourceIndex(3) -4 >Emitted(20, 42) Source(17, 29) + SourceIndex(3) -5 >Emitted(20, 49) Source(17, 36) + SourceIndex(3) -6 >Emitted(20, 51) Source(17, 38) + SourceIndex(3) -7 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) -8 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) -9 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(21, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(21, 22) Source(18, 18) + SourceIndex(3) -3 >Emitted(21, 28) Source(18, 19) + SourceIndex(3) -4 >Emitted(21, 38) Source(18, 25) + SourceIndex(3) -5 >Emitted(21, 41) Source(18, 36) + SourceIndex(3) -6 >Emitted(21, 45) Source(18, 40) + SourceIndex(3) -7 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(29, 18) Source(21, 18) + SourceIndex(3) -3 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(35, 18) Source(22, 18) + SourceIndex(3) -3 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) -4 >Emitted(35, 28) Source(22, 35) + SourceIndex(3) -5 >Emitted(35, 31) Source(22, 38) + SourceIndex(3) -6 >Emitted(35, 36) Source(22, 42) + SourceIndex(3) -7 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(36, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(37, 18) Source(23, 18) + SourceIndex(3) -3 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 36) + SourceIndex(3) -5 >Emitted(37, 36) Source(23, 49) + SourceIndex(3) -6 >Emitted(37, 37) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(38, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(45, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) ---- ->>> /*@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(46, 18) Source(24, 18) + SourceIndex(3) -3 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) -4 >Emitted(46, 23) Source(24, 36) + SourceIndex(3) -5 >Emitted(46, 32) Source(24, 45) + SourceIndex(3) -6 >Emitted(46, 33) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(47, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(56, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(57, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(58, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(58, 18) Source(25, 18) + SourceIndex(3) -3 >Emitted(58, 19) Source(25, 33) + SourceIndex(3) -4 >Emitted(58, 37) Source(25, 43) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 46) + SourceIndex(3) -6 >Emitted(58, 53) Source(25, 59) + SourceIndex(3) -7 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) -8 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) -9 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(59, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(59, 18) Source(27, 18) + SourceIndex(3) -3 >Emitted(59, 19) Source(27, 32) + SourceIndex(3) -4 >Emitted(59, 40) Source(27, 45) + SourceIndex(3) -5 >Emitted(59, 43) Source(27, 48) + SourceIndex(3) -6 >Emitted(59, 45) Source(27, 50) + SourceIndex(3) -7 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(60, 18) Source(28, 18) + SourceIndex(3) -3 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) -4 >Emitted(60, 23) Source(28, 31) + SourceIndex(3) -5 >Emitted(60, 35) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(61, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(65, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(67, 14) Source(30, 14) + SourceIndex(3) -3 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(72, 14) Source(31, 14) + SourceIndex(3) -3 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) -4 >Emitted(72, 24) Source(31, 24) + SourceIndex(3) -5 >Emitted(72, 35) Source(31, 35) + SourceIndex(3) -6 >Emitted(72, 40) Source(31, 39) + SourceIndex(3) -7 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(73, 14) Source(32, 14) + SourceIndex(3) -3 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) -4 >Emitted(73, 19) Source(32, 25) + SourceIndex(3) -5 >Emitted(73, 36) Source(32, 42) + SourceIndex(3) -6 >Emitted(73, 37) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(74, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(82, 14) Source(33, 14) + SourceIndex(3) -3 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 25) + SourceIndex(3) -5 >Emitted(82, 32) Source(33, 38) + SourceIndex(3) -6 >Emitted(82, 33) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(83, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(92, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(94, 14) Source(34, 14) + SourceIndex(3) -3 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) -4 >Emitted(94, 19) Source(34, 22) + SourceIndex(3) -5 >Emitted(94, 33) Source(34, 36) + SourceIndex(3) -6 >Emitted(94, 36) Source(34, 39) + SourceIndex(3) -7 >Emitted(94, 53) Source(34, 56) + SourceIndex(3) -8 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) -9 >Emitted(94, 63) Source(34, 66) + SourceIndex(3) -10>Emitted(94, 64) Source(34, 67) + SourceIndex(3) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(95, 14) Source(36, 14) + SourceIndex(3) -3 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) -4 >Emitted(95, 19) Source(36, 21) + SourceIndex(3) -5 >Emitted(95, 32) Source(36, 34) + SourceIndex(3) -6 >Emitted(95, 35) Source(36, 37) + SourceIndex(3) -7 >Emitted(95, 37) Source(36, 39) + SourceIndex(3) -8 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(96, 14) Source(37, 14) + SourceIndex(3) -3 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) -4 >Emitted(96, 19) Source(37, 20) + SourceIndex(3) -5 >Emitted(96, 31) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(97, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3543, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 3543, - "kind": "text" - } - ] - }, - { - "pos": 3543, - "end": 3579, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 116, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 116, - "kind": "text" - } - ] - }, - { - "pos": 116, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 116, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-3543):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-3543) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3543-3579) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-116) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (116-276) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js deleted file mode 100644 index a159a645e0b..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js +++ /dev/null @@ -1,2335 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(18, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(18, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(18, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(18, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(19, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(20, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(20, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(20, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(20, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(20, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(20, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(20, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(21, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(21, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(21, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(21, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(21, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(35, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(35, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(35, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(35, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(36, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(38, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(45, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(46, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(47, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(56, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(57, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(58, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(58, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(58, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(58, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(58, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(58, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(59, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(59, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(59, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(59, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(59, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(61, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(65, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(72, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(72, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(72, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(72, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(72, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(73, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(74, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(83, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(92, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(94, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(94, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(94, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(94, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(94, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(94, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(94, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(95, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(95, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(95, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(95, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(95, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(97, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3179, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 3179, - "kind": "text" - } - ] - }, - { - "pos": 3179, - "end": 3215, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 116, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 116, - "kind": "text" - } - ] - }, - { - "pos": 116, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 116, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-3179):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-3179) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3179-3215) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-116) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (116-276) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js deleted file mode 100644 index 45662bd5aed..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js +++ /dev/null @@ -1,1122 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/tripleRef.d.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(4, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(4, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(4, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(4, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(4, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(4, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(5, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 175, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 42, - "kind": "reference", - "data": "../tripleRef.d.ts" - }, - { - "pos": 44, - "end": 252, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-175) -var s = "Hello, world"; -console.log(s); -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -reference: (0-42):: ../tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (44-252) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(4, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(4, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(4, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(4, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(4, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(4, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(5, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var second_part1Const = new secondsecond_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > second_part1Const -4 > = -5 > new -6 > secondsecond_part1 -7 > () -8 > ; -1->Emitted(9, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(2, 7) + SourceIndex(3) -3 >Emitted(9, 22) Source(2, 24) + SourceIndex(3) -4 >Emitted(9, 25) Source(2, 27) + SourceIndex(3) -5 >Emitted(9, 29) Source(2, 31) + SourceIndex(3) -6 >Emitted(9, 47) Source(2, 49) + SourceIndex(3) -7 >Emitted(9, 49) Source(2, 51) + SourceIndex(3) -8 >Emitted(9, 50) Source(2, 52) + SourceIndex(3) ---- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(10, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(10, 5) Source(7, 11) + SourceIndex(3) -3 >Emitted(10, 6) Source(7, 12) + SourceIndex(3) -4 >Emitted(10, 7) Source(13, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(11, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(11, 12) Source(7, 11) + SourceIndex(3) -3 >Emitted(11, 13) Source(7, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 14) Source(8, 14) + SourceIndex(3) -3 >Emitted(12, 15) Source(8, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(13, 9) Source(9, 9) + SourceIndex(3) -2 >Emitted(13, 16) Source(9, 16) + SourceIndex(3) -3 >Emitted(13, 17) Source(9, 17) + SourceIndex(3) -4 >Emitted(13, 20) Source(9, 20) + SourceIndex(3) -5 >Emitted(13, 21) Source(9, 21) + SourceIndex(3) -6 >Emitted(13, 30) Source(9, 30) + SourceIndex(3) -7 >Emitted(13, 31) Source(9, 31) + SourceIndex(3) -8 >Emitted(13, 32) Source(9, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(15, 5) Source(12, 5) + SourceIndex(3) -2 >Emitted(15, 6) Source(12, 6) + SourceIndex(3) -3 >Emitted(15, 8) Source(12, 8) + SourceIndex(3) -4 >Emitted(15, 9) Source(12, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(16, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(16, 2) Source(13, 2) + SourceIndex(3) -3 >Emitted(16, 4) Source(7, 11) + SourceIndex(3) -4 >Emitted(16, 5) Source(7, 12) + SourceIndex(3) -5 >Emitted(16, 10) Source(7, 11) + SourceIndex(3) -6 >Emitted(16, 11) Source(7, 12) + SourceIndex(3) -7 >Emitted(16, 19) Source(13, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(18, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(19, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(20, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(20, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(20, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(21, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(21, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(21, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(21, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(21, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(21, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(21, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(21, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(22, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(24, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(24, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var third_part1Const = new thirdthird_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > third_part1Const -4 > = -5 > new -6 > thirdthird_part1 -7 > () -8 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 5) Source(2, 7) + SourceIndex(5) -3 >Emitted(25, 21) Source(2, 23) + SourceIndex(5) -4 >Emitted(25, 24) Source(2, 26) + SourceIndex(5) -5 >Emitted(25, 28) Source(2, 30) + SourceIndex(5) -6 >Emitted(25, 44) Source(2, 46) + SourceIndex(5) -7 >Emitted(25, 46) Source(2, 48) + SourceIndex(5) -8 >Emitted(25, 47) Source(2, 49) + SourceIndex(5) ---- ->>>var c = new C(); -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1 > - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1 >Emitted(26, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(26, 5) Source(3, 5) + SourceIndex(5) -3 >Emitted(26, 6) Source(3, 6) + SourceIndex(5) -4 >Emitted(26, 9) Source(3, 9) + SourceIndex(5) -5 >Emitted(26, 13) Source(3, 13) + SourceIndex(5) -6 >Emitted(26, 14) Source(3, 14) + SourceIndex(5) -7 >Emitted(26, 16) Source(3, 16) + SourceIndex(5) -8 >Emitted(26, 17) Source(3, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(27, 1) Source(4, 1) + SourceIndex(5) -2 >Emitted(27, 2) Source(4, 2) + SourceIndex(5) -3 >Emitted(27, 3) Source(4, 3) + SourceIndex(5) -4 >Emitted(27, 14) Source(4, 14) + SourceIndex(5) -5 >Emitted(27, 16) Source(4, 16) + SourceIndex(5) -6 >Emitted(27, 17) Source(4, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 175, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 175, - "kind": "text" - } - ] - }, - { - "pos": 175, - "end": 511, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 175, - "end": 511, - "kind": "text" - } - ] - }, - { - "pos": 511, - "end": 595, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 45, - "kind": "reference", - "data": "../../tripleRef.d.ts" - }, - { - "pos": 47, - "end": 101, - "kind": "reference", - "data": "../../../first/tripleRef.d.ts" - }, - { - "pos": 103, - "end": 158, - "kind": "reference", - "data": "../../../second/tripleRef.d.ts" - }, - { - "pos": 160, - "end": 368, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 160, - "end": 368, - "kind": "text" - } - ] - }, - { - "pos": 368, - "end": 522, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 368, - "end": 522, - "kind": "text" - } - ] - }, - { - "pos": 522, - "end": 592, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-175):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-175) -var s = "Hello, world"; -console.log(s); -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (175-511):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (175-511) -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (511-595) -var third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -reference: (0-45):: ../../tripleRef.d.ts -/// ----------------------------------------------------------------------- -reference: (47-101):: ../../../first/tripleRef.d.ts -/// ----------------------------------------------------------------------- -reference: (103-158):: ../../../second/tripleRef.d.ts -/// ----------------------------------------------------------------------- -prepend: (160-368):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (160-368) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (368-522):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (368-522) -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (522-592) -declare const third_part1Const: thirdthird_part1; -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js deleted file mode 100644 index f5b05d0504c..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js +++ /dev/null @@ -1,979 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var second_part1Const = new secondsecond_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > second_part1Const -4 > = -5 > new -6 > secondsecond_part1 -7 > () -8 > ; -1->Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(2, 7) + SourceIndex(3) -3 >Emitted(8, 22) Source(2, 24) + SourceIndex(3) -4 >Emitted(8, 25) Source(2, 27) + SourceIndex(3) -5 >Emitted(8, 29) Source(2, 31) + SourceIndex(3) -6 >Emitted(8, 47) Source(2, 49) + SourceIndex(3) -7 >Emitted(8, 49) Source(2, 51) + SourceIndex(3) -8 >Emitted(8, 50) Source(2, 52) + SourceIndex(3) ---- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(7, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(13, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(7, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(7, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(8, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(8, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(9, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(9, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(9, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(9, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(9, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(9, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(9, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(9, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(12, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(12, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(12, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(12, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(7, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(7, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(7, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(7, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(13, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 463, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 463, - "kind": "text" - } - ] - }, - { - "pos": 463, - "end": 499, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 55, - "kind": "reference", - "data": "../../../second/tripleRef.d.ts" - }, - { - "pos": 57, - "end": 214, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 57, - "end": 214, - "kind": "text" - } - ] - }, - { - "pos": 214, - "end": 368, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 214, - "end": 368, - "kind": "text" - } - ] - }, - { - "pos": 368, - "end": 387, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-463):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-463) -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (463-499) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -reference: (0-55):: ../../../second/tripleRef.d.ts -/// ----------------------------------------------------------------------- -prepend: (57-214):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (57-214) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (214-368):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (214-368) -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (368-387) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js deleted file mode 100644 index 42617018b17..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js +++ /dev/null @@ -1,785 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents -//// [/src/third/thirdjs/output/third-output.d.ts.map] file written with same contents -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js deleted file mode 100644 index fb897c92939..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js +++ /dev/null @@ -1,865 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:04:00 PM - Building project '/src/first/tsconfig.json'... - -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 412, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 412, - "kind": "text" - } - ] - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-412):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-412) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js deleted file mode 100644 index e5b38afe127..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js +++ /dev/null @@ -1,1548 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:12:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:12:00 PM - Building project '/src/first/tsconfig.json'... - -4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 150, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-150) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { } - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) ---- ->>>declare function forthirdthird_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - >c.doSomething(); - > -2 >function -3 > forthirdthird_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(15, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(15, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(15, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(15, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(15, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(15, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(15, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(15, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(16, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(16, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(16, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(17, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(17, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(17, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(17, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(19, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(19, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(19, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(19, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(20, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(20, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(21, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(21, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(21, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(22, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(22, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(22, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(22, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(22, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(22, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(22, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(22, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(23, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(23, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(24, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(24, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(24, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(24, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(25, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(25, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(25, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(25, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(25, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(25, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(26, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(26, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(26, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(27, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(27, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(27, 38) Source(13, 48) + SourceIndex(3) -4 >Emitted(27, 40) Source(13, 9) + SourceIndex(3) -5 >Emitted(27, 48) Source(13, 10) + SourceIndex(3) -6 >Emitted(27, 50) Source(13, 12) + SourceIndex(3) -7 >Emitted(27, 74) Source(13, 48) + SourceIndex(3) -8 >Emitted(27, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(28, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(28, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(29, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(30, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(31, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(31, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(32, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(32, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(32, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(33, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(33, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(33, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(33, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(33, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(33, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(33, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(33, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(34, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(34, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(35, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(35, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(36, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(36, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(36, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(36, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(37, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(37, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(37, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(37, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(37, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(37, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(37, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(37, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(38, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(38, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(38, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(38, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(38, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(38, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(39, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(39, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(39, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(40, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(40, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(40, 38) Source(4, 48) + SourceIndex(5) -4 >Emitted(40, 40) Source(4, 9) + SourceIndex(5) -5 >Emitted(40, 48) Source(4, 10) + SourceIndex(5) -6 >Emitted(40, 50) Source(4, 12) + SourceIndex(5) -7 >Emitted(40, 74) Source(4, 48) + SourceIndex(5) -8 >Emitted(40, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(41, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(41, 2) Source(5, 2) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 652, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 502, - "end": 652, - "kind": "text" - } - ] - }, - { - "pos": 652, - "end": 1056, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 652, - "end": 1056, - "kind": "text" - } - ] - }, - { - "pos": 1056, - "end": 1209, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 361, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 361, - "kind": "text" - } - ] - }, - { - "pos": 361, - "end": 431, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (502-652):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (502-652) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (652-1056):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (652-1056) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1056-1209) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-361) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (361-431) -declare var c: C; -declare function forthirdthird_part1Rest(): void; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js deleted file mode 100644 index 374744c3500..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js +++ /dev/null @@ -1,1570 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 729, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (502-729) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(23, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(24, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(26, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(28, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(28, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(28, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(29, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(29, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(29, 38) Source(13, 48) + SourceIndex(3) -4 >Emitted(29, 40) Source(13, 9) + SourceIndex(3) -5 >Emitted(29, 48) Source(13, 10) + SourceIndex(3) -6 >Emitted(29, 50) Source(13, 12) + SourceIndex(3) -7 >Emitted(29, 74) Source(13, 48) + SourceIndex(3) -8 >Emitted(29, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(30, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(30, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(31, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(32, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(33, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(34, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(34, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(34, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(35, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(35, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(35, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(35, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(35, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(35, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(35, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(35, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(36, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(37, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(38, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(39, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(39, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(39, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(39, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(39, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(39, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(39, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(39, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(40, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(40, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(40, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(40, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(40, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(40, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 729, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 502, - "end": 729, - "kind": "text" - } - ] - }, - { - "pos": 729, - "end": 1133, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 729, - "end": 1133, - "kind": "text" - } - ] - }, - { - "pos": 1133, - "end": 1169, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 361, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 361, - "kind": "text" - } - ] - }, - { - "pos": 361, - "end": 380, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (502-729):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (502-729) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (729-1133):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (729-1133) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1133-1169) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-361) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (361-380) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js deleted file mode 100644 index 8e8099d954e..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,2250 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>declare function firstfirst_part3Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(2) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(2) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(2) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(2) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(2) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(2) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(2) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(21, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(21, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(21, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(21, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(22, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(22, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(22, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(22, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(22, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(22, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(22, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(23, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(23, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(23, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(23, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(23, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(24, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(24, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(24, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(24, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(24, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(25, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(25, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(25, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(26, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(26, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(26, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(26, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(27, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(27, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -1->Emitted(28, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(28, 32) Source(4, 32) + SourceIndex(2) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(29, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(29, 16) Source(4, 47) + SourceIndex(2) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(30, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(30, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(30, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(30, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(30, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(30, 49) Source(4, 47) + SourceIndex(2) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(31, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(31, 31) Source(4, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(33, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(33, 2) Source(4, 52) + SourceIndex(2) ---- ->>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >firstfirst_part3Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(34, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(34, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(34, 47) Source(5, 27) + SourceIndex(2) -4 >Emitted(34, 48) Source(5, 28) + SourceIndex(2) -5 >Emitted(34, 50) Source(5, 30) + SourceIndex(2) -6 >Emitted(34, 52) Source(5, 32) + SourceIndex(2) -7 >Emitted(34, 54) Source(5, 34) + SourceIndex(2) -8 >Emitted(34, 56) Source(5, 36) + SourceIndex(2) -9 >Emitted(34, 58) Source(5, 38) + SourceIndex(2) -10>Emitted(34, 59) Source(5, 39) + SourceIndex(2) -11>Emitted(34, 62) Source(5, 41) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1040, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:read", - "typescript:spread" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 272, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -text: (678-1040) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-272) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { } - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACHnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACNrD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- ->>>declare function firstfirst_part3Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(1) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(1) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(1) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(1) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(1) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(1) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(1) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(11, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(12, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(13, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(13, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(13, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(13, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(14, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(15, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(15, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(15, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(15, 52) Source(14, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(16, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(16, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(17, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) ---- ->>>declare function secondsecond_part2Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part2Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(19, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(19, 18) Source(7, 10) + SourceIndex(3) -3 >Emitted(19, 42) Source(7, 34) + SourceIndex(3) -4 >Emitted(19, 43) Source(7, 35) + SourceIndex(3) -5 >Emitted(19, 46) Source(7, 38) + SourceIndex(3) -6 >Emitted(19, 49) Source(7, 41) + SourceIndex(3) -7 >Emitted(19, 55) Source(7, 47) + SourceIndex(3) -8 >Emitted(19, 57) Source(7, 49) + SourceIndex(3) -9 >Emitted(19, 65) Source(7, 54) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1 > -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1 >Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>declare function forthirdthird_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^^^^-> -1-> - >c.doSomething(); - > -2 >function -3 > forthirdthird_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(21, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(21, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(21, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(21, 50) Source(5, 2) + SourceIndex(4) ---- ->>>declare function thirdthird_part1Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > thirdthird_part1Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(22, 1) Source(6, 1) + SourceIndex(4) -2 >Emitted(22, 18) Source(6, 10) + SourceIndex(4) -3 >Emitted(22, 40) Source(6, 32) + SourceIndex(4) -4 >Emitted(22, 41) Source(6, 33) + SourceIndex(4) -5 >Emitted(22, 44) Source(6, 36) + SourceIndex(4) -6 >Emitted(22, 47) Source(6, 39) + SourceIndex(4) -7 >Emitted(22, 53) Source(6, 45) + SourceIndex(4) -8 >Emitted(22, 55) Source(6, 47) + SourceIndex(4) -9 >Emitted(22, 63) Source(6, 52) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -function thirdthird_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACP1C,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(34, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(34, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(35, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(35, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(35, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(35, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(35, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(35, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(35, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(35, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(35, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(36, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(36, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(36, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(37, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(37, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(37, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(37, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(38, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(38, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -1->Emitted(39, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(39, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(39, 32) Source(4, 32) + SourceIndex(2) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(40, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(40, 16) Source(4, 47) + SourceIndex(2) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(41, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(41, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(41, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(41, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(41, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(41, 49) Source(4, 47) + SourceIndex(2) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(42, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(42, 31) Source(4, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(44, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(44, 2) Source(4, 52) + SourceIndex(2) ---- ->>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >firstfirst_part3Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(45, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(45, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(45, 47) Source(5, 27) + SourceIndex(2) -4 >Emitted(45, 48) Source(5, 28) + SourceIndex(2) -5 >Emitted(45, 50) Source(5, 30) + SourceIndex(2) -6 >Emitted(45, 52) Source(5, 32) + SourceIndex(2) -7 >Emitted(45, 54) Source(5, 34) + SourceIndex(2) -8 >Emitted(45, 56) Source(5, 36) + SourceIndex(2) -9 >Emitted(45, 58) Source(5, 38) + SourceIndex(2) -10>Emitted(45, 59) Source(5, 39) + SourceIndex(2) -11>Emitted(45, 62) Source(5, 41) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(46, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(46, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(46, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(46, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(47, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(47, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(47, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(48, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(48, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(48, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(49, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(49, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(49, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(49, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(49, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(49, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(49, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(49, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(50, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(50, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(51, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(51, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(51, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(51, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(52, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(52, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(52, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(52, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(52, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(52, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(52, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(53, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(53, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(53, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(54, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(54, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(54, 38) Source(13, 48) + SourceIndex(3) -4 >Emitted(54, 40) Source(13, 9) + SourceIndex(3) -5 >Emitted(54, 48) Source(13, 10) + SourceIndex(3) -6 >Emitted(54, 50) Source(13, 12) + SourceIndex(3) -7 >Emitted(54, 74) Source(13, 48) + SourceIndex(3) -8 >Emitted(54, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(55, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(55, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(56, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(57, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(58, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(58, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(59, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(59, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(59, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(60, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(60, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(60, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(60, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(60, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(60, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(60, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(60, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(61, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(61, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(62, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(62, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(63, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(63, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(63, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(63, 6) Source(5, 2) + SourceIndex(4) ---- ->>>function secondsecond_part2Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part2Spread -1->Emitted(64, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(64, 10) Source(7, 10) + SourceIndex(4) -3 >Emitted(64, 34) Source(7, 34) + SourceIndex(4) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(65, 5) Source(7, 35) + SourceIndex(4) -2 >Emitted(65, 16) Source(7, 49) + SourceIndex(4) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(66, 10) Source(7, 35) + SourceIndex(4) -2 >Emitted(66, 20) Source(7, 49) + SourceIndex(4) -3 >Emitted(66, 22) Source(7, 35) + SourceIndex(4) -4 >Emitted(66, 43) Source(7, 49) + SourceIndex(4) -5 >Emitted(66, 45) Source(7, 35) + SourceIndex(4) -6 >Emitted(66, 49) Source(7, 49) + SourceIndex(4) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(67, 9) Source(7, 35) + SourceIndex(4) -2 >Emitted(67, 31) Source(7, 49) + SourceIndex(4) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(69, 1) Source(7, 53) + SourceIndex(4) -2 >Emitted(69, 2) Source(7, 54) + SourceIndex(4) ---- ->>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >secondsecond_part2Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(70, 1) Source(8, 1) + SourceIndex(4) -2 >Emitted(70, 25) Source(8, 25) + SourceIndex(4) -3 >Emitted(70, 49) Source(8, 29) + SourceIndex(4) -4 >Emitted(70, 50) Source(8, 30) + SourceIndex(4) -5 >Emitted(70, 52) Source(8, 32) + SourceIndex(4) -6 >Emitted(70, 54) Source(8, 34) + SourceIndex(4) -7 >Emitted(70, 56) Source(8, 36) + SourceIndex(4) -8 >Emitted(70, 58) Source(8, 38) + SourceIndex(4) -9 >Emitted(70, 60) Source(8, 40) + SourceIndex(4) -10>Emitted(70, 61) Source(8, 41) + SourceIndex(4) -11>Emitted(70, 64) Source(8, 43) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1 > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1 >Emitted(71, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(71, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(71, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(71, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(71, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(71, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(71, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(71, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(72, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(72, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(72, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(72, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(72, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(72, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(73, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(73, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(73, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(74, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(74, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(74, 38) Source(4, 48) + SourceIndex(5) -4 >Emitted(74, 40) Source(4, 9) + SourceIndex(5) -5 >Emitted(74, 48) Source(4, 10) + SourceIndex(5) -6 >Emitted(74, 50) Source(4, 12) + SourceIndex(5) -7 >Emitted(74, 74) Source(4, 48) + SourceIndex(5) -8 >Emitted(74, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(75, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(75, 2) Source(5, 2) + SourceIndex(5) ---- ->>>function thirdthird_part1Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > thirdthird_part1Spread -1->Emitted(76, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(76, 10) Source(6, 10) + SourceIndex(5) -3 >Emitted(76, 32) Source(6, 32) + SourceIndex(5) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(77, 5) Source(6, 33) + SourceIndex(5) -2 >Emitted(77, 16) Source(6, 47) + SourceIndex(5) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(78, 10) Source(6, 33) + SourceIndex(5) -2 >Emitted(78, 20) Source(6, 47) + SourceIndex(5) -3 >Emitted(78, 22) Source(6, 33) + SourceIndex(5) -4 >Emitted(78, 43) Source(6, 47) + SourceIndex(5) -5 >Emitted(78, 45) Source(6, 33) + SourceIndex(5) -6 >Emitted(78, 49) Source(6, 47) + SourceIndex(5) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(79, 9) Source(6, 33) + SourceIndex(5) -2 >Emitted(79, 31) Source(6, 47) + SourceIndex(5) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(81, 1) Source(6, 51) + SourceIndex(5) -2 >Emitted(81, 2) Source(6, 52) + SourceIndex(5) ---- ->>>thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >thirdthird_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(82, 1) Source(7, 1) + SourceIndex(5) -2 >Emitted(82, 23) Source(7, 23) + SourceIndex(5) -3 >Emitted(82, 47) Source(7, 27) + SourceIndex(5) -4 >Emitted(82, 48) Source(7, 28) + SourceIndex(5) -5 >Emitted(82, 50) Source(7, 30) + SourceIndex(5) -6 >Emitted(82, 52) Source(7, 32) + SourceIndex(5) -7 >Emitted(82, 54) Source(7, 34) + SourceIndex(5) -8 >Emitted(82, 56) Source(7, 36) + SourceIndex(5) -9 >Emitted(82, 58) Source(7, 38) + SourceIndex(5) -10>Emitted(82, 59) Source(7, 39) + SourceIndex(5) -11>Emitted(82, 62) Source(7, 41) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 1180, - "end": 1542, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 1180, - "end": 1542, - "kind": "text" - } - ] - }, - { - "pos": 1542, - "end": 2162, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 1542, - "end": 2162, - "kind": "text" - } - ] - }, - { - "pos": 2162, - "end": 2527, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 272, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 272, - "kind": "text" - } - ] - }, - { - "pos": 272, - "end": 491, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 272, - "end": 491, - "kind": "text" - } - ] - }, - { - "pos": 491, - "end": 625, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (1180-1542):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1180-1542) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); - ----------------------------------------------------------------------- -prepend: (1542-2162):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1542-2162) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); - ----------------------------------------------------------------------- -text: (2162-2527) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -function thirdthird_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-272):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-272) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; - ----------------------------------------------------------------------- -prepend: (272-491):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (272-491) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare function secondsecond_part2Spread(...b: number[]): void; - ----------------------------------------------------------------------- -text: (491-625) -declare var c: C; -declare function forthirdthird_part1Rest(): void; -declare function thirdthird_part1Spread(...b: number[]): void; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js deleted file mode 100644 index 007758d42c4..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js +++ /dev/null @@ -1,1670 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 150, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-150) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { } - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACZrD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function secondsecond_part1Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part1Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(14, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(14, 18) Source(13, 10) + SourceIndex(2) -3 >Emitted(14, 42) Source(13, 34) + SourceIndex(2) -4 >Emitted(14, 43) Source(13, 35) + SourceIndex(2) -5 >Emitted(14, 46) Source(13, 38) + SourceIndex(2) -6 >Emitted(14, 49) Source(13, 41) + SourceIndex(2) -7 >Emitted(14, 55) Source(13, 47) + SourceIndex(2) -8 >Emitted(14, 57) Source(13, 49) + SourceIndex(2) -9 >Emitted(14, 65) Source(13, 54) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) ---- ->>>declare function forthirdthird_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - >c.doSomething(); - > -2 >function -3 > forthirdthird_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(34, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(34, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(35, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(35, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(35, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(35, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(35, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(35, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(35, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(35, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(35, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(36, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(36, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(36, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(37, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(37, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(37, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(37, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(38, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(38, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(39, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(39, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(39, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(39, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(40, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(40, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(40, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(41, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(41, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(41, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(42, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(42, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(42, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(42, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(42, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(42, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(42, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(42, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(43, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(43, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(44, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(44, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(44, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(44, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(45, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(45, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(45, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(45, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(45, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(45, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(45, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function secondsecond_part1Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part1Spread -1->Emitted(46, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(46, 10) Source(13, 10) + SourceIndex(3) -3 >Emitted(46, 34) Source(13, 34) + SourceIndex(3) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(47, 5) Source(13, 35) + SourceIndex(3) -2 >Emitted(47, 16) Source(13, 49) + SourceIndex(3) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(48, 10) Source(13, 35) + SourceIndex(3) -2 >Emitted(48, 20) Source(13, 49) + SourceIndex(3) -3 >Emitted(48, 22) Source(13, 35) + SourceIndex(3) -4 >Emitted(48, 43) Source(13, 49) + SourceIndex(3) -5 >Emitted(48, 45) Source(13, 35) + SourceIndex(3) -6 >Emitted(48, 49) Source(13, 49) + SourceIndex(3) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(49, 9) Source(13, 35) + SourceIndex(3) -2 >Emitted(49, 31) Source(13, 49) + SourceIndex(3) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(51, 1) Source(13, 53) + SourceIndex(3) -2 >Emitted(51, 2) Source(13, 54) + SourceIndex(3) ---- ->>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >secondsecond_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(52, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(52, 25) Source(14, 25) + SourceIndex(3) -3 >Emitted(52, 49) Source(14, 29) + SourceIndex(3) -4 >Emitted(52, 50) Source(14, 30) + SourceIndex(3) -5 >Emitted(52, 52) Source(14, 32) + SourceIndex(3) -6 >Emitted(52, 54) Source(14, 34) + SourceIndex(3) -7 >Emitted(52, 56) Source(14, 36) + SourceIndex(3) -8 >Emitted(52, 58) Source(14, 38) + SourceIndex(3) -9 >Emitted(52, 60) Source(14, 40) + SourceIndex(3) -10>Emitted(52, 61) Source(14, 41) + SourceIndex(3) -11>Emitted(52, 64) Source(14, 43) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(53, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(54, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(55, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(55, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(56, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(56, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(56, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(57, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(57, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(57, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(57, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(57, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(57, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(57, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(57, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(58, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(58, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(59, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(59, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(60, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(60, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(60, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(60, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(61, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(61, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(61, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(61, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(61, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(61, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(61, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(61, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(62, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(62, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(62, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(62, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(62, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(62, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(63, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(63, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(63, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(64, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(64, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(64, 38) Source(4, 48) + SourceIndex(5) -4 >Emitted(64, 40) Source(4, 9) + SourceIndex(5) -5 >Emitted(64, 48) Source(4, 10) + SourceIndex(5) -6 >Emitted(64, 50) Source(4, 12) + SourceIndex(5) -7 >Emitted(64, 74) Source(4, 48) + SourceIndex(5) -8 >Emitted(64, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(65, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(65, 2) Source(5, 2) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 1180, - "end": 1330, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 1180, - "end": 1330, - "kind": "text" - } - ] - }, - { - "pos": 1330, - "end": 1831, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 1330, - "end": 1831, - "kind": "text" - } - ] - }, - { - "pos": 1831, - "end": 1984, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 374, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 374, - "kind": "text" - } - ] - }, - { - "pos": 374, - "end": 444, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (1180-1330):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1180-1330) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (1330-1831):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1330-1831) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1831-1984) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-374):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-374) -declare namespace N { -} -declare namespace N { -} -declare function secondsecond_part1Spread(...b: number[]): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (374-444) -declare var c: C; -declare function forthirdthird_part1Rest(): void; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js deleted file mode 100644 index 0ba862758a7..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,1534 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:12:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:12:00 PM - Building project '/src/first/tsconfig.json'... - -4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue5" - >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(3, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(3, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(4, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(4, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(4, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(4, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(7, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(7, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(7, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(7, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(7, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(9, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(9, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(10, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(10, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(10, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue5"; -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue5"; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -1 > -2 >"myPrologue5" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) ---- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^-> -1 > - > -2 >"myPrologue" -3 > -1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) -3 >Emitted(3, 14) Source(2, 13) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(7, 7) + SourceIndex(0) -3 >Emitted(4, 6) Source(7, 8) + SourceIndex(0) -4 >Emitted(4, 9) Source(7, 11) + SourceIndex(0) -5 >Emitted(4, 23) Source(7, 25) + SourceIndex(0) -6 >Emitted(4, 24) Source(7, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(9, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 29, - "kind": "prologue", - "data": "myPrologue5" - }, - { - "pos": 31, - "end": 44, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 46, - "end": 156, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue5\"\n\"myPrologue\"", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 13, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue5" - } - }, - { - "pos": 13, - "end": 26, - "expression": { - "pos": 13, - "end": 26, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-29):: myPrologue5 -"myPrologue5"; ----------------------------------------------------------------------- -prologue: (31-44):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (46-156) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -"myPrologue5" -"myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACVD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue5" - >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(3, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(3, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(4, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(4, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(4, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(4, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(7, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(7, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(7, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(7, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(7, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(9, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(9, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(10, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(10, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(10, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >"myPrologue" - > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1->"myPrologue2"; - > -2 >class -3 > C -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue3"; - >"myPrologue"; - > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(3, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(3, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(3, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(3, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(3, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue5"; -"myPrologue"; -"myPrologue2"; -"myPrologue3"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;ACDZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFMd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue5"; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -1 > -2 >"myPrologue5" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) ---- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > - > -2 >"myPrologue" -3 > -1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) -3 >Emitted(3, 14) Source(2, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(4, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >"myPrologue3" -3 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 14) Source(1, 14) + SourceIndex(2) -3 >Emitted(5, 15) Source(1, 15) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1->"myPrologue5" - >"myPrologue" - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(6, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(6, 5) Source(7, 7) + SourceIndex(0) -3 >Emitted(6, 6) Source(7, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(7, 11) + SourceIndex(0) -5 >Emitted(6, 23) Source(7, 25) + SourceIndex(0) -6 >Emitted(6, 24) Source(7, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(7, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(7, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(7, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(7, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(7, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(7, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(7, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(7, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(8, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(8, 8) Source(1, 8) + SourceIndex(3) -3 >Emitted(8, 9) Source(1, 9) + SourceIndex(3) -4 >Emitted(8, 12) Source(1, 12) + SourceIndex(3) -5 >Emitted(8, 13) Source(1, 13) + SourceIndex(3) -6 >Emitted(8, 14) Source(1, 14) + SourceIndex(3) -7 >Emitted(8, 16) Source(1, 16) + SourceIndex(3) -8 >Emitted(8, 17) Source(1, 17) + SourceIndex(3) -9 >Emitted(8, 18) Source(1, 18) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(9, 10) Source(1, 10) + SourceIndex(4) -3 >Emitted(9, 11) Source(1, 11) + SourceIndex(4) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(10, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(10, 12) Source(2, 12) + SourceIndex(4) -3 >Emitted(10, 28) Source(2, 28) + SourceIndex(4) -4 >Emitted(10, 29) Source(2, 29) + SourceIndex(4) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(11, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(11, 2) Source(3, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(12, 5) Source(6, 11) + SourceIndex(5) -3 >Emitted(12, 6) Source(6, 12) + SourceIndex(5) -4 >Emitted(12, 7) Source(12, 2) + SourceIndex(5) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(13, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(13, 12) Source(6, 11) + SourceIndex(5) -3 >Emitted(13, 13) Source(6, 12) + SourceIndex(5) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(14, 5) Source(7, 5) + SourceIndex(5) -2 >Emitted(14, 14) Source(7, 14) + SourceIndex(5) -3 >Emitted(14, 15) Source(7, 15) + SourceIndex(5) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(15, 9) Source(8, 9) + SourceIndex(5) -2 >Emitted(15, 16) Source(8, 16) + SourceIndex(5) -3 >Emitted(15, 17) Source(8, 17) + SourceIndex(5) -4 >Emitted(15, 20) Source(8, 20) + SourceIndex(5) -5 >Emitted(15, 21) Source(8, 21) + SourceIndex(5) -6 >Emitted(15, 30) Source(8, 30) + SourceIndex(5) -7 >Emitted(15, 31) Source(8, 31) + SourceIndex(5) -8 >Emitted(15, 32) Source(8, 32) + SourceIndex(5) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(16, 5) Source(9, 5) + SourceIndex(5) -2 >Emitted(16, 6) Source(9, 6) + SourceIndex(5) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(17, 5) Source(11, 5) + SourceIndex(5) -2 >Emitted(17, 6) Source(11, 6) + SourceIndex(5) -3 >Emitted(17, 8) Source(11, 8) + SourceIndex(5) -4 >Emitted(17, 9) Source(11, 9) + SourceIndex(5) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(18, 1) Source(12, 1) + SourceIndex(5) -2 >Emitted(18, 2) Source(12, 2) + SourceIndex(5) -3 >Emitted(18, 4) Source(6, 11) + SourceIndex(5) -4 >Emitted(18, 5) Source(6, 12) + SourceIndex(5) -5 >Emitted(18, 10) Source(6, 11) + SourceIndex(5) -6 >Emitted(18, 11) Source(6, 12) + SourceIndex(5) -7 >Emitted(18, 19) Source(12, 2) + SourceIndex(5) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(19, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(20, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(21, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(21, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(22, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(22, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(22, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(23, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(23, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(23, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(23, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(23, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(23, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(23, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(23, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(24, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(24, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(25, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(26, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1->"myPrologue3"; - >"myPrologue"; - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(27, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(27, 6) Source(3, 6) + SourceIndex(2) -4 >Emitted(27, 9) Source(3, 9) + SourceIndex(2) -5 >Emitted(27, 13) Source(3, 13) + SourceIndex(2) -6 >Emitted(27, 14) Source(3, 14) + SourceIndex(2) -7 >Emitted(27, 16) Source(3, 16) + SourceIndex(2) -8 >Emitted(27, 17) Source(3, 17) + SourceIndex(2) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(28, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(28, 2) Source(4, 2) + SourceIndex(2) -3 >Emitted(28, 3) Source(4, 3) + SourceIndex(2) -4 >Emitted(28, 14) Source(4, 14) + SourceIndex(2) -5 >Emitted(28, 16) Source(4, 16) + SourceIndex(2) -6 >Emitted(28, 17) Source(4, 17) + SourceIndex(2) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 29, - "kind": "prologue", - "data": "myPrologue5" - }, - { - "pos": 31, - "end": 44, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 62, - "end": 76, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 78, - "end": 188, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 78, - "end": 188, - "kind": "text" - } - ] - }, - { - "pos": 188, - "end": 473, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 188, - "end": 473, - "kind": "text" - } - ] - }, - { - "pos": 473, - "end": 509, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue3\";\n\"myPrologue\";", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 14, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - }, - { - "pos": 14, - "end": 28, - "expression": { - "pos": 14, - "end": 27, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-29):: myPrologue5 -"myPrologue5"; ----------------------------------------------------------------------- -prologue: (31-44):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prologue: (62-76):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -prepend: (78-188):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (78-188) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (188-473):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (188-473) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (473-509) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js deleted file mode 100644 index 63d64eb0a11..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js +++ /dev/null @@ -1,1432 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue5" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue5"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;AAKb,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue5"; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >"myPrologue5" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 29, - "kind": "prologue", - "data": "myPrologue5" - }, - { - "pos": 31, - "end": 141, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue5\"", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 13, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue5" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-29):: myPrologue5 -"myPrologue5"; ----------------------------------------------------------------------- -text: (31-141) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -"myPrologue5" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue5" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >"myPrologue" - > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1->"myPrologue2"; - > -2 >class -3 > C -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue5"; -"myPrologue"; -"myPrologue2"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;ACAb,YAAY,CAAA;ACAZ,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AHGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AGLD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue5"; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -1 > -2 >"myPrologue5" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -3 >Emitted(3, 14) Source(1, 13) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) -3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1->"myPrologue5" - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(5, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) -3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) -4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) -5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) -6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) -7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) -8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) -9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) -3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) -3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) -4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(11, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(6, 11) + SourceIndex(1) -3 >Emitted(11, 6) Source(6, 12) + SourceIndex(1) -4 >Emitted(11, 7) Source(12, 2) + SourceIndex(1) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(12, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(12, 12) Source(6, 11) + SourceIndex(1) -3 >Emitted(12, 13) Source(6, 12) + SourceIndex(1) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(13, 5) Source(7, 5) + SourceIndex(1) -2 >Emitted(13, 14) Source(7, 14) + SourceIndex(1) -3 >Emitted(13, 15) Source(7, 15) + SourceIndex(1) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(14, 9) Source(8, 9) + SourceIndex(1) -2 >Emitted(14, 16) Source(8, 16) + SourceIndex(1) -3 >Emitted(14, 17) Source(8, 17) + SourceIndex(1) -4 >Emitted(14, 20) Source(8, 20) + SourceIndex(1) -5 >Emitted(14, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(14, 30) Source(8, 30) + SourceIndex(1) -7 >Emitted(14, 31) Source(8, 31) + SourceIndex(1) -8 >Emitted(14, 32) Source(8, 32) + SourceIndex(1) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(15, 5) Source(9, 5) + SourceIndex(1) -2 >Emitted(15, 6) Source(9, 6) + SourceIndex(1) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(16, 5) Source(11, 5) + SourceIndex(1) -2 >Emitted(16, 6) Source(11, 6) + SourceIndex(1) -3 >Emitted(16, 8) Source(11, 8) + SourceIndex(1) -4 >Emitted(16, 9) Source(11, 9) + SourceIndex(1) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(17, 1) Source(12, 1) + SourceIndex(1) -2 >Emitted(17, 2) Source(12, 2) + SourceIndex(1) -3 >Emitted(17, 4) Source(6, 11) + SourceIndex(1) -4 >Emitted(17, 5) Source(6, 12) + SourceIndex(1) -5 >Emitted(17, 10) Source(6, 11) + SourceIndex(1) -6 >Emitted(17, 11) Source(6, 12) + SourceIndex(1) -7 >Emitted(17, 19) Source(12, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(18, 1) Source(2, 1) + SourceIndex(2) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(19, 5) Source(2, 1) + SourceIndex(2) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(20, 5) Source(6, 1) + SourceIndex(2) -2 >Emitted(20, 6) Source(6, 2) + SourceIndex(2) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(21, 5) Source(3, 5) + SourceIndex(2) -2 >Emitted(21, 28) Source(3, 16) + SourceIndex(2) -3 >Emitted(21, 31) Source(3, 5) + SourceIndex(2) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(22, 9) Source(4, 9) + SourceIndex(2) -2 >Emitted(22, 16) Source(4, 16) + SourceIndex(2) -3 >Emitted(22, 17) Source(4, 17) + SourceIndex(2) -4 >Emitted(22, 20) Source(4, 20) + SourceIndex(2) -5 >Emitted(22, 21) Source(4, 21) + SourceIndex(2) -6 >Emitted(22, 41) Source(4, 41) + SourceIndex(2) -7 >Emitted(22, 42) Source(4, 42) + SourceIndex(2) -8 >Emitted(22, 43) Source(4, 43) + SourceIndex(2) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(23, 5) Source(5, 5) + SourceIndex(2) -2 >Emitted(23, 6) Source(5, 6) + SourceIndex(2) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(24, 5) Source(6, 1) + SourceIndex(2) -2 >Emitted(24, 13) Source(6, 2) + SourceIndex(2) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(25, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(25, 2) Source(6, 2) + SourceIndex(2) -3 >Emitted(25, 2) Source(2, 1) + SourceIndex(2) -4 >Emitted(25, 6) Source(6, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(26, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(26, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(26, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(26, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(26, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(26, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(26, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(26, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(27, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(27, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(27, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(27, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(27, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(27, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 29, - "kind": "prologue", - "data": "myPrologue5" - }, - { - "pos": 31, - "end": 44, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 62, - "end": 172, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 62, - "end": 172, - "kind": "text" - } - ] - }, - { - "pos": 172, - "end": 457, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 172, - "end": 457, - "kind": "text" - } - ] - }, - { - "pos": 457, - "end": 493, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-29):: myPrologue5 -"myPrologue5"; ----------------------------------------------------------------------- -prologue: (31-44):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prepend: (62-172):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (62-172) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (172-457):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (172-457) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (457-493) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js deleted file mode 100644 index 76ac6adeb78..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js +++ /dev/null @@ -1,1395 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:12:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:12:00 PM - Building project '/src/first/tsconfig.json'... - -4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 140, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue\"", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 12, - "expression": { - "pos": 0, - "end": 12, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (30-140) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -"myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 140, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 30, - "end": 140, - "kind": "text" - } - ] - }, - { - "pos": 140, - "end": 425, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 140, - "end": 425, - "kind": "text" - } - ] - }, - { - "pos": 425, - "end": 461, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prepend: (30-140):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (30-140) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (140-425):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (140-425) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (425-461) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js deleted file mode 100644 index 41468039ec8..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js +++ /dev/null @@ -1,1334 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 15, - "end": 125, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue\"", - "directives": [ - { - "pos": 0, - "end": 12, - "expression": { - "pos": 0, - "end": 12, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (15-125) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -"myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"myPrologue"; -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) ---- ->>>"use strict"; ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 30, - "end": 140, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 30, - "end": 140, - "kind": "text" - } - ] - }, - { - "pos": 140, - "end": 425, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 140, - "end": 425, - "kind": "text" - } - ] - }, - { - "pos": 425, - "end": 461, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (15-28):: use strict -"use strict"; ----------------------------------------------------------------------- -prepend: (30-140):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (30-140) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (140-425):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (140-425) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (425-461) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index 0c29565e910..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,1985 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/second/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(15, 5) Source(15, 20) + SourceIndex(2) -2 >Emitted(15, 9) Source(15, 24) + SourceIndex(2) -3 >Emitted(15, 11) Source(15, 26) + SourceIndex(2) -4 >Emitted(15, 17) Source(15, 32) + SourceIndex(2) -5 >Emitted(15, 18) Source(15, 33) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /**@internal*/ -2 > method -1->Emitted(16, 5) Source(16, 20) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 26) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /**@internal*/ get -2 > c -3 > () { return 10; } - > /**@internal*/ set c(val: -4 > number -1->Emitted(17, 5) Source(17, 24) + SourceIndex(2) -2 >Emitted(17, 6) Source(17, 25) + SourceIndex(2) -3 >Emitted(17, 8) Source(18, 31) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 37) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /**@internal*/ -2 > export class -3 > C -1 >Emitted(20, 5) Source(21, 20) + SourceIndex(2) -2 >Emitted(20, 11) Source(21, 33) + SourceIndex(2) -3 >Emitted(20, 12) Source(21, 34) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(21, 6) Source(21, 38) + SourceIndex(2) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(22, 5) Source(22, 20) + SourceIndex(2) -2 >Emitted(22, 14) Source(22, 36) + SourceIndex(2) -3 >Emitted(22, 17) Source(22, 39) + SourceIndex(2) -4 >Emitted(22, 26) Source(22, 44) + SourceIndex(2) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(23, 5) Source(23, 20) + SourceIndex(2) -2 >Emitted(23, 15) Source(23, 37) + SourceIndex(2) -3 >Emitted(23, 28) Source(23, 50) + SourceIndex(2) -4 >Emitted(23, 29) Source(23, 51) + SourceIndex(2) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(24, 9) Source(23, 53) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 66) + SourceIndex(2) -3 >Emitted(24, 16) Source(23, 67) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(25, 10) Source(23, 70) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(26, 6) Source(23, 72) + SourceIndex(2) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /**@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(27, 5) Source(24, 20) + SourceIndex(2) -2 >Emitted(27, 15) Source(24, 37) + SourceIndex(2) -3 >Emitted(27, 24) Source(24, 46) + SourceIndex(2) -4 >Emitted(27, 25) Source(24, 47) + SourceIndex(2) -5 >Emitted(27, 34) Source(24, 56) + SourceIndex(2) -6 >Emitted(27, 35) Source(24, 57) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(28, 9) Source(24, 59) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 72) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 81) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(29, 10) Source(24, 84) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(30, 6) Source(24, 86) + SourceIndex(2) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /**@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(31, 5) Source(25, 20) + SourceIndex(2) -2 >Emitted(31, 11) Source(25, 26) + SourceIndex(2) -3 >Emitted(31, 19) Source(25, 34) + SourceIndex(2) -4 >Emitted(31, 29) Source(25, 44) + SourceIndex(2) -5 >Emitted(31, 32) Source(25, 47) + SourceIndex(2) -6 >Emitted(31, 45) Source(25, 60) + SourceIndex(2) -7 >Emitted(31, 46) Source(25, 61) + SourceIndex(2) -8 >Emitted(31, 47) Source(25, 62) + SourceIndex(2) -9 >Emitted(31, 48) Source(25, 63) + SourceIndex(2) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /**@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(32, 5) Source(26, 20) + SourceIndex(2) -2 >Emitted(32, 10) Source(26, 32) + SourceIndex(2) -3 >Emitted(32, 22) Source(26, 44) + SourceIndex(2) -4 >Emitted(32, 25) Source(26, 47) + SourceIndex(2) -5 >Emitted(32, 34) Source(26, 56) + SourceIndex(2) -6 >Emitted(32, 35) Source(26, 57) + SourceIndex(2) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /**@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(33, 5) Source(27, 27) + SourceIndex(2) -2 >Emitted(33, 11) Source(27, 33) + SourceIndex(2) -3 >Emitted(33, 24) Source(27, 46) + SourceIndex(2) -4 >Emitted(33, 29) Source(27, 51) + SourceIndex(2) -5 >Emitted(33, 30) Source(27, 52) + SourceIndex(2) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(34, 5) Source(28, 20) + SourceIndex(2) -2 >Emitted(34, 10) Source(28, 32) + SourceIndex(2) -3 >Emitted(34, 22) Source(28, 44) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(35, 9) Source(28, 47) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 48) + SourceIndex(2) -3 >Emitted(35, 14) Source(28, 48) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(36, 9) Source(28, 50) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 51) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 51) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(37, 9) Source(28, 53) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 54) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 54) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(38, 6) Source(28, 56) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/**@internal*/ -2 >class -3 > internalC -1->Emitted(40, 1) Source(30, 16) + SourceIndex(2) -2 >Emitted(40, 15) Source(30, 22) + SourceIndex(2) -3 >Emitted(40, 24) Source(30, 31) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(41, 2) Source(30, 34) + SourceIndex(2) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(42, 1) Source(31, 16) + SourceIndex(2) -2 >Emitted(42, 18) Source(31, 25) + SourceIndex(2) -3 >Emitted(42, 29) Source(31, 36) + SourceIndex(2) -4 >Emitted(42, 38) Source(31, 41) + SourceIndex(2) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(43, 1) Source(32, 16) + SourceIndex(2) -2 >Emitted(43, 19) Source(32, 26) + SourceIndex(2) -3 >Emitted(43, 36) Source(32, 43) + SourceIndex(2) -4 >Emitted(43, 37) Source(32, 44) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(44, 5) Source(32, 46) + SourceIndex(2) -2 >Emitted(44, 11) Source(32, 59) + SourceIndex(2) -3 >Emitted(44, 20) Source(32, 68) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(45, 6) Source(32, 71) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(46, 2) Source(32, 73) + SourceIndex(2) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/**@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(47, 1) Source(33, 16) + SourceIndex(2) -2 >Emitted(47, 19) Source(33, 26) + SourceIndex(2) -3 >Emitted(47, 32) Source(33, 39) + SourceIndex(2) -4 >Emitted(47, 33) Source(33, 40) + SourceIndex(2) -5 >Emitted(47, 42) Source(33, 49) + SourceIndex(2) -6 >Emitted(47, 43) Source(33, 50) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(48, 5) Source(33, 52) + SourceIndex(2) -2 >Emitted(48, 11) Source(33, 65) + SourceIndex(2) -3 >Emitted(48, 20) Source(33, 74) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(49, 6) Source(33, 77) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(50, 2) Source(33, 79) + SourceIndex(2) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(51, 1) Source(34, 16) + SourceIndex(2) -2 >Emitted(51, 8) Source(34, 23) + SourceIndex(2) -3 >Emitted(51, 22) Source(34, 37) + SourceIndex(2) -4 >Emitted(51, 25) Source(34, 40) + SourceIndex(2) -5 >Emitted(51, 42) Source(34, 57) + SourceIndex(2) -6 >Emitted(51, 43) Source(34, 58) + SourceIndex(2) -7 >Emitted(51, 52) Source(34, 67) + SourceIndex(2) -8 >Emitted(51, 53) Source(34, 68) + SourceIndex(2) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/**@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(52, 1) Source(35, 16) + SourceIndex(2) -2 >Emitted(52, 14) Source(35, 21) + SourceIndex(2) -3 >Emitted(52, 26) Source(35, 33) + SourceIndex(2) -4 >Emitted(52, 29) Source(35, 36) + SourceIndex(2) -5 >Emitted(52, 38) Source(35, 45) + SourceIndex(2) -6 >Emitted(52, 39) Source(35, 46) + SourceIndex(2) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/**@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(53, 1) Source(36, 16) + SourceIndex(2) -2 >Emitted(53, 9) Source(36, 16) + SourceIndex(2) -3 >Emitted(53, 15) Source(36, 22) + SourceIndex(2) -4 >Emitted(53, 28) Source(36, 35) + SourceIndex(2) -5 >Emitted(53, 33) Source(36, 40) + SourceIndex(2) -6 >Emitted(53, 34) Source(36, 41) + SourceIndex(2) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/**@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(54, 1) Source(37, 16) + SourceIndex(2) -2 >Emitted(54, 14) Source(37, 21) + SourceIndex(2) -3 >Emitted(54, 26) Source(37, 33) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(55, 5) Source(37, 36) + SourceIndex(2) -2 >Emitted(55, 6) Source(37, 37) + SourceIndex(2) -3 >Emitted(55, 10) Source(37, 37) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(56, 5) Source(37, 39) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 40) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 40) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(57, 5) Source(37, 42) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 43) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 43) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(58, 2) Source(37, 45) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3162, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 308, - "kind": "internal" - }, - { - "pos": 310, - "end": 342, - "kind": "text" - }, - { - "pos": 342, - "end": 734, - "kind": "internal" - }, - { - "pos": 736, - "end": 739, - "kind": "text" - }, - { - "pos": 739, - "end": 1152, - "kind": "internal" - }, - { - "pos": 1154, - "end": 1202, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (110-3162) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-308) - constructor(); - prop: string; - method(): void; - c: number; ----------------------------------------------------------------------- -text: (310-342) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (342-734) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (736-739) -} - ----------------------------------------------------------------------- -internal: (739-1152) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1154-1202) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] file written with same contents -//// [/src/first/bin/first-output.js.map] file written with same contents -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - >} -1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(16, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3162, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3162, - "kind": "text" - } - ] - }, - { - "pos": 3162, - "end": 3198, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 317, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 317, - "kind": "text" - } - ] - }, - { - "pos": 317, - "end": 336, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3162):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3162) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3162-3198) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-317):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-317) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (317-336) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js deleted file mode 100644 index 6062b244d25..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js +++ /dev/null @@ -1,943 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] file written with same contents -//// [/src/first/bin/first-output.js.map] file written with same contents -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - >} -1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(16, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3162, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 3162, - "kind": "text" - } - ] - }, - { - "pos": 3162, - "end": 3198, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 317, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 317, - "kind": "text" - } - ] - }, - { - "pos": 317, - "end": 336, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-3162):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-3162) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3162-3198) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-317):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-317) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (317-336) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index ce3ce9947b2..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,2007 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:12:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:12:00 PM - Building project '/src/first/tsconfig.json'... - -4:12:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:12:00 PM - Updating output of project '/src/second/tsconfig.json'... - -4:12:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 2, - "/src/2/second-output.js": 2, - "/src/2/second-output.js.map": 2, - "/src/2/second-output.d.ts": 2, - "/src/2/second-output.d.ts.map": 2, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1 -} - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(17, 5) Source(17, 23) + SourceIndex(2) -2 >Emitted(17, 6) Source(17, 24) + SourceIndex(2) -3 >Emitted(17, 8) Source(18, 30) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 36) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(20, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(20, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(20, 12) Source(21, 33) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(21, 6) Source(21, 37) + SourceIndex(2) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(22, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(22, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(22, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(22, 26) Source(22, 43) + SourceIndex(2) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(23, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(23, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(23, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(23, 29) Source(23, 50) + SourceIndex(2) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(24, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(24, 16) Source(23, 66) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(25, 10) Source(23, 69) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(26, 6) Source(23, 71) + SourceIndex(2) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(27, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(27, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(27, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(27, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(27, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(27, 35) Source(24, 56) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(28, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 80) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(29, 10) Source(24, 83) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(30, 6) Source(24, 85) + SourceIndex(2) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(31, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(31, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(31, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(31, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(31, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(31, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(31, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(31, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(31, 48) Source(25, 62) + SourceIndex(2) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(32, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(32, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(32, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(32, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(32, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(32, 35) Source(26, 56) + SourceIndex(2) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(33, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(33, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(33, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(33, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(33, 30) Source(27, 51) + SourceIndex(2) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(34, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(34, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(34, 22) Source(28, 43) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(35, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(35, 14) Source(28, 47) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(36, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 50) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(37, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 53) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(38, 6) Source(28, 55) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >class -3 > internalC -1->Emitted(40, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(40, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(40, 24) Source(30, 30) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(41, 2) Source(30, 33) + SourceIndex(2) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(42, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(42, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(42, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(42, 38) Source(31, 40) + SourceIndex(2) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(43, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(43, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(43, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(43, 37) Source(32, 43) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(44, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(44, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(44, 20) Source(32, 67) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(45, 6) Source(32, 70) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(46, 2) Source(32, 72) + SourceIndex(2) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(47, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(47, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(47, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(47, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(47, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(47, 43) Source(33, 49) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(48, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(48, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(48, 20) Source(33, 73) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(49, 6) Source(33, 76) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(50, 2) Source(33, 78) + SourceIndex(2) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(51, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(51, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(51, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(51, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(51, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(51, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(51, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(51, 53) Source(34, 67) + SourceIndex(2) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(52, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(52, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(52, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(52, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(52, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(52, 39) Source(35, 45) + SourceIndex(2) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(53, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(53, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(53, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(53, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(53, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(53, 34) Source(36, 40) + SourceIndex(2) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(54, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(54, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(54, 26) Source(37, 32) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(55, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(55, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(55, 10) Source(37, 36) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(56, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 39) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(57, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 42) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(58, 2) Source(37, 44) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3162, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 308, - "kind": "internal" - }, - { - "pos": 310, - "end": 342, - "kind": "text" - }, - { - "pos": 342, - "end": 734, - "kind": "internal" - }, - { - "pos": 736, - "end": 739, - "kind": "text" - }, - { - "pos": 739, - "end": 1152, - "kind": "internal" - }, - { - "pos": 1154, - "end": 1202, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (110-3162) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-308) - constructor(); - prop: string; - method(): void; - c: number; ----------------------------------------------------------------------- -text: (310-342) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (342-734) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (736-739) -} - ----------------------------------------------------------------------- -internal: (739-1152) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1154-1202) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] file written with same contents -//// [/src/first/bin/first-output.js.map] file written with same contents -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(16, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3162, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3162, - "kind": "text" - } - ] - }, - { - "pos": 3162, - "end": 3198, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 317, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 317, - "kind": "text" - } - ] - }, - { - "pos": 317, - "end": 336, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3162):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3162) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3162-3198) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-317):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-317) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (317-336) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index 7abd0fd5f78..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,1985 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/second/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;kBACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) ---- ->>> /*@internal*/ c: number; -1->^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(17, 19) Source(17, 23) + SourceIndex(2) -2 >Emitted(17, 20) Source(17, 24) + SourceIndex(2) -3 >Emitted(17, 22) Source(18, 30) + SourceIndex(2) -4 >Emitted(17, 28) Source(18, 36) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(20, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(20, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(20, 12) Source(21, 33) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(21, 6) Source(21, 37) + SourceIndex(2) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(22, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(22, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(22, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(22, 26) Source(22, 43) + SourceIndex(2) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(23, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(23, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(23, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(23, 29) Source(23, 50) + SourceIndex(2) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(24, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(24, 16) Source(23, 66) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(25, 10) Source(23, 69) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(26, 6) Source(23, 71) + SourceIndex(2) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(27, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(27, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(27, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(27, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(27, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(27, 35) Source(24, 56) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(28, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 80) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(29, 10) Source(24, 83) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(30, 6) Source(24, 85) + SourceIndex(2) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(31, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(31, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(31, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(31, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(31, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(31, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(31, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(31, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(31, 48) Source(25, 62) + SourceIndex(2) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(32, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(32, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(32, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(32, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(32, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(32, 35) Source(26, 56) + SourceIndex(2) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(33, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(33, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(33, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(33, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(33, 30) Source(27, 51) + SourceIndex(2) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(34, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(34, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(34, 22) Source(28, 43) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(35, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(35, 14) Source(28, 47) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(36, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 50) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(37, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 53) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(38, 6) Source(28, 55) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >class -3 > internalC -1->Emitted(40, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(40, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(40, 24) Source(30, 30) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(41, 2) Source(30, 33) + SourceIndex(2) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(42, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(42, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(42, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(42, 38) Source(31, 40) + SourceIndex(2) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(43, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(43, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(43, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(43, 37) Source(32, 43) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(44, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(44, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(44, 20) Source(32, 67) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(45, 6) Source(32, 70) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(46, 2) Source(32, 72) + SourceIndex(2) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(47, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(47, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(47, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(47, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(47, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(47, 43) Source(33, 49) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(48, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(48, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(48, 20) Source(33, 73) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(49, 6) Source(33, 76) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(50, 2) Source(33, 78) + SourceIndex(2) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(51, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(51, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(51, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(51, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(51, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(51, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(51, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(51, 53) Source(34, 67) + SourceIndex(2) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(52, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(52, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(52, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(52, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(52, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(52, 39) Source(35, 45) + SourceIndex(2) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(53, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(53, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(53, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(53, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(53, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(53, 34) Source(36, 40) + SourceIndex(2) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(54, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(54, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(54, 26) Source(37, 32) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(55, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(55, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(55, 10) Source(37, 36) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(56, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 39) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(57, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 42) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(58, 2) Source(37, 44) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3526, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 322, - "kind": "internal" - }, - { - "pos": 324, - "end": 356, - "kind": "text" - }, - { - "pos": 356, - "end": 748, - "kind": "internal" - }, - { - "pos": 750, - "end": 753, - "kind": "text" - }, - { - "pos": 753, - "end": 1166, - "kind": "internal" - }, - { - "pos": 1168, - "end": 1216, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (110-3526) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-322) - constructor(); - prop: string; - method(): void; - /*@internal*/ c: number; ----------------------------------------------------------------------- -text: (324-356) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (356-748) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (750-753) -} - ----------------------------------------------------------------------- -internal: (753-1166) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1168-1216) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] file written with same contents -//// [/src/first/bin/first-output.js.map] file written with same contents -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(16, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3526, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3526, - "kind": "text" - } - ] - }, - { - "pos": 3526, - "end": 3562, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 317, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 317, - "kind": "text" - } - ] - }, - { - "pos": 317, - "end": 336, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3526):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3526) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3526-3562) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-317):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-317) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (317-336) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js deleted file mode 100644 index 634fb0a5b02..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js +++ /dev/null @@ -1,943 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:08:00 PM - Building project '/src/first/tsconfig.json'... - -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] file written with same contents -//// [/src/first/bin/first-output.js.map] file written with same contents -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(16, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3526, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 3526, - "kind": "text" - } - ] - }, - { - "pos": 3526, - "end": 3562, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 317, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 317, - "kind": "text" - } - ] - }, - { - "pos": 317, - "end": 336, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-3526):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-3526) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3526-3562) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-317):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-317) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (317-336) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js deleted file mode 100644 index 3d1c7b448b6..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js +++ /dev/null @@ -1,965 +0,0 @@ -//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] -/lib/tsc --b /src/third --verbose -4:12:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -4:12:00 PM - Building project '/src/first/tsconfig.json'... - -4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... - -4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] file written with same contents -//// [/src/first/bin/first-output.js.map] file written with same contents -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(16, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3162, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 3162, - "kind": "text" - } - ] - }, - { - "pos": 3162, - "end": 3198, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 317, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 317, - "kind": "text" - } - ] - }, - { - "pos": 317, - "end": 336, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-3162):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-3162) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3162-3198) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-317):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-317) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (317-336) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/baseline-sectioned-sourcemaps.js deleted file mode 100644 index 2f7ba873ad3..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/baseline-sectioned-sourcemaps.js +++ /dev/null @@ -1,1741 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 285, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 100, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-285) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-100) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 395, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 395, - "kind": "text" - } - ] - }, - { - "pos": 395, - "end": 431, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-395):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-395) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (395-431) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/declarationMap-and-sourceMap-disabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/declarationMap-and-sourceMap-disabled.js deleted file mode 100644 index 675fda54149..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/declarationMap-and-sourceMap-disabled.js +++ /dev/null @@ -1,900 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:00:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:00:00 PM - Building project '/src/first/tsconfig.json'... - -4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:00:00 PM - Building project '/src/second/tsconfig.json'... - -4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:00:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 285, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 100, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-285) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-100) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - - -//// [/src/third/third_part1.ts] - - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - - "removeComments": true, - "strict": false, - - - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js deleted file mode 100644 index 3130e072f76..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js +++ /dev/null @@ -1,2298 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(5, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(5, 43) Source(12, 35) + SourceIndex(0) -4 >Emitted(5, 52) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(12, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(13, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(13, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(13, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(14, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(14, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(14, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(15, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(15, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(15, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(15, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(15, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(15, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(15, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(15, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(16, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(16, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(17, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(17, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(17, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(17, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(18, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(18, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(18, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(18, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(18, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(18, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(18, 19) Source(11, 2) + SourceIndex(0) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(19, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(19, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(19, 35) Source(12, 35) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(20, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(20, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(20, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(20, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(20, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(20, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(20, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(20, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(21, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(22, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(23, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(24, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(24, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(25, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(25, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(25, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(26, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(26, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(26, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(26, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(26, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(26, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(26, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(26, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(27, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(27, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(28, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(28, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(29, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(29, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(29, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(29, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 906, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 153, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (502-906) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-153) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 729, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (502-729) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} -function forsecondsecond_part1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare var c: C; -declare function forthirdthird_part1Rest(): void; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) ---- ->>>declare function forthirdthird_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - >c.doSomething(); - > -2 >function -3 > forthirdthird_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(23, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(24, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(26, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(28, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(28, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(28, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(29, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(29, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(29, 38) Source(13, 48) + SourceIndex(3) -4 >Emitted(29, 40) Source(13, 9) + SourceIndex(3) -5 >Emitted(29, 48) Source(13, 10) + SourceIndex(3) -6 >Emitted(29, 50) Source(13, 12) + SourceIndex(3) -7 >Emitted(29, 74) Source(13, 48) + SourceIndex(3) -8 >Emitted(29, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(30, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(30, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(31, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(32, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(33, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(34, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(34, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(34, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(35, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(35, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(35, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(35, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(35, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(35, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(35, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(35, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(36, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(37, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(38, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(39, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(39, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(39, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(39, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(39, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(39, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(39, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(39, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(40, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(40, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(40, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(40, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(40, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(40, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(41, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(41, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(41, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(42, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(42, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(42, 38) Source(4, 48) + SourceIndex(5) -4 >Emitted(42, 40) Source(4, 9) + SourceIndex(5) -5 >Emitted(42, 48) Source(4, 10) + SourceIndex(5) -6 >Emitted(42, 50) Source(4, 12) + SourceIndex(5) -7 >Emitted(42, 74) Source(4, 48) + SourceIndex(5) -8 >Emitted(42, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(43, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(43, 2) Source(5, 2) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 729, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 502, - "end": 729, - "kind": "text" - } - ] - }, - { - "pos": 729, - "end": 1133, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 729, - "end": 1133, - "kind": "text" - } - ] - }, - { - "pos": 1133, - "end": 1286, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 361, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 361, - "kind": "text" - } - ] - }, - { - "pos": 361, - "end": 431, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (502-729):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (502-729) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (729-1133):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (729-1133) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1133-1286) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-361) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (361-431) -declare var c: C; -declare function forthirdthird_part1Rest(): void; - -====================================================================== - -//// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js deleted file mode 100644 index 5e2363bdbe3..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js +++ /dev/null @@ -1,2066 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(5, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(5, 43) Source(12, 35) + SourceIndex(0) -4 >Emitted(5, 52) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(12, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(13, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(13, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(13, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(14, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(14, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(14, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(15, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(15, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(15, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(15, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(15, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(15, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(15, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(15, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(16, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(16, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(17, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(17, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(17, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(17, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(18, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(18, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(18, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(18, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(18, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(18, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(18, 19) Source(11, 2) + SourceIndex(0) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(19, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(19, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(19, 35) Source(12, 35) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(20, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(20, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(20, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(20, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(20, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(20, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(20, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(20, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(21, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(22, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(23, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(24, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(24, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(25, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(25, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(25, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(26, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(26, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(26, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(26, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(26, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(26, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(26, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(26, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(27, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(27, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(28, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(28, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(29, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(29, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(29, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(29, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 906, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 153, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (502-906) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-153) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 150, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-150) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { } - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} -function forsecondsecond_part1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(15, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(15, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(15, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(15, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(15, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(15, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(15, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(15, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(16, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(16, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(16, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(17, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(17, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(17, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(17, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(19, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(19, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(19, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(19, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(20, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(20, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(21, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(21, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(21, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(22, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(22, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(22, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(22, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(22, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(22, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(22, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(22, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(23, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(23, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(24, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(24, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(24, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(24, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(25, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(25, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(25, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(25, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(25, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(25, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(26, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(26, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(26, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(27, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(27, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(27, 38) Source(13, 48) + SourceIndex(3) -4 >Emitted(27, 40) Source(13, 9) + SourceIndex(3) -5 >Emitted(27, 48) Source(13, 10) + SourceIndex(3) -6 >Emitted(27, 50) Source(13, 12) + SourceIndex(3) -7 >Emitted(27, 74) Source(13, 48) + SourceIndex(3) -8 >Emitted(27, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(28, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(28, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(29, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(30, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(31, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(31, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(32, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(32, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(32, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(33, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(33, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(33, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(33, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(33, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(33, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(33, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(33, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(34, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(34, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(35, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(35, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(36, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(36, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(36, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(36, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(37, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(37, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(37, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(37, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(37, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(37, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(37, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(37, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(38, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(38, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(38, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(38, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(38, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(38, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 652, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 502, - "end": 652, - "kind": "text" - } - ] - }, - { - "pos": 652, - "end": 1056, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 652, - "end": 1056, - "kind": "text" - } - ] - }, - { - "pos": 1056, - "end": 1092, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 361, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 361, - "kind": "text" - } - ] - }, - { - "pos": 361, - "end": 380, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (502-652):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (502-652) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (652-1056):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (652-1056) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1056-1092) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-361) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (361-380) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js deleted file mode 100644 index da32ae34a23..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,3308 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare function secondsecond_part2Spread(...b: number[]): void; -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(5, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(5, 43) Source(12, 35) + SourceIndex(0) -4 >Emitted(5, 52) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) ---- ->>>declare function secondsecond_part2Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part2Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(9, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(7, 10) + SourceIndex(1) -3 >Emitted(9, 42) Source(7, 34) + SourceIndex(1) -4 >Emitted(9, 43) Source(7, 35) + SourceIndex(1) -5 >Emitted(9, 46) Source(7, 38) + SourceIndex(1) -6 >Emitted(9, 49) Source(7, 41) + SourceIndex(1) -7 >Emitted(9, 55) Source(7, 47) + SourceIndex(1) -8 >Emitted(9, 57) Source(7, 49) + SourceIndex(1) -9 >Emitted(9, 65) Source(7, 54) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(32, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(33, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(33, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(33, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(34, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(34, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(34, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(35, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(35, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(35, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(35, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(35, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(35, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(35, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(35, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(36, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(36, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(37, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(37, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(37, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(37, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(38, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(38, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(38, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(38, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(38, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(38, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(38, 19) Source(11, 2) + SourceIndex(0) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(39, 35) Source(12, 35) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(40, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(40, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(40, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(40, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(40, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(40, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(40, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(40, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(41, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(41, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(42, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(43, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(44, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(44, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(45, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(45, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(45, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(46, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(46, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(46, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(46, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(46, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(46, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(46, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(46, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(47, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(47, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(48, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(48, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(49, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(49, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(49, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(49, 6) Source(5, 2) + SourceIndex(1) ---- ->>>function secondsecond_part2Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part2Spread -1->Emitted(50, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(50, 10) Source(7, 10) + SourceIndex(1) -3 >Emitted(50, 34) Source(7, 34) + SourceIndex(1) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(51, 5) Source(7, 35) + SourceIndex(1) -2 >Emitted(51, 16) Source(7, 49) + SourceIndex(1) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(52, 10) Source(7, 35) + SourceIndex(1) -2 >Emitted(52, 20) Source(7, 49) + SourceIndex(1) -3 >Emitted(52, 22) Source(7, 35) + SourceIndex(1) -4 >Emitted(52, 43) Source(7, 49) + SourceIndex(1) -5 >Emitted(52, 45) Source(7, 35) + SourceIndex(1) -6 >Emitted(52, 49) Source(7, 49) + SourceIndex(1) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(53, 9) Source(7, 35) + SourceIndex(1) -2 >Emitted(53, 31) Source(7, 49) + SourceIndex(1) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(55, 1) Source(7, 53) + SourceIndex(1) -2 >Emitted(55, 2) Source(7, 54) + SourceIndex(1) ---- ->>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >secondsecond_part2Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(56, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(56, 25) Source(8, 25) + SourceIndex(1) -3 >Emitted(56, 49) Source(8, 29) + SourceIndex(1) -4 >Emitted(56, 50) Source(8, 30) + SourceIndex(1) -5 >Emitted(56, 52) Source(8, 32) + SourceIndex(1) -6 >Emitted(56, 54) Source(8, 34) + SourceIndex(1) -7 >Emitted(56, 56) Source(8, 36) + SourceIndex(1) -8 >Emitted(56, 58) Source(8, 38) + SourceIndex(1) -9 >Emitted(56, 60) Source(8, 40) + SourceIndex(1) -10>Emitted(56, 61) Source(8, 41) + SourceIndex(1) -11>Emitted(56, 64) Source(8, 43) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1800, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -text: (1180-1800) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare function secondsecond_part2Spread(...b: number[]): void; - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>declare function firstfirst_part3Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(2) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(2) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(2) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(2) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(2) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(2) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(2) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(37, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(37, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(37, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(37, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(37, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(37, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(37, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(37, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(37, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(38, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(38, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(38, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(39, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(39, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(39, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(39, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(40, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(40, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -1->Emitted(41, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(41, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(41, 32) Source(4, 32) + SourceIndex(2) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(42, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(42, 16) Source(4, 47) + SourceIndex(2) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(43, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(43, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(43, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(43, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(43, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(43, 49) Source(4, 47) + SourceIndex(2) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(44, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(44, 31) Source(4, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(46, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(46, 2) Source(4, 52) + SourceIndex(2) ---- ->>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >firstfirst_part3Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(47, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(47, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(47, 47) Source(5, 27) + SourceIndex(2) -4 >Emitted(47, 48) Source(5, 28) + SourceIndex(2) -5 >Emitted(47, 50) Source(5, 30) + SourceIndex(2) -6 >Emitted(47, 52) Source(5, 32) + SourceIndex(2) -7 >Emitted(47, 54) Source(5, 34) + SourceIndex(2) -8 >Emitted(47, 56) Source(5, 36) + SourceIndex(2) -9 >Emitted(47, 58) Source(5, 38) + SourceIndex(2) -10>Emitted(47, 59) Source(5, 39) + SourceIndex(2) -11>Emitted(47, 62) Source(5, 41) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1619, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 272, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -text: (1180-1619) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-272) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - -//// [/src/first/first_part3.ts] -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread(...b: number[]) { } -firstfirst_part3Spread(...[10, 20, 30]); - -//// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] -} - - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} -function forsecondsecond_part1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - -//// [/src/second/second_part2.ts] -class C { - doSomething() { - console.log("something got done"); - } -} - -function secondsecond_part2Spread(...b: number[]) { } -secondsecond_part2Spread(...[10, 20, 30]); - -//// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare function secondsecond_part2Spread(...b: number[]): void; -declare var c: C; -declare function forthirdthird_part1Rest(): void; -declare function thirdthird_part1Spread(...b: number[]): void; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACHnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACNrD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- ->>>declare function firstfirst_part3Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(1) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(1) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(1) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(1) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(1) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(1) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(1) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(11, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(12, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(13, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(13, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(13, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(13, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(14, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(15, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(15, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(15, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(15, 52) Source(14, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(16, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(16, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(17, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) ---- ->>>declare function secondsecond_part2Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part2Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(19, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(19, 18) Source(7, 10) + SourceIndex(3) -3 >Emitted(19, 42) Source(7, 34) + SourceIndex(3) -4 >Emitted(19, 43) Source(7, 35) + SourceIndex(3) -5 >Emitted(19, 46) Source(7, 38) + SourceIndex(3) -6 >Emitted(19, 49) Source(7, 41) + SourceIndex(3) -7 >Emitted(19, 55) Source(7, 47) + SourceIndex(3) -8 >Emitted(19, 57) Source(7, 49) + SourceIndex(3) -9 >Emitted(19, 65) Source(7, 54) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1 > -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1 >Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>declare function forthirdthird_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^^^^-> -1-> - >c.doSomething(); - > -2 >function -3 > forthirdthird_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(21, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(21, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(21, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(21, 50) Source(5, 2) + SourceIndex(4) ---- ->>>declare function thirdthird_part1Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > thirdthird_part1Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(22, 1) Source(6, 1) + SourceIndex(4) -2 >Emitted(22, 18) Source(6, 10) + SourceIndex(4) -3 >Emitted(22, 40) Source(6, 32) + SourceIndex(4) -4 >Emitted(22, 41) Source(6, 33) + SourceIndex(4) -5 >Emitted(22, 44) Source(6, 36) + SourceIndex(4) -6 >Emitted(22, 47) Source(6, 39) + SourceIndex(4) -7 >Emitted(22, 53) Source(6, 45) + SourceIndex(4) -8 >Emitted(22, 55) Source(6, 47) + SourceIndex(4) -9 >Emitted(22, 63) Source(6, 52) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -function thirdthird_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACP1C,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(37, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(37, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(37, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(37, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(37, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(37, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(37, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(37, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(37, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(38, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(38, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(38, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(39, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(39, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(39, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(39, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(40, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(40, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -1->Emitted(41, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(41, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(41, 32) Source(4, 32) + SourceIndex(2) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(42, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(42, 16) Source(4, 47) + SourceIndex(2) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(43, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(43, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(43, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(43, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(43, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(43, 49) Source(4, 47) + SourceIndex(2) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(44, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(44, 31) Source(4, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(46, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(46, 2) Source(4, 52) + SourceIndex(2) ---- ->>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >firstfirst_part3Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(47, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(47, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(47, 47) Source(5, 27) + SourceIndex(2) -4 >Emitted(47, 48) Source(5, 28) + SourceIndex(2) -5 >Emitted(47, 50) Source(5, 30) + SourceIndex(2) -6 >Emitted(47, 52) Source(5, 32) + SourceIndex(2) -7 >Emitted(47, 54) Source(5, 34) + SourceIndex(2) -8 >Emitted(47, 56) Source(5, 36) + SourceIndex(2) -9 >Emitted(47, 58) Source(5, 38) + SourceIndex(2) -10>Emitted(47, 59) Source(5, 39) + SourceIndex(2) -11>Emitted(47, 62) Source(5, 41) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(48, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(48, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(48, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(48, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(49, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(49, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(49, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(50, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(50, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(50, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(51, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(51, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(51, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(51, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(51, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(51, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(51, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(51, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(52, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(52, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(53, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(53, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(53, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(53, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(54, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(54, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(54, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(54, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(54, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(54, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(54, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(55, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(55, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(55, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(56, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(56, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(56, 38) Source(13, 48) + SourceIndex(3) -4 >Emitted(56, 40) Source(13, 9) + SourceIndex(3) -5 >Emitted(56, 48) Source(13, 10) + SourceIndex(3) -6 >Emitted(56, 50) Source(13, 12) + SourceIndex(3) -7 >Emitted(56, 74) Source(13, 48) + SourceIndex(3) -8 >Emitted(56, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(57, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(57, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(58, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(59, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(60, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(60, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(61, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(61, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(61, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(62, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(62, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(62, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(62, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(62, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(62, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(62, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(62, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(63, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(63, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(64, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(64, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(65, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(65, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(65, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(65, 6) Source(5, 2) + SourceIndex(4) ---- ->>>function secondsecond_part2Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part2Spread -1->Emitted(66, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(66, 10) Source(7, 10) + SourceIndex(4) -3 >Emitted(66, 34) Source(7, 34) + SourceIndex(4) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(67, 5) Source(7, 35) + SourceIndex(4) -2 >Emitted(67, 16) Source(7, 49) + SourceIndex(4) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(68, 10) Source(7, 35) + SourceIndex(4) -2 >Emitted(68, 20) Source(7, 49) + SourceIndex(4) -3 >Emitted(68, 22) Source(7, 35) + SourceIndex(4) -4 >Emitted(68, 43) Source(7, 49) + SourceIndex(4) -5 >Emitted(68, 45) Source(7, 35) + SourceIndex(4) -6 >Emitted(68, 49) Source(7, 49) + SourceIndex(4) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(69, 9) Source(7, 35) + SourceIndex(4) -2 >Emitted(69, 31) Source(7, 49) + SourceIndex(4) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(71, 1) Source(7, 53) + SourceIndex(4) -2 >Emitted(71, 2) Source(7, 54) + SourceIndex(4) ---- ->>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >secondsecond_part2Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(72, 1) Source(8, 1) + SourceIndex(4) -2 >Emitted(72, 25) Source(8, 25) + SourceIndex(4) -3 >Emitted(72, 49) Source(8, 29) + SourceIndex(4) -4 >Emitted(72, 50) Source(8, 30) + SourceIndex(4) -5 >Emitted(72, 52) Source(8, 32) + SourceIndex(4) -6 >Emitted(72, 54) Source(8, 34) + SourceIndex(4) -7 >Emitted(72, 56) Source(8, 36) + SourceIndex(4) -8 >Emitted(72, 58) Source(8, 38) + SourceIndex(4) -9 >Emitted(72, 60) Source(8, 40) + SourceIndex(4) -10>Emitted(72, 61) Source(8, 41) + SourceIndex(4) -11>Emitted(72, 64) Source(8, 43) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1 > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1 >Emitted(73, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(73, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(73, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(73, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(73, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(73, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(73, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(73, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(74, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(74, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(74, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(74, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(74, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(74, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(75, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(75, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(75, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(76, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(76, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(76, 38) Source(4, 48) + SourceIndex(5) -4 >Emitted(76, 40) Source(4, 9) + SourceIndex(5) -5 >Emitted(76, 48) Source(4, 10) + SourceIndex(5) -6 >Emitted(76, 50) Source(4, 12) + SourceIndex(5) -7 >Emitted(76, 74) Source(4, 48) + SourceIndex(5) -8 >Emitted(76, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(77, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(77, 2) Source(5, 2) + SourceIndex(5) ---- ->>>function thirdthird_part1Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > thirdthird_part1Spread -1->Emitted(78, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(78, 10) Source(6, 10) + SourceIndex(5) -3 >Emitted(78, 32) Source(6, 32) + SourceIndex(5) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(79, 5) Source(6, 33) + SourceIndex(5) -2 >Emitted(79, 16) Source(6, 47) + SourceIndex(5) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(80, 10) Source(6, 33) + SourceIndex(5) -2 >Emitted(80, 20) Source(6, 47) + SourceIndex(5) -3 >Emitted(80, 22) Source(6, 33) + SourceIndex(5) -4 >Emitted(80, 43) Source(6, 47) + SourceIndex(5) -5 >Emitted(80, 45) Source(6, 33) + SourceIndex(5) -6 >Emitted(80, 49) Source(6, 47) + SourceIndex(5) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(81, 9) Source(6, 33) + SourceIndex(5) -2 >Emitted(81, 31) Source(6, 47) + SourceIndex(5) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(83, 1) Source(6, 51) + SourceIndex(5) -2 >Emitted(83, 2) Source(6, 52) + SourceIndex(5) ---- ->>>thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >thirdthird_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(84, 1) Source(7, 1) + SourceIndex(5) -2 >Emitted(84, 23) Source(7, 23) + SourceIndex(5) -3 >Emitted(84, 47) Source(7, 27) + SourceIndex(5) -4 >Emitted(84, 48) Source(7, 28) + SourceIndex(5) -5 >Emitted(84, 50) Source(7, 30) + SourceIndex(5) -6 >Emitted(84, 52) Source(7, 32) + SourceIndex(5) -7 >Emitted(84, 54) Source(7, 34) + SourceIndex(5) -8 >Emitted(84, 56) Source(7, 36) + SourceIndex(5) -9 >Emitted(84, 58) Source(7, 38) + SourceIndex(5) -10>Emitted(84, 59) Source(7, 39) + SourceIndex(5) -11>Emitted(84, 62) Source(7, 41) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1619, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 1180, - "end": 1619, - "kind": "text" - } - ] - }, - { - "pos": 1619, - "end": 2239, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 1619, - "end": 2239, - "kind": "text" - } - ] - }, - { - "pos": 2239, - "end": 2604, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 272, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 272, - "kind": "text" - } - ] - }, - { - "pos": 272, - "end": 491, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 272, - "end": 491, - "kind": "text" - } - ] - }, - { - "pos": 491, - "end": 625, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -prepend: (1180-1619):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1180-1619) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); - ----------------------------------------------------------------------- -prepend: (1619-2239):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1619-2239) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); - ----------------------------------------------------------------------- -text: (2239-2604) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -function thirdthird_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-272):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-272) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; - ----------------------------------------------------------------------- -prepend: (272-491):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (272-491) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare function secondsecond_part2Spread(...b: number[]): void; - ----------------------------------------------------------------------- -text: (491-625) -declare var c: C; -declare function forthirdthird_part1Rest(): void; -declare function thirdthird_part1Spread(...b: number[]): void; - -====================================================================== - -//// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} -function thirdthird_part1Spread(...b: number[]) { } -thirdthird_part1Spread(...[10, 20, 30]); - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js deleted file mode 100644 index cda562a0911..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js +++ /dev/null @@ -1,2545 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare function secondsecond_part1Spread(...b: number[]): void; -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACZrD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare function secondsecond_part1Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part1Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 18) Source(13, 10) + SourceIndex(0) -3 >Emitted(5, 42) Source(13, 34) + SourceIndex(0) -4 >Emitted(5, 43) Source(13, 35) + SourceIndex(0) -5 >Emitted(5, 46) Source(13, 38) + SourceIndex(0) -6 >Emitted(5, 49) Source(13, 41) + SourceIndex(0) -7 >Emitted(5, 55) Source(13, 47) + SourceIndex(0) -8 >Emitted(5, 57) Source(13, 49) + SourceIndex(0) -9 >Emitted(5, 65) Source(13, 54) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(21, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(21, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(22, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(22, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(22, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(23, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(23, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(23, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(24, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(24, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(24, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(24, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(24, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(24, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(24, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(24, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(25, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(25, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(26, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(26, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(26, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(26, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(27, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(27, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(27, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(27, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(27, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(27, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(27, 19) Source(11, 2) + SourceIndex(0) ---- ->>>function secondsecond_part1Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part1Spread -1->Emitted(28, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(28, 10) Source(13, 10) + SourceIndex(0) -3 >Emitted(28, 34) Source(13, 34) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(29, 5) Source(13, 35) + SourceIndex(0) -2 >Emitted(29, 16) Source(13, 49) + SourceIndex(0) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(30, 10) Source(13, 35) + SourceIndex(0) -2 >Emitted(30, 20) Source(13, 49) + SourceIndex(0) -3 >Emitted(30, 22) Source(13, 35) + SourceIndex(0) -4 >Emitted(30, 43) Source(13, 49) + SourceIndex(0) -5 >Emitted(30, 45) Source(13, 35) + SourceIndex(0) -6 >Emitted(30, 49) Source(13, 49) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(31, 9) Source(13, 35) + SourceIndex(0) -2 >Emitted(31, 31) Source(13, 49) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(33, 1) Source(13, 53) + SourceIndex(0) -2 >Emitted(33, 2) Source(13, 54) + SourceIndex(0) ---- ->>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >secondsecond_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(34, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(34, 25) Source(14, 25) + SourceIndex(0) -3 >Emitted(34, 49) Source(14, 29) + SourceIndex(0) -4 >Emitted(34, 50) Source(14, 30) + SourceIndex(0) -5 >Emitted(34, 52) Source(14, 32) + SourceIndex(0) -6 >Emitted(34, 54) Source(14, 34) + SourceIndex(0) -7 >Emitted(34, 56) Source(14, 36) + SourceIndex(0) -8 >Emitted(34, 58) Source(14, 38) + SourceIndex(0) -9 >Emitted(34, 60) Source(14, 40) + SourceIndex(0) -10>Emitted(34, 61) Source(14, 41) + SourceIndex(0) -11>Emitted(34, 64) Source(14, 43) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(35, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(36, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(37, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(37, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(38, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(38, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(38, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(39, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(39, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(39, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(39, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(39, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(39, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(39, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(39, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(40, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(40, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(41, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(41, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(42, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(42, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(42, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(42, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1179, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:read", - "typescript:spread" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 166, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -text: (678-1179) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-166) -declare namespace N { -} -declare namespace N { -} -declare function secondsecond_part1Spread(...b: number[]): void; -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 729, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (502-729) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -function secondsecond_part1Spread(...b: number[]) { } -secondsecond_part1Spread(...[10, 20, 30]); - -//// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "downlevelIteration": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare function secondsecond_part1Spread(...b: number[]): void; -declare class C { - doSomething(): void; -} -declare var c: C; -declare function forthirdthird_part1Rest(): void; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACZrD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function secondsecond_part1Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part1Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(14, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(14, 18) Source(13, 10) + SourceIndex(2) -3 >Emitted(14, 42) Source(13, 34) + SourceIndex(2) -4 >Emitted(14, 43) Source(13, 35) + SourceIndex(2) -5 >Emitted(14, 46) Source(13, 38) + SourceIndex(2) -6 >Emitted(14, 49) Source(13, 41) + SourceIndex(2) -7 >Emitted(14, 55) Source(13, 47) + SourceIndex(2) -8 >Emitted(14, 57) Source(13, 49) + SourceIndex(2) -9 >Emitted(14, 65) Source(13, 54) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) ---- ->>>declare function forthirdthird_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - >c.doSomething(); - > -2 >function -3 > forthirdthird_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0) -4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0) -5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0) -6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0) -7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0) -8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(37, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(37, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(37, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(37, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(37, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(37, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(37, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(37, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(37, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(38, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(38, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(38, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(39, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(39, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(39, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(39, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(40, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(40, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(41, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(41, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(41, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(41, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(42, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(42, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(42, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(43, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(43, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(43, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(44, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(44, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(44, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(44, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(44, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(44, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(44, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(44, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(45, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(45, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(46, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(46, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(46, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(46, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(47, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(47, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(47, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(47, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(47, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(47, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(47, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function secondsecond_part1Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part1Spread -1->Emitted(48, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(48, 10) Source(13, 10) + SourceIndex(3) -3 >Emitted(48, 34) Source(13, 34) + SourceIndex(3) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(49, 5) Source(13, 35) + SourceIndex(3) -2 >Emitted(49, 16) Source(13, 49) + SourceIndex(3) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(50, 10) Source(13, 35) + SourceIndex(3) -2 >Emitted(50, 20) Source(13, 49) + SourceIndex(3) -3 >Emitted(50, 22) Source(13, 35) + SourceIndex(3) -4 >Emitted(50, 43) Source(13, 49) + SourceIndex(3) -5 >Emitted(50, 45) Source(13, 35) + SourceIndex(3) -6 >Emitted(50, 49) Source(13, 49) + SourceIndex(3) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(51, 9) Source(13, 35) + SourceIndex(3) -2 >Emitted(51, 31) Source(13, 49) + SourceIndex(3) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(53, 1) Source(13, 53) + SourceIndex(3) -2 >Emitted(53, 2) Source(13, 54) + SourceIndex(3) ---- ->>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -1-> - > -2 >secondsecond_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(54, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(54, 25) Source(14, 25) + SourceIndex(3) -3 >Emitted(54, 49) Source(14, 29) + SourceIndex(3) -4 >Emitted(54, 50) Source(14, 30) + SourceIndex(3) -5 >Emitted(54, 52) Source(14, 32) + SourceIndex(3) -6 >Emitted(54, 54) Source(14, 34) + SourceIndex(3) -7 >Emitted(54, 56) Source(14, 36) + SourceIndex(3) -8 >Emitted(54, 58) Source(14, 38) + SourceIndex(3) -9 >Emitted(54, 60) Source(14, 40) + SourceIndex(3) -10>Emitted(54, 61) Source(14, 41) + SourceIndex(3) -11>Emitted(54, 64) Source(14, 43) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(55, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(56, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(57, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(57, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(58, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(58, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(58, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(59, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(59, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(59, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(59, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(59, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(59, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(59, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(59, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(60, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(60, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(61, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(61, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(62, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(62, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(62, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(62, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(63, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(63, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(63, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(63, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(63, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(63, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(63, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(63, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(64, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(64, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(64, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(64, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(64, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(64, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(65, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(65, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(65, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^ -6 > ^^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^ -8 > ^ -1->() { - > -2 > const -3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } -4 > -5 > b -6 > , -7 > ...rest } = { a: 10, b: 30, yy: 30 } -8 > ; -1->Emitted(66, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(66, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(66, 38) Source(4, 48) + SourceIndex(5) -4 >Emitted(66, 40) Source(4, 9) + SourceIndex(5) -5 >Emitted(66, 48) Source(4, 10) + SourceIndex(5) -6 >Emitted(66, 50) Source(4, 12) + SourceIndex(5) -7 >Emitted(66, 74) Source(4, 48) + SourceIndex(5) -8 >Emitted(66, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(67, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(67, 2) Source(5, 2) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1407, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 1180, - "end": 1407, - "kind": "text" - } - ] - }, - { - "pos": 1407, - "end": 1908, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 1407, - "end": 1908, - "kind": "text" - } - ] - }, - { - "pos": 1908, - "end": 2061, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 374, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 374, - "kind": "text" - } - ] - }, - { - "pos": 374, - "end": 444, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -prepend: (1180-1407):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1180-1407) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (1407-1908):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1407-1908) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1908-2061) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-374):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-374) -declare namespace N { -} -declare namespace N { -} -declare function secondsecond_part1Spread(...b: number[]): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (374-444) -declare var c: C; -declare function forthirdthird_part1Rest(): void; - -====================================================================== - -//// [/src/third/third_part1.ts] -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-all-projects.js deleted file mode 100644 index b77ccd7276f..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,2158 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >"myPrologue" - > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(2, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(6, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(6, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(6, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1->"myPrologue2"; - > -2 >class -3 > C -1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(2, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(2, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(3, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(6, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -"use strict"; -"myPrologue"; -"myPrologue2"; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(6, 11) + SourceIndex(0) -3 >Emitted(4, 6) Source(6, 12) + SourceIndex(0) -4 >Emitted(4, 7) Source(12, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 12) Source(6, 11) + SourceIndex(0) -3 >Emitted(5, 13) Source(6, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(6, 5) Source(7, 5) + SourceIndex(0) -2 >Emitted(6, 14) Source(7, 14) + SourceIndex(0) -3 >Emitted(6, 15) Source(7, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(7, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(7, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(7, 20) Source(8, 20) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 30) Source(8, 30) + SourceIndex(0) -7 >Emitted(7, 31) Source(8, 31) + SourceIndex(0) -8 >Emitted(7, 32) Source(8, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(8, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(8, 6) Source(9, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(9, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(9, 6) Source(11, 6) + SourceIndex(0) -3 >Emitted(9, 8) Source(11, 8) + SourceIndex(0) -4 >Emitted(9, 9) Source(11, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(10, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(10, 2) Source(12, 2) + SourceIndex(0) -3 >Emitted(10, 4) Source(6, 11) + SourceIndex(0) -4 >Emitted(10, 5) Source(6, 12) + SourceIndex(0) -5 >Emitted(10, 10) Source(6, 11) + SourceIndex(0) -6 >Emitted(10, 11) Source(6, 12) + SourceIndex(0) -7 >Emitted(10, 19) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(12, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(13, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(13, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(14, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(14, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(14, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(15, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(15, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(15, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(15, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(15, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(15, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(15, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(15, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(16, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(16, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(17, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(18, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 46, - "end": 331, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue\"", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 12, - "expression": { - "pos": 0, - "end": 12, - "text": "myPrologue" - } - } - ] - }, - { - "file": 1, - "text": "\"myPrologue2\";", - "directives": [ - { - "pos": 0, - "end": 14, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue2" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 100, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -text: (46-331) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-100) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 140, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue\"", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 12, - "expression": { - "pos": 0, - "end": 12, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (30-140) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -"myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] -} - - -//// [/src/second/second_part1.ts] -"myPrologue" -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - - -//// [/src/second/second_part2.ts] -"myPrologue2"; -class C { - doSomething() { - console.log("something got done"); - } -} - - -//// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >"myPrologue" - > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1->"myPrologue2"; - > -2 >class -3 > C -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue3"; - >"myPrologue"; - > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(3, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(3, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(3, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(3, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(3, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue"; -"myPrologue2"; -"myPrologue3"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >"myPrologue3" -3 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) -3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1->"myPrologue" - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(5, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) -3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) -4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) -5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) -6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) -7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) -8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) -9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) -3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) -3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) -4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(11, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(11, 5) Source(6, 11) + SourceIndex(5) -3 >Emitted(11, 6) Source(6, 12) + SourceIndex(5) -4 >Emitted(11, 7) Source(12, 2) + SourceIndex(5) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(12, 12) Source(6, 11) + SourceIndex(5) -3 >Emitted(12, 13) Source(6, 12) + SourceIndex(5) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(13, 5) Source(7, 5) + SourceIndex(5) -2 >Emitted(13, 14) Source(7, 14) + SourceIndex(5) -3 >Emitted(13, 15) Source(7, 15) + SourceIndex(5) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(14, 9) Source(8, 9) + SourceIndex(5) -2 >Emitted(14, 16) Source(8, 16) + SourceIndex(5) -3 >Emitted(14, 17) Source(8, 17) + SourceIndex(5) -4 >Emitted(14, 20) Source(8, 20) + SourceIndex(5) -5 >Emitted(14, 21) Source(8, 21) + SourceIndex(5) -6 >Emitted(14, 30) Source(8, 30) + SourceIndex(5) -7 >Emitted(14, 31) Source(8, 31) + SourceIndex(5) -8 >Emitted(14, 32) Source(8, 32) + SourceIndex(5) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(15, 5) Source(9, 5) + SourceIndex(5) -2 >Emitted(15, 6) Source(9, 6) + SourceIndex(5) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(16, 5) Source(11, 5) + SourceIndex(5) -2 >Emitted(16, 6) Source(11, 6) + SourceIndex(5) -3 >Emitted(16, 8) Source(11, 8) + SourceIndex(5) -4 >Emitted(16, 9) Source(11, 9) + SourceIndex(5) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(17, 1) Source(12, 1) + SourceIndex(5) -2 >Emitted(17, 2) Source(12, 2) + SourceIndex(5) -3 >Emitted(17, 4) Source(6, 11) + SourceIndex(5) -4 >Emitted(17, 5) Source(6, 12) + SourceIndex(5) -5 >Emitted(17, 10) Source(6, 11) + SourceIndex(5) -6 >Emitted(17, 11) Source(6, 12) + SourceIndex(5) -7 >Emitted(17, 19) Source(12, 2) + SourceIndex(5) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(18, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(19, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(20, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(21, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(21, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(21, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(22, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(22, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(22, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(22, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(22, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(22, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(22, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(22, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(23, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(24, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(25, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(25, 6) Source(6, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1->"myPrologue3"; - >"myPrologue"; - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(26, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(26, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(26, 6) Source(3, 6) + SourceIndex(2) -4 >Emitted(26, 9) Source(3, 9) + SourceIndex(2) -5 >Emitted(26, 13) Source(3, 13) + SourceIndex(2) -6 >Emitted(26, 14) Source(3, 14) + SourceIndex(2) -7 >Emitted(26, 16) Source(3, 16) + SourceIndex(2) -8 >Emitted(26, 17) Source(3, 17) + SourceIndex(2) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(27, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(27, 2) Source(4, 2) + SourceIndex(2) -3 >Emitted(27, 3) Source(4, 3) + SourceIndex(2) -4 >Emitted(27, 14) Source(4, 14) + SourceIndex(2) -5 >Emitted(27, 16) Source(4, 16) + SourceIndex(2) -6 >Emitted(27, 17) Source(4, 17) + SourceIndex(2) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 62, - "end": 172, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 62, - "end": 172, - "kind": "text" - } - ] - }, - { - "pos": 172, - "end": 457, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 172, - "end": 457, - "kind": "text" - } - ] - }, - { - "pos": 457, - "end": 493, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue3\";\n\"myPrologue\";", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 14, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - }, - { - "pos": 14, - "end": 28, - "expression": { - "pos": 14, - "end": 27, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -prepend: (62-172):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (62-172) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (172-457):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (172-457) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (457-493) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/third_part1.ts] -"myPrologue3"; -"myPrologue"; -var c = new C(); -c.doSomething(); - - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-different-projects.js deleted file mode 100644 index 476c1c92004..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-prologues-in-different-projects.js +++ /dev/null @@ -1,1995 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >"myPrologue" - > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(2, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(6, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(6, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(6, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1->"myPrologue2"; - > -2 >class -3 > C -1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(2, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(2, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(3, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(6, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -"myPrologue"; -"myPrologue2"; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(2, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(2, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(2, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 11) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 12) + SourceIndex(0) -4 >Emitted(3, 7) Source(12, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 12) Source(6, 11) + SourceIndex(0) -3 >Emitted(4, 13) Source(6, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(5, 5) Source(7, 5) + SourceIndex(0) -2 >Emitted(5, 14) Source(7, 14) + SourceIndex(0) -3 >Emitted(5, 15) Source(7, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(6, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(6, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(6, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(6, 20) Source(8, 20) + SourceIndex(0) -5 >Emitted(6, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(6, 30) Source(8, 30) + SourceIndex(0) -7 >Emitted(6, 31) Source(8, 31) + SourceIndex(0) -8 >Emitted(6, 32) Source(8, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(9, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(8, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(8, 6) Source(11, 6) + SourceIndex(0) -3 >Emitted(8, 8) Source(11, 8) + SourceIndex(0) -4 >Emitted(8, 9) Source(11, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(9, 2) Source(12, 2) + SourceIndex(0) -3 >Emitted(9, 4) Source(6, 11) + SourceIndex(0) -4 >Emitted(9, 5) Source(6, 12) + SourceIndex(0) -5 >Emitted(9, 10) Source(6, 11) + SourceIndex(0) -6 >Emitted(9, 11) Source(6, 12) + SourceIndex(0) -7 >Emitted(9, 19) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(10, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(11, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(12, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(12, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(13, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(13, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(14, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(14, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(14, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(14, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(14, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(14, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(14, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(14, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(15, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(15, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(16, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(17, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(17, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(17, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(17, 6) Source(6, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 15, - "end": 29, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 31, - "end": 316, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue\"", - "directives": [ - { - "pos": 0, - "end": 12, - "expression": { - "pos": 0, - "end": 12, - "text": "myPrologue" - } - } - ] - }, - { - "file": 1, - "text": "\"myPrologue2\";", - "directives": [ - { - "pos": 0, - "end": 14, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue2" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 100, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prologue: (0-13):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (15-29):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -text: (31-316) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-100) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 125, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (15-125) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] -} - - -//// [/src/second/second_part1.ts] -"myPrologue" -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - - -//// [/src/second/second_part2.ts] -"myPrologue2"; -class C { - doSomething() { - console.log("something got done"); - } -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >"myPrologue" - > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1->"myPrologue2"; - > -2 >class -3 > C -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue"; -"myPrologue2"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../second/second_part1.ts","../../../second/second_part2.ts","../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../second/second_part1.ts,../../../second/second_part2.ts,../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1->interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(4, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(4, 6) Source(5, 8) + SourceIndex(2) -4 >Emitted(4, 9) Source(5, 11) + SourceIndex(2) -5 >Emitted(4, 23) Source(5, 25) + SourceIndex(2) -6 >Emitted(4, 24) Source(5, 26) + SourceIndex(2) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(5, 1) Source(11, 1) + SourceIndex(2) -2 >Emitted(5, 8) Source(11, 8) + SourceIndex(2) -3 >Emitted(5, 9) Source(11, 9) + SourceIndex(2) -4 >Emitted(5, 12) Source(11, 12) + SourceIndex(2) -5 >Emitted(5, 13) Source(11, 13) + SourceIndex(2) -6 >Emitted(5, 14) Source(11, 14) + SourceIndex(2) -7 >Emitted(5, 15) Source(11, 15) + SourceIndex(2) -8 >Emitted(5, 16) Source(11, 16) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(6, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(6, 8) Source(1, 8) + SourceIndex(3) -3 >Emitted(6, 9) Source(1, 9) + SourceIndex(3) -4 >Emitted(6, 12) Source(1, 12) + SourceIndex(3) -5 >Emitted(6, 13) Source(1, 13) + SourceIndex(3) -6 >Emitted(6, 14) Source(1, 14) + SourceIndex(3) -7 >Emitted(6, 16) Source(1, 16) + SourceIndex(3) -8 >Emitted(6, 17) Source(1, 17) + SourceIndex(3) -9 >Emitted(6, 18) Source(1, 18) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(7, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(7, 10) Source(1, 10) + SourceIndex(4) -3 >Emitted(7, 11) Source(1, 11) + SourceIndex(4) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(8, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(8, 12) Source(2, 12) + SourceIndex(4) -3 >Emitted(8, 28) Source(2, 28) + SourceIndex(4) -4 >Emitted(8, 29) Source(2, 29) + SourceIndex(4) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(9, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(9, 2) Source(3, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(10, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(10, 5) Source(6, 11) + SourceIndex(0) -3 >Emitted(10, 6) Source(6, 12) + SourceIndex(0) -4 >Emitted(10, 7) Source(12, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(11, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(11, 12) Source(6, 11) + SourceIndex(0) -3 >Emitted(11, 13) Source(6, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(12, 5) Source(7, 5) + SourceIndex(0) -2 >Emitted(12, 14) Source(7, 14) + SourceIndex(0) -3 >Emitted(12, 15) Source(7, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(13, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(13, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(13, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(13, 20) Source(8, 20) + SourceIndex(0) -5 >Emitted(13, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(13, 30) Source(8, 30) + SourceIndex(0) -7 >Emitted(13, 31) Source(8, 31) + SourceIndex(0) -8 >Emitted(13, 32) Source(8, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(14, 6) Source(9, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(15, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(15, 6) Source(11, 6) + SourceIndex(0) -3 >Emitted(15, 8) Source(11, 8) + SourceIndex(0) -4 >Emitted(15, 9) Source(11, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(16, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(12, 2) + SourceIndex(0) -3 >Emitted(16, 4) Source(6, 11) + SourceIndex(0) -4 >Emitted(16, 5) Source(6, 12) + SourceIndex(0) -5 >Emitted(16, 10) Source(6, 11) + SourceIndex(0) -6 >Emitted(16, 11) Source(6, 12) + SourceIndex(0) -7 >Emitted(16, 19) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(17, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(18, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(19, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(19, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(20, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(20, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(20, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(21, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(21, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(21, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(21, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(21, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(21, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(21, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(21, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(22, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(22, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(23, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(23, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(24, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(24, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(24, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(24, 6) Source(6, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(25, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(25, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(25, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(25, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(25, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(25, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(25, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(25, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(26, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(26, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(26, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(26, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(26, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(26, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 46, - "end": 156, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 46, - "end": 156, - "kind": "text" - } - ] - }, - { - "pos": 156, - "end": 441, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 156, - "end": 441, - "kind": "text" - } - ] - }, - { - "pos": 441, - "end": 477, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prepend: (46-156):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (46-156) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (156-441):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (156-441) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (441-477) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-all-projects.js deleted file mode 100644 index a7dbc818b70..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-all-projects.js +++ /dev/null @@ -1,1806 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/2/second-output.d.ts] -#!someshebang second second_part1 -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>#!someshebang second second_part1 ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >#!someshebang second second_part1 - > -2 >namespace -3 > N -4 > -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 19) Source(2, 11) + SourceIndex(0) -3 >Emitted(2, 20) Source(2, 12) + SourceIndex(0) -4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 19) Source(6, 11) + SourceIndex(0) -3 >Emitted(4, 20) Source(6, 12) + SourceIndex(0) -4 >Emitted(4, 21) Source(6, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(5, 2) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -#!someshebang second second_part1 -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>#!someshebang second second_part1 ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 11) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 12) + SourceIndex(0) -4 >Emitted(2, 7) Source(12, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(6, 11) + SourceIndex(0) -3 >Emitted(3, 13) Source(6, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(4, 5) Source(7, 5) + SourceIndex(0) -2 >Emitted(4, 14) Source(7, 14) + SourceIndex(0) -3 >Emitted(4, 15) Source(7, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(5, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(5, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(5, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(5, 20) Source(8, 20) + SourceIndex(0) -5 >Emitted(5, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(5, 30) Source(8, 30) + SourceIndex(0) -7 >Emitted(5, 31) Source(8, 31) + SourceIndex(0) -8 >Emitted(5, 32) Source(8, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(9, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(7, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(11, 6) + SourceIndex(0) -3 >Emitted(7, 8) Source(11, 8) + SourceIndex(0) -4 >Emitted(7, 9) Source(11, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 2) Source(12, 2) + SourceIndex(0) -3 >Emitted(8, 4) Source(6, 11) + SourceIndex(0) -4 >Emitted(8, 5) Source(6, 12) + SourceIndex(0) -5 >Emitted(8, 10) Source(6, 11) + SourceIndex(0) -6 >Emitted(8, 11) Source(6, 12) + SourceIndex(0) -7 >Emitted(8, 19) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 35, - "end": 320, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 35, - "end": 135, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (35-320) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (35-135) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >#!someshebang first first_PART1 - > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(5, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -#!someshebang first first_PART1 -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 33, - "end": 143, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 33, - "end": 190, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (33-143) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (33-190) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -#!someshebang first first_part2 -console.log(f()); - - -//// [/src/second/second_part1.ts] -#!someshebang second second_part1 -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >#!someshebang first first_PART1 - > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(5, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >#!someshebang second second_part1 - > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(2, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(6, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1->#!someshebang third third_part1 - > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(2, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(2, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(2, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(2, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(2, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(2, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -#!someshebang first first_PART1 -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(6, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(12, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(6, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(6, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(7, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(7, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(7, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(8, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(8, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(8, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(8, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(8, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(8, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(8, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(8, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(9, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(11, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(11, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(11, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(11, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(6, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(6, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(6, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(6, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(12, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1->#!someshebang third third_part1 - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(2, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(2, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(2, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(2, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(3, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(3, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(3, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(3, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(3, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 33, - "end": 143, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 33, - "end": 143, - "kind": "text" - } - ] - }, - { - "pos": 143, - "end": 428, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 143, - "end": 428, - "kind": "text" - } - ] - }, - { - "pos": 428, - "end": 464, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 33, - "end": 190, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 33, - "end": 190, - "kind": "text" - } - ] - }, - { - "pos": 190, - "end": 290, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 190, - "end": 290, - "kind": "text" - } - ] - }, - { - "pos": 290, - "end": 309, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (33-143):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (33-143) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (143-428):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (143-428) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (428-464) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (33-190):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (33-190) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (190-290):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (190-290) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (290-309) -declare var c: C; - -====================================================================== - -//// [/src/third/third_part1.ts] -#!someshebang third third_part1 -var c = new C(); -c.doSomething(); - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-only-one-dependency-project.js deleted file mode 100644 index 42351781f92..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/shebang-in-only-one-dependency-project.js +++ /dev/null @@ -1,1748 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -#!someshebang second second_part1 -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>#!someshebang second second_part1 ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >#!someshebang second second_part1 - > -2 >namespace -3 > N -4 > -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 19) Source(2, 11) + SourceIndex(0) -3 >Emitted(2, 20) Source(2, 12) + SourceIndex(0) -4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 19) Source(6, 11) + SourceIndex(0) -3 >Emitted(4, 20) Source(6, 12) + SourceIndex(0) -4 >Emitted(4, 21) Source(6, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(5, 2) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -#!someshebang second second_part1 -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>#!someshebang second second_part1 ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 11) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 12) + SourceIndex(0) -4 >Emitted(2, 7) Source(12, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(6, 11) + SourceIndex(0) -3 >Emitted(3, 13) Source(6, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(4, 5) Source(7, 5) + SourceIndex(0) -2 >Emitted(4, 14) Source(7, 14) + SourceIndex(0) -3 >Emitted(4, 15) Source(7, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(5, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(5, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(5, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(5, 20) Source(8, 20) + SourceIndex(0) -5 >Emitted(5, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(5, 30) Source(8, 30) + SourceIndex(0) -7 >Emitted(5, 31) Source(8, 31) + SourceIndex(0) -8 >Emitted(5, 32) Source(8, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(9, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(7, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(11, 6) + SourceIndex(0) -3 >Emitted(7, 8) Source(11, 8) + SourceIndex(0) -4 >Emitted(7, 9) Source(11, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 2) Source(12, 2) + SourceIndex(0) -3 >Emitted(8, 4) Source(6, 11) + SourceIndex(0) -4 >Emitted(8, 5) Source(6, 12) + SourceIndex(0) -5 >Emitted(8, 10) Source(6, 11) + SourceIndex(0) -6 >Emitted(8, 11) Source(6, 12) + SourceIndex(0) -7 >Emitted(8, 19) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 35, - "end": 320, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 35, - "end": 135, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (35-320) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (35-135) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/second/second_part1.ts] -#!someshebang second second_part1 -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -#!someshebang second second_part1 -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang second second_part1 ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(5, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(5, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(5, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >#!someshebang second second_part1 - > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(2, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(6, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -#!someshebang second second_part1 -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang second second_part1 ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(6, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(12, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(6, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(6, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(7, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(7, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(7, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(8, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(8, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(8, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(8, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(8, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(8, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(8, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(8, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(9, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(11, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(11, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(11, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(11, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(6, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(6, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(6, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(6, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(12, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 35, - "end": 145, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 35, - "end": 145, - "kind": "text" - } - ] - }, - { - "pos": 145, - "end": 430, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 145, - "end": 430, - "kind": "text" - } - ] - }, - { - "pos": 430, - "end": 466, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 35, - "end": 192, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 35, - "end": 192, - "kind": "text" - } - ] - }, - { - "pos": 192, - "end": 292, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 192, - "end": 292, - "kind": "text" - } - ] - }, - { - "pos": 292, - "end": 311, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (35-145):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (35-145) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (145-430):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (145-430) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (430-466) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (35-192):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (35-192) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (192-292):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (192-292) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (292-311) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-all-projects.js deleted file mode 100644 index 515d0e260d8..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-all-projects.js +++ /dev/null @@ -1,1894 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -"use strict"; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(2, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(4, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(4, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(5, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(5, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(5, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(5, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(5, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(5, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(5, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(5, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(7, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(7, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(8, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(8, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(8, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(8, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(8, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(8, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 300, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 100, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (15-300) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-100) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 125, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (15-125) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] -} - - -//// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 125, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 15, - "end": 125, - "kind": "text" - } - ] - }, - { - "pos": 125, - "end": 410, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 125, - "end": 410, - "kind": "text" - } - ] - }, - { - "pos": 410, - "end": 446, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prepend: (15-125):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (15-125) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (125-410):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (125-410) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (410-446) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-one-dependency.js deleted file mode 100644 index 4c801cc2b1e..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/strict-in-one-dependency.js +++ /dev/null @@ -1,1780 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -"use strict"; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(2, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(4, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(4, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(5, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(5, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(5, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(5, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(5, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(5, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(5, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(5, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(7, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(7, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(8, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(8, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(8, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(8, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(8, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(8, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 300, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 100, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (15-300) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-100) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 125, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 15, - "end": 125, - "kind": "text" - } - ] - }, - { - "pos": 125, - "end": 410, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 125, - "end": 410, - "kind": "text" - } - ] - }, - { - "pos": 410, - "end": 446, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prepend: (15-125):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (15-125) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (125-410):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (125-410) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (410-446) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-baseline-when-internal-is-inside-another-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-baseline-when-internal-is-inside-another-internal.js deleted file mode 100644 index 295d79ddce8..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-baseline-when-internal-is-inside-another-internal.js +++ /dev/null @@ -1,2252 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:00:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:00:00 PM - Building project '/src/first/tsconfig.json'... - -4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:00:00 PM - Building project '/src/second/tsconfig.json'... - -4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:00:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 285, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 100, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-285) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-100) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -declare namespace ts { - interface SourceFileLike { - readonly text: string; - lineMap?: ReadonlyArray; - getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; - } - interface RedirectInfo { - readonly redirectTarget: SourceFile; - readonly unredirected: SourceFile; - } - interface SourceFile { - someProp: string; - } -} -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,kBAAU,EAAE,CAAC;IAKT,UAAiB,cAAc;QAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAEhC,6BAA6B,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;KAC9F;IAGD,UAAiB,YAAY;QAEzB,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC;QAKpC,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;KACrC;IAGD,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEnCD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>declare namespace ts { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > -2 >namespace -3 > ts -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) -4 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) ---- ->>> interface SourceFileLike { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^-> -1->{ - > /* @internal */ - > /** - > * Subset of properties from SourceFile that are used in multiple utility functions - > */ - > -2 > export interface -3 > SourceFileLike -1->Emitted(2, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(2, 15) Source(6, 22) + SourceIndex(0) -3 >Emitted(2, 29) Source(6, 36) + SourceIndex(0) ---- ->>> readonly text: string; -1->^^^^^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^-> -1-> { - > -2 > readonly -3 > -4 > text -5 > : -6 > string -7 > ; -1->Emitted(3, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(3, 17) Source(7, 17) + SourceIndex(0) -3 >Emitted(3, 18) Source(7, 18) + SourceIndex(0) -4 >Emitted(3, 22) Source(7, 22) + SourceIndex(0) -5 >Emitted(3, 24) Source(7, 24) + SourceIndex(0) -6 >Emitted(3, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(3, 31) Source(7, 31) + SourceIndex(0) ---- ->>> lineMap?: ReadonlyArray; -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^ -8 > ^ -9 > ^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 > lineMap -3 > ? -4 > : -5 > ReadonlyArray -6 > < -7 > number -8 > > -9 > ; -1->Emitted(4, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(4, 19) Source(8, 19) + SourceIndex(0) -5 >Emitted(4, 32) Source(8, 32) + SourceIndex(0) -6 >Emitted(4, 33) Source(8, 33) + SourceIndex(0) -7 >Emitted(4, 39) Source(8, 39) + SourceIndex(0) -8 >Emitted(4, 40) Source(8, 40) + SourceIndex(0) -9 >Emitted(4, 41) Source(8, 41) + SourceIndex(0) ---- ->>> getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -5 > ^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^^ -10> ^^ -11> ^^^^^^ -12> ^^ -13> ^^^^^^^^^^ -14> ^ -15> ^^ -16> ^^^^ -17> ^^^ -18> ^^^^^^ -19> ^ -1-> - > /* @internal */ - > -2 > getPositionOfLineAndCharacter -3 > ? -4 > ( -5 > line -6 > : -7 > number -8 > , -9 > character -10> : -11> number -12> , -13> allowEdits -14> ? -15> : -16> true -17> ): -18> number -19> ; -1->Emitted(5, 9) Source(10, 9) + SourceIndex(0) -2 >Emitted(5, 38) Source(10, 38) + SourceIndex(0) -3 >Emitted(5, 39) Source(10, 39) + SourceIndex(0) -4 >Emitted(5, 40) Source(10, 40) + SourceIndex(0) -5 >Emitted(5, 44) Source(10, 44) + SourceIndex(0) -6 >Emitted(5, 46) Source(10, 46) + SourceIndex(0) -7 >Emitted(5, 52) Source(10, 52) + SourceIndex(0) -8 >Emitted(5, 54) Source(10, 54) + SourceIndex(0) -9 >Emitted(5, 63) Source(10, 63) + SourceIndex(0) -10>Emitted(5, 65) Source(10, 65) + SourceIndex(0) -11>Emitted(5, 71) Source(10, 71) + SourceIndex(0) -12>Emitted(5, 73) Source(10, 73) + SourceIndex(0) -13>Emitted(5, 83) Source(10, 83) + SourceIndex(0) -14>Emitted(5, 84) Source(10, 84) + SourceIndex(0) -15>Emitted(5, 86) Source(10, 86) + SourceIndex(0) -16>Emitted(5, 90) Source(10, 90) + SourceIndex(0) -17>Emitted(5, 93) Source(10, 93) + SourceIndex(0) -18>Emitted(5, 99) Source(10, 99) + SourceIndex(0) -19>Emitted(5, 100) Source(10, 100) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > } -1 >Emitted(6, 6) Source(11, 6) + SourceIndex(0) ---- ->>> interface RedirectInfo { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > - > /* @internal */ - > -2 > export interface -3 > RedirectInfo -1->Emitted(7, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(7, 15) Source(14, 22) + SourceIndex(0) -3 >Emitted(7, 27) Source(14, 34) + SourceIndex(0) ---- ->>> readonly redirectTarget: SourceFile; -1->^^^^^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^ -7 > ^ -1-> { - > /** Source file this redirects to. */ - > -2 > readonly -3 > -4 > redirectTarget -5 > : -6 > SourceFile -7 > ; -1->Emitted(8, 9) Source(16, 9) + SourceIndex(0) -2 >Emitted(8, 17) Source(16, 17) + SourceIndex(0) -3 >Emitted(8, 18) Source(16, 18) + SourceIndex(0) -4 >Emitted(8, 32) Source(16, 32) + SourceIndex(0) -5 >Emitted(8, 34) Source(16, 34) + SourceIndex(0) -6 >Emitted(8, 44) Source(16, 44) + SourceIndex(0) -7 >Emitted(8, 45) Source(16, 45) + SourceIndex(0) ---- ->>> readonly unredirected: SourceFile; -1 >^^^^^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^ -7 > ^ -1 > - > /** - > * Source file for the duplicate package. This will not be used by the Program, - > * but we need to keep this around so we can watch for changes in underlying. - > */ - > -2 > readonly -3 > -4 > unredirected -5 > : -6 > SourceFile -7 > ; -1 >Emitted(9, 9) Source(21, 9) + SourceIndex(0) -2 >Emitted(9, 17) Source(21, 17) + SourceIndex(0) -3 >Emitted(9, 18) Source(21, 18) + SourceIndex(0) -4 >Emitted(9, 30) Source(21, 30) + SourceIndex(0) -5 >Emitted(9, 32) Source(21, 32) + SourceIndex(0) -6 >Emitted(9, 42) Source(21, 42) + SourceIndex(0) -7 >Emitted(9, 43) Source(21, 43) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > } -1 >Emitted(10, 6) Source(22, 6) + SourceIndex(0) ---- ->>> interface SourceFile { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^ -4 > ^^-> -1-> - > - > // Source files are declarations when they are external modules. - > -2 > export interface -3 > SourceFile -1->Emitted(11, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(11, 15) Source(25, 22) + SourceIndex(0) -3 >Emitted(11, 25) Source(25, 32) + SourceIndex(0) ---- ->>> someProp: string; -1->^^^^^^^^ -2 > ^^^^^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -1-> { - > -2 > someProp -3 > : -4 > string -5 > ; -1->Emitted(12, 9) Source(26, 9) + SourceIndex(0) -2 >Emitted(12, 17) Source(26, 17) + SourceIndex(0) -3 >Emitted(12, 19) Source(26, 19) + SourceIndex(0) -4 >Emitted(12, 25) Source(26, 25) + SourceIndex(0) -5 >Emitted(12, 26) Source(26, 26) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > - > } -1 >Emitted(13, 6) Source(27, 6) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(14, 2) Source(28, 2) + SourceIndex(0) ---- ->>>interface TheFirst { -1-> -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1-> -2 >interface -3 > TheFirst -1->Emitted(15, 1) Source(28, 2) + SourceIndex(0) -2 >Emitted(15, 11) Source(28, 12) + SourceIndex(0) -3 >Emitted(15, 19) Source(28, 20) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(16, 5) Source(29, 5) + SourceIndex(0) -2 >Emitted(16, 9) Source(29, 9) + SourceIndex(0) -3 >Emitted(16, 11) Source(29, 11) + SourceIndex(0) -4 >Emitted(16, 14) Source(29, 14) + SourceIndex(0) -5 >Emitted(16, 15) Source(29, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(17, 2) Source(30, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(18, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(18, 9) Source(32, 1) + SourceIndex(0) -3 >Emitted(18, 15) Source(32, 7) + SourceIndex(0) -4 >Emitted(18, 16) Source(32, 8) + SourceIndex(0) -5 >Emitted(18, 33) Source(32, 25) + SourceIndex(0) -6 >Emitted(18, 34) Source(32, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(19, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(19, 11) Source(34, 11) + SourceIndex(0) -3 >Emitted(19, 28) Source(34, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(20, 5) Source(35, 5) + SourceIndex(0) -2 >Emitted(20, 9) Source(35, 9) + SourceIndex(0) -3 >Emitted(20, 11) Source(35, 11) + SourceIndex(0) -4 >Emitted(20, 14) Source(35, 14) + SourceIndex(0) -5 >Emitted(20, 15) Source(35, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(21, 2) Source(36, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(22, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(22, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(22, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(22, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >namespace ts { - > /* @internal */ - > /** - > * Subset of properties from SourceFile that are used in multiple utility functions - > */ - > export interface SourceFileLike { - > readonly text: string; - > lineMap?: ReadonlyArray; - > /* @internal */ - > getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; - > } - > - > /* @internal */ - > export interface RedirectInfo { - > /** Source file this redirects to. */ - > readonly redirectTarget: SourceFile; - > /** - > * Source file for the duplicate package. This will not be used by the Program, - > * but we need to keep this around so we can watch for changes in underlying. - > */ - > readonly unredirected: SourceFile; - > } - > - > // Source files are declarations when they are external modules. - > export interface SourceFile { - > someProp: string; - > } - >}interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(32, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(32, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(32, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(32, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(32, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(38, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(38, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(38, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(38, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(38, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(38, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(38, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(38, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 24, - "kind": "text" - }, - { - "pos": 24, - "end": 363, - "kind": "internal" - }, - { - "pos": 365, - "end": 587, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-24) -declare namespace ts { - ----------------------------------------------------------------------- -internal: (24-363) - interface SourceFileLike { - readonly text: string; - lineMap?: ReadonlyArray; - getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; - } - interface RedirectInfo { - readonly redirectTarget: SourceFile; - readonly unredirected: SourceFile; - } ----------------------------------------------------------------------- -text: (365-587) - interface SourceFile { - someProp: string; - } -} -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -namespace ts { - /* @internal */ - /** - * Subset of properties from SourceFile that are used in multiple utility functions - */ - export interface SourceFileLike { - readonly text: string; - lineMap?: ReadonlyArray; - /* @internal */ - getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; - } - - /* @internal */ - export interface RedirectInfo { - /** Source file this redirects to. */ - readonly redirectTarget: SourceFile; - /** - * Source file for the duplicate package. This will not be used by the Program, - * but we need to keep this around so we can watch for changes in underlying. - */ - readonly unredirected: SourceFile; - } - - // Source files are declarations when they are external modules. - export interface SourceFile { - someProp: string; - } -}interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare namespace ts { - interface SourceFile { - someProp: string; - } -} -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,kBAAU,EAAE,CAAC;IAwBT,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACnCD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare namespace ts { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^ -5 > ^^^^^^-> -1 > -2 >namespace -3 > ts -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) -4 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) ---- ->>> interface SourceFile { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^ -4 > ^^-> -1->{ - > /* @internal */ - > /** - > * Subset of properties from SourceFile that are used in multiple utility functions - > */ - > export interface SourceFileLike { - > readonly text: string; - > lineMap?: ReadonlyArray; - > /* @internal */ - > getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; - > } - > - > /* @internal */ - > export interface RedirectInfo { - > /** Source file this redirects to. */ - > readonly redirectTarget: SourceFile; - > /** - > * Source file for the duplicate package. This will not be used by the Program, - > * but we need to keep this around so we can watch for changes in underlying. - > */ - > readonly unredirected: SourceFile; - > } - > - > // Source files are declarations when they are external modules. - > -2 > export interface -3 > SourceFile -1->Emitted(2, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(2, 15) Source(25, 22) + SourceIndex(0) -3 >Emitted(2, 25) Source(25, 32) + SourceIndex(0) ---- ->>> someProp: string; -1->^^^^^^^^ -2 > ^^^^^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -1-> { - > -2 > someProp -3 > : -4 > string -5 > ; -1->Emitted(3, 9) Source(26, 9) + SourceIndex(0) -2 >Emitted(3, 17) Source(26, 17) + SourceIndex(0) -3 >Emitted(3, 19) Source(26, 19) + SourceIndex(0) -4 >Emitted(3, 25) Source(26, 25) + SourceIndex(0) -5 >Emitted(3, 26) Source(26, 26) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > - > } -1 >Emitted(4, 6) Source(27, 6) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(5, 2) Source(28, 2) + SourceIndex(0) ---- ->>>interface TheFirst { -1-> -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1-> -2 >interface -3 > TheFirst -1->Emitted(6, 1) Source(28, 2) + SourceIndex(0) -2 >Emitted(6, 11) Source(28, 12) + SourceIndex(0) -3 >Emitted(6, 19) Source(28, 20) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(29, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(29, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(29, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(29, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(29, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(30, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(9, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(9, 9) Source(32, 1) + SourceIndex(0) -3 >Emitted(9, 15) Source(32, 7) + SourceIndex(0) -4 >Emitted(9, 16) Source(32, 8) + SourceIndex(0) -5 >Emitted(9, 33) Source(32, 25) + SourceIndex(0) -6 >Emitted(9, 34) Source(32, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(10, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(10, 11) Source(34, 11) + SourceIndex(0) -3 >Emitted(10, 28) Source(34, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(11, 5) Source(35, 5) + SourceIndex(0) -2 >Emitted(11, 9) Source(35, 9) + SourceIndex(0) -3 >Emitted(11, 11) Source(35, 11) + SourceIndex(0) -4 >Emitted(11, 14) Source(35, 14) + SourceIndex(0) -5 >Emitted(11, 15) Source(35, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(12, 2) Source(36, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(13, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(13, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(13, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(13, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(14, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(14, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(14, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(14, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(15, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(16, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(16, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(16, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(16, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(17, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(21, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(21, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(21, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(21, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(21, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(21, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >namespace ts { - > /* @internal */ - > /** - > * Subset of properties from SourceFile that are used in multiple utility functions - > */ - > export interface SourceFileLike { - > readonly text: string; - > lineMap?: ReadonlyArray; - > /* @internal */ - > getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; - > } - > - > /* @internal */ - > export interface RedirectInfo { - > /** Source file this redirects to. */ - > readonly redirectTarget: SourceFile; - > /** - > * Source file for the duplicate package. This will not be used by the Program, - > * but we need to keep this around so we can watch for changes in underlying. - > */ - > readonly unredirected: SourceFile; - > } - > - > // Source files are declarations when they are external modules. - > export interface SourceFile { - > someProp: string; - > } - >}interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(32, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(32, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(32, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(32, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(32, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(38, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(38, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(38, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(38, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(38, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(38, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(38, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(38, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 395, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 395, - "kind": "text" - } - ] - }, - { - "pos": 395, - "end": 431, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 246, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 246, - "kind": "text" - } - ] - }, - { - "pos": 246, - "end": 346, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 246, - "end": 346, - "kind": "text" - } - ] - }, - { - "pos": 346, - "end": 365, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-395):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-395) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (395-431) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-246):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-246) -declare namespace ts { - interface SourceFile { - someProp: string; - } -} -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (246-346):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (246-346) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (346-365) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, -"stripInternal": true - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index 5a785fe0232..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,5566 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { - constructor(); - prop: string; - method(): void; - c: number; -} -declare namespace normalN { - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/**@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 16) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 26) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 34) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(15, 5) Source(15, 20) + SourceIndex(2) -2 >Emitted(15, 9) Source(15, 24) + SourceIndex(2) -3 >Emitted(15, 11) Source(15, 26) + SourceIndex(2) -4 >Emitted(15, 17) Source(15, 32) + SourceIndex(2) -5 >Emitted(15, 18) Source(15, 33) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /**@internal*/ -2 > method -1->Emitted(16, 5) Source(16, 20) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 26) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /**@internal*/ get -2 > c -3 > () { return 10; } - > /**@internal*/ set c(val: -4 > number -1->Emitted(17, 5) Source(17, 24) + SourceIndex(2) -2 >Emitted(17, 6) Source(17, 25) + SourceIndex(2) -3 >Emitted(17, 8) Source(18, 31) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 37) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /**@internal*/ -2 > export class -3 > C -1 >Emitted(20, 5) Source(21, 20) + SourceIndex(2) -2 >Emitted(20, 11) Source(21, 33) + SourceIndex(2) -3 >Emitted(20, 12) Source(21, 34) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(21, 6) Source(21, 38) + SourceIndex(2) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(22, 5) Source(22, 20) + SourceIndex(2) -2 >Emitted(22, 14) Source(22, 36) + SourceIndex(2) -3 >Emitted(22, 17) Source(22, 39) + SourceIndex(2) -4 >Emitted(22, 26) Source(22, 44) + SourceIndex(2) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(23, 5) Source(23, 20) + SourceIndex(2) -2 >Emitted(23, 15) Source(23, 37) + SourceIndex(2) -3 >Emitted(23, 28) Source(23, 50) + SourceIndex(2) -4 >Emitted(23, 29) Source(23, 51) + SourceIndex(2) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(24, 9) Source(23, 53) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 66) + SourceIndex(2) -3 >Emitted(24, 16) Source(23, 67) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(25, 10) Source(23, 70) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(26, 6) Source(23, 72) + SourceIndex(2) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /**@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(27, 5) Source(24, 20) + SourceIndex(2) -2 >Emitted(27, 15) Source(24, 37) + SourceIndex(2) -3 >Emitted(27, 24) Source(24, 46) + SourceIndex(2) -4 >Emitted(27, 25) Source(24, 47) + SourceIndex(2) -5 >Emitted(27, 34) Source(24, 56) + SourceIndex(2) -6 >Emitted(27, 35) Source(24, 57) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(28, 9) Source(24, 59) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 72) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 81) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(29, 10) Source(24, 84) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(30, 6) Source(24, 86) + SourceIndex(2) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /**@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(31, 5) Source(25, 20) + SourceIndex(2) -2 >Emitted(31, 11) Source(25, 26) + SourceIndex(2) -3 >Emitted(31, 19) Source(25, 34) + SourceIndex(2) -4 >Emitted(31, 29) Source(25, 44) + SourceIndex(2) -5 >Emitted(31, 32) Source(25, 47) + SourceIndex(2) -6 >Emitted(31, 45) Source(25, 60) + SourceIndex(2) -7 >Emitted(31, 46) Source(25, 61) + SourceIndex(2) -8 >Emitted(31, 47) Source(25, 62) + SourceIndex(2) -9 >Emitted(31, 48) Source(25, 63) + SourceIndex(2) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /**@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(32, 5) Source(26, 20) + SourceIndex(2) -2 >Emitted(32, 10) Source(26, 32) + SourceIndex(2) -3 >Emitted(32, 22) Source(26, 44) + SourceIndex(2) -4 >Emitted(32, 25) Source(26, 47) + SourceIndex(2) -5 >Emitted(32, 34) Source(26, 56) + SourceIndex(2) -6 >Emitted(32, 35) Source(26, 57) + SourceIndex(2) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /**@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(33, 5) Source(27, 27) + SourceIndex(2) -2 >Emitted(33, 11) Source(27, 33) + SourceIndex(2) -3 >Emitted(33, 24) Source(27, 46) + SourceIndex(2) -4 >Emitted(33, 29) Source(27, 51) + SourceIndex(2) -5 >Emitted(33, 30) Source(27, 52) + SourceIndex(2) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(34, 5) Source(28, 20) + SourceIndex(2) -2 >Emitted(34, 10) Source(28, 32) + SourceIndex(2) -3 >Emitted(34, 22) Source(28, 44) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(35, 9) Source(28, 47) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 48) + SourceIndex(2) -3 >Emitted(35, 14) Source(28, 48) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(36, 9) Source(28, 50) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 51) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 51) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(37, 9) Source(28, 53) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 54) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 54) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(38, 6) Source(28, 56) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/**@internal*/ -2 >class -3 > internalC -1->Emitted(40, 1) Source(30, 16) + SourceIndex(2) -2 >Emitted(40, 15) Source(30, 22) + SourceIndex(2) -3 >Emitted(40, 24) Source(30, 31) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(41, 2) Source(30, 34) + SourceIndex(2) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(42, 1) Source(31, 16) + SourceIndex(2) -2 >Emitted(42, 18) Source(31, 25) + SourceIndex(2) -3 >Emitted(42, 29) Source(31, 36) + SourceIndex(2) -4 >Emitted(42, 38) Source(31, 41) + SourceIndex(2) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(43, 1) Source(32, 16) + SourceIndex(2) -2 >Emitted(43, 19) Source(32, 26) + SourceIndex(2) -3 >Emitted(43, 36) Source(32, 43) + SourceIndex(2) -4 >Emitted(43, 37) Source(32, 44) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(44, 5) Source(32, 46) + SourceIndex(2) -2 >Emitted(44, 11) Source(32, 59) + SourceIndex(2) -3 >Emitted(44, 20) Source(32, 68) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(45, 6) Source(32, 71) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(46, 2) Source(32, 73) + SourceIndex(2) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/**@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(47, 1) Source(33, 16) + SourceIndex(2) -2 >Emitted(47, 19) Source(33, 26) + SourceIndex(2) -3 >Emitted(47, 32) Source(33, 39) + SourceIndex(2) -4 >Emitted(47, 33) Source(33, 40) + SourceIndex(2) -5 >Emitted(47, 42) Source(33, 49) + SourceIndex(2) -6 >Emitted(47, 43) Source(33, 50) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(48, 5) Source(33, 52) + SourceIndex(2) -2 >Emitted(48, 11) Source(33, 65) + SourceIndex(2) -3 >Emitted(48, 20) Source(33, 74) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(49, 6) Source(33, 77) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(50, 2) Source(33, 79) + SourceIndex(2) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(51, 1) Source(34, 16) + SourceIndex(2) -2 >Emitted(51, 8) Source(34, 23) + SourceIndex(2) -3 >Emitted(51, 22) Source(34, 37) + SourceIndex(2) -4 >Emitted(51, 25) Source(34, 40) + SourceIndex(2) -5 >Emitted(51, 42) Source(34, 57) + SourceIndex(2) -6 >Emitted(51, 43) Source(34, 58) + SourceIndex(2) -7 >Emitted(51, 52) Source(34, 67) + SourceIndex(2) -8 >Emitted(51, 53) Source(34, 68) + SourceIndex(2) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/**@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(52, 1) Source(35, 16) + SourceIndex(2) -2 >Emitted(52, 14) Source(35, 21) + SourceIndex(2) -3 >Emitted(52, 26) Source(35, 33) + SourceIndex(2) -4 >Emitted(52, 29) Source(35, 36) + SourceIndex(2) -5 >Emitted(52, 38) Source(35, 45) + SourceIndex(2) -6 >Emitted(52, 39) Source(35, 46) + SourceIndex(2) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/**@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(53, 1) Source(36, 16) + SourceIndex(2) -2 >Emitted(53, 9) Source(36, 16) + SourceIndex(2) -3 >Emitted(53, 15) Source(36, 22) + SourceIndex(2) -4 >Emitted(53, 28) Source(36, 35) + SourceIndex(2) -5 >Emitted(53, 33) Source(36, 40) + SourceIndex(2) -6 >Emitted(53, 34) Source(36, 41) + SourceIndex(2) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/**@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(54, 1) Source(37, 16) + SourceIndex(2) -2 >Emitted(54, 14) Source(37, 21) + SourceIndex(2) -3 >Emitted(54, 26) Source(37, 33) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(55, 5) Source(37, 36) + SourceIndex(2) -2 >Emitted(55, 6) Source(37, 37) + SourceIndex(2) -3 >Emitted(55, 10) Source(37, 37) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(56, 5) Source(37, 39) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 40) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 40) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(57, 5) Source(37, 42) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 43) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 43) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(58, 2) Source(37, 45) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(15, 5) Source(14, 20) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 20) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 26) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 20) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 31) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 30) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 37) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 39) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 40) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 41) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 42) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 20) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 26) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 37) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 41) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(28, 5) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 20) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 36) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 39) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 43) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 37) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 50) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 37) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 46) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 34) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 44) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 47) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 60) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 61) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 62) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 63) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 33) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 46) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 49) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 51) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 52) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 32) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(66, 1) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 16) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 25) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 36) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 40) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 41) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 26) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 43) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 26) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 39) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 16) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 23) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 37) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 40) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 57) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 58) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 67) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 68) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 16) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 22) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 35) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 38) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 40) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 41) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 21) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3162, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 308, - "kind": "internal" - }, - { - "pos": 310, - "end": 342, - "kind": "text" - }, - { - "pos": 342, - "end": 734, - "kind": "internal" - }, - { - "pos": 736, - "end": 739, - "kind": "text" - }, - { - "pos": 739, - "end": 1152, - "kind": "internal" - }, - { - "pos": 1154, - "end": 1202, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (110-3162) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-308) - constructor(); - prop: string; - method(): void; - c: number; ----------------------------------------------------------------------- -text: (310-342) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (342-734) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (736-739) -} - ----------------------------------------------------------------------- -internal: (739-1152) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1154-1202) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/**@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 16) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 26) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 34) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /**@internal*/ constructor() { } - /**@internal*/ prop: string; - /**@internal*/ method() { } - /**@internal*/ get c() { return 10; } - /**@internal*/ set c(val: number) { } -} -namespace normalN { - /**@internal*/ export class C { } - /**@internal*/ export function foo() {} - /**@internal*/ export namespace someNamespace { export class C {} } - /**@internal*/ export namespace someOther.something { export class someClass {} } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ export type internalType = internalC; - /**@internal*/ export const internalConst = 10; - /**@internal*/ export enum internalEnum { a, b, c } -} -/**@internal*/ class internalC {} -/**@internal*/ function internalfoo() {} -/**@internal*/ namespace internalNamespace { export class someClass {} } -/**@internal*/ namespace internalOther.something { export class someClass {} } -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ type internalType = internalC; -/**@internal*/ const internalConst = 10; -/**@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../first", "prepend": true } - ] -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare const s = "Hello, world"; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(15, 5) Source(14, 20) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 20) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 26) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 20) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 31) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 30) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 37) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 39) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 40) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 41) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 42) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 20) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 26) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 37) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 41) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(28, 5) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 20) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 36) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 39) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 43) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 37) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 50) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 37) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 46) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 34) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 44) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 47) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 60) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 61) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 62) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 63) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 33) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 46) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 49) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 51) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 52) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 32) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(66, 1) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 16) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 25) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 36) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 40) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 41) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 26) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 43) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 26) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 39) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 16) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 23) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 37) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 40) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 57) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 58) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 67) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 68) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 16) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 22) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 35) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 38) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 40) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 41) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 21) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3162, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3162, - "kind": "text" - } - ] - }, - { - "pos": 3162, - "end": 3198, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3162):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3162) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3162-3198) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-276) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, -"stripInternal": true - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment.js deleted file mode 100644 index 6e60def2dc2..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-comment.js +++ /dev/null @@ -1,5257 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class normalC { - constructor(); - prop: string; - method(): void; - c: number; -} -declare namespace normalN { - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 15) Source(13, 7) + SourceIndex(0) -3 >Emitted(5, 22) Source(13, 14) + SourceIndex(0) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(7, 5) Source(15, 20) + SourceIndex(0) -2 >Emitted(7, 9) Source(15, 24) + SourceIndex(0) -3 >Emitted(7, 11) Source(15, 26) + SourceIndex(0) -4 >Emitted(7, 17) Source(15, 32) + SourceIndex(0) -5 >Emitted(7, 18) Source(15, 33) + SourceIndex(0) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /**@internal*/ -2 > method -1->Emitted(8, 5) Source(16, 20) + SourceIndex(0) -2 >Emitted(8, 11) Source(16, 26) + SourceIndex(0) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /**@internal*/ get -2 > c -3 > () { return 10; } - > /**@internal*/ set c(val: -4 > number -1->Emitted(9, 5) Source(17, 24) + SourceIndex(0) -2 >Emitted(9, 6) Source(17, 25) + SourceIndex(0) -3 >Emitted(9, 8) Source(18, 31) + SourceIndex(0) -4 >Emitted(9, 14) Source(18, 37) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(10, 2) Source(19, 2) + SourceIndex(0) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(11, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(11, 19) Source(20, 11) + SourceIndex(0) -3 >Emitted(11, 26) Source(20, 18) + SourceIndex(0) -4 >Emitted(11, 27) Source(20, 19) + SourceIndex(0) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /**@internal*/ -2 > export class -3 > C -1 >Emitted(12, 5) Source(21, 20) + SourceIndex(0) -2 >Emitted(12, 11) Source(21, 33) + SourceIndex(0) -3 >Emitted(12, 12) Source(21, 34) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(13, 6) Source(21, 38) + SourceIndex(0) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(14, 5) Source(22, 20) + SourceIndex(0) -2 >Emitted(14, 14) Source(22, 36) + SourceIndex(0) -3 >Emitted(14, 17) Source(22, 39) + SourceIndex(0) -4 >Emitted(14, 26) Source(22, 44) + SourceIndex(0) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(15, 5) Source(23, 20) + SourceIndex(0) -2 >Emitted(15, 15) Source(23, 37) + SourceIndex(0) -3 >Emitted(15, 28) Source(23, 50) + SourceIndex(0) -4 >Emitted(15, 29) Source(23, 51) + SourceIndex(0) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(16, 9) Source(23, 53) + SourceIndex(0) -2 >Emitted(16, 15) Source(23, 66) + SourceIndex(0) -3 >Emitted(16, 16) Source(23, 67) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(17, 10) Source(23, 70) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(18, 6) Source(23, 72) + SourceIndex(0) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /**@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(19, 5) Source(24, 20) + SourceIndex(0) -2 >Emitted(19, 15) Source(24, 37) + SourceIndex(0) -3 >Emitted(19, 24) Source(24, 46) + SourceIndex(0) -4 >Emitted(19, 25) Source(24, 47) + SourceIndex(0) -5 >Emitted(19, 34) Source(24, 56) + SourceIndex(0) -6 >Emitted(19, 35) Source(24, 57) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(20, 9) Source(24, 59) + SourceIndex(0) -2 >Emitted(20, 15) Source(24, 72) + SourceIndex(0) -3 >Emitted(20, 24) Source(24, 81) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(21, 10) Source(24, 84) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(22, 6) Source(24, 86) + SourceIndex(0) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /**@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(23, 5) Source(25, 20) + SourceIndex(0) -2 >Emitted(23, 11) Source(25, 26) + SourceIndex(0) -3 >Emitted(23, 19) Source(25, 34) + SourceIndex(0) -4 >Emitted(23, 29) Source(25, 44) + SourceIndex(0) -5 >Emitted(23, 32) Source(25, 47) + SourceIndex(0) -6 >Emitted(23, 45) Source(25, 60) + SourceIndex(0) -7 >Emitted(23, 46) Source(25, 61) + SourceIndex(0) -8 >Emitted(23, 47) Source(25, 62) + SourceIndex(0) -9 >Emitted(23, 48) Source(25, 63) + SourceIndex(0) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /**@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(24, 5) Source(26, 20) + SourceIndex(0) -2 >Emitted(24, 10) Source(26, 32) + SourceIndex(0) -3 >Emitted(24, 22) Source(26, 44) + SourceIndex(0) -4 >Emitted(24, 25) Source(26, 47) + SourceIndex(0) -5 >Emitted(24, 34) Source(26, 56) + SourceIndex(0) -6 >Emitted(24, 35) Source(26, 57) + SourceIndex(0) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /**@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(25, 5) Source(27, 27) + SourceIndex(0) -2 >Emitted(25, 11) Source(27, 33) + SourceIndex(0) -3 >Emitted(25, 24) Source(27, 46) + SourceIndex(0) -4 >Emitted(25, 29) Source(27, 51) + SourceIndex(0) -5 >Emitted(25, 30) Source(27, 52) + SourceIndex(0) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(26, 5) Source(28, 20) + SourceIndex(0) -2 >Emitted(26, 10) Source(28, 32) + SourceIndex(0) -3 >Emitted(26, 22) Source(28, 44) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(27, 9) Source(28, 47) + SourceIndex(0) -2 >Emitted(27, 10) Source(28, 48) + SourceIndex(0) -3 >Emitted(27, 14) Source(28, 48) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(28, 9) Source(28, 50) + SourceIndex(0) -2 >Emitted(28, 10) Source(28, 51) + SourceIndex(0) -3 >Emitted(28, 14) Source(28, 51) + SourceIndex(0) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(29, 9) Source(28, 53) + SourceIndex(0) -2 >Emitted(29, 10) Source(28, 54) + SourceIndex(0) -3 >Emitted(29, 14) Source(28, 54) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(30, 6) Source(28, 56) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(31, 2) Source(29, 2) + SourceIndex(0) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/**@internal*/ -2 >class -3 > internalC -1->Emitted(32, 1) Source(30, 16) + SourceIndex(0) -2 >Emitted(32, 15) Source(30, 22) + SourceIndex(0) -3 >Emitted(32, 24) Source(30, 31) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(33, 2) Source(30, 34) + SourceIndex(0) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(34, 1) Source(31, 16) + SourceIndex(0) -2 >Emitted(34, 18) Source(31, 25) + SourceIndex(0) -3 >Emitted(34, 29) Source(31, 36) + SourceIndex(0) -4 >Emitted(34, 38) Source(31, 41) + SourceIndex(0) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(35, 1) Source(32, 16) + SourceIndex(0) -2 >Emitted(35, 19) Source(32, 26) + SourceIndex(0) -3 >Emitted(35, 36) Source(32, 43) + SourceIndex(0) -4 >Emitted(35, 37) Source(32, 44) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(36, 5) Source(32, 46) + SourceIndex(0) -2 >Emitted(36, 11) Source(32, 59) + SourceIndex(0) -3 >Emitted(36, 20) Source(32, 68) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(37, 6) Source(32, 71) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(38, 2) Source(32, 73) + SourceIndex(0) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/**@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(39, 1) Source(33, 16) + SourceIndex(0) -2 >Emitted(39, 19) Source(33, 26) + SourceIndex(0) -3 >Emitted(39, 32) Source(33, 39) + SourceIndex(0) -4 >Emitted(39, 33) Source(33, 40) + SourceIndex(0) -5 >Emitted(39, 42) Source(33, 49) + SourceIndex(0) -6 >Emitted(39, 43) Source(33, 50) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(40, 5) Source(33, 52) + SourceIndex(0) -2 >Emitted(40, 11) Source(33, 65) + SourceIndex(0) -3 >Emitted(40, 20) Source(33, 74) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(41, 6) Source(33, 77) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(42, 2) Source(33, 79) + SourceIndex(0) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(43, 1) Source(34, 16) + SourceIndex(0) -2 >Emitted(43, 8) Source(34, 23) + SourceIndex(0) -3 >Emitted(43, 22) Source(34, 37) + SourceIndex(0) -4 >Emitted(43, 25) Source(34, 40) + SourceIndex(0) -5 >Emitted(43, 42) Source(34, 57) + SourceIndex(0) -6 >Emitted(43, 43) Source(34, 58) + SourceIndex(0) -7 >Emitted(43, 52) Source(34, 67) + SourceIndex(0) -8 >Emitted(43, 53) Source(34, 68) + SourceIndex(0) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/**@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(44, 1) Source(35, 16) + SourceIndex(0) -2 >Emitted(44, 14) Source(35, 21) + SourceIndex(0) -3 >Emitted(44, 26) Source(35, 33) + SourceIndex(0) -4 >Emitted(44, 29) Source(35, 36) + SourceIndex(0) -5 >Emitted(44, 38) Source(35, 45) + SourceIndex(0) -6 >Emitted(44, 39) Source(35, 46) + SourceIndex(0) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/**@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(45, 1) Source(36, 16) + SourceIndex(0) -2 >Emitted(45, 9) Source(36, 16) + SourceIndex(0) -3 >Emitted(45, 15) Source(36, 22) + SourceIndex(0) -4 >Emitted(45, 28) Source(36, 35) + SourceIndex(0) -5 >Emitted(45, 33) Source(36, 40) + SourceIndex(0) -6 >Emitted(45, 34) Source(36, 41) + SourceIndex(0) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/**@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(46, 1) Source(37, 16) + SourceIndex(0) -2 >Emitted(46, 14) Source(37, 21) + SourceIndex(0) -3 >Emitted(46, 26) Source(37, 33) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(47, 5) Source(37, 36) + SourceIndex(0) -2 >Emitted(47, 6) Source(37, 37) + SourceIndex(0) -3 >Emitted(47, 10) Source(37, 37) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(48, 5) Source(37, 39) + SourceIndex(0) -2 >Emitted(48, 6) Source(37, 40) + SourceIndex(0) -3 >Emitted(48, 10) Source(37, 40) + SourceIndex(0) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(49, 5) Source(37, 42) + SourceIndex(0) -2 >Emitted(49, 6) Source(37, 43) + SourceIndex(0) -3 >Emitted(49, 10) Source(37, 43) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(50, 2) Source(37, 45) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(51, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(51, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(51, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(52, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(52, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(53, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(9, 5) Source(14, 20) + SourceIndex(0) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(10, 5) Source(14, 36) + SourceIndex(0) -2 >Emitted(10, 6) Source(14, 37) + SourceIndex(0) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(11, 5) Source(16, 20) + SourceIndex(0) -2 >Emitted(11, 29) Source(16, 26) + SourceIndex(0) -3 >Emitted(11, 32) Source(16, 20) + SourceIndex(0) -4 >Emitted(11, 46) Source(16, 31) + SourceIndex(0) -5 >Emitted(11, 47) Source(16, 32) + SourceIndex(0) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(12, 5) Source(17, 20) + SourceIndex(0) -2 >Emitted(12, 27) Source(17, 24) + SourceIndex(0) -3 >Emitted(12, 49) Source(17, 25) + SourceIndex(0) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(13, 14) Source(17, 20) + SourceIndex(0) -2 >Emitted(13, 28) Source(17, 30) + SourceIndex(0) -3 >Emitted(13, 35) Source(17, 37) + SourceIndex(0) -4 >Emitted(13, 37) Source(17, 39) + SourceIndex(0) -5 >Emitted(13, 38) Source(17, 40) + SourceIndex(0) -6 >Emitted(13, 39) Source(17, 41) + SourceIndex(0) -7 >Emitted(13, 40) Source(17, 42) + SourceIndex(0) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(14, 14) Source(18, 20) + SourceIndex(0) -2 >Emitted(14, 24) Source(18, 26) + SourceIndex(0) -3 >Emitted(14, 27) Source(18, 37) + SourceIndex(0) -4 >Emitted(14, 31) Source(18, 41) + SourceIndex(0) -5 >Emitted(14, 32) Source(18, 42) + SourceIndex(0) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(17, 8) Source(17, 42) + SourceIndex(0) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(18, 5) Source(19, 1) + SourceIndex(0) -2 >Emitted(18, 19) Source(19, 2) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) -3 >Emitted(19, 2) Source(13, 1) + SourceIndex(0) -4 >Emitted(19, 6) Source(19, 2) + SourceIndex(0) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(20, 5) Source(20, 11) + SourceIndex(0) -3 >Emitted(20, 12) Source(20, 18) + SourceIndex(0) -4 >Emitted(20, 13) Source(29, 2) + SourceIndex(0) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(21, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(21, 12) Source(20, 11) + SourceIndex(0) -3 >Emitted(21, 19) Source(20, 18) + SourceIndex(0) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(22, 5) Source(21, 20) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(23, 9) Source(21, 20) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(24, 9) Source(21, 37) + SourceIndex(0) -2 >Emitted(24, 10) Source(21, 38) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(25, 9) Source(21, 37) + SourceIndex(0) -2 >Emitted(25, 17) Source(21, 38) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(26, 5) Source(21, 37) + SourceIndex(0) -2 >Emitted(26, 6) Source(21, 38) + SourceIndex(0) -3 >Emitted(26, 6) Source(21, 20) + SourceIndex(0) -4 >Emitted(26, 10) Source(21, 38) + SourceIndex(0) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(27, 5) Source(21, 33) + SourceIndex(0) -2 >Emitted(27, 14) Source(21, 34) + SourceIndex(0) -3 >Emitted(27, 18) Source(21, 38) + SourceIndex(0) -4 >Emitted(27, 19) Source(21, 38) + SourceIndex(0) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(28, 5) Source(22, 20) + SourceIndex(0) -2 >Emitted(28, 14) Source(22, 36) + SourceIndex(0) -3 >Emitted(28, 17) Source(22, 39) + SourceIndex(0) -4 >Emitted(28, 22) Source(22, 43) + SourceIndex(0) -5 >Emitted(28, 23) Source(22, 44) + SourceIndex(0) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(29, 5) Source(22, 36) + SourceIndex(0) -2 >Emitted(29, 16) Source(22, 39) + SourceIndex(0) -3 >Emitted(29, 22) Source(22, 44) + SourceIndex(0) -4 >Emitted(29, 23) Source(22, 44) + SourceIndex(0) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(30, 5) Source(23, 20) + SourceIndex(0) -2 >Emitted(30, 9) Source(23, 37) + SourceIndex(0) -3 >Emitted(30, 22) Source(23, 50) + SourceIndex(0) -4 >Emitted(30, 23) Source(23, 72) + SourceIndex(0) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(31, 5) Source(23, 20) + SourceIndex(0) -2 >Emitted(31, 16) Source(23, 37) + SourceIndex(0) -3 >Emitted(31, 29) Source(23, 50) + SourceIndex(0) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(32, 9) Source(23, 53) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(33, 13) Source(23, 53) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(34, 13) Source(23, 69) + SourceIndex(0) -2 >Emitted(34, 14) Source(23, 70) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(35, 13) Source(23, 69) + SourceIndex(0) -2 >Emitted(35, 21) Source(23, 70) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(36, 9) Source(23, 69) + SourceIndex(0) -2 >Emitted(36, 10) Source(23, 70) + SourceIndex(0) -3 >Emitted(36, 10) Source(23, 53) + SourceIndex(0) -4 >Emitted(36, 14) Source(23, 70) + SourceIndex(0) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(37, 9) Source(23, 66) + SourceIndex(0) -2 >Emitted(37, 24) Source(23, 67) + SourceIndex(0) -3 >Emitted(37, 28) Source(23, 70) + SourceIndex(0) -4 >Emitted(37, 29) Source(23, 70) + SourceIndex(0) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(38, 5) Source(23, 71) + SourceIndex(0) -2 >Emitted(38, 6) Source(23, 72) + SourceIndex(0) -3 >Emitted(38, 8) Source(23, 37) + SourceIndex(0) -4 >Emitted(38, 21) Source(23, 50) + SourceIndex(0) -5 >Emitted(38, 24) Source(23, 37) + SourceIndex(0) -6 >Emitted(38, 45) Source(23, 50) + SourceIndex(0) -7 >Emitted(38, 50) Source(23, 37) + SourceIndex(0) -8 >Emitted(38, 71) Source(23, 50) + SourceIndex(0) -9 >Emitted(38, 79) Source(23, 72) + SourceIndex(0) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(39, 5) Source(24, 20) + SourceIndex(0) -2 >Emitted(39, 9) Source(24, 37) + SourceIndex(0) -3 >Emitted(39, 18) Source(24, 46) + SourceIndex(0) -4 >Emitted(39, 19) Source(24, 86) + SourceIndex(0) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(40, 5) Source(24, 20) + SourceIndex(0) -2 >Emitted(40, 16) Source(24, 37) + SourceIndex(0) -3 >Emitted(40, 25) Source(24, 46) + SourceIndex(0) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(41, 9) Source(24, 47) + SourceIndex(0) -2 >Emitted(41, 13) Source(24, 47) + SourceIndex(0) -3 >Emitted(41, 22) Source(24, 56) + SourceIndex(0) -4 >Emitted(41, 23) Source(24, 86) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(42, 9) Source(24, 47) + SourceIndex(0) -2 >Emitted(42, 20) Source(24, 47) + SourceIndex(0) -3 >Emitted(42, 29) Source(24, 56) + SourceIndex(0) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(43, 13) Source(24, 59) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(44, 17) Source(24, 59) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(45, 17) Source(24, 83) + SourceIndex(0) -2 >Emitted(45, 18) Source(24, 84) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(46, 17) Source(24, 83) + SourceIndex(0) -2 >Emitted(46, 33) Source(24, 84) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(47, 13) Source(24, 83) + SourceIndex(0) -2 >Emitted(47, 14) Source(24, 84) + SourceIndex(0) -3 >Emitted(47, 14) Source(24, 59) + SourceIndex(0) -4 >Emitted(47, 18) Source(24, 84) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(48, 13) Source(24, 72) + SourceIndex(0) -2 >Emitted(48, 32) Source(24, 81) + SourceIndex(0) -3 >Emitted(48, 44) Source(24, 84) + SourceIndex(0) -4 >Emitted(48, 45) Source(24, 84) + SourceIndex(0) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(49, 9) Source(24, 85) + SourceIndex(0) -2 >Emitted(49, 10) Source(24, 86) + SourceIndex(0) -3 >Emitted(49, 12) Source(24, 47) + SourceIndex(0) -4 >Emitted(49, 21) Source(24, 56) + SourceIndex(0) -5 >Emitted(49, 24) Source(24, 47) + SourceIndex(0) -6 >Emitted(49, 43) Source(24, 56) + SourceIndex(0) -7 >Emitted(49, 48) Source(24, 47) + SourceIndex(0) -8 >Emitted(49, 67) Source(24, 56) + SourceIndex(0) -9 >Emitted(49, 75) Source(24, 86) + SourceIndex(0) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(50, 5) Source(24, 85) + SourceIndex(0) -2 >Emitted(50, 6) Source(24, 86) + SourceIndex(0) -3 >Emitted(50, 8) Source(24, 37) + SourceIndex(0) -4 >Emitted(50, 17) Source(24, 46) + SourceIndex(0) -5 >Emitted(50, 20) Source(24, 37) + SourceIndex(0) -6 >Emitted(50, 37) Source(24, 46) + SourceIndex(0) -7 >Emitted(50, 42) Source(24, 37) + SourceIndex(0) -8 >Emitted(50, 59) Source(24, 46) + SourceIndex(0) -9 >Emitted(50, 67) Source(24, 86) + SourceIndex(0) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(51, 5) Source(25, 34) + SourceIndex(0) -2 >Emitted(51, 23) Source(25, 44) + SourceIndex(0) -3 >Emitted(51, 26) Source(25, 47) + SourceIndex(0) -4 >Emitted(51, 39) Source(25, 60) + SourceIndex(0) -5 >Emitted(51, 40) Source(25, 61) + SourceIndex(0) -6 >Emitted(51, 41) Source(25, 62) + SourceIndex(0) -7 >Emitted(51, 42) Source(25, 63) + SourceIndex(0) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(52, 5) Source(27, 33) + SourceIndex(0) -2 >Emitted(52, 26) Source(27, 46) + SourceIndex(0) -3 >Emitted(52, 29) Source(27, 49) + SourceIndex(0) -4 >Emitted(52, 31) Source(27, 51) + SourceIndex(0) -5 >Emitted(52, 32) Source(27, 52) + SourceIndex(0) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(53, 5) Source(28, 20) + SourceIndex(0) -2 >Emitted(53, 9) Source(28, 32) + SourceIndex(0) -3 >Emitted(53, 21) Source(28, 56) + SourceIndex(0) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(54, 5) Source(28, 20) + SourceIndex(0) -2 >Emitted(54, 16) Source(28, 32) + SourceIndex(0) -3 >Emitted(54, 28) Source(28, 44) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(55, 9) Source(28, 47) + SourceIndex(0) -2 >Emitted(55, 50) Source(28, 48) + SourceIndex(0) -3 >Emitted(55, 51) Source(28, 48) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(56, 9) Source(28, 50) + SourceIndex(0) -2 >Emitted(56, 50) Source(28, 51) + SourceIndex(0) -3 >Emitted(56, 51) Source(28, 51) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(57, 9) Source(28, 53) + SourceIndex(0) -2 >Emitted(57, 50) Source(28, 54) + SourceIndex(0) -3 >Emitted(57, 51) Source(28, 54) + SourceIndex(0) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(58, 5) Source(28, 55) + SourceIndex(0) -2 >Emitted(58, 6) Source(28, 56) + SourceIndex(0) -3 >Emitted(58, 8) Source(28, 32) + SourceIndex(0) -4 >Emitted(58, 20) Source(28, 44) + SourceIndex(0) -5 >Emitted(58, 23) Source(28, 32) + SourceIndex(0) -6 >Emitted(58, 43) Source(28, 44) + SourceIndex(0) -7 >Emitted(58, 48) Source(28, 32) + SourceIndex(0) -8 >Emitted(58, 68) Source(28, 44) + SourceIndex(0) -9 >Emitted(58, 76) Source(28, 56) + SourceIndex(0) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(59, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(59, 2) Source(29, 2) + SourceIndex(0) -3 >Emitted(59, 4) Source(20, 11) + SourceIndex(0) -4 >Emitted(59, 11) Source(20, 18) + SourceIndex(0) -5 >Emitted(59, 16) Source(20, 11) + SourceIndex(0) -6 >Emitted(59, 23) Source(20, 18) + SourceIndex(0) -7 >Emitted(59, 31) Source(29, 2) + SourceIndex(0) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(60, 1) Source(30, 16) + SourceIndex(0) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(61, 5) Source(30, 16) + SourceIndex(0) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(62, 5) Source(30, 33) + SourceIndex(0) -2 >Emitted(62, 6) Source(30, 34) + SourceIndex(0) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(63, 5) Source(30, 33) + SourceIndex(0) -2 >Emitted(63, 21) Source(30, 34) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(64, 1) Source(30, 33) + SourceIndex(0) -2 >Emitted(64, 2) Source(30, 34) + SourceIndex(0) -3 >Emitted(64, 2) Source(30, 16) + SourceIndex(0) -4 >Emitted(64, 6) Source(30, 34) + SourceIndex(0) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(65, 1) Source(31, 16) + SourceIndex(0) -2 >Emitted(65, 10) Source(31, 25) + SourceIndex(0) -3 >Emitted(65, 21) Source(31, 36) + SourceIndex(0) -4 >Emitted(65, 26) Source(31, 40) + SourceIndex(0) -5 >Emitted(65, 27) Source(31, 41) + SourceIndex(0) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(66, 1) Source(32, 16) + SourceIndex(0) -2 >Emitted(66, 5) Source(32, 26) + SourceIndex(0) -3 >Emitted(66, 22) Source(32, 43) + SourceIndex(0) -4 >Emitted(66, 23) Source(32, 73) + SourceIndex(0) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(67, 1) Source(32, 16) + SourceIndex(0) -2 >Emitted(67, 12) Source(32, 26) + SourceIndex(0) -3 >Emitted(67, 29) Source(32, 43) + SourceIndex(0) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(68, 5) Source(32, 46) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(69, 9) Source(32, 46) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(70, 9) Source(32, 70) + SourceIndex(0) -2 >Emitted(70, 10) Source(32, 71) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(71, 9) Source(32, 70) + SourceIndex(0) -2 >Emitted(71, 25) Source(32, 71) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(72, 5) Source(32, 70) + SourceIndex(0) -2 >Emitted(72, 6) Source(32, 71) + SourceIndex(0) -3 >Emitted(72, 6) Source(32, 46) + SourceIndex(0) -4 >Emitted(72, 10) Source(32, 71) + SourceIndex(0) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(73, 5) Source(32, 59) + SourceIndex(0) -2 >Emitted(73, 32) Source(32, 68) + SourceIndex(0) -3 >Emitted(73, 44) Source(32, 71) + SourceIndex(0) -4 >Emitted(73, 45) Source(32, 71) + SourceIndex(0) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(74, 1) Source(32, 72) + SourceIndex(0) -2 >Emitted(74, 2) Source(32, 73) + SourceIndex(0) -3 >Emitted(74, 4) Source(32, 26) + SourceIndex(0) -4 >Emitted(74, 21) Source(32, 43) + SourceIndex(0) -5 >Emitted(74, 26) Source(32, 26) + SourceIndex(0) -6 >Emitted(74, 43) Source(32, 43) + SourceIndex(0) -7 >Emitted(74, 51) Source(32, 73) + SourceIndex(0) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(75, 1) Source(33, 16) + SourceIndex(0) -2 >Emitted(75, 5) Source(33, 26) + SourceIndex(0) -3 >Emitted(75, 18) Source(33, 39) + SourceIndex(0) -4 >Emitted(75, 19) Source(33, 79) + SourceIndex(0) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(76, 1) Source(33, 16) + SourceIndex(0) -2 >Emitted(76, 12) Source(33, 26) + SourceIndex(0) -3 >Emitted(76, 25) Source(33, 39) + SourceIndex(0) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(77, 5) Source(33, 40) + SourceIndex(0) -2 >Emitted(77, 9) Source(33, 40) + SourceIndex(0) -3 >Emitted(77, 18) Source(33, 49) + SourceIndex(0) -4 >Emitted(77, 19) Source(33, 79) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(78, 5) Source(33, 40) + SourceIndex(0) -2 >Emitted(78, 16) Source(33, 40) + SourceIndex(0) -3 >Emitted(78, 25) Source(33, 49) + SourceIndex(0) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(79, 9) Source(33, 52) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(80, 13) Source(33, 52) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(81, 13) Source(33, 76) + SourceIndex(0) -2 >Emitted(81, 14) Source(33, 77) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(82, 13) Source(33, 76) + SourceIndex(0) -2 >Emitted(82, 29) Source(33, 77) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(83, 9) Source(33, 76) + SourceIndex(0) -2 >Emitted(83, 10) Source(33, 77) + SourceIndex(0) -3 >Emitted(83, 10) Source(33, 52) + SourceIndex(0) -4 >Emitted(83, 14) Source(33, 77) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(84, 9) Source(33, 65) + SourceIndex(0) -2 >Emitted(84, 28) Source(33, 74) + SourceIndex(0) -3 >Emitted(84, 40) Source(33, 77) + SourceIndex(0) -4 >Emitted(84, 41) Source(33, 77) + SourceIndex(0) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(85, 5) Source(33, 78) + SourceIndex(0) -2 >Emitted(85, 6) Source(33, 79) + SourceIndex(0) -3 >Emitted(85, 8) Source(33, 40) + SourceIndex(0) -4 >Emitted(85, 17) Source(33, 49) + SourceIndex(0) -5 >Emitted(85, 20) Source(33, 40) + SourceIndex(0) -6 >Emitted(85, 43) Source(33, 49) + SourceIndex(0) -7 >Emitted(85, 48) Source(33, 40) + SourceIndex(0) -8 >Emitted(85, 71) Source(33, 49) + SourceIndex(0) -9 >Emitted(85, 79) Source(33, 79) + SourceIndex(0) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(86, 1) Source(33, 78) + SourceIndex(0) -2 >Emitted(86, 2) Source(33, 79) + SourceIndex(0) -3 >Emitted(86, 4) Source(33, 26) + SourceIndex(0) -4 >Emitted(86, 17) Source(33, 39) + SourceIndex(0) -5 >Emitted(86, 22) Source(33, 26) + SourceIndex(0) -6 >Emitted(86, 35) Source(33, 39) + SourceIndex(0) -7 >Emitted(86, 43) Source(33, 79) + SourceIndex(0) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(87, 1) Source(34, 16) + SourceIndex(0) -2 >Emitted(87, 5) Source(34, 23) + SourceIndex(0) -3 >Emitted(87, 19) Source(34, 37) + SourceIndex(0) -4 >Emitted(87, 22) Source(34, 40) + SourceIndex(0) -5 >Emitted(87, 39) Source(34, 57) + SourceIndex(0) -6 >Emitted(87, 40) Source(34, 58) + SourceIndex(0) -7 >Emitted(87, 49) Source(34, 67) + SourceIndex(0) -8 >Emitted(87, 50) Source(34, 68) + SourceIndex(0) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(88, 1) Source(36, 16) + SourceIndex(0) -2 >Emitted(88, 5) Source(36, 22) + SourceIndex(0) -3 >Emitted(88, 18) Source(36, 35) + SourceIndex(0) -4 >Emitted(88, 21) Source(36, 38) + SourceIndex(0) -5 >Emitted(88, 23) Source(36, 40) + SourceIndex(0) -6 >Emitted(88, 24) Source(36, 41) + SourceIndex(0) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(89, 1) Source(37, 16) + SourceIndex(0) -2 >Emitted(89, 5) Source(37, 21) + SourceIndex(0) -3 >Emitted(89, 17) Source(37, 45) + SourceIndex(0) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(90, 1) Source(37, 16) + SourceIndex(0) -2 >Emitted(90, 12) Source(37, 21) + SourceIndex(0) -3 >Emitted(90, 24) Source(37, 33) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(91, 5) Source(37, 36) + SourceIndex(0) -2 >Emitted(91, 46) Source(37, 37) + SourceIndex(0) -3 >Emitted(91, 47) Source(37, 37) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(92, 5) Source(37, 39) + SourceIndex(0) -2 >Emitted(92, 46) Source(37, 40) + SourceIndex(0) -3 >Emitted(92, 47) Source(37, 40) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(93, 5) Source(37, 42) + SourceIndex(0) -2 >Emitted(93, 46) Source(37, 43) + SourceIndex(0) -3 >Emitted(93, 47) Source(37, 43) + SourceIndex(0) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(94, 1) Source(37, 44) + SourceIndex(0) -2 >Emitted(94, 2) Source(37, 45) + SourceIndex(0) -3 >Emitted(94, 4) Source(37, 21) + SourceIndex(0) -4 >Emitted(94, 16) Source(37, 33) + SourceIndex(0) -5 >Emitted(94, 21) Source(37, 21) + SourceIndex(0) -6 >Emitted(94, 33) Source(37, 33) + SourceIndex(0) -7 >Emitted(94, 41) Source(37, 45) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(95, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(96, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(97, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(98, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(98, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(98, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(99, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(99, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(99, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(99, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(99, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(99, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(99, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(99, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(100, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(101, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(102, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(102, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3052, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 77, - "kind": "text" - }, - { - "pos": 77, - "end": 151, - "kind": "internal" - }, - { - "pos": 153, - "end": 185, - "kind": "text" - }, - { - "pos": 185, - "end": 577, - "kind": "internal" - }, - { - "pos": 579, - "end": 582, - "kind": "text" - }, - { - "pos": 582, - "end": 995, - "kind": "internal" - }, - { - "pos": 997, - "end": 1045, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-3052) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-77) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (77-151) - constructor(); - prop: string; - method(): void; - c: number; ----------------------------------------------------------------------- -text: (153-185) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (185-577) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (579-582) -} - ----------------------------------------------------------------------- -internal: (582-995) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (997-1045) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/**@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 16) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 26) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 34) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /**@internal*/ constructor() { } - /**@internal*/ prop: string; - /**@internal*/ method() { } - /**@internal*/ get c() { return 10; } - /**@internal*/ set c(val: number) { } -} -namespace normalN { - /**@internal*/ export class C { } - /**@internal*/ export function foo() {} - /**@internal*/ export namespace someNamespace { export class C {} } - /**@internal*/ export namespace someOther.something { export class someClass {} } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ export type internalType = internalC; - /**@internal*/ export const internalConst = 10; - /**@internal*/ export enum internalEnum { a, b, c } -} -/**@internal*/ class internalC {} -/**@internal*/ function internalfoo() {} -/**@internal*/ namespace internalNamespace { export class someClass {} } -/**@internal*/ namespace internalOther.something { export class someClass {} } -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ type internalType = internalC; -/**@internal*/ const internalConst = 10; -/**@internal*/ enum internalEnum { a, b, c } - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare const s = "Hello, world"; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(15, 5) Source(14, 20) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 20) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 26) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 20) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 31) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 30) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 37) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 39) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 40) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 41) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 42) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 20) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 26) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 37) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 41) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(28, 5) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 20) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 36) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 39) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 43) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 37) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 50) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 37) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 46) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 34) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 44) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 47) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 60) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 61) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 62) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 63) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 33) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 46) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 49) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 51) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 52) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 32) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(66, 1) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 16) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 25) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 36) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 40) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 41) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 26) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 43) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 26) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 39) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 16) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 23) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 37) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 40) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 57) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 58) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 67) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 68) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 16) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 22) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 35) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 38) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 40) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 41) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 21) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3162, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 3162, - "kind": "text" - } - ] - }, - { - "pos": 3162, - "end": 3198, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 116, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 116, - "kind": "text" - } - ] - }, - { - "pos": 116, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 116, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-3162):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-3162) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3162-3198) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-116) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (116-276) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, -"stripInternal": true - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index 2fbfbc496bf..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,5924 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -/**@internal*/ interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; -} -declare namespace normalN { - /**@internal*/ class C { - } - /**@internal*/ function foo(): void; - /**@internal*/ namespace someNamespace { - class C { - } - } - /**@internal*/ namespace someOther.something { - class someClass { - } - } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ type internalType = internalC; - /**@internal*/ const internalConst = 10; - /**@internal*/ enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -/**@internal*/ declare class internalC { -} -/**@internal*/ declare function internalfoo(): void; -/**@internal*/ declare namespace internalNamespace { - class someClass { - } -} -/**@internal*/ declare namespace internalOther.something { - class someClass { - } -} -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ declare type internalType = internalC; -/**@internal*/ declare const internalConst = 10; -/**@internal*/ declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,gBAAK,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>/**@internal*/ interface TheFirst { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^ -1 > -2 >/**@internal*/ -3 > -4 > interface -5 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) -4 >Emitted(1, 26) Source(1, 26) + SourceIndex(0) -5 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^-> -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>> /**@internal*/ constructor(); -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^-> -1-> { - > -2 > /**@internal*/ -1->Emitted(14, 5) Source(14, 5) + SourceIndex(2) -2 >Emitted(14, 19) Source(14, 19) + SourceIndex(2) ---- ->>> /**@internal*/ prop: string; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^-> -1-> constructor() { } - > -2 > /**@internal*/ -3 > -4 > prop -5 > : -6 > string -7 > ; -1->Emitted(15, 5) Source(15, 5) + SourceIndex(2) -2 >Emitted(15, 19) Source(15, 19) + SourceIndex(2) -3 >Emitted(15, 20) Source(15, 20) + SourceIndex(2) -4 >Emitted(15, 24) Source(15, 24) + SourceIndex(2) -5 >Emitted(15, 26) Source(15, 26) + SourceIndex(2) -6 >Emitted(15, 32) Source(15, 32) + SourceIndex(2) -7 >Emitted(15, 33) Source(15, 33) + SourceIndex(2) ---- ->>> /**@internal*/ method(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > method -1->Emitted(16, 5) Source(16, 5) + SourceIndex(2) -2 >Emitted(16, 19) Source(16, 19) + SourceIndex(2) -3 >Emitted(16, 20) Source(16, 20) + SourceIndex(2) -4 >Emitted(16, 26) Source(16, 26) + SourceIndex(2) ---- ->>> /**@internal*/ /**@internal*/ c: number; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^^^^^ -1->() { } - > -2 > /**@internal*/ -3 > get -4 > c -5 > () { return 10; } - > /**@internal*/ set c(val: -6 > number -1->Emitted(17, 5) Source(17, 5) + SourceIndex(2) -2 >Emitted(17, 19) Source(17, 19) + SourceIndex(2) -3 >Emitted(17, 35) Source(17, 24) + SourceIndex(2) -4 >Emitted(17, 36) Source(17, 25) + SourceIndex(2) -5 >Emitted(17, 38) Source(18, 31) + SourceIndex(2) -6 >Emitted(17, 44) Source(18, 37) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^-> -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) ---- ->>> /**@internal*/ class C { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -1->{ - > -2 > /**@internal*/ -3 > -4 > export class -5 > C -1->Emitted(20, 5) Source(21, 5) + SourceIndex(2) -2 >Emitted(20, 19) Source(21, 19) + SourceIndex(2) -3 >Emitted(20, 20) Source(21, 20) + SourceIndex(2) -4 >Emitted(20, 26) Source(21, 33) + SourceIndex(2) -5 >Emitted(20, 27) Source(21, 34) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(21, 6) Source(21, 38) + SourceIndex(2) ---- ->>> /**@internal*/ function foo(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^ -7 > ^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () {} -1->Emitted(22, 5) Source(22, 5) + SourceIndex(2) -2 >Emitted(22, 19) Source(22, 19) + SourceIndex(2) -3 >Emitted(22, 20) Source(22, 20) + SourceIndex(2) -4 >Emitted(22, 29) Source(22, 36) + SourceIndex(2) -5 >Emitted(22, 32) Source(22, 39) + SourceIndex(2) -6 >Emitted(22, 41) Source(22, 44) + SourceIndex(2) ---- ->>> /**@internal*/ namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > -1->Emitted(23, 5) Source(23, 5) + SourceIndex(2) -2 >Emitted(23, 19) Source(23, 19) + SourceIndex(2) -3 >Emitted(23, 20) Source(23, 20) + SourceIndex(2) -4 >Emitted(23, 30) Source(23, 37) + SourceIndex(2) -5 >Emitted(23, 43) Source(23, 50) + SourceIndex(2) -6 >Emitted(23, 44) Source(23, 51) + SourceIndex(2) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(24, 9) Source(23, 53) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 66) + SourceIndex(2) -3 >Emitted(24, 16) Source(23, 67) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(25, 10) Source(23, 70) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(26, 6) Source(23, 72) + SourceIndex(2) ---- ->>> /**@internal*/ namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > . -7 > something -8 > -1->Emitted(27, 5) Source(24, 5) + SourceIndex(2) -2 >Emitted(27, 19) Source(24, 19) + SourceIndex(2) -3 >Emitted(27, 20) Source(24, 20) + SourceIndex(2) -4 >Emitted(27, 30) Source(24, 37) + SourceIndex(2) -5 >Emitted(27, 39) Source(24, 46) + SourceIndex(2) -6 >Emitted(27, 40) Source(24, 47) + SourceIndex(2) -7 >Emitted(27, 49) Source(24, 56) + SourceIndex(2) -8 >Emitted(27, 50) Source(24, 57) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(28, 9) Source(24, 59) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 72) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 81) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(29, 10) Source(24, 84) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(30, 6) Source(24, 86) + SourceIndex(2) ---- ->>> /**@internal*/ export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^ -6 > ^^^^^^^^^^ -7 > ^^^ -8 > ^^^^^^^^^^^^^ -9 > ^ -10> ^ -11> ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export -5 > import -6 > someImport -7 > = -8 > someNamespace -9 > . -10> C -11> ; -1->Emitted(31, 5) Source(25, 5) + SourceIndex(2) -2 >Emitted(31, 19) Source(25, 19) + SourceIndex(2) -3 >Emitted(31, 20) Source(25, 20) + SourceIndex(2) -4 >Emitted(31, 26) Source(25, 26) + SourceIndex(2) -5 >Emitted(31, 34) Source(25, 34) + SourceIndex(2) -6 >Emitted(31, 44) Source(25, 44) + SourceIndex(2) -7 >Emitted(31, 47) Source(25, 47) + SourceIndex(2) -8 >Emitted(31, 60) Source(25, 60) + SourceIndex(2) -9 >Emitted(31, 61) Source(25, 61) + SourceIndex(2) -10>Emitted(31, 62) Source(25, 62) + SourceIndex(2) -11>Emitted(31, 63) Source(25, 63) + SourceIndex(2) ---- ->>> /**@internal*/ type internalType = internalC; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(32, 5) Source(26, 5) + SourceIndex(2) -2 >Emitted(32, 19) Source(26, 19) + SourceIndex(2) -3 >Emitted(32, 20) Source(26, 20) + SourceIndex(2) -4 >Emitted(32, 25) Source(26, 32) + SourceIndex(2) -5 >Emitted(32, 37) Source(26, 44) + SourceIndex(2) -6 >Emitted(32, 40) Source(26, 47) + SourceIndex(2) -7 >Emitted(32, 49) Source(26, 56) + SourceIndex(2) -8 >Emitted(32, 50) Source(26, 57) + SourceIndex(2) ---- ->>> /**@internal*/ const internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > export -4 > const -5 > internalConst -6 > = 10 -7 > ; -1 >Emitted(33, 5) Source(27, 5) + SourceIndex(2) -2 >Emitted(33, 19) Source(27, 19) + SourceIndex(2) -3 >Emitted(33, 20) Source(27, 27) + SourceIndex(2) -4 >Emitted(33, 26) Source(27, 33) + SourceIndex(2) -5 >Emitted(33, 39) Source(27, 46) + SourceIndex(2) -6 >Emitted(33, 44) Source(27, 51) + SourceIndex(2) -7 >Emitted(33, 45) Source(27, 52) + SourceIndex(2) ---- ->>> /**@internal*/ enum internalEnum { -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum -1 >Emitted(34, 5) Source(28, 5) + SourceIndex(2) -2 >Emitted(34, 19) Source(28, 19) + SourceIndex(2) -3 >Emitted(34, 20) Source(28, 20) + SourceIndex(2) -4 >Emitted(34, 25) Source(28, 32) + SourceIndex(2) -5 >Emitted(34, 37) Source(28, 44) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(35, 9) Source(28, 47) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 48) + SourceIndex(2) -3 >Emitted(35, 14) Source(28, 48) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(36, 9) Source(28, 50) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 51) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 51) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(37, 9) Source(28, 53) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 54) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 54) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(38, 6) Source(28, 56) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) ---- ->>>/**@internal*/ declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^^^ -1-> - > -2 >/**@internal*/ -3 > -4 > class -5 > internalC -1->Emitted(40, 1) Source(30, 1) + SourceIndex(2) -2 >Emitted(40, 15) Source(30, 15) + SourceIndex(2) -3 >Emitted(40, 16) Source(30, 16) + SourceIndex(2) -4 >Emitted(40, 30) Source(30, 22) + SourceIndex(2) -5 >Emitted(40, 39) Source(30, 31) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(41, 2) Source(30, 34) + SourceIndex(2) ---- ->>>/**@internal*/ declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^^^^^ -7 > ^-> -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () {} -1->Emitted(42, 1) Source(31, 1) + SourceIndex(2) -2 >Emitted(42, 15) Source(31, 15) + SourceIndex(2) -3 >Emitted(42, 16) Source(31, 16) + SourceIndex(2) -4 >Emitted(42, 33) Source(31, 25) + SourceIndex(2) -5 >Emitted(42, 44) Source(31, 36) + SourceIndex(2) -6 >Emitted(42, 53) Source(31, 41) + SourceIndex(2) ---- ->>>/**@internal*/ declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > -1->Emitted(43, 1) Source(32, 1) + SourceIndex(2) -2 >Emitted(43, 15) Source(32, 15) + SourceIndex(2) -3 >Emitted(43, 16) Source(32, 16) + SourceIndex(2) -4 >Emitted(43, 34) Source(32, 26) + SourceIndex(2) -5 >Emitted(43, 51) Source(32, 43) + SourceIndex(2) -6 >Emitted(43, 52) Source(32, 44) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(44, 5) Source(32, 46) + SourceIndex(2) -2 >Emitted(44, 11) Source(32, 59) + SourceIndex(2) -3 >Emitted(44, 20) Source(32, 68) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(45, 6) Source(32, 71) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(46, 2) Source(32, 73) + SourceIndex(2) ---- ->>>/**@internal*/ declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > . -7 > something -8 > -1->Emitted(47, 1) Source(33, 1) + SourceIndex(2) -2 >Emitted(47, 15) Source(33, 15) + SourceIndex(2) -3 >Emitted(47, 16) Source(33, 16) + SourceIndex(2) -4 >Emitted(47, 34) Source(33, 26) + SourceIndex(2) -5 >Emitted(47, 47) Source(33, 39) + SourceIndex(2) -6 >Emitted(47, 48) Source(33, 40) + SourceIndex(2) -7 >Emitted(47, 57) Source(33, 49) + SourceIndex(2) -8 >Emitted(47, 58) Source(33, 50) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(48, 5) Source(33, 52) + SourceIndex(2) -2 >Emitted(48, 11) Source(33, 65) + SourceIndex(2) -3 >Emitted(48, 20) Source(33, 74) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(49, 6) Source(33, 77) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(50, 2) Source(33, 79) + SourceIndex(2) ---- ->>>/**@internal*/ import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(51, 1) Source(34, 1) + SourceIndex(2) -2 >Emitted(51, 15) Source(34, 15) + SourceIndex(2) -3 >Emitted(51, 16) Source(34, 16) + SourceIndex(2) -4 >Emitted(51, 23) Source(34, 23) + SourceIndex(2) -5 >Emitted(51, 37) Source(34, 37) + SourceIndex(2) -6 >Emitted(51, 40) Source(34, 40) + SourceIndex(2) -7 >Emitted(51, 57) Source(34, 57) + SourceIndex(2) -8 >Emitted(51, 58) Source(34, 58) + SourceIndex(2) -9 >Emitted(51, 67) Source(34, 67) + SourceIndex(2) -10>Emitted(51, 68) Source(34, 68) + SourceIndex(2) ---- ->>>/**@internal*/ declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(52, 1) Source(35, 1) + SourceIndex(2) -2 >Emitted(52, 15) Source(35, 15) + SourceIndex(2) -3 >Emitted(52, 16) Source(35, 16) + SourceIndex(2) -4 >Emitted(52, 29) Source(35, 21) + SourceIndex(2) -5 >Emitted(52, 41) Source(35, 33) + SourceIndex(2) -6 >Emitted(52, 44) Source(35, 36) + SourceIndex(2) -7 >Emitted(52, 53) Source(35, 45) + SourceIndex(2) -8 >Emitted(52, 54) Source(35, 46) + SourceIndex(2) ---- ->>>/**@internal*/ declare const internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > -5 > const -6 > internalConst -7 > = 10 -8 > ; -1 >Emitted(53, 1) Source(36, 1) + SourceIndex(2) -2 >Emitted(53, 15) Source(36, 15) + SourceIndex(2) -3 >Emitted(53, 16) Source(36, 16) + SourceIndex(2) -4 >Emitted(53, 24) Source(36, 16) + SourceIndex(2) -5 >Emitted(53, 30) Source(36, 22) + SourceIndex(2) -6 >Emitted(53, 43) Source(36, 35) + SourceIndex(2) -7 >Emitted(53, 48) Source(36, 40) + SourceIndex(2) -8 >Emitted(53, 49) Source(36, 41) + SourceIndex(2) ---- ->>>/**@internal*/ declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum -1 >Emitted(54, 1) Source(37, 1) + SourceIndex(2) -2 >Emitted(54, 15) Source(37, 15) + SourceIndex(2) -3 >Emitted(54, 16) Source(37, 16) + SourceIndex(2) -4 >Emitted(54, 29) Source(37, 21) + SourceIndex(2) -5 >Emitted(54, 41) Source(37, 33) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(55, 5) Source(37, 36) + SourceIndex(2) -2 >Emitted(55, 6) Source(37, 37) + SourceIndex(2) -3 >Emitted(55, 10) Source(37, 37) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(56, 5) Source(37, 39) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 40) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 40) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(57, 5) Source(37, 42) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 43) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 43) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(58, 2) Source(37, 45) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /**@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /**@internal*/ -3 > -1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) -3 >Emitted(15, 20) Source(14, 20) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) ---- ->>> /**@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /**@internal*/ prop: string; - > -2 > /**@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) -3 >Emitted(17, 20) Source(16, 20) + SourceIndex(3) -4 >Emitted(17, 44) Source(16, 26) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 20) + SourceIndex(3) -6 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) -7 >Emitted(17, 62) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^-> -1 > - > /**@internal*/ -2 > get -3 > c -1 >Emitted(18, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) ---- ->>> /**@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /**@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(19, 23) Source(17, 19) + SourceIndex(3) -3 >Emitted(19, 29) Source(17, 20) + SourceIndex(3) -4 >Emitted(19, 43) Source(17, 30) + SourceIndex(3) -5 >Emitted(19, 50) Source(17, 37) + SourceIndex(3) -6 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) -7 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) -8 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) -9 >Emitted(19, 55) Source(17, 42) + SourceIndex(3) ---- ->>> /**@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(20, 23) Source(18, 19) + SourceIndex(3) -3 >Emitted(20, 29) Source(18, 20) + SourceIndex(3) -4 >Emitted(20, 39) Source(18, 26) + SourceIndex(3) -5 >Emitted(20, 42) Source(18, 37) + SourceIndex(3) -6 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) -7 >Emitted(20, 47) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /**@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /**@internal*/ -3 > -1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) -3 >Emitted(28, 20) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) ---- ->>> /**@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) -3 >Emitted(34, 20) Source(22, 20) + SourceIndex(3) -4 >Emitted(34, 29) Source(22, 36) + SourceIndex(3) -5 >Emitted(34, 32) Source(22, 39) + SourceIndex(3) -6 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) -7 >Emitted(34, 38) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(35, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> /**@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) -3 >Emitted(36, 20) Source(23, 20) + SourceIndex(3) -4 >Emitted(36, 24) Source(23, 37) + SourceIndex(3) -5 >Emitted(36, 37) Source(23, 50) + SourceIndex(3) -6 >Emitted(36, 38) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) ---- ->>> /**@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) -3 >Emitted(45, 20) Source(24, 20) + SourceIndex(3) -4 >Emitted(45, 24) Source(24, 37) + SourceIndex(3) -5 >Emitted(45, 33) Source(24, 46) + SourceIndex(3) -6 >Emitted(45, 34) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) ---- ->>> /**@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /**@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(57, 19) Source(25, 19) + SourceIndex(3) -3 >Emitted(57, 20) Source(25, 34) + SourceIndex(3) -4 >Emitted(57, 38) Source(25, 44) + SourceIndex(3) -5 >Emitted(57, 41) Source(25, 47) + SourceIndex(3) -6 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) -7 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) -8 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) -9 >Emitted(57, 57) Source(25, 63) + SourceIndex(3) ---- ->>> /**@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > -2 > /**@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(58, 19) Source(27, 19) + SourceIndex(3) -3 >Emitted(58, 20) Source(27, 33) + SourceIndex(3) -4 >Emitted(58, 41) Source(27, 46) + SourceIndex(3) -5 >Emitted(58, 44) Source(27, 49) + SourceIndex(3) -6 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) -7 >Emitted(58, 47) Source(27, 52) + SourceIndex(3) ---- ->>> /**@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) -3 >Emitted(59, 20) Source(28, 20) + SourceIndex(3) -4 >Emitted(59, 24) Source(28, 32) + SourceIndex(3) -5 >Emitted(59, 36) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/**@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 >/**@internal*/ -3 > -1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) -3 >Emitted(66, 16) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) ---- ->>>/**@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) -3 >Emitted(71, 16) Source(31, 16) + SourceIndex(3) -4 >Emitted(71, 25) Source(31, 25) + SourceIndex(3) -5 >Emitted(71, 36) Source(31, 36) + SourceIndex(3) -6 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) -7 >Emitted(71, 42) Source(31, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) -3 >Emitted(72, 16) Source(32, 16) + SourceIndex(3) -4 >Emitted(72, 20) Source(32, 26) + SourceIndex(3) -5 >Emitted(72, 37) Source(32, 43) + SourceIndex(3) -6 >Emitted(72, 38) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) ---- ->>>/**@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) -3 >Emitted(81, 16) Source(33, 16) + SourceIndex(3) -4 >Emitted(81, 20) Source(33, 26) + SourceIndex(3) -5 >Emitted(81, 33) Source(33, 39) + SourceIndex(3) -6 >Emitted(81, 34) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) ---- ->>>/**@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) -3 >Emitted(93, 16) Source(34, 16) + SourceIndex(3) -4 >Emitted(93, 20) Source(34, 23) + SourceIndex(3) -5 >Emitted(93, 34) Source(34, 37) + SourceIndex(3) -6 >Emitted(93, 37) Source(34, 40) + SourceIndex(3) -7 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) -8 >Emitted(93, 55) Source(34, 58) + SourceIndex(3) -9 >Emitted(93, 64) Source(34, 67) + SourceIndex(3) -10>Emitted(93, 65) Source(34, 68) + SourceIndex(3) ---- ->>>/**@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/**@internal*/ type internalType = internalC; - > -2 >/**@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) -3 >Emitted(94, 16) Source(36, 16) + SourceIndex(3) -4 >Emitted(94, 20) Source(36, 22) + SourceIndex(3) -5 >Emitted(94, 33) Source(36, 35) + SourceIndex(3) -6 >Emitted(94, 36) Source(36, 38) + SourceIndex(3) -7 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) -8 >Emitted(94, 39) Source(36, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) -3 >Emitted(95, 16) Source(37, 16) + SourceIndex(3) -4 >Emitted(95, 20) Source(37, 21) + SourceIndex(3) -5 >Emitted(95, 32) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3544, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 172, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 54, - "kind": "internal" - }, - { - "pos": 56, - "end": 172, - "kind": "text" - } - ] - }, - { - "pos": 172, - "end": 249, - "kind": "text" - }, - { - "pos": 249, - "end": 398, - "kind": "internal" - }, - { - "pos": 400, - "end": 432, - "kind": "text" - }, - { - "pos": 432, - "end": 944, - "kind": "internal" - }, - { - "pos": 946, - "end": 949, - "kind": "text" - }, - { - "pos": 949, - "end": 1482, - "kind": "internal" - }, - { - "pos": 1484, - "end": 1532, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (110-3544) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-172):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-54) -/**@internal*/ interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (56-172) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (172-249) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (249-398) - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; ----------------------------------------------------------------------- -text: (400-432) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (432-944) - /**@internal*/ class C { - } - /**@internal*/ function foo(): void; - /**@internal*/ namespace someNamespace { - class C { - } - } - /**@internal*/ namespace someOther.something { - class someClass { - } - } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ type internalType = internalC; - /**@internal*/ const internalConst = 10; - /**@internal*/ enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (946-949) -} - ----------------------------------------------------------------------- -internal: (949-1482) -/**@internal*/ declare class internalC { -} -/**@internal*/ declare function internalfoo(): void; -/**@internal*/ declare namespace internalNamespace { - class someClass { - } -} -/**@internal*/ declare namespace internalOther.something { - class someClass { - } -} -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ declare type internalType = internalC; -/**@internal*/ declare const internalConst = 10; -/**@internal*/ declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1484-1532) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -/**@internal*/ interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>/**@internal*/ interface TheFirst { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^ -1 > -2 >/**@internal*/ -3 > -4 > interface -5 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) -4 >Emitted(1, 26) Source(1, 26) + SourceIndex(0) -5 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 54, - "kind": "internal" - }, - { - "pos": 56, - "end": 172, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-54) -/**@internal*/ interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (56-172) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] -} - - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /**@internal*/ constructor() { } - /**@internal*/ prop: string; - /**@internal*/ method() { } - /**@internal*/ get c() { return 10; } - /**@internal*/ set c(val: number) { } -} -namespace normalN { - /**@internal*/ export class C { } - /**@internal*/ export function foo() {} - /**@internal*/ export namespace someNamespace { export class C {} } - /**@internal*/ export namespace someOther.something { export class someClass {} } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ export type internalType = internalC; - /**@internal*/ export const internalConst = 10; - /**@internal*/ export enum internalEnum { a, b, c } -} -/**@internal*/ class internalC {} -/**@internal*/ function internalfoo() {} -/**@internal*/ namespace internalNamespace { export class someClass {} } -/**@internal*/ namespace internalOther.something { export class someClass {} } -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ type internalType = internalC; -/**@internal*/ const internalConst = 10; -/**@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../first", "prepend": true } - ] -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare const s = "Hello, world"; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /**@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /**@internal*/ -3 > -1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) -3 >Emitted(15, 20) Source(14, 20) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) ---- ->>> /**@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /**@internal*/ prop: string; - > -2 > /**@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) -3 >Emitted(17, 20) Source(16, 20) + SourceIndex(3) -4 >Emitted(17, 44) Source(16, 26) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 20) + SourceIndex(3) -6 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) -7 >Emitted(17, 62) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^-> -1 > - > /**@internal*/ -2 > get -3 > c -1 >Emitted(18, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) ---- ->>> /**@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /**@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(19, 23) Source(17, 19) + SourceIndex(3) -3 >Emitted(19, 29) Source(17, 20) + SourceIndex(3) -4 >Emitted(19, 43) Source(17, 30) + SourceIndex(3) -5 >Emitted(19, 50) Source(17, 37) + SourceIndex(3) -6 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) -7 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) -8 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) -9 >Emitted(19, 55) Source(17, 42) + SourceIndex(3) ---- ->>> /**@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(20, 23) Source(18, 19) + SourceIndex(3) -3 >Emitted(20, 29) Source(18, 20) + SourceIndex(3) -4 >Emitted(20, 39) Source(18, 26) + SourceIndex(3) -5 >Emitted(20, 42) Source(18, 37) + SourceIndex(3) -6 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) -7 >Emitted(20, 47) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /**@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /**@internal*/ -3 > -1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) -3 >Emitted(28, 20) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) ---- ->>> /**@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) -3 >Emitted(34, 20) Source(22, 20) + SourceIndex(3) -4 >Emitted(34, 29) Source(22, 36) + SourceIndex(3) -5 >Emitted(34, 32) Source(22, 39) + SourceIndex(3) -6 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) -7 >Emitted(34, 38) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(35, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> /**@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) -3 >Emitted(36, 20) Source(23, 20) + SourceIndex(3) -4 >Emitted(36, 24) Source(23, 37) + SourceIndex(3) -5 >Emitted(36, 37) Source(23, 50) + SourceIndex(3) -6 >Emitted(36, 38) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) ---- ->>> /**@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) -3 >Emitted(45, 20) Source(24, 20) + SourceIndex(3) -4 >Emitted(45, 24) Source(24, 37) + SourceIndex(3) -5 >Emitted(45, 33) Source(24, 46) + SourceIndex(3) -6 >Emitted(45, 34) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) ---- ->>> /**@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /**@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(57, 19) Source(25, 19) + SourceIndex(3) -3 >Emitted(57, 20) Source(25, 34) + SourceIndex(3) -4 >Emitted(57, 38) Source(25, 44) + SourceIndex(3) -5 >Emitted(57, 41) Source(25, 47) + SourceIndex(3) -6 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) -7 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) -8 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) -9 >Emitted(57, 57) Source(25, 63) + SourceIndex(3) ---- ->>> /**@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > -2 > /**@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(58, 19) Source(27, 19) + SourceIndex(3) -3 >Emitted(58, 20) Source(27, 33) + SourceIndex(3) -4 >Emitted(58, 41) Source(27, 46) + SourceIndex(3) -5 >Emitted(58, 44) Source(27, 49) + SourceIndex(3) -6 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) -7 >Emitted(58, 47) Source(27, 52) + SourceIndex(3) ---- ->>> /**@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) -3 >Emitted(59, 20) Source(28, 20) + SourceIndex(3) -4 >Emitted(59, 24) Source(28, 32) + SourceIndex(3) -5 >Emitted(59, 36) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/**@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 >/**@internal*/ -3 > -1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) -3 >Emitted(66, 16) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) ---- ->>>/**@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) -3 >Emitted(71, 16) Source(31, 16) + SourceIndex(3) -4 >Emitted(71, 25) Source(31, 25) + SourceIndex(3) -5 >Emitted(71, 36) Source(31, 36) + SourceIndex(3) -6 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) -7 >Emitted(71, 42) Source(31, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) -3 >Emitted(72, 16) Source(32, 16) + SourceIndex(3) -4 >Emitted(72, 20) Source(32, 26) + SourceIndex(3) -5 >Emitted(72, 37) Source(32, 43) + SourceIndex(3) -6 >Emitted(72, 38) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) ---- ->>>/**@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) -3 >Emitted(81, 16) Source(33, 16) + SourceIndex(3) -4 >Emitted(81, 20) Source(33, 26) + SourceIndex(3) -5 >Emitted(81, 33) Source(33, 39) + SourceIndex(3) -6 >Emitted(81, 34) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) ---- ->>>/**@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) -3 >Emitted(93, 16) Source(34, 16) + SourceIndex(3) -4 >Emitted(93, 20) Source(34, 23) + SourceIndex(3) -5 >Emitted(93, 34) Source(34, 37) + SourceIndex(3) -6 >Emitted(93, 37) Source(34, 40) + SourceIndex(3) -7 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) -8 >Emitted(93, 55) Source(34, 58) + SourceIndex(3) -9 >Emitted(93, 64) Source(34, 67) + SourceIndex(3) -10>Emitted(93, 65) Source(34, 68) + SourceIndex(3) ---- ->>>/**@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/**@internal*/ type internalType = internalC; - > -2 >/**@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) -3 >Emitted(94, 16) Source(36, 16) + SourceIndex(3) -4 >Emitted(94, 20) Source(36, 22) + SourceIndex(3) -5 >Emitted(94, 33) Source(36, 35) + SourceIndex(3) -6 >Emitted(94, 36) Source(36, 38) + SourceIndex(3) -7 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) -8 >Emitted(94, 39) Source(36, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) -3 >Emitted(95, 16) Source(37, 16) + SourceIndex(3) -4 >Emitted(95, 20) Source(37, 21) + SourceIndex(3) -5 >Emitted(95, 32) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3544, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3544, - "kind": "text" - } - ] - }, - { - "pos": 3544, - "end": 3580, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3544):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3544) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3544-3580) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-276) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, -"stripInternal": true - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled.js deleted file mode 100644 index 6832eef63fc..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ /dev/null @@ -1,5627 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; -} -declare namespace normalN { - /**@internal*/ class C { - } - /**@internal*/ function foo(): void; - /**@internal*/ namespace someNamespace { - class C { - } - } - /**@internal*/ namespace someOther.something { - class someClass { - } - } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ type internalType = internalC; - /**@internal*/ const internalConst = 10; - /**@internal*/ enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -/**@internal*/ declare class internalC { -} -/**@internal*/ declare function internalfoo(): void; -/**@internal*/ declare namespace internalNamespace { - class someClass { - } -} -/**@internal*/ declare namespace internalOther.something { - class someClass { - } -} -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ declare type internalType = internalC; -/**@internal*/ declare const internalConst = 10; -/**@internal*/ declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,gBAAK,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^-> -1-> - > - > -2 >class -3 > normalC -1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 15) Source(13, 7) + SourceIndex(0) -3 >Emitted(5, 22) Source(13, 14) + SourceIndex(0) ---- ->>> /**@internal*/ constructor(); -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^-> -1-> { - > -2 > /**@internal*/ -1->Emitted(6, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(6, 19) Source(14, 19) + SourceIndex(0) ---- ->>> /**@internal*/ prop: string; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^-> -1-> constructor() { } - > -2 > /**@internal*/ -3 > -4 > prop -5 > : -6 > string -7 > ; -1->Emitted(7, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(7, 19) Source(15, 19) + SourceIndex(0) -3 >Emitted(7, 20) Source(15, 20) + SourceIndex(0) -4 >Emitted(7, 24) Source(15, 24) + SourceIndex(0) -5 >Emitted(7, 26) Source(15, 26) + SourceIndex(0) -6 >Emitted(7, 32) Source(15, 32) + SourceIndex(0) -7 >Emitted(7, 33) Source(15, 33) + SourceIndex(0) ---- ->>> /**@internal*/ method(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > method -1->Emitted(8, 5) Source(16, 5) + SourceIndex(0) -2 >Emitted(8, 19) Source(16, 19) + SourceIndex(0) -3 >Emitted(8, 20) Source(16, 20) + SourceIndex(0) -4 >Emitted(8, 26) Source(16, 26) + SourceIndex(0) ---- ->>> /**@internal*/ /**@internal*/ c: number; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^^^^^ -1->() { } - > -2 > /**@internal*/ -3 > get -4 > c -5 > () { return 10; } - > /**@internal*/ set c(val: -6 > number -1->Emitted(9, 5) Source(17, 5) + SourceIndex(0) -2 >Emitted(9, 19) Source(17, 19) + SourceIndex(0) -3 >Emitted(9, 35) Source(17, 24) + SourceIndex(0) -4 >Emitted(9, 36) Source(17, 25) + SourceIndex(0) -5 >Emitted(9, 38) Source(18, 31) + SourceIndex(0) -6 >Emitted(9, 44) Source(18, 37) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(10, 2) Source(19, 2) + SourceIndex(0) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^-> -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(11, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(11, 19) Source(20, 11) + SourceIndex(0) -3 >Emitted(11, 26) Source(20, 18) + SourceIndex(0) -4 >Emitted(11, 27) Source(20, 19) + SourceIndex(0) ---- ->>> /**@internal*/ class C { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -1->{ - > -2 > /**@internal*/ -3 > -4 > export class -5 > C -1->Emitted(12, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(12, 19) Source(21, 19) + SourceIndex(0) -3 >Emitted(12, 20) Source(21, 20) + SourceIndex(0) -4 >Emitted(12, 26) Source(21, 33) + SourceIndex(0) -5 >Emitted(12, 27) Source(21, 34) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(13, 6) Source(21, 38) + SourceIndex(0) ---- ->>> /**@internal*/ function foo(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^ -7 > ^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () {} -1->Emitted(14, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(14, 19) Source(22, 19) + SourceIndex(0) -3 >Emitted(14, 20) Source(22, 20) + SourceIndex(0) -4 >Emitted(14, 29) Source(22, 36) + SourceIndex(0) -5 >Emitted(14, 32) Source(22, 39) + SourceIndex(0) -6 >Emitted(14, 41) Source(22, 44) + SourceIndex(0) ---- ->>> /**@internal*/ namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > -1->Emitted(15, 5) Source(23, 5) + SourceIndex(0) -2 >Emitted(15, 19) Source(23, 19) + SourceIndex(0) -3 >Emitted(15, 20) Source(23, 20) + SourceIndex(0) -4 >Emitted(15, 30) Source(23, 37) + SourceIndex(0) -5 >Emitted(15, 43) Source(23, 50) + SourceIndex(0) -6 >Emitted(15, 44) Source(23, 51) + SourceIndex(0) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(16, 9) Source(23, 53) + SourceIndex(0) -2 >Emitted(16, 15) Source(23, 66) + SourceIndex(0) -3 >Emitted(16, 16) Source(23, 67) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(17, 10) Source(23, 70) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(18, 6) Source(23, 72) + SourceIndex(0) ---- ->>> /**@internal*/ namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > . -7 > something -8 > -1->Emitted(19, 5) Source(24, 5) + SourceIndex(0) -2 >Emitted(19, 19) Source(24, 19) + SourceIndex(0) -3 >Emitted(19, 20) Source(24, 20) + SourceIndex(0) -4 >Emitted(19, 30) Source(24, 37) + SourceIndex(0) -5 >Emitted(19, 39) Source(24, 46) + SourceIndex(0) -6 >Emitted(19, 40) Source(24, 47) + SourceIndex(0) -7 >Emitted(19, 49) Source(24, 56) + SourceIndex(0) -8 >Emitted(19, 50) Source(24, 57) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(20, 9) Source(24, 59) + SourceIndex(0) -2 >Emitted(20, 15) Source(24, 72) + SourceIndex(0) -3 >Emitted(20, 24) Source(24, 81) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(21, 10) Source(24, 84) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(22, 6) Source(24, 86) + SourceIndex(0) ---- ->>> /**@internal*/ export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^ -6 > ^^^^^^^^^^ -7 > ^^^ -8 > ^^^^^^^^^^^^^ -9 > ^ -10> ^ -11> ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export -5 > import -6 > someImport -7 > = -8 > someNamespace -9 > . -10> C -11> ; -1->Emitted(23, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(23, 19) Source(25, 19) + SourceIndex(0) -3 >Emitted(23, 20) Source(25, 20) + SourceIndex(0) -4 >Emitted(23, 26) Source(25, 26) + SourceIndex(0) -5 >Emitted(23, 34) Source(25, 34) + SourceIndex(0) -6 >Emitted(23, 44) Source(25, 44) + SourceIndex(0) -7 >Emitted(23, 47) Source(25, 47) + SourceIndex(0) -8 >Emitted(23, 60) Source(25, 60) + SourceIndex(0) -9 >Emitted(23, 61) Source(25, 61) + SourceIndex(0) -10>Emitted(23, 62) Source(25, 62) + SourceIndex(0) -11>Emitted(23, 63) Source(25, 63) + SourceIndex(0) ---- ->>> /**@internal*/ type internalType = internalC; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(24, 5) Source(26, 5) + SourceIndex(0) -2 >Emitted(24, 19) Source(26, 19) + SourceIndex(0) -3 >Emitted(24, 20) Source(26, 20) + SourceIndex(0) -4 >Emitted(24, 25) Source(26, 32) + SourceIndex(0) -5 >Emitted(24, 37) Source(26, 44) + SourceIndex(0) -6 >Emitted(24, 40) Source(26, 47) + SourceIndex(0) -7 >Emitted(24, 49) Source(26, 56) + SourceIndex(0) -8 >Emitted(24, 50) Source(26, 57) + SourceIndex(0) ---- ->>> /**@internal*/ const internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > export -4 > const -5 > internalConst -6 > = 10 -7 > ; -1 >Emitted(25, 5) Source(27, 5) + SourceIndex(0) -2 >Emitted(25, 19) Source(27, 19) + SourceIndex(0) -3 >Emitted(25, 20) Source(27, 27) + SourceIndex(0) -4 >Emitted(25, 26) Source(27, 33) + SourceIndex(0) -5 >Emitted(25, 39) Source(27, 46) + SourceIndex(0) -6 >Emitted(25, 44) Source(27, 51) + SourceIndex(0) -7 >Emitted(25, 45) Source(27, 52) + SourceIndex(0) ---- ->>> /**@internal*/ enum internalEnum { -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum -1 >Emitted(26, 5) Source(28, 5) + SourceIndex(0) -2 >Emitted(26, 19) Source(28, 19) + SourceIndex(0) -3 >Emitted(26, 20) Source(28, 20) + SourceIndex(0) -4 >Emitted(26, 25) Source(28, 32) + SourceIndex(0) -5 >Emitted(26, 37) Source(28, 44) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(27, 9) Source(28, 47) + SourceIndex(0) -2 >Emitted(27, 10) Source(28, 48) + SourceIndex(0) -3 >Emitted(27, 14) Source(28, 48) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(28, 9) Source(28, 50) + SourceIndex(0) -2 >Emitted(28, 10) Source(28, 51) + SourceIndex(0) -3 >Emitted(28, 14) Source(28, 51) + SourceIndex(0) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(29, 9) Source(28, 53) + SourceIndex(0) -2 >Emitted(29, 10) Source(28, 54) + SourceIndex(0) -3 >Emitted(29, 14) Source(28, 54) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(30, 6) Source(28, 56) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(31, 2) Source(29, 2) + SourceIndex(0) ---- ->>>/**@internal*/ declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^^^ -1-> - > -2 >/**@internal*/ -3 > -4 > class -5 > internalC -1->Emitted(32, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(32, 15) Source(30, 15) + SourceIndex(0) -3 >Emitted(32, 16) Source(30, 16) + SourceIndex(0) -4 >Emitted(32, 30) Source(30, 22) + SourceIndex(0) -5 >Emitted(32, 39) Source(30, 31) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(33, 2) Source(30, 34) + SourceIndex(0) ---- ->>>/**@internal*/ declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^^^^^ -7 > ^-> -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () {} -1->Emitted(34, 1) Source(31, 1) + SourceIndex(0) -2 >Emitted(34, 15) Source(31, 15) + SourceIndex(0) -3 >Emitted(34, 16) Source(31, 16) + SourceIndex(0) -4 >Emitted(34, 33) Source(31, 25) + SourceIndex(0) -5 >Emitted(34, 44) Source(31, 36) + SourceIndex(0) -6 >Emitted(34, 53) Source(31, 41) + SourceIndex(0) ---- ->>>/**@internal*/ declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > -1->Emitted(35, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(35, 15) Source(32, 15) + SourceIndex(0) -3 >Emitted(35, 16) Source(32, 16) + SourceIndex(0) -4 >Emitted(35, 34) Source(32, 26) + SourceIndex(0) -5 >Emitted(35, 51) Source(32, 43) + SourceIndex(0) -6 >Emitted(35, 52) Source(32, 44) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(36, 5) Source(32, 46) + SourceIndex(0) -2 >Emitted(36, 11) Source(32, 59) + SourceIndex(0) -3 >Emitted(36, 20) Source(32, 68) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(37, 6) Source(32, 71) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(38, 2) Source(32, 73) + SourceIndex(0) ---- ->>>/**@internal*/ declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > . -7 > something -8 > -1->Emitted(39, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(39, 15) Source(33, 15) + SourceIndex(0) -3 >Emitted(39, 16) Source(33, 16) + SourceIndex(0) -4 >Emitted(39, 34) Source(33, 26) + SourceIndex(0) -5 >Emitted(39, 47) Source(33, 39) + SourceIndex(0) -6 >Emitted(39, 48) Source(33, 40) + SourceIndex(0) -7 >Emitted(39, 57) Source(33, 49) + SourceIndex(0) -8 >Emitted(39, 58) Source(33, 50) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(40, 5) Source(33, 52) + SourceIndex(0) -2 >Emitted(40, 11) Source(33, 65) + SourceIndex(0) -3 >Emitted(40, 20) Source(33, 74) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(41, 6) Source(33, 77) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(42, 2) Source(33, 79) + SourceIndex(0) ---- ->>>/**@internal*/ import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(43, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(43, 15) Source(34, 15) + SourceIndex(0) -3 >Emitted(43, 16) Source(34, 16) + SourceIndex(0) -4 >Emitted(43, 23) Source(34, 23) + SourceIndex(0) -5 >Emitted(43, 37) Source(34, 37) + SourceIndex(0) -6 >Emitted(43, 40) Source(34, 40) + SourceIndex(0) -7 >Emitted(43, 57) Source(34, 57) + SourceIndex(0) -8 >Emitted(43, 58) Source(34, 58) + SourceIndex(0) -9 >Emitted(43, 67) Source(34, 67) + SourceIndex(0) -10>Emitted(43, 68) Source(34, 68) + SourceIndex(0) ---- ->>>/**@internal*/ declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(44, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(44, 15) Source(35, 15) + SourceIndex(0) -3 >Emitted(44, 16) Source(35, 16) + SourceIndex(0) -4 >Emitted(44, 29) Source(35, 21) + SourceIndex(0) -5 >Emitted(44, 41) Source(35, 33) + SourceIndex(0) -6 >Emitted(44, 44) Source(35, 36) + SourceIndex(0) -7 >Emitted(44, 53) Source(35, 45) + SourceIndex(0) -8 >Emitted(44, 54) Source(35, 46) + SourceIndex(0) ---- ->>>/**@internal*/ declare const internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > -5 > const -6 > internalConst -7 > = 10 -8 > ; -1 >Emitted(45, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(45, 15) Source(36, 15) + SourceIndex(0) -3 >Emitted(45, 16) Source(36, 16) + SourceIndex(0) -4 >Emitted(45, 24) Source(36, 16) + SourceIndex(0) -5 >Emitted(45, 30) Source(36, 22) + SourceIndex(0) -6 >Emitted(45, 43) Source(36, 35) + SourceIndex(0) -7 >Emitted(45, 48) Source(36, 40) + SourceIndex(0) -8 >Emitted(45, 49) Source(36, 41) + SourceIndex(0) ---- ->>>/**@internal*/ declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum -1 >Emitted(46, 1) Source(37, 1) + SourceIndex(0) -2 >Emitted(46, 15) Source(37, 15) + SourceIndex(0) -3 >Emitted(46, 16) Source(37, 16) + SourceIndex(0) -4 >Emitted(46, 29) Source(37, 21) + SourceIndex(0) -5 >Emitted(46, 41) Source(37, 33) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(47, 5) Source(37, 36) + SourceIndex(0) -2 >Emitted(47, 6) Source(37, 37) + SourceIndex(0) -3 >Emitted(47, 10) Source(37, 37) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(48, 5) Source(37, 39) + SourceIndex(0) -2 >Emitted(48, 6) Source(37, 40) + SourceIndex(0) -3 >Emitted(48, 10) Source(37, 40) + SourceIndex(0) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(49, 5) Source(37, 42) + SourceIndex(0) -2 >Emitted(49, 6) Source(37, 43) + SourceIndex(0) -3 >Emitted(49, 10) Source(37, 43) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(50, 2) Source(37, 45) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(51, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(51, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(51, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(52, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(52, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(53, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) ---- ->>> /**@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /**@internal*/ -3 > -1->Emitted(9, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(9, 19) Source(14, 19) + SourceIndex(0) -3 >Emitted(9, 20) Source(14, 20) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(10, 5) Source(14, 36) + SourceIndex(0) -2 >Emitted(10, 6) Source(14, 37) + SourceIndex(0) ---- ->>> /**@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /**@internal*/ prop: string; - > -2 > /**@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(11, 5) Source(16, 5) + SourceIndex(0) -2 >Emitted(11, 19) Source(16, 19) + SourceIndex(0) -3 >Emitted(11, 20) Source(16, 20) + SourceIndex(0) -4 >Emitted(11, 44) Source(16, 26) + SourceIndex(0) -5 >Emitted(11, 47) Source(16, 20) + SourceIndex(0) -6 >Emitted(11, 61) Source(16, 31) + SourceIndex(0) -7 >Emitted(11, 62) Source(16, 32) + SourceIndex(0) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^-> -1 > - > /**@internal*/ -2 > get -3 > c -1 >Emitted(12, 5) Source(17, 20) + SourceIndex(0) -2 >Emitted(12, 27) Source(17, 24) + SourceIndex(0) -3 >Emitted(12, 49) Source(17, 25) + SourceIndex(0) ---- ->>> /**@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /**@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(13, 9) Source(17, 5) + SourceIndex(0) -2 >Emitted(13, 23) Source(17, 19) + SourceIndex(0) -3 >Emitted(13, 29) Source(17, 20) + SourceIndex(0) -4 >Emitted(13, 43) Source(17, 30) + SourceIndex(0) -5 >Emitted(13, 50) Source(17, 37) + SourceIndex(0) -6 >Emitted(13, 52) Source(17, 39) + SourceIndex(0) -7 >Emitted(13, 53) Source(17, 40) + SourceIndex(0) -8 >Emitted(13, 54) Source(17, 41) + SourceIndex(0) -9 >Emitted(13, 55) Source(17, 42) + SourceIndex(0) ---- ->>> /**@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(14, 9) Source(18, 5) + SourceIndex(0) -2 >Emitted(14, 23) Source(18, 19) + SourceIndex(0) -3 >Emitted(14, 29) Source(18, 20) + SourceIndex(0) -4 >Emitted(14, 39) Source(18, 26) + SourceIndex(0) -5 >Emitted(14, 42) Source(18, 37) + SourceIndex(0) -6 >Emitted(14, 46) Source(18, 41) + SourceIndex(0) -7 >Emitted(14, 47) Source(18, 42) + SourceIndex(0) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(17, 8) Source(17, 42) + SourceIndex(0) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(18, 5) Source(19, 1) + SourceIndex(0) -2 >Emitted(18, 19) Source(19, 2) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) -3 >Emitted(19, 2) Source(13, 1) + SourceIndex(0) -4 >Emitted(19, 6) Source(19, 2) + SourceIndex(0) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(20, 5) Source(20, 11) + SourceIndex(0) -3 >Emitted(20, 12) Source(20, 18) + SourceIndex(0) -4 >Emitted(20, 13) Source(29, 2) + SourceIndex(0) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(21, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(21, 12) Source(20, 11) + SourceIndex(0) -3 >Emitted(21, 19) Source(20, 18) + SourceIndex(0) ---- ->>> /**@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /**@internal*/ -3 > -1->Emitted(22, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(22, 19) Source(21, 19) + SourceIndex(0) -3 >Emitted(22, 20) Source(21, 20) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(23, 9) Source(21, 20) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(24, 9) Source(21, 37) + SourceIndex(0) -2 >Emitted(24, 10) Source(21, 38) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(25, 9) Source(21, 37) + SourceIndex(0) -2 >Emitted(25, 17) Source(21, 38) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(26, 5) Source(21, 37) + SourceIndex(0) -2 >Emitted(26, 6) Source(21, 38) + SourceIndex(0) -3 >Emitted(26, 6) Source(21, 20) + SourceIndex(0) -4 >Emitted(26, 10) Source(21, 38) + SourceIndex(0) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(27, 5) Source(21, 33) + SourceIndex(0) -2 >Emitted(27, 14) Source(21, 34) + SourceIndex(0) -3 >Emitted(27, 18) Source(21, 38) + SourceIndex(0) -4 >Emitted(27, 19) Source(21, 38) + SourceIndex(0) ---- ->>> /**@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(28, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(28, 19) Source(22, 19) + SourceIndex(0) -3 >Emitted(28, 20) Source(22, 20) + SourceIndex(0) -4 >Emitted(28, 29) Source(22, 36) + SourceIndex(0) -5 >Emitted(28, 32) Source(22, 39) + SourceIndex(0) -6 >Emitted(28, 37) Source(22, 43) + SourceIndex(0) -7 >Emitted(28, 38) Source(22, 44) + SourceIndex(0) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(29, 5) Source(22, 36) + SourceIndex(0) -2 >Emitted(29, 16) Source(22, 39) + SourceIndex(0) -3 >Emitted(29, 22) Source(22, 44) + SourceIndex(0) -4 >Emitted(29, 23) Source(22, 44) + SourceIndex(0) ---- ->>> /**@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(30, 5) Source(23, 5) + SourceIndex(0) -2 >Emitted(30, 19) Source(23, 19) + SourceIndex(0) -3 >Emitted(30, 20) Source(23, 20) + SourceIndex(0) -4 >Emitted(30, 24) Source(23, 37) + SourceIndex(0) -5 >Emitted(30, 37) Source(23, 50) + SourceIndex(0) -6 >Emitted(30, 38) Source(23, 72) + SourceIndex(0) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(31, 5) Source(23, 20) + SourceIndex(0) -2 >Emitted(31, 16) Source(23, 37) + SourceIndex(0) -3 >Emitted(31, 29) Source(23, 50) + SourceIndex(0) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(32, 9) Source(23, 53) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(33, 13) Source(23, 53) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(34, 13) Source(23, 69) + SourceIndex(0) -2 >Emitted(34, 14) Source(23, 70) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(35, 13) Source(23, 69) + SourceIndex(0) -2 >Emitted(35, 21) Source(23, 70) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(36, 9) Source(23, 69) + SourceIndex(0) -2 >Emitted(36, 10) Source(23, 70) + SourceIndex(0) -3 >Emitted(36, 10) Source(23, 53) + SourceIndex(0) -4 >Emitted(36, 14) Source(23, 70) + SourceIndex(0) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(37, 9) Source(23, 66) + SourceIndex(0) -2 >Emitted(37, 24) Source(23, 67) + SourceIndex(0) -3 >Emitted(37, 28) Source(23, 70) + SourceIndex(0) -4 >Emitted(37, 29) Source(23, 70) + SourceIndex(0) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(38, 5) Source(23, 71) + SourceIndex(0) -2 >Emitted(38, 6) Source(23, 72) + SourceIndex(0) -3 >Emitted(38, 8) Source(23, 37) + SourceIndex(0) -4 >Emitted(38, 21) Source(23, 50) + SourceIndex(0) -5 >Emitted(38, 24) Source(23, 37) + SourceIndex(0) -6 >Emitted(38, 45) Source(23, 50) + SourceIndex(0) -7 >Emitted(38, 50) Source(23, 37) + SourceIndex(0) -8 >Emitted(38, 71) Source(23, 50) + SourceIndex(0) -9 >Emitted(38, 79) Source(23, 72) + SourceIndex(0) ---- ->>> /**@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(39, 5) Source(24, 5) + SourceIndex(0) -2 >Emitted(39, 19) Source(24, 19) + SourceIndex(0) -3 >Emitted(39, 20) Source(24, 20) + SourceIndex(0) -4 >Emitted(39, 24) Source(24, 37) + SourceIndex(0) -5 >Emitted(39, 33) Source(24, 46) + SourceIndex(0) -6 >Emitted(39, 34) Source(24, 86) + SourceIndex(0) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(40, 5) Source(24, 20) + SourceIndex(0) -2 >Emitted(40, 16) Source(24, 37) + SourceIndex(0) -3 >Emitted(40, 25) Source(24, 46) + SourceIndex(0) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(41, 9) Source(24, 47) + SourceIndex(0) -2 >Emitted(41, 13) Source(24, 47) + SourceIndex(0) -3 >Emitted(41, 22) Source(24, 56) + SourceIndex(0) -4 >Emitted(41, 23) Source(24, 86) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(42, 9) Source(24, 47) + SourceIndex(0) -2 >Emitted(42, 20) Source(24, 47) + SourceIndex(0) -3 >Emitted(42, 29) Source(24, 56) + SourceIndex(0) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(43, 13) Source(24, 59) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(44, 17) Source(24, 59) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(45, 17) Source(24, 83) + SourceIndex(0) -2 >Emitted(45, 18) Source(24, 84) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(46, 17) Source(24, 83) + SourceIndex(0) -2 >Emitted(46, 33) Source(24, 84) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(47, 13) Source(24, 83) + SourceIndex(0) -2 >Emitted(47, 14) Source(24, 84) + SourceIndex(0) -3 >Emitted(47, 14) Source(24, 59) + SourceIndex(0) -4 >Emitted(47, 18) Source(24, 84) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(48, 13) Source(24, 72) + SourceIndex(0) -2 >Emitted(48, 32) Source(24, 81) + SourceIndex(0) -3 >Emitted(48, 44) Source(24, 84) + SourceIndex(0) -4 >Emitted(48, 45) Source(24, 84) + SourceIndex(0) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(49, 9) Source(24, 85) + SourceIndex(0) -2 >Emitted(49, 10) Source(24, 86) + SourceIndex(0) -3 >Emitted(49, 12) Source(24, 47) + SourceIndex(0) -4 >Emitted(49, 21) Source(24, 56) + SourceIndex(0) -5 >Emitted(49, 24) Source(24, 47) + SourceIndex(0) -6 >Emitted(49, 43) Source(24, 56) + SourceIndex(0) -7 >Emitted(49, 48) Source(24, 47) + SourceIndex(0) -8 >Emitted(49, 67) Source(24, 56) + SourceIndex(0) -9 >Emitted(49, 75) Source(24, 86) + SourceIndex(0) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(50, 5) Source(24, 85) + SourceIndex(0) -2 >Emitted(50, 6) Source(24, 86) + SourceIndex(0) -3 >Emitted(50, 8) Source(24, 37) + SourceIndex(0) -4 >Emitted(50, 17) Source(24, 46) + SourceIndex(0) -5 >Emitted(50, 20) Source(24, 37) + SourceIndex(0) -6 >Emitted(50, 37) Source(24, 46) + SourceIndex(0) -7 >Emitted(50, 42) Source(24, 37) + SourceIndex(0) -8 >Emitted(50, 59) Source(24, 46) + SourceIndex(0) -9 >Emitted(50, 67) Source(24, 86) + SourceIndex(0) ---- ->>> /**@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /**@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(51, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(51, 19) Source(25, 19) + SourceIndex(0) -3 >Emitted(51, 20) Source(25, 34) + SourceIndex(0) -4 >Emitted(51, 38) Source(25, 44) + SourceIndex(0) -5 >Emitted(51, 41) Source(25, 47) + SourceIndex(0) -6 >Emitted(51, 54) Source(25, 60) + SourceIndex(0) -7 >Emitted(51, 55) Source(25, 61) + SourceIndex(0) -8 >Emitted(51, 56) Source(25, 62) + SourceIndex(0) -9 >Emitted(51, 57) Source(25, 63) + SourceIndex(0) ---- ->>> /**@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > -2 > /**@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(52, 5) Source(27, 5) + SourceIndex(0) -2 >Emitted(52, 19) Source(27, 19) + SourceIndex(0) -3 >Emitted(52, 20) Source(27, 33) + SourceIndex(0) -4 >Emitted(52, 41) Source(27, 46) + SourceIndex(0) -5 >Emitted(52, 44) Source(27, 49) + SourceIndex(0) -6 >Emitted(52, 46) Source(27, 51) + SourceIndex(0) -7 >Emitted(52, 47) Source(27, 52) + SourceIndex(0) ---- ->>> /**@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(53, 5) Source(28, 5) + SourceIndex(0) -2 >Emitted(53, 19) Source(28, 19) + SourceIndex(0) -3 >Emitted(53, 20) Source(28, 20) + SourceIndex(0) -4 >Emitted(53, 24) Source(28, 32) + SourceIndex(0) -5 >Emitted(53, 36) Source(28, 56) + SourceIndex(0) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(54, 5) Source(28, 20) + SourceIndex(0) -2 >Emitted(54, 16) Source(28, 32) + SourceIndex(0) -3 >Emitted(54, 28) Source(28, 44) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(55, 9) Source(28, 47) + SourceIndex(0) -2 >Emitted(55, 50) Source(28, 48) + SourceIndex(0) -3 >Emitted(55, 51) Source(28, 48) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(56, 9) Source(28, 50) + SourceIndex(0) -2 >Emitted(56, 50) Source(28, 51) + SourceIndex(0) -3 >Emitted(56, 51) Source(28, 51) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(57, 9) Source(28, 53) + SourceIndex(0) -2 >Emitted(57, 50) Source(28, 54) + SourceIndex(0) -3 >Emitted(57, 51) Source(28, 54) + SourceIndex(0) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(58, 5) Source(28, 55) + SourceIndex(0) -2 >Emitted(58, 6) Source(28, 56) + SourceIndex(0) -3 >Emitted(58, 8) Source(28, 32) + SourceIndex(0) -4 >Emitted(58, 20) Source(28, 44) + SourceIndex(0) -5 >Emitted(58, 23) Source(28, 32) + SourceIndex(0) -6 >Emitted(58, 43) Source(28, 44) + SourceIndex(0) -7 >Emitted(58, 48) Source(28, 32) + SourceIndex(0) -8 >Emitted(58, 68) Source(28, 44) + SourceIndex(0) -9 >Emitted(58, 76) Source(28, 56) + SourceIndex(0) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(59, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(59, 2) Source(29, 2) + SourceIndex(0) -3 >Emitted(59, 4) Source(20, 11) + SourceIndex(0) -4 >Emitted(59, 11) Source(20, 18) + SourceIndex(0) -5 >Emitted(59, 16) Source(20, 11) + SourceIndex(0) -6 >Emitted(59, 23) Source(20, 18) + SourceIndex(0) -7 >Emitted(59, 31) Source(29, 2) + SourceIndex(0) ---- ->>>/**@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 >/**@internal*/ -3 > -1->Emitted(60, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(60, 15) Source(30, 15) + SourceIndex(0) -3 >Emitted(60, 16) Source(30, 16) + SourceIndex(0) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(61, 5) Source(30, 16) + SourceIndex(0) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(62, 5) Source(30, 33) + SourceIndex(0) -2 >Emitted(62, 6) Source(30, 34) + SourceIndex(0) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(63, 5) Source(30, 33) + SourceIndex(0) -2 >Emitted(63, 21) Source(30, 34) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(64, 1) Source(30, 33) + SourceIndex(0) -2 >Emitted(64, 2) Source(30, 34) + SourceIndex(0) -3 >Emitted(64, 2) Source(30, 16) + SourceIndex(0) -4 >Emitted(64, 6) Source(30, 34) + SourceIndex(0) ---- ->>>/**@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(65, 1) Source(31, 1) + SourceIndex(0) -2 >Emitted(65, 15) Source(31, 15) + SourceIndex(0) -3 >Emitted(65, 16) Source(31, 16) + SourceIndex(0) -4 >Emitted(65, 25) Source(31, 25) + SourceIndex(0) -5 >Emitted(65, 36) Source(31, 36) + SourceIndex(0) -6 >Emitted(65, 41) Source(31, 40) + SourceIndex(0) -7 >Emitted(65, 42) Source(31, 41) + SourceIndex(0) ---- ->>>/**@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(66, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(66, 15) Source(32, 15) + SourceIndex(0) -3 >Emitted(66, 16) Source(32, 16) + SourceIndex(0) -4 >Emitted(66, 20) Source(32, 26) + SourceIndex(0) -5 >Emitted(66, 37) Source(32, 43) + SourceIndex(0) -6 >Emitted(66, 38) Source(32, 73) + SourceIndex(0) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(67, 1) Source(32, 16) + SourceIndex(0) -2 >Emitted(67, 12) Source(32, 26) + SourceIndex(0) -3 >Emitted(67, 29) Source(32, 43) + SourceIndex(0) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(68, 5) Source(32, 46) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(69, 9) Source(32, 46) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(70, 9) Source(32, 70) + SourceIndex(0) -2 >Emitted(70, 10) Source(32, 71) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(71, 9) Source(32, 70) + SourceIndex(0) -2 >Emitted(71, 25) Source(32, 71) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(72, 5) Source(32, 70) + SourceIndex(0) -2 >Emitted(72, 6) Source(32, 71) + SourceIndex(0) -3 >Emitted(72, 6) Source(32, 46) + SourceIndex(0) -4 >Emitted(72, 10) Source(32, 71) + SourceIndex(0) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(73, 5) Source(32, 59) + SourceIndex(0) -2 >Emitted(73, 32) Source(32, 68) + SourceIndex(0) -3 >Emitted(73, 44) Source(32, 71) + SourceIndex(0) -4 >Emitted(73, 45) Source(32, 71) + SourceIndex(0) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(74, 1) Source(32, 72) + SourceIndex(0) -2 >Emitted(74, 2) Source(32, 73) + SourceIndex(0) -3 >Emitted(74, 4) Source(32, 26) + SourceIndex(0) -4 >Emitted(74, 21) Source(32, 43) + SourceIndex(0) -5 >Emitted(74, 26) Source(32, 26) + SourceIndex(0) -6 >Emitted(74, 43) Source(32, 43) + SourceIndex(0) -7 >Emitted(74, 51) Source(32, 73) + SourceIndex(0) ---- ->>>/**@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(75, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(75, 15) Source(33, 15) + SourceIndex(0) -3 >Emitted(75, 16) Source(33, 16) + SourceIndex(0) -4 >Emitted(75, 20) Source(33, 26) + SourceIndex(0) -5 >Emitted(75, 33) Source(33, 39) + SourceIndex(0) -6 >Emitted(75, 34) Source(33, 79) + SourceIndex(0) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(76, 1) Source(33, 16) + SourceIndex(0) -2 >Emitted(76, 12) Source(33, 26) + SourceIndex(0) -3 >Emitted(76, 25) Source(33, 39) + SourceIndex(0) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(77, 5) Source(33, 40) + SourceIndex(0) -2 >Emitted(77, 9) Source(33, 40) + SourceIndex(0) -3 >Emitted(77, 18) Source(33, 49) + SourceIndex(0) -4 >Emitted(77, 19) Source(33, 79) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(78, 5) Source(33, 40) + SourceIndex(0) -2 >Emitted(78, 16) Source(33, 40) + SourceIndex(0) -3 >Emitted(78, 25) Source(33, 49) + SourceIndex(0) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(79, 9) Source(33, 52) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(80, 13) Source(33, 52) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(81, 13) Source(33, 76) + SourceIndex(0) -2 >Emitted(81, 14) Source(33, 77) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(82, 13) Source(33, 76) + SourceIndex(0) -2 >Emitted(82, 29) Source(33, 77) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(83, 9) Source(33, 76) + SourceIndex(0) -2 >Emitted(83, 10) Source(33, 77) + SourceIndex(0) -3 >Emitted(83, 10) Source(33, 52) + SourceIndex(0) -4 >Emitted(83, 14) Source(33, 77) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(84, 9) Source(33, 65) + SourceIndex(0) -2 >Emitted(84, 28) Source(33, 74) + SourceIndex(0) -3 >Emitted(84, 40) Source(33, 77) + SourceIndex(0) -4 >Emitted(84, 41) Source(33, 77) + SourceIndex(0) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(85, 5) Source(33, 78) + SourceIndex(0) -2 >Emitted(85, 6) Source(33, 79) + SourceIndex(0) -3 >Emitted(85, 8) Source(33, 40) + SourceIndex(0) -4 >Emitted(85, 17) Source(33, 49) + SourceIndex(0) -5 >Emitted(85, 20) Source(33, 40) + SourceIndex(0) -6 >Emitted(85, 43) Source(33, 49) + SourceIndex(0) -7 >Emitted(85, 48) Source(33, 40) + SourceIndex(0) -8 >Emitted(85, 71) Source(33, 49) + SourceIndex(0) -9 >Emitted(85, 79) Source(33, 79) + SourceIndex(0) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(86, 1) Source(33, 78) + SourceIndex(0) -2 >Emitted(86, 2) Source(33, 79) + SourceIndex(0) -3 >Emitted(86, 4) Source(33, 26) + SourceIndex(0) -4 >Emitted(86, 17) Source(33, 39) + SourceIndex(0) -5 >Emitted(86, 22) Source(33, 26) + SourceIndex(0) -6 >Emitted(86, 35) Source(33, 39) + SourceIndex(0) -7 >Emitted(86, 43) Source(33, 79) + SourceIndex(0) ---- ->>>/**@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(87, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(87, 15) Source(34, 15) + SourceIndex(0) -3 >Emitted(87, 16) Source(34, 16) + SourceIndex(0) -4 >Emitted(87, 20) Source(34, 23) + SourceIndex(0) -5 >Emitted(87, 34) Source(34, 37) + SourceIndex(0) -6 >Emitted(87, 37) Source(34, 40) + SourceIndex(0) -7 >Emitted(87, 54) Source(34, 57) + SourceIndex(0) -8 >Emitted(87, 55) Source(34, 58) + SourceIndex(0) -9 >Emitted(87, 64) Source(34, 67) + SourceIndex(0) -10>Emitted(87, 65) Source(34, 68) + SourceIndex(0) ---- ->>>/**@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/**@internal*/ type internalType = internalC; - > -2 >/**@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(88, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(88, 15) Source(36, 15) + SourceIndex(0) -3 >Emitted(88, 16) Source(36, 16) + SourceIndex(0) -4 >Emitted(88, 20) Source(36, 22) + SourceIndex(0) -5 >Emitted(88, 33) Source(36, 35) + SourceIndex(0) -6 >Emitted(88, 36) Source(36, 38) + SourceIndex(0) -7 >Emitted(88, 38) Source(36, 40) + SourceIndex(0) -8 >Emitted(88, 39) Source(36, 41) + SourceIndex(0) ---- ->>>/**@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(89, 1) Source(37, 1) + SourceIndex(0) -2 >Emitted(89, 15) Source(37, 15) + SourceIndex(0) -3 >Emitted(89, 16) Source(37, 16) + SourceIndex(0) -4 >Emitted(89, 20) Source(37, 21) + SourceIndex(0) -5 >Emitted(89, 32) Source(37, 45) + SourceIndex(0) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(90, 1) Source(37, 16) + SourceIndex(0) -2 >Emitted(90, 12) Source(37, 21) + SourceIndex(0) -3 >Emitted(90, 24) Source(37, 33) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(91, 5) Source(37, 36) + SourceIndex(0) -2 >Emitted(91, 46) Source(37, 37) + SourceIndex(0) -3 >Emitted(91, 47) Source(37, 37) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(92, 5) Source(37, 39) + SourceIndex(0) -2 >Emitted(92, 46) Source(37, 40) + SourceIndex(0) -3 >Emitted(92, 47) Source(37, 40) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(93, 5) Source(37, 42) + SourceIndex(0) -2 >Emitted(93, 46) Source(37, 43) + SourceIndex(0) -3 >Emitted(93, 47) Source(37, 43) + SourceIndex(0) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(94, 1) Source(37, 44) + SourceIndex(0) -2 >Emitted(94, 2) Source(37, 45) + SourceIndex(0) -3 >Emitted(94, 4) Source(37, 21) + SourceIndex(0) -4 >Emitted(94, 16) Source(37, 33) + SourceIndex(0) -5 >Emitted(94, 21) Source(37, 21) + SourceIndex(0) -6 >Emitted(94, 33) Source(37, 33) + SourceIndex(0) -7 >Emitted(94, 41) Source(37, 45) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(95, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(96, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(97, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(98, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(98, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(98, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(99, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(99, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(99, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(99, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(99, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(99, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(99, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(99, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(100, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(101, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(102, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(102, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3434, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 77, - "kind": "text" - }, - { - "pos": 77, - "end": 226, - "kind": "internal" - }, - { - "pos": 228, - "end": 260, - "kind": "text" - }, - { - "pos": 260, - "end": 772, - "kind": "internal" - }, - { - "pos": 774, - "end": 777, - "kind": "text" - }, - { - "pos": 777, - "end": 1310, - "kind": "internal" - }, - { - "pos": 1312, - "end": 1360, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-3434) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-77) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (77-226) - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; ----------------------------------------------------------------------- -text: (228-260) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (260-772) - /**@internal*/ class C { - } - /**@internal*/ function foo(): void; - /**@internal*/ namespace someNamespace { - class C { - } - } - /**@internal*/ namespace someOther.something { - class someClass { - } - } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ type internalType = internalC; - /**@internal*/ const internalConst = 10; - /**@internal*/ enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (774-777) -} - ----------------------------------------------------------------------- -internal: (777-1310) -/**@internal*/ declare class internalC { -} -/**@internal*/ declare function internalfoo(): void; -/**@internal*/ declare namespace internalNamespace { - class someClass { - } -} -/**@internal*/ declare namespace internalOther.something { - class someClass { - } -} -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ declare type internalType = internalC; -/**@internal*/ declare const internalConst = 10; -/**@internal*/ declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1312-1360) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -/**@internal*/ interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>/**@internal*/ interface TheFirst { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^ -1 > -2 >/**@internal*/ -3 > -4 > interface -5 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) -4 >Emitted(1, 26) Source(1, 26) + SourceIndex(0) -5 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 54, - "kind": "internal" - }, - { - "pos": 56, - "end": 172, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-54) -/**@internal*/ interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (56-172) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] -} - - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /**@internal*/ constructor() { } - /**@internal*/ prop: string; - /**@internal*/ method() { } - /**@internal*/ get c() { return 10; } - /**@internal*/ set c(val: number) { } -} -namespace normalN { - /**@internal*/ export class C { } - /**@internal*/ export function foo() {} - /**@internal*/ export namespace someNamespace { export class C {} } - /**@internal*/ export namespace someOther.something { export class someClass {} } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ export type internalType = internalC; - /**@internal*/ export const internalConst = 10; - /**@internal*/ export enum internalEnum { a, b, c } -} -/**@internal*/ class internalC {} -/**@internal*/ function internalfoo() {} -/**@internal*/ namespace internalNamespace { export class someClass {} } -/**@internal*/ namespace internalOther.something { export class someClass {} } -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ type internalType = internalC; -/**@internal*/ const internalConst = 10; -/**@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare const s = "Hello, world"; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /**@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /**@internal*/ -3 > -1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) -3 >Emitted(15, 20) Source(14, 20) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(16, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) ---- ->>> /**@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /**@internal*/ prop: string; - > -2 > /**@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) -3 >Emitted(17, 20) Source(16, 20) + SourceIndex(3) -4 >Emitted(17, 44) Source(16, 26) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 20) + SourceIndex(3) -6 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) -7 >Emitted(17, 62) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^-> -1 > - > /**@internal*/ -2 > get -3 > c -1 >Emitted(18, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) ---- ->>> /**@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /**@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(19, 23) Source(17, 19) + SourceIndex(3) -3 >Emitted(19, 29) Source(17, 20) + SourceIndex(3) -4 >Emitted(19, 43) Source(17, 30) + SourceIndex(3) -5 >Emitted(19, 50) Source(17, 37) + SourceIndex(3) -6 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) -7 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) -8 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) -9 >Emitted(19, 55) Source(17, 42) + SourceIndex(3) ---- ->>> /**@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(20, 23) Source(18, 19) + SourceIndex(3) -3 >Emitted(20, 29) Source(18, 20) + SourceIndex(3) -4 >Emitted(20, 39) Source(18, 26) + SourceIndex(3) -5 >Emitted(20, 42) Source(18, 37) + SourceIndex(3) -6 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) -7 >Emitted(20, 47) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /**@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /**@internal*/ -3 > -1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) -3 >Emitted(28, 20) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) ---- ->>> /**@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) -3 >Emitted(34, 20) Source(22, 20) + SourceIndex(3) -4 >Emitted(34, 29) Source(22, 36) + SourceIndex(3) -5 >Emitted(34, 32) Source(22, 39) + SourceIndex(3) -6 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) -7 >Emitted(34, 38) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(35, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> /**@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) -3 >Emitted(36, 20) Source(23, 20) + SourceIndex(3) -4 >Emitted(36, 24) Source(23, 37) + SourceIndex(3) -5 >Emitted(36, 37) Source(23, 50) + SourceIndex(3) -6 >Emitted(36, 38) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) ---- ->>> /**@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) -3 >Emitted(45, 20) Source(24, 20) + SourceIndex(3) -4 >Emitted(45, 24) Source(24, 37) + SourceIndex(3) -5 >Emitted(45, 33) Source(24, 46) + SourceIndex(3) -6 >Emitted(45, 34) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) ---- ->>> /**@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /**@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(57, 19) Source(25, 19) + SourceIndex(3) -3 >Emitted(57, 20) Source(25, 34) + SourceIndex(3) -4 >Emitted(57, 38) Source(25, 44) + SourceIndex(3) -5 >Emitted(57, 41) Source(25, 47) + SourceIndex(3) -6 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) -7 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) -8 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) -9 >Emitted(57, 57) Source(25, 63) + SourceIndex(3) ---- ->>> /**@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > -2 > /**@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(58, 19) Source(27, 19) + SourceIndex(3) -3 >Emitted(58, 20) Source(27, 33) + SourceIndex(3) -4 >Emitted(58, 41) Source(27, 46) + SourceIndex(3) -5 >Emitted(58, 44) Source(27, 49) + SourceIndex(3) -6 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) -7 >Emitted(58, 47) Source(27, 52) + SourceIndex(3) ---- ->>> /**@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) -3 >Emitted(59, 20) Source(28, 20) + SourceIndex(3) -4 >Emitted(59, 24) Source(28, 32) + SourceIndex(3) -5 >Emitted(59, 36) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/**@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 >/**@internal*/ -3 > -1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) -3 >Emitted(66, 16) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) ---- ->>>/**@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) -3 >Emitted(71, 16) Source(31, 16) + SourceIndex(3) -4 >Emitted(71, 25) Source(31, 25) + SourceIndex(3) -5 >Emitted(71, 36) Source(31, 36) + SourceIndex(3) -6 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) -7 >Emitted(71, 42) Source(31, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) -3 >Emitted(72, 16) Source(32, 16) + SourceIndex(3) -4 >Emitted(72, 20) Source(32, 26) + SourceIndex(3) -5 >Emitted(72, 37) Source(32, 43) + SourceIndex(3) -6 >Emitted(72, 38) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) ---- ->>>/**@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) -3 >Emitted(81, 16) Source(33, 16) + SourceIndex(3) -4 >Emitted(81, 20) Source(33, 26) + SourceIndex(3) -5 >Emitted(81, 33) Source(33, 39) + SourceIndex(3) -6 >Emitted(81, 34) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) ---- ->>>/**@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) -3 >Emitted(93, 16) Source(34, 16) + SourceIndex(3) -4 >Emitted(93, 20) Source(34, 23) + SourceIndex(3) -5 >Emitted(93, 34) Source(34, 37) + SourceIndex(3) -6 >Emitted(93, 37) Source(34, 40) + SourceIndex(3) -7 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) -8 >Emitted(93, 55) Source(34, 58) + SourceIndex(3) -9 >Emitted(93, 64) Source(34, 67) + SourceIndex(3) -10>Emitted(93, 65) Source(34, 68) + SourceIndex(3) ---- ->>>/**@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/**@internal*/ type internalType = internalC; - > -2 >/**@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) -3 >Emitted(94, 16) Source(36, 16) + SourceIndex(3) -4 >Emitted(94, 20) Source(36, 22) + SourceIndex(3) -5 >Emitted(94, 33) Source(36, 35) + SourceIndex(3) -6 >Emitted(94, 36) Source(36, 38) + SourceIndex(3) -7 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) -8 >Emitted(94, 39) Source(36, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) -3 >Emitted(95, 16) Source(37, 16) + SourceIndex(3) -4 >Emitted(95, 20) Source(37, 21) + SourceIndex(3) -5 >Emitted(95, 32) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3544, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 3544, - "kind": "text" - } - ] - }, - { - "pos": 3544, - "end": 3580, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 116, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 116, - "kind": "text" - } - ] - }, - { - "pos": 116, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 116, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-3544):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-3544) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3544-3580) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-116) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (116-276) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, -"stripInternal": true - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-few-members-of-enum-are-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-few-members-of-enum-are-internal.js deleted file mode 100644 index 37b97a2e325..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-few-members-of-enum-are-internal.js +++ /dev/null @@ -1,2742 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:00:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:00:00 PM - Building project '/src/first/tsconfig.json'... - -4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:00:00 PM - Building project '/src/second/tsconfig.json'... - -4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:00:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 285, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 100, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-285) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-100) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -declare enum TokenFlags { - None = 0, - PrecedingLineBreak = 1, - PrecedingJSDocComment = 2, - Unterminated = 4, - ExtendedUnicodeEscape = 8, - Scientific = 16, - Octal = 32, - HexSpecifier = 64, - BinarySpecifier = 128, - OctalSpecifier = 256, - ContainsSeparator = 512, - BinaryOrOctalSpecifier = 384, - NumericLiteralFlags = 1008 -} -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IAER,kBAAkB,IAAS;IAE3B,qBAAqB,IAAS;IAE9B,YAAY,IAAS;IAErB,qBAAqB,IAAS;IAC9B,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;IAEvB,iBAAiB,MAAS;IAE1B,sBAAsB,MAAmC;IAEzD,mBAAmB,OAAiF;CACvG;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AE9BD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>declare enum TokenFlags { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^ -1 > -2 >enum -3 > TokenFlags -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 14) Source(1, 6) + SourceIndex(0) -3 >Emitted(1, 24) Source(1, 16) + SourceIndex(0) ---- ->>> None = 0, -1 >^^^^ -2 > ^^^^ -3 > ^^^^ -4 > ^^^^^^^^^^^^^^^^-> -1 > { - > -2 > None -3 > = 0 -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) ---- ->>> PrecedingLineBreak = 1, -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^^^^^-> -1->, - > /* @internal */ - > -2 > PrecedingLineBreak -3 > = 1 << 0 -1->Emitted(3, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(3, 23) Source(4, 23) + SourceIndex(0) -3 >Emitted(3, 27) Source(4, 32) + SourceIndex(0) ---- ->>> PrecedingJSDocComment = 2, -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^ -1->, - > /* @internal */ - > -2 > PrecedingJSDocComment -3 > = 1 << 1 -1->Emitted(4, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(4, 26) Source(6, 26) + SourceIndex(0) -3 >Emitted(4, 30) Source(6, 35) + SourceIndex(0) ---- ->>> Unterminated = 4, -1 >^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^^^ -4 > ^^^^^^^^^^^-> -1 >, - > /* @internal */ - > -2 > Unterminated -3 > = 1 << 2 -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 17) Source(8, 17) + SourceIndex(0) -3 >Emitted(5, 21) Source(8, 26) + SourceIndex(0) ---- ->>> ExtendedUnicodeEscape = 8, -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^ -1->, - > /* @internal */ - > -2 > ExtendedUnicodeEscape -3 > = 1 << 3 -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 26) Source(10, 26) + SourceIndex(0) -3 >Emitted(6, 30) Source(10, 35) + SourceIndex(0) ---- ->>> Scientific = 16, -1 >^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^ -1 >, - > -2 > Scientific -3 > = 1 << 4 -1 >Emitted(7, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(7, 15) Source(11, 15) + SourceIndex(0) -3 >Emitted(7, 20) Source(11, 24) + SourceIndex(0) ---- ->>> Octal = 32, -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^ -4 > ^^^^^^^^^-> -1 >, - > -2 > Octal -3 > = 1 << 5 -1 >Emitted(8, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(8, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 15) Source(12, 19) + SourceIndex(0) ---- ->>> HexSpecifier = 64, -1->^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^^^^ -4 > ^^^^^^-> -1->, - > -2 > HexSpecifier -3 > = 1 << 6 -1->Emitted(9, 5) Source(13, 5) + SourceIndex(0) -2 >Emitted(9, 17) Source(13, 17) + SourceIndex(0) -3 >Emitted(9, 22) Source(13, 26) + SourceIndex(0) ---- ->>> BinarySpecifier = 128, -1->^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^-> -1->, - > -2 > BinarySpecifier -3 > = 1 << 7 -1->Emitted(10, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(10, 20) Source(14, 20) + SourceIndex(0) -3 >Emitted(10, 26) Source(14, 29) + SourceIndex(0) ---- ->>> OctalSpecifier = 256, -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^-> -1->, - > -2 > OctalSpecifier -3 > = 1 << 8 -1->Emitted(11, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(11, 19) Source(15, 19) + SourceIndex(0) -3 >Emitted(11, 25) Source(15, 28) + SourceIndex(0) ---- ->>> ContainsSeparator = 512, -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^-> -1->, - > /* @internal */ - > -2 > ContainsSeparator -3 > = 1 << 9 -1->Emitted(12, 5) Source(17, 5) + SourceIndex(0) -2 >Emitted(12, 22) Source(17, 22) + SourceIndex(0) -3 >Emitted(12, 28) Source(17, 31) + SourceIndex(0) ---- ->>> BinaryOrOctalSpecifier = 384, -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^ -1->, - > /* @internal */ - > -2 > BinaryOrOctalSpecifier -3 > = BinarySpecifier | OctalSpecifier -1->Emitted(13, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(13, 27) Source(19, 27) + SourceIndex(0) -3 >Emitted(13, 33) Source(19, 62) + SourceIndex(0) ---- ->>> NumericLiteralFlags = 1008 -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1 >, - > /* @internal */ - > -2 > NumericLiteralFlags -3 > = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator -1 >Emitted(14, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(14, 24) Source(21, 24) + SourceIndex(0) -3 >Emitted(14, 31) Source(21, 105) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(15, 2) Source(22, 2) + SourceIndex(0) ---- ->>>interface TheFirst { -1-> -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1-> - > -2 >interface -3 > TheFirst -1->Emitted(16, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(16, 11) Source(23, 11) + SourceIndex(0) -3 >Emitted(16, 19) Source(23, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(17, 5) Source(24, 5) + SourceIndex(0) -2 >Emitted(17, 9) Source(24, 9) + SourceIndex(0) -3 >Emitted(17, 11) Source(24, 11) + SourceIndex(0) -4 >Emitted(17, 14) Source(24, 14) + SourceIndex(0) -5 >Emitted(17, 15) Source(24, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(18, 2) Source(25, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(19, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(19, 9) Source(27, 1) + SourceIndex(0) -3 >Emitted(19, 15) Source(27, 7) + SourceIndex(0) -4 >Emitted(19, 16) Source(27, 8) + SourceIndex(0) -5 >Emitted(19, 33) Source(27, 25) + SourceIndex(0) -6 >Emitted(19, 34) Source(27, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(20, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(20, 11) Source(29, 11) + SourceIndex(0) -3 >Emitted(20, 28) Source(29, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(21, 5) Source(30, 5) + SourceIndex(0) -2 >Emitted(21, 9) Source(30, 9) + SourceIndex(0) -3 >Emitted(21, 11) Source(30, 11) + SourceIndex(0) -4 >Emitted(21, 14) Source(30, 14) + SourceIndex(0) -5 >Emitted(21, 15) Source(30, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(22, 2) Source(31, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(23, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(23, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(23, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(23, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var TokenFlags; -(function (TokenFlags) { - TokenFlags[TokenFlags["None"] = 0] = "None"; - TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; - TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; - TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; - TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; - TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; - TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; - TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; - TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; - TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; - TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; - TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; - TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; -})(TokenFlags || (TokenFlags = {})); -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var TokenFlags; -1 > -2 >^^^^ -3 > ^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > -2 >enum -3 > TokenFlags { - > None = 0, - > /* @internal */ - > PrecedingLineBreak = 1 << 0, - > /* @internal */ - > PrecedingJSDocComment = 1 << 1, - > /* @internal */ - > Unterminated = 1 << 2, - > /* @internal */ - > ExtendedUnicodeEscape = 1 << 3, - > Scientific = 1 << 4, - > Octal = 1 << 5, - > HexSpecifier = 1 << 6, - > BinarySpecifier = 1 << 7, - > OctalSpecifier = 1 << 8, - > /* @internal */ - > ContainsSeparator = 1 << 9, - > /* @internal */ - > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, - > /* @internal */ - > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator - > } -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 6) + SourceIndex(0) -3 >Emitted(1, 15) Source(22, 2) + SourceIndex(0) ---- ->>>(function (TokenFlags) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > TokenFlags -1->Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(1, 6) + SourceIndex(0) -3 >Emitted(2, 22) Source(1, 16) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["None"] = 0] = "None"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > None = 0 -3 > -1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 48) Source(2, 13) + SourceIndex(0) -3 >Emitted(3, 49) Source(2, 13) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1->, - > /* @internal */ - > -2 > PrecedingLineBreak = 1 << 0 -3 > -1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(4, 76) Source(4, 32) + SourceIndex(0) -3 >Emitted(4, 77) Source(4, 32) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, - > /* @internal */ - > -2 > PrecedingJSDocComment = 1 << 1 -3 > -1->Emitted(5, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(5, 82) Source(6, 35) + SourceIndex(0) -3 >Emitted(5, 83) Source(6, 35) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 >, - > /* @internal */ - > -2 > Unterminated = 1 << 2 -3 > -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 64) Source(8, 26) + SourceIndex(0) -3 >Emitted(6, 65) Source(8, 26) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, - > /* @internal */ - > -2 > ExtendedUnicodeEscape = 1 << 3 -3 > -1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(7, 82) Source(10, 35) + SourceIndex(0) -3 >Emitted(7, 83) Source(10, 35) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, - > -2 > Scientific = 1 << 4 -3 > -1 >Emitted(8, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(8, 61) Source(11, 24) + SourceIndex(0) -3 >Emitted(8, 62) Source(11, 24) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^-> -1 >, - > -2 > Octal = 1 << 5 -3 > -1 >Emitted(9, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(9, 51) Source(12, 19) + SourceIndex(0) -3 >Emitted(9, 52) Source(12, 19) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^-> -1->, - > -2 > HexSpecifier = 1 << 6 -3 > -1->Emitted(10, 5) Source(13, 5) + SourceIndex(0) -2 >Emitted(10, 65) Source(13, 26) + SourceIndex(0) -3 >Emitted(10, 66) Source(13, 26) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, - > -2 > BinarySpecifier = 1 << 7 -3 > -1->Emitted(11, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(11, 72) Source(14, 29) + SourceIndex(0) -3 >Emitted(11, 73) Source(14, 29) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1 >, - > -2 > OctalSpecifier = 1 << 8 -3 > -1 >Emitted(12, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(12, 70) Source(15, 28) + SourceIndex(0) -3 >Emitted(12, 71) Source(15, 28) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^-> -1->, - > /* @internal */ - > -2 > ContainsSeparator = 1 << 9 -3 > -1->Emitted(13, 5) Source(17, 5) + SourceIndex(0) -2 >Emitted(13, 76) Source(17, 31) + SourceIndex(0) -3 >Emitted(13, 77) Source(17, 31) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, - > /* @internal */ - > -2 > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier -3 > -1->Emitted(14, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(14, 86) Source(19, 62) + SourceIndex(0) -3 >Emitted(14, 87) Source(19, 62) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, - > /* @internal */ - > -2 > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator -3 > -1 >Emitted(15, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(15, 81) Source(21, 105) + SourceIndex(0) -3 >Emitted(15, 82) Source(21, 105) + SourceIndex(0) ---- ->>>})(TokenFlags || (TokenFlags = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^ -7 > ^^^^^^^^ -1 > - > -2 >} -3 > -4 > TokenFlags -5 > -6 > TokenFlags -7 > { - > None = 0, - > /* @internal */ - > PrecedingLineBreak = 1 << 0, - > /* @internal */ - > PrecedingJSDocComment = 1 << 1, - > /* @internal */ - > Unterminated = 1 << 2, - > /* @internal */ - > ExtendedUnicodeEscape = 1 << 3, - > Scientific = 1 << 4, - > Octal = 1 << 5, - > HexSpecifier = 1 << 6, - > BinarySpecifier = 1 << 7, - > OctalSpecifier = 1 << 8, - > /* @internal */ - > ContainsSeparator = 1 << 9, - > /* @internal */ - > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, - > /* @internal */ - > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator - > } -1 >Emitted(16, 1) Source(22, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(22, 2) + SourceIndex(0) -3 >Emitted(16, 4) Source(1, 6) + SourceIndex(0) -4 >Emitted(16, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(16, 19) Source(1, 6) + SourceIndex(0) -6 >Emitted(16, 29) Source(1, 16) + SourceIndex(0) -7 >Emitted(16, 37) Source(22, 2) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 > - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(17, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(17, 5) Source(27, 7) + SourceIndex(0) -3 >Emitted(17, 6) Source(27, 8) + SourceIndex(0) -4 >Emitted(17, 9) Source(27, 11) + SourceIndex(0) -5 >Emitted(17, 23) Source(27, 25) + SourceIndex(0) -6 >Emitted(17, 24) Source(27, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(18, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(18, 8) Source(33, 8) + SourceIndex(0) -3 >Emitted(18, 9) Source(33, 9) + SourceIndex(0) -4 >Emitted(18, 12) Source(33, 12) + SourceIndex(0) -5 >Emitted(18, 13) Source(33, 13) + SourceIndex(0) -6 >Emitted(18, 14) Source(33, 14) + SourceIndex(0) -7 >Emitted(18, 15) Source(33, 15) + SourceIndex(0) -8 >Emitted(18, 16) Source(33, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(19, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(19, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(19, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(19, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(19, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(19, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(19, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(19, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(19, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(20, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(20, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(20, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(21, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(21, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(21, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(21, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(22, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(22, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1131, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 42, - "kind": "text" - }, - { - "pos": 42, - "end": 156, - "kind": "internal" - }, - { - "pos": 158, - "end": 276, - "kind": "text" - }, - { - "pos": 276, - "end": 371, - "kind": "internal" - }, - { - "pos": 373, - "end": 533, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-1131) -var TokenFlags; -(function (TokenFlags) { - TokenFlags[TokenFlags["None"] = 0] = "None"; - TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; - TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; - TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; - TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; - TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; - TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; - TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; - TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; - TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; - TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; - TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; - TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; -})(TokenFlags || (TokenFlags = {})); -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-42) -declare enum TokenFlags { - None = 0, - ----------------------------------------------------------------------- -internal: (42-156) - PrecedingLineBreak = 1, - PrecedingJSDocComment = 2, - Unterminated = 4, - ExtendedUnicodeEscape = 8, ----------------------------------------------------------------------- -text: (158-276) - Scientific = 16, - Octal = 32, - HexSpecifier = 64, - BinarySpecifier = 128, - OctalSpecifier = 256, - ----------------------------------------------------------------------- -internal: (276-371) - ContainsSeparator = 512, - BinaryOrOctalSpecifier = 384, - NumericLiteralFlags = 1008 ----------------------------------------------------------------------- -text: (373-533) -} -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -enum TokenFlags { - None = 0, - /* @internal */ - PrecedingLineBreak = 1 << 0, - /* @internal */ - PrecedingJSDocComment = 1 << 1, - /* @internal */ - Unterminated = 1 << 2, - /* @internal */ - ExtendedUnicodeEscape = 1 << 3, - Scientific = 1 << 4, - Octal = 1 << 5, - HexSpecifier = 1 << 6, - BinarySpecifier = 1 << 7, - OctalSpecifier = 1 << 8, - /* @internal */ - ContainsSeparator = 1 << 9, - /* @internal */ - BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, - /* @internal */ - NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator -} -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare enum TokenFlags { - None = 0, - Scientific = 16, - Octal = 32, - HexSpecifier = 64, - BinarySpecifier = 128, - OctalSpecifier = 256, -} -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IASR,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;CAO1B;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AC9BD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare enum TokenFlags { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^ -1 > -2 >enum -3 > TokenFlags -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 14) Source(1, 6) + SourceIndex(0) -3 >Emitted(1, 24) Source(1, 16) + SourceIndex(0) ---- ->>> None = 0, -1 >^^^^ -2 > ^^^^ -3 > ^^^^ -4 > ^^^^^^^^^-> -1 > { - > -2 > None -3 > = 0 -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) ---- ->>> Scientific = 16, -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^ -1->, - > /* @internal */ - > PrecedingLineBreak = 1 << 0, - > /* @internal */ - > PrecedingJSDocComment = 1 << 1, - > /* @internal */ - > Unterminated = 1 << 2, - > /* @internal */ - > ExtendedUnicodeEscape = 1 << 3, - > -2 > Scientific -3 > = 1 << 4 -1->Emitted(3, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -3 >Emitted(3, 20) Source(11, 24) + SourceIndex(0) ---- ->>> Octal = 32, -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^ -4 > ^^^^^^^^^-> -1 >, - > -2 > Octal -3 > = 1 << 5 -1 >Emitted(4, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(4, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(4, 15) Source(12, 19) + SourceIndex(0) ---- ->>> HexSpecifier = 64, -1->^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^^^^ -4 > ^^^^^^-> -1->, - > -2 > HexSpecifier -3 > = 1 << 6 -1->Emitted(5, 5) Source(13, 5) + SourceIndex(0) -2 >Emitted(5, 17) Source(13, 17) + SourceIndex(0) -3 >Emitted(5, 22) Source(13, 26) + SourceIndex(0) ---- ->>> BinarySpecifier = 128, -1->^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^-> -1->, - > -2 > BinarySpecifier -3 > = 1 << 7 -1->Emitted(6, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(6, 20) Source(14, 20) + SourceIndex(0) -3 >Emitted(6, 26) Source(14, 29) + SourceIndex(0) ---- ->>> OctalSpecifier = 256, -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -1->, - > -2 > OctalSpecifier -3 > = 1 << 8 -1->Emitted(7, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(7, 19) Source(15, 19) + SourceIndex(0) -3 >Emitted(7, 25) Source(15, 28) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >, - > /* @internal */ - > ContainsSeparator = 1 << 9, - > /* @internal */ - > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, - > /* @internal */ - > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator - >} -1 >Emitted(8, 2) Source(22, 2) + SourceIndex(0) ---- ->>>interface TheFirst { -1-> -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1-> - > -2 >interface -3 > TheFirst -1->Emitted(9, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(9, 11) Source(23, 11) + SourceIndex(0) -3 >Emitted(9, 19) Source(23, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(10, 5) Source(24, 5) + SourceIndex(0) -2 >Emitted(10, 9) Source(24, 9) + SourceIndex(0) -3 >Emitted(10, 11) Source(24, 11) + SourceIndex(0) -4 >Emitted(10, 14) Source(24, 14) + SourceIndex(0) -5 >Emitted(10, 15) Source(24, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(11, 2) Source(25, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(12, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(12, 9) Source(27, 1) + SourceIndex(0) -3 >Emitted(12, 15) Source(27, 7) + SourceIndex(0) -4 >Emitted(12, 16) Source(27, 8) + SourceIndex(0) -5 >Emitted(12, 33) Source(27, 25) + SourceIndex(0) -6 >Emitted(12, 34) Source(27, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(13, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(13, 11) Source(29, 11) + SourceIndex(0) -3 >Emitted(13, 28) Source(29, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(14, 5) Source(30, 5) + SourceIndex(0) -2 >Emitted(14, 9) Source(30, 9) + SourceIndex(0) -3 >Emitted(14, 11) Source(30, 11) + SourceIndex(0) -4 >Emitted(14, 14) Source(30, 14) + SourceIndex(0) -5 >Emitted(14, 15) Source(30, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(15, 2) Source(31, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(16, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(16, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(16, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(16, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(17, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(17, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(17, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(17, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(19, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(19, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(19, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(19, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(20, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(21, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(21, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(21, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(22, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(22, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(23, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(24, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(24, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(24, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(24, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(24, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var TokenFlags; -(function (TokenFlags) { - TokenFlags[TokenFlags["None"] = 0] = "None"; - TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; - TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; - TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; - TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; - TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; - TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; - TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; - TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; - TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; - TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; - TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; - TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; -})(TokenFlags || (TokenFlags = {})); -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var TokenFlags; -1 > -2 >^^^^ -3 > ^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > -2 >enum -3 > TokenFlags { - > None = 0, - > /* @internal */ - > PrecedingLineBreak = 1 << 0, - > /* @internal */ - > PrecedingJSDocComment = 1 << 1, - > /* @internal */ - > Unterminated = 1 << 2, - > /* @internal */ - > ExtendedUnicodeEscape = 1 << 3, - > Scientific = 1 << 4, - > Octal = 1 << 5, - > HexSpecifier = 1 << 6, - > BinarySpecifier = 1 << 7, - > OctalSpecifier = 1 << 8, - > /* @internal */ - > ContainsSeparator = 1 << 9, - > /* @internal */ - > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, - > /* @internal */ - > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator - > } -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 6) + SourceIndex(0) -3 >Emitted(1, 15) Source(22, 2) + SourceIndex(0) ---- ->>>(function (TokenFlags) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > TokenFlags -1->Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(1, 6) + SourceIndex(0) -3 >Emitted(2, 22) Source(1, 16) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["None"] = 0] = "None"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > None = 0 -3 > -1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 48) Source(2, 13) + SourceIndex(0) -3 >Emitted(3, 49) Source(2, 13) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1->, - > /* @internal */ - > -2 > PrecedingLineBreak = 1 << 0 -3 > -1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(4, 76) Source(4, 32) + SourceIndex(0) -3 >Emitted(4, 77) Source(4, 32) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, - > /* @internal */ - > -2 > PrecedingJSDocComment = 1 << 1 -3 > -1->Emitted(5, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(5, 82) Source(6, 35) + SourceIndex(0) -3 >Emitted(5, 83) Source(6, 35) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 >, - > /* @internal */ - > -2 > Unterminated = 1 << 2 -3 > -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 64) Source(8, 26) + SourceIndex(0) -3 >Emitted(6, 65) Source(8, 26) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, - > /* @internal */ - > -2 > ExtendedUnicodeEscape = 1 << 3 -3 > -1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(7, 82) Source(10, 35) + SourceIndex(0) -3 >Emitted(7, 83) Source(10, 35) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, - > -2 > Scientific = 1 << 4 -3 > -1 >Emitted(8, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(8, 61) Source(11, 24) + SourceIndex(0) -3 >Emitted(8, 62) Source(11, 24) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^-> -1 >, - > -2 > Octal = 1 << 5 -3 > -1 >Emitted(9, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(9, 51) Source(12, 19) + SourceIndex(0) -3 >Emitted(9, 52) Source(12, 19) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^-> -1->, - > -2 > HexSpecifier = 1 << 6 -3 > -1->Emitted(10, 5) Source(13, 5) + SourceIndex(0) -2 >Emitted(10, 65) Source(13, 26) + SourceIndex(0) -3 >Emitted(10, 66) Source(13, 26) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, - > -2 > BinarySpecifier = 1 << 7 -3 > -1->Emitted(11, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(11, 72) Source(14, 29) + SourceIndex(0) -3 >Emitted(11, 73) Source(14, 29) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1 >, - > -2 > OctalSpecifier = 1 << 8 -3 > -1 >Emitted(12, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(12, 70) Source(15, 28) + SourceIndex(0) -3 >Emitted(12, 71) Source(15, 28) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^-> -1->, - > /* @internal */ - > -2 > ContainsSeparator = 1 << 9 -3 > -1->Emitted(13, 5) Source(17, 5) + SourceIndex(0) -2 >Emitted(13, 76) Source(17, 31) + SourceIndex(0) -3 >Emitted(13, 77) Source(17, 31) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, - > /* @internal */ - > -2 > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier -3 > -1->Emitted(14, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(14, 86) Source(19, 62) + SourceIndex(0) -3 >Emitted(14, 87) Source(19, 62) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, - > /* @internal */ - > -2 > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator -3 > -1 >Emitted(15, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(15, 81) Source(21, 105) + SourceIndex(0) -3 >Emitted(15, 82) Source(21, 105) + SourceIndex(0) ---- ->>>})(TokenFlags || (TokenFlags = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^ -7 > ^^^^^^^^ -1 > - > -2 >} -3 > -4 > TokenFlags -5 > -6 > TokenFlags -7 > { - > None = 0, - > /* @internal */ - > PrecedingLineBreak = 1 << 0, - > /* @internal */ - > PrecedingJSDocComment = 1 << 1, - > /* @internal */ - > Unterminated = 1 << 2, - > /* @internal */ - > ExtendedUnicodeEscape = 1 << 3, - > Scientific = 1 << 4, - > Octal = 1 << 5, - > HexSpecifier = 1 << 6, - > BinarySpecifier = 1 << 7, - > OctalSpecifier = 1 << 8, - > /* @internal */ - > ContainsSeparator = 1 << 9, - > /* @internal */ - > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, - > /* @internal */ - > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator - > } -1 >Emitted(16, 1) Source(22, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(22, 2) + SourceIndex(0) -3 >Emitted(16, 4) Source(1, 6) + SourceIndex(0) -4 >Emitted(16, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(16, 19) Source(1, 6) + SourceIndex(0) -6 >Emitted(16, 29) Source(1, 16) + SourceIndex(0) -7 >Emitted(16, 37) Source(22, 2) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 > - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(17, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(17, 5) Source(27, 7) + SourceIndex(0) -3 >Emitted(17, 6) Source(27, 8) + SourceIndex(0) -4 >Emitted(17, 9) Source(27, 11) + SourceIndex(0) -5 >Emitted(17, 23) Source(27, 25) + SourceIndex(0) -6 >Emitted(17, 24) Source(27, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(18, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(18, 8) Source(33, 8) + SourceIndex(0) -3 >Emitted(18, 9) Source(33, 9) + SourceIndex(0) -4 >Emitted(18, 12) Source(33, 12) + SourceIndex(0) -5 >Emitted(18, 13) Source(33, 13) + SourceIndex(0) -6 >Emitted(18, 14) Source(33, 14) + SourceIndex(0) -7 >Emitted(18, 15) Source(33, 15) + SourceIndex(0) -8 >Emitted(18, 16) Source(33, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(19, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(19, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(19, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(19, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(19, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(19, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(19, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(19, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(19, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(20, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(20, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(20, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(21, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(21, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(21, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(21, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(22, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(22, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(23, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(23, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(23, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(23, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(24, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(24, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(24, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(25, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(25, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(25, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(26, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(26, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(26, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(26, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(26, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(26, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(26, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(26, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(27, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(27, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(28, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(28, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(28, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(28, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(29, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(29, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(29, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(29, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(29, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(29, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(29, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(30, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(31, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(32, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(33, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(33, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(33, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(34, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(34, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(34, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(34, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(34, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(34, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(34, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(34, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(35, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(36, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(37, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(37, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(38, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(38, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(38, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(38, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(38, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(38, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(38, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(38, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(39, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(39, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(39, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(39, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(39, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(39, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1131, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 1131, - "kind": "text" - } - ] - }, - { - "pos": 1131, - "end": 1416, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 1131, - "end": 1416, - "kind": "text" - } - ] - }, - { - "pos": 1416, - "end": 1452, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 320, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 320, - "kind": "text" - } - ] - }, - { - "pos": 320, - "end": 420, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 320, - "end": 420, - "kind": "text" - } - ] - }, - { - "pos": 420, - "end": 439, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-1131):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-1131) -var TokenFlags; -(function (TokenFlags) { - TokenFlags[TokenFlags["None"] = 0] = "None"; - TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; - TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; - TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; - TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; - TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; - TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; - TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; - TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; - TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; - TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; - TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; - TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; -})(TokenFlags || (TokenFlags = {})); -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (1131-1416):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1131-1416) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1416-1452) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-320):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-320) -declare enum TokenFlags { - None = 0, - Scientific = 16, - Octal = 32, - HexSpecifier = 64, - BinarySpecifier = 128, - OctalSpecifier = 256, -} -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (320-420):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (320-420) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (420-439) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, -"stripInternal": true - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index edd66e3d3f6..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,5586 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.js": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/2/second-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { - constructor(); - prop: string; - method(): void; - c: number; -} -declare namespace normalN { - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(17, 5) Source(17, 23) + SourceIndex(2) -2 >Emitted(17, 6) Source(17, 24) + SourceIndex(2) -3 >Emitted(17, 8) Source(18, 30) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 36) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(20, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(20, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(20, 12) Source(21, 33) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(21, 6) Source(21, 37) + SourceIndex(2) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(22, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(22, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(22, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(22, 26) Source(22, 43) + SourceIndex(2) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(23, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(23, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(23, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(23, 29) Source(23, 50) + SourceIndex(2) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(24, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(24, 16) Source(23, 66) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(25, 10) Source(23, 69) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(26, 6) Source(23, 71) + SourceIndex(2) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(27, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(27, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(27, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(27, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(27, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(27, 35) Source(24, 56) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(28, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 80) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(29, 10) Source(24, 83) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(30, 6) Source(24, 85) + SourceIndex(2) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(31, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(31, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(31, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(31, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(31, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(31, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(31, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(31, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(31, 48) Source(25, 62) + SourceIndex(2) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(32, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(32, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(32, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(32, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(32, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(32, 35) Source(26, 56) + SourceIndex(2) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(33, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(33, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(33, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(33, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(33, 30) Source(27, 51) + SourceIndex(2) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(34, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(34, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(34, 22) Source(28, 43) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(35, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(35, 14) Source(28, 47) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(36, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 50) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(37, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 53) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(38, 6) Source(28, 55) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >class -3 > internalC -1->Emitted(40, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(40, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(40, 24) Source(30, 30) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(41, 2) Source(30, 33) + SourceIndex(2) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(42, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(42, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(42, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(42, 38) Source(31, 40) + SourceIndex(2) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(43, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(43, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(43, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(43, 37) Source(32, 43) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(44, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(44, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(44, 20) Source(32, 67) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(45, 6) Source(32, 70) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(46, 2) Source(32, 72) + SourceIndex(2) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(47, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(47, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(47, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(47, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(47, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(47, 43) Source(33, 49) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(48, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(48, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(48, 20) Source(33, 73) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(49, 6) Source(33, 76) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(50, 2) Source(33, 78) + SourceIndex(2) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(51, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(51, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(51, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(51, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(51, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(51, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(51, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(51, 53) Source(34, 67) + SourceIndex(2) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(52, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(52, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(52, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(52, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(52, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(52, 39) Source(35, 45) + SourceIndex(2) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(53, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(53, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(53, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(53, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(53, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(53, 34) Source(36, 40) + SourceIndex(2) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(54, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(54, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(54, 26) Source(37, 32) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(55, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(55, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(55, 10) Source(37, 36) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(56, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 39) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(57, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 42) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(58, 2) Source(37, 44) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3162, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 308, - "kind": "internal" - }, - { - "pos": 310, - "end": 342, - "kind": "text" - }, - { - "pos": 342, - "end": 734, - "kind": "internal" - }, - { - "pos": 736, - "end": 739, - "kind": "text" - }, - { - "pos": 739, - "end": 1152, - "kind": "internal" - }, - { - "pos": 1154, - "end": 1202, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (110-3162) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-308) - constructor(); - prop: string; - method(): void; - c: number; ----------------------------------------------------------------------- -text: (310-342) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (342-734) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (736-739) -} - ----------------------------------------------------------------------- -internal: (739-1152) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1154-1202) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ class internalC {} -/*@internal*/ function internalfoo() {} -/*@internal*/ namespace internalNamespace { export class someClass {} } -/*@internal*/ namespace internalOther.something { export class someClass {} } -/*@internal*/ import internalImport = internalNamespace.someClass; -/*@internal*/ type internalType = internalC; -/*@internal*/ const internalConst = 10; -/*@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../first", "prepend": true } - ] -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare const s = "Hello, world"; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3162, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3162, - "kind": "text" - } - ] - }, - { - "pos": 3162, - "end": 3198, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3162):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3162) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3162-3198) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-276) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, -"stripInternal": true - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index 9cce635b198..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,5788 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: number; -} -declare namespace normalN { - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;kBACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) ---- ->>> /*@internal*/ c: number; -1->^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(17, 19) Source(17, 23) + SourceIndex(2) -2 >Emitted(17, 20) Source(17, 24) + SourceIndex(2) -3 >Emitted(17, 22) Source(18, 30) + SourceIndex(2) -4 >Emitted(17, 28) Source(18, 36) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(20, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(20, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(20, 12) Source(21, 33) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(21, 6) Source(21, 37) + SourceIndex(2) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(22, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(22, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(22, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(22, 26) Source(22, 43) + SourceIndex(2) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(23, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(23, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(23, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(23, 29) Source(23, 50) + SourceIndex(2) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(24, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(24, 16) Source(23, 66) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(25, 10) Source(23, 69) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(26, 6) Source(23, 71) + SourceIndex(2) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(27, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(27, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(27, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(27, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(27, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(27, 35) Source(24, 56) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(28, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 80) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(29, 10) Source(24, 83) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(30, 6) Source(24, 85) + SourceIndex(2) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(31, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(31, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(31, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(31, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(31, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(31, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(31, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(31, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(31, 48) Source(25, 62) + SourceIndex(2) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(32, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(32, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(32, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(32, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(32, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(32, 35) Source(26, 56) + SourceIndex(2) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(33, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(33, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(33, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(33, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(33, 30) Source(27, 51) + SourceIndex(2) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(34, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(34, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(34, 22) Source(28, 43) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(35, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(35, 14) Source(28, 47) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(36, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 50) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(37, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 53) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(38, 6) Source(28, 55) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >class -3 > internalC -1->Emitted(40, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(40, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(40, 24) Source(30, 30) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(41, 2) Source(30, 33) + SourceIndex(2) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(42, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(42, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(42, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(42, 38) Source(31, 40) + SourceIndex(2) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(43, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(43, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(43, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(43, 37) Source(32, 43) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(44, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(44, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(44, 20) Source(32, 67) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(45, 6) Source(32, 70) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(46, 2) Source(32, 72) + SourceIndex(2) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(47, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(47, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(47, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(47, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(47, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(47, 43) Source(33, 49) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(48, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(48, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(48, 20) Source(33, 73) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(49, 6) Source(33, 76) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(50, 2) Source(33, 78) + SourceIndex(2) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(51, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(51, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(51, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(51, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(51, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(51, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(51, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(51, 53) Source(34, 67) + SourceIndex(2) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(52, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(52, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(52, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(52, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(52, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(52, 39) Source(35, 45) + SourceIndex(2) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(53, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(53, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(53, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(53, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(53, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(53, 34) Source(36, 40) + SourceIndex(2) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(54, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(54, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(54, 26) Source(37, 32) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(55, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(55, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(55, 10) Source(37, 36) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(56, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 39) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(57, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 42) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(58, 2) Source(37, 44) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(15, 18) Source(14, 18) + SourceIndex(3) -3 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(17, 18) Source(16, 18) + SourceIndex(3) -3 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 43) Source(16, 25) + SourceIndex(3) -5 >Emitted(17, 46) Source(16, 19) + SourceIndex(3) -6 >Emitted(17, 60) Source(16, 30) + SourceIndex(3) -7 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(19, 22) Source(17, 18) + SourceIndex(3) -3 >Emitted(19, 28) Source(17, 19) + SourceIndex(3) -4 >Emitted(19, 42) Source(17, 29) + SourceIndex(3) -5 >Emitted(19, 49) Source(17, 36) + SourceIndex(3) -6 >Emitted(19, 51) Source(17, 38) + SourceIndex(3) -7 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) -8 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) -9 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(20, 22) Source(18, 18) + SourceIndex(3) -3 >Emitted(20, 28) Source(18, 19) + SourceIndex(3) -4 >Emitted(20, 38) Source(18, 25) + SourceIndex(3) -5 >Emitted(20, 41) Source(18, 36) + SourceIndex(3) -6 >Emitted(20, 45) Source(18, 40) + SourceIndex(3) -7 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(28, 18) Source(21, 18) + SourceIndex(3) -3 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(34, 18) Source(22, 18) + SourceIndex(3) -3 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) -4 >Emitted(34, 28) Source(22, 35) + SourceIndex(3) -5 >Emitted(34, 31) Source(22, 38) + SourceIndex(3) -6 >Emitted(34, 36) Source(22, 42) + SourceIndex(3) -7 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(36, 18) Source(23, 18) + SourceIndex(3) -3 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 36) + SourceIndex(3) -5 >Emitted(36, 36) Source(23, 49) + SourceIndex(3) -6 >Emitted(36, 37) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> /*@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(45, 18) Source(24, 18) + SourceIndex(3) -3 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) -4 >Emitted(45, 23) Source(24, 36) + SourceIndex(3) -5 >Emitted(45, 32) Source(24, 45) + SourceIndex(3) -6 >Emitted(45, 33) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(57, 18) Source(25, 18) + SourceIndex(3) -3 >Emitted(57, 19) Source(25, 33) + SourceIndex(3) -4 >Emitted(57, 37) Source(25, 43) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 46) + SourceIndex(3) -6 >Emitted(57, 53) Source(25, 59) + SourceIndex(3) -7 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) -8 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) -9 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(58, 18) Source(27, 18) + SourceIndex(3) -3 >Emitted(58, 19) Source(27, 32) + SourceIndex(3) -4 >Emitted(58, 40) Source(27, 45) + SourceIndex(3) -5 >Emitted(58, 43) Source(27, 48) + SourceIndex(3) -6 >Emitted(58, 45) Source(27, 50) + SourceIndex(3) -7 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(59, 18) Source(28, 18) + SourceIndex(3) -3 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) -4 >Emitted(59, 23) Source(28, 31) + SourceIndex(3) -5 >Emitted(59, 35) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(66, 14) Source(30, 14) + SourceIndex(3) -3 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(71, 14) Source(31, 14) + SourceIndex(3) -3 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) -4 >Emitted(71, 24) Source(31, 24) + SourceIndex(3) -5 >Emitted(71, 35) Source(31, 35) + SourceIndex(3) -6 >Emitted(71, 40) Source(31, 39) + SourceIndex(3) -7 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(72, 14) Source(32, 14) + SourceIndex(3) -3 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) -4 >Emitted(72, 19) Source(32, 25) + SourceIndex(3) -5 >Emitted(72, 36) Source(32, 42) + SourceIndex(3) -6 >Emitted(72, 37) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(81, 14) Source(33, 14) + SourceIndex(3) -3 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 25) + SourceIndex(3) -5 >Emitted(81, 32) Source(33, 38) + SourceIndex(3) -6 >Emitted(81, 33) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(93, 14) Source(34, 14) + SourceIndex(3) -3 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) -4 >Emitted(93, 19) Source(34, 22) + SourceIndex(3) -5 >Emitted(93, 33) Source(34, 36) + SourceIndex(3) -6 >Emitted(93, 36) Source(34, 39) + SourceIndex(3) -7 >Emitted(93, 53) Source(34, 56) + SourceIndex(3) -8 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) -9 >Emitted(93, 63) Source(34, 66) + SourceIndex(3) -10>Emitted(93, 64) Source(34, 67) + SourceIndex(3) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(94, 14) Source(36, 14) + SourceIndex(3) -3 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) -4 >Emitted(94, 19) Source(36, 21) + SourceIndex(3) -5 >Emitted(94, 32) Source(36, 34) + SourceIndex(3) -6 >Emitted(94, 35) Source(36, 37) + SourceIndex(3) -7 >Emitted(94, 37) Source(36, 39) + SourceIndex(3) -8 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(95, 14) Source(37, 14) + SourceIndex(3) -3 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) -4 >Emitted(95, 19) Source(37, 20) + SourceIndex(3) -5 >Emitted(95, 31) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3526, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 322, - "kind": "internal" - }, - { - "pos": 324, - "end": 356, - "kind": "text" - }, - { - "pos": 356, - "end": 748, - "kind": "internal" - }, - { - "pos": 750, - "end": 753, - "kind": "text" - }, - { - "pos": 753, - "end": 1166, - "kind": "internal" - }, - { - "pos": 1168, - "end": 1216, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (110-3526) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-322) - constructor(); - prop: string; - method(): void; - /*@internal*/ c: number; ----------------------------------------------------------------------- -text: (324-356) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (356-748) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (750-753) -} - ----------------------------------------------------------------------- -internal: (753-1166) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1168-1216) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] -} - - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ class internalC {} -/*@internal*/ function internalfoo() {} -/*@internal*/ namespace internalNamespace { export class someClass {} } -/*@internal*/ namespace internalOther.something { export class someClass {} } -/*@internal*/ import internalImport = internalNamespace.someClass; -/*@internal*/ type internalType = internalC; -/*@internal*/ const internalConst = 10; -/*@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../first", "prepend": true } - ] -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare const s = "Hello, world"; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(15, 18) Source(14, 18) + SourceIndex(3) -3 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(17, 18) Source(16, 18) + SourceIndex(3) -3 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 43) Source(16, 25) + SourceIndex(3) -5 >Emitted(17, 46) Source(16, 19) + SourceIndex(3) -6 >Emitted(17, 60) Source(16, 30) + SourceIndex(3) -7 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(19, 22) Source(17, 18) + SourceIndex(3) -3 >Emitted(19, 28) Source(17, 19) + SourceIndex(3) -4 >Emitted(19, 42) Source(17, 29) + SourceIndex(3) -5 >Emitted(19, 49) Source(17, 36) + SourceIndex(3) -6 >Emitted(19, 51) Source(17, 38) + SourceIndex(3) -7 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) -8 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) -9 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(20, 22) Source(18, 18) + SourceIndex(3) -3 >Emitted(20, 28) Source(18, 19) + SourceIndex(3) -4 >Emitted(20, 38) Source(18, 25) + SourceIndex(3) -5 >Emitted(20, 41) Source(18, 36) + SourceIndex(3) -6 >Emitted(20, 45) Source(18, 40) + SourceIndex(3) -7 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(28, 18) Source(21, 18) + SourceIndex(3) -3 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(34, 18) Source(22, 18) + SourceIndex(3) -3 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) -4 >Emitted(34, 28) Source(22, 35) + SourceIndex(3) -5 >Emitted(34, 31) Source(22, 38) + SourceIndex(3) -6 >Emitted(34, 36) Source(22, 42) + SourceIndex(3) -7 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(36, 18) Source(23, 18) + SourceIndex(3) -3 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 36) + SourceIndex(3) -5 >Emitted(36, 36) Source(23, 49) + SourceIndex(3) -6 >Emitted(36, 37) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> /*@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(45, 18) Source(24, 18) + SourceIndex(3) -3 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) -4 >Emitted(45, 23) Source(24, 36) + SourceIndex(3) -5 >Emitted(45, 32) Source(24, 45) + SourceIndex(3) -6 >Emitted(45, 33) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(57, 18) Source(25, 18) + SourceIndex(3) -3 >Emitted(57, 19) Source(25, 33) + SourceIndex(3) -4 >Emitted(57, 37) Source(25, 43) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 46) + SourceIndex(3) -6 >Emitted(57, 53) Source(25, 59) + SourceIndex(3) -7 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) -8 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) -9 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(58, 18) Source(27, 18) + SourceIndex(3) -3 >Emitted(58, 19) Source(27, 32) + SourceIndex(3) -4 >Emitted(58, 40) Source(27, 45) + SourceIndex(3) -5 >Emitted(58, 43) Source(27, 48) + SourceIndex(3) -6 >Emitted(58, 45) Source(27, 50) + SourceIndex(3) -7 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(59, 18) Source(28, 18) + SourceIndex(3) -3 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) -4 >Emitted(59, 23) Source(28, 31) + SourceIndex(3) -5 >Emitted(59, 35) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(66, 14) Source(30, 14) + SourceIndex(3) -3 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(71, 14) Source(31, 14) + SourceIndex(3) -3 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) -4 >Emitted(71, 24) Source(31, 24) + SourceIndex(3) -5 >Emitted(71, 35) Source(31, 35) + SourceIndex(3) -6 >Emitted(71, 40) Source(31, 39) + SourceIndex(3) -7 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(72, 14) Source(32, 14) + SourceIndex(3) -3 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) -4 >Emitted(72, 19) Source(32, 25) + SourceIndex(3) -5 >Emitted(72, 36) Source(32, 42) + SourceIndex(3) -6 >Emitted(72, 37) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(81, 14) Source(33, 14) + SourceIndex(3) -3 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 25) + SourceIndex(3) -5 >Emitted(81, 32) Source(33, 38) + SourceIndex(3) -6 >Emitted(81, 33) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(93, 14) Source(34, 14) + SourceIndex(3) -3 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) -4 >Emitted(93, 19) Source(34, 22) + SourceIndex(3) -5 >Emitted(93, 33) Source(34, 36) + SourceIndex(3) -6 >Emitted(93, 36) Source(34, 39) + SourceIndex(3) -7 >Emitted(93, 53) Source(34, 56) + SourceIndex(3) -8 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) -9 >Emitted(93, 63) Source(34, 66) + SourceIndex(3) -10>Emitted(93, 64) Source(34, 67) + SourceIndex(3) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(94, 14) Source(36, 14) + SourceIndex(3) -3 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) -4 >Emitted(94, 19) Source(36, 21) + SourceIndex(3) -5 >Emitted(94, 32) Source(36, 34) + SourceIndex(3) -6 >Emitted(94, 35) Source(36, 37) + SourceIndex(3) -7 >Emitted(94, 37) Source(36, 39) + SourceIndex(3) -8 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(95, 14) Source(37, 14) + SourceIndex(3) -3 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) -4 >Emitted(95, 19) Source(37, 20) + SourceIndex(3) -5 >Emitted(95, 31) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3526, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3526, - "kind": "text" - } - ] - }, - { - "pos": 3526, - "end": 3562, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3526):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3526) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3526-3562) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-276) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, -"stripInternal": true - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled.js deleted file mode 100644 index 836399723c6..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal-with-comments-emit-enabled.js +++ /dev/null @@ -1,5497 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: number; -} -declare namespace normalN { - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;kBACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 15) Source(13, 7) + SourceIndex(0) -3 >Emitted(5, 22) Source(13, 14) + SourceIndex(0) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(7, 5) Source(15, 19) + SourceIndex(0) -2 >Emitted(7, 9) Source(15, 23) + SourceIndex(0) -3 >Emitted(7, 11) Source(15, 25) + SourceIndex(0) -4 >Emitted(7, 17) Source(15, 31) + SourceIndex(0) -5 >Emitted(7, 18) Source(15, 32) + SourceIndex(0) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(8, 5) Source(16, 19) + SourceIndex(0) -2 >Emitted(8, 11) Source(16, 25) + SourceIndex(0) ---- ->>> /*@internal*/ c: number; -1->^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(9, 19) Source(17, 23) + SourceIndex(0) -2 >Emitted(9, 20) Source(17, 24) + SourceIndex(0) -3 >Emitted(9, 22) Source(18, 30) + SourceIndex(0) -4 >Emitted(9, 28) Source(18, 36) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(10, 2) Source(19, 2) + SourceIndex(0) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(11, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(11, 19) Source(20, 11) + SourceIndex(0) -3 >Emitted(11, 26) Source(20, 18) + SourceIndex(0) -4 >Emitted(11, 27) Source(20, 19) + SourceIndex(0) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(12, 5) Source(21, 19) + SourceIndex(0) -2 >Emitted(12, 11) Source(21, 32) + SourceIndex(0) -3 >Emitted(12, 12) Source(21, 33) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(13, 6) Source(21, 37) + SourceIndex(0) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(14, 5) Source(22, 19) + SourceIndex(0) -2 >Emitted(14, 14) Source(22, 35) + SourceIndex(0) -3 >Emitted(14, 17) Source(22, 38) + SourceIndex(0) -4 >Emitted(14, 26) Source(22, 43) + SourceIndex(0) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(15, 5) Source(23, 19) + SourceIndex(0) -2 >Emitted(15, 15) Source(23, 36) + SourceIndex(0) -3 >Emitted(15, 28) Source(23, 49) + SourceIndex(0) -4 >Emitted(15, 29) Source(23, 50) + SourceIndex(0) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(16, 9) Source(23, 52) + SourceIndex(0) -2 >Emitted(16, 15) Source(23, 65) + SourceIndex(0) -3 >Emitted(16, 16) Source(23, 66) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(17, 10) Source(23, 69) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(18, 6) Source(23, 71) + SourceIndex(0) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(19, 5) Source(24, 19) + SourceIndex(0) -2 >Emitted(19, 15) Source(24, 36) + SourceIndex(0) -3 >Emitted(19, 24) Source(24, 45) + SourceIndex(0) -4 >Emitted(19, 25) Source(24, 46) + SourceIndex(0) -5 >Emitted(19, 34) Source(24, 55) + SourceIndex(0) -6 >Emitted(19, 35) Source(24, 56) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(20, 9) Source(24, 58) + SourceIndex(0) -2 >Emitted(20, 15) Source(24, 71) + SourceIndex(0) -3 >Emitted(20, 24) Source(24, 80) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(21, 10) Source(24, 83) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(22, 6) Source(24, 85) + SourceIndex(0) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(23, 5) Source(25, 19) + SourceIndex(0) -2 >Emitted(23, 11) Source(25, 25) + SourceIndex(0) -3 >Emitted(23, 19) Source(25, 33) + SourceIndex(0) -4 >Emitted(23, 29) Source(25, 43) + SourceIndex(0) -5 >Emitted(23, 32) Source(25, 46) + SourceIndex(0) -6 >Emitted(23, 45) Source(25, 59) + SourceIndex(0) -7 >Emitted(23, 46) Source(25, 60) + SourceIndex(0) -8 >Emitted(23, 47) Source(25, 61) + SourceIndex(0) -9 >Emitted(23, 48) Source(25, 62) + SourceIndex(0) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(24, 5) Source(26, 19) + SourceIndex(0) -2 >Emitted(24, 10) Source(26, 31) + SourceIndex(0) -3 >Emitted(24, 22) Source(26, 43) + SourceIndex(0) -4 >Emitted(24, 25) Source(26, 46) + SourceIndex(0) -5 >Emitted(24, 34) Source(26, 55) + SourceIndex(0) -6 >Emitted(24, 35) Source(26, 56) + SourceIndex(0) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(25, 5) Source(27, 26) + SourceIndex(0) -2 >Emitted(25, 11) Source(27, 32) + SourceIndex(0) -3 >Emitted(25, 24) Source(27, 45) + SourceIndex(0) -4 >Emitted(25, 29) Source(27, 50) + SourceIndex(0) -5 >Emitted(25, 30) Source(27, 51) + SourceIndex(0) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(26, 5) Source(28, 19) + SourceIndex(0) -2 >Emitted(26, 10) Source(28, 31) + SourceIndex(0) -3 >Emitted(26, 22) Source(28, 43) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(27, 9) Source(28, 46) + SourceIndex(0) -2 >Emitted(27, 10) Source(28, 47) + SourceIndex(0) -3 >Emitted(27, 14) Source(28, 47) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(28, 9) Source(28, 49) + SourceIndex(0) -2 >Emitted(28, 10) Source(28, 50) + SourceIndex(0) -3 >Emitted(28, 14) Source(28, 50) + SourceIndex(0) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(29, 9) Source(28, 52) + SourceIndex(0) -2 >Emitted(29, 10) Source(28, 53) + SourceIndex(0) -3 >Emitted(29, 14) Source(28, 53) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(30, 6) Source(28, 55) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(31, 2) Source(29, 2) + SourceIndex(0) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >class -3 > internalC -1->Emitted(32, 1) Source(30, 15) + SourceIndex(0) -2 >Emitted(32, 15) Source(30, 21) + SourceIndex(0) -3 >Emitted(32, 24) Source(30, 30) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(33, 2) Source(30, 33) + SourceIndex(0) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(34, 1) Source(31, 15) + SourceIndex(0) -2 >Emitted(34, 18) Source(31, 24) + SourceIndex(0) -3 >Emitted(34, 29) Source(31, 35) + SourceIndex(0) -4 >Emitted(34, 38) Source(31, 40) + SourceIndex(0) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(35, 1) Source(32, 15) + SourceIndex(0) -2 >Emitted(35, 19) Source(32, 25) + SourceIndex(0) -3 >Emitted(35, 36) Source(32, 42) + SourceIndex(0) -4 >Emitted(35, 37) Source(32, 43) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(36, 5) Source(32, 45) + SourceIndex(0) -2 >Emitted(36, 11) Source(32, 58) + SourceIndex(0) -3 >Emitted(36, 20) Source(32, 67) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(37, 6) Source(32, 70) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(38, 2) Source(32, 72) + SourceIndex(0) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(39, 1) Source(33, 15) + SourceIndex(0) -2 >Emitted(39, 19) Source(33, 25) + SourceIndex(0) -3 >Emitted(39, 32) Source(33, 38) + SourceIndex(0) -4 >Emitted(39, 33) Source(33, 39) + SourceIndex(0) -5 >Emitted(39, 42) Source(33, 48) + SourceIndex(0) -6 >Emitted(39, 43) Source(33, 49) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(40, 5) Source(33, 51) + SourceIndex(0) -2 >Emitted(40, 11) Source(33, 64) + SourceIndex(0) -3 >Emitted(40, 20) Source(33, 73) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(41, 6) Source(33, 76) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(42, 2) Source(33, 78) + SourceIndex(0) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(43, 1) Source(34, 15) + SourceIndex(0) -2 >Emitted(43, 8) Source(34, 22) + SourceIndex(0) -3 >Emitted(43, 22) Source(34, 36) + SourceIndex(0) -4 >Emitted(43, 25) Source(34, 39) + SourceIndex(0) -5 >Emitted(43, 42) Source(34, 56) + SourceIndex(0) -6 >Emitted(43, 43) Source(34, 57) + SourceIndex(0) -7 >Emitted(43, 52) Source(34, 66) + SourceIndex(0) -8 >Emitted(43, 53) Source(34, 67) + SourceIndex(0) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(44, 1) Source(35, 15) + SourceIndex(0) -2 >Emitted(44, 14) Source(35, 20) + SourceIndex(0) -3 >Emitted(44, 26) Source(35, 32) + SourceIndex(0) -4 >Emitted(44, 29) Source(35, 35) + SourceIndex(0) -5 >Emitted(44, 38) Source(35, 44) + SourceIndex(0) -6 >Emitted(44, 39) Source(35, 45) + SourceIndex(0) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(45, 1) Source(36, 15) + SourceIndex(0) -2 >Emitted(45, 9) Source(36, 15) + SourceIndex(0) -3 >Emitted(45, 15) Source(36, 21) + SourceIndex(0) -4 >Emitted(45, 28) Source(36, 34) + SourceIndex(0) -5 >Emitted(45, 33) Source(36, 39) + SourceIndex(0) -6 >Emitted(45, 34) Source(36, 40) + SourceIndex(0) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(46, 1) Source(37, 15) + SourceIndex(0) -2 >Emitted(46, 14) Source(37, 20) + SourceIndex(0) -3 >Emitted(46, 26) Source(37, 32) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(47, 5) Source(37, 35) + SourceIndex(0) -2 >Emitted(47, 6) Source(37, 36) + SourceIndex(0) -3 >Emitted(47, 10) Source(37, 36) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(48, 5) Source(37, 38) + SourceIndex(0) -2 >Emitted(48, 6) Source(37, 39) + SourceIndex(0) -3 >Emitted(48, 10) Source(37, 39) + SourceIndex(0) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(49, 5) Source(37, 41) + SourceIndex(0) -2 >Emitted(49, 6) Source(37, 42) + SourceIndex(0) -3 >Emitted(49, 10) Source(37, 42) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(50, 2) Source(37, 44) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(51, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(51, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(51, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(52, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(52, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(53, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(9, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(9, 18) Source(14, 18) + SourceIndex(0) -3 >Emitted(9, 19) Source(14, 19) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(10, 5) Source(14, 35) + SourceIndex(0) -2 >Emitted(10, 6) Source(14, 36) + SourceIndex(0) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(11, 5) Source(16, 5) + SourceIndex(0) -2 >Emitted(11, 18) Source(16, 18) + SourceIndex(0) -3 >Emitted(11, 19) Source(16, 19) + SourceIndex(0) -4 >Emitted(11, 43) Source(16, 25) + SourceIndex(0) -5 >Emitted(11, 46) Source(16, 19) + SourceIndex(0) -6 >Emitted(11, 60) Source(16, 30) + SourceIndex(0) -7 >Emitted(11, 61) Source(16, 31) + SourceIndex(0) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(12, 5) Source(17, 19) + SourceIndex(0) -2 >Emitted(12, 27) Source(17, 23) + SourceIndex(0) -3 >Emitted(12, 49) Source(17, 24) + SourceIndex(0) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(13, 9) Source(17, 5) + SourceIndex(0) -2 >Emitted(13, 22) Source(17, 18) + SourceIndex(0) -3 >Emitted(13, 28) Source(17, 19) + SourceIndex(0) -4 >Emitted(13, 42) Source(17, 29) + SourceIndex(0) -5 >Emitted(13, 49) Source(17, 36) + SourceIndex(0) -6 >Emitted(13, 51) Source(17, 38) + SourceIndex(0) -7 >Emitted(13, 52) Source(17, 39) + SourceIndex(0) -8 >Emitted(13, 53) Source(17, 40) + SourceIndex(0) -9 >Emitted(13, 54) Source(17, 41) + SourceIndex(0) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(14, 9) Source(18, 5) + SourceIndex(0) -2 >Emitted(14, 22) Source(18, 18) + SourceIndex(0) -3 >Emitted(14, 28) Source(18, 19) + SourceIndex(0) -4 >Emitted(14, 38) Source(18, 25) + SourceIndex(0) -5 >Emitted(14, 41) Source(18, 36) + SourceIndex(0) -6 >Emitted(14, 45) Source(18, 40) + SourceIndex(0) -7 >Emitted(14, 46) Source(18, 41) + SourceIndex(0) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(17, 8) Source(17, 41) + SourceIndex(0) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(18, 5) Source(19, 1) + SourceIndex(0) -2 >Emitted(18, 19) Source(19, 2) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) -3 >Emitted(19, 2) Source(13, 1) + SourceIndex(0) -4 >Emitted(19, 6) Source(19, 2) + SourceIndex(0) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(20, 5) Source(20, 11) + SourceIndex(0) -3 >Emitted(20, 12) Source(20, 18) + SourceIndex(0) -4 >Emitted(20, 13) Source(29, 2) + SourceIndex(0) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(21, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(21, 12) Source(20, 11) + SourceIndex(0) -3 >Emitted(21, 19) Source(20, 18) + SourceIndex(0) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(22, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(22, 18) Source(21, 18) + SourceIndex(0) -3 >Emitted(22, 19) Source(21, 19) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(23, 9) Source(21, 19) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(24, 9) Source(21, 36) + SourceIndex(0) -2 >Emitted(24, 10) Source(21, 37) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(25, 9) Source(21, 36) + SourceIndex(0) -2 >Emitted(25, 17) Source(21, 37) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(26, 5) Source(21, 36) + SourceIndex(0) -2 >Emitted(26, 6) Source(21, 37) + SourceIndex(0) -3 >Emitted(26, 6) Source(21, 19) + SourceIndex(0) -4 >Emitted(26, 10) Source(21, 37) + SourceIndex(0) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(27, 5) Source(21, 32) + SourceIndex(0) -2 >Emitted(27, 14) Source(21, 33) + SourceIndex(0) -3 >Emitted(27, 18) Source(21, 37) + SourceIndex(0) -4 >Emitted(27, 19) Source(21, 37) + SourceIndex(0) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(28, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(28, 18) Source(22, 18) + SourceIndex(0) -3 >Emitted(28, 19) Source(22, 19) + SourceIndex(0) -4 >Emitted(28, 28) Source(22, 35) + SourceIndex(0) -5 >Emitted(28, 31) Source(22, 38) + SourceIndex(0) -6 >Emitted(28, 36) Source(22, 42) + SourceIndex(0) -7 >Emitted(28, 37) Source(22, 43) + SourceIndex(0) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(29, 5) Source(22, 35) + SourceIndex(0) -2 >Emitted(29, 16) Source(22, 38) + SourceIndex(0) -3 >Emitted(29, 22) Source(22, 43) + SourceIndex(0) -4 >Emitted(29, 23) Source(22, 43) + SourceIndex(0) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(30, 5) Source(23, 5) + SourceIndex(0) -2 >Emitted(30, 18) Source(23, 18) + SourceIndex(0) -3 >Emitted(30, 19) Source(23, 19) + SourceIndex(0) -4 >Emitted(30, 23) Source(23, 36) + SourceIndex(0) -5 >Emitted(30, 36) Source(23, 49) + SourceIndex(0) -6 >Emitted(30, 37) Source(23, 71) + SourceIndex(0) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(31, 5) Source(23, 19) + SourceIndex(0) -2 >Emitted(31, 16) Source(23, 36) + SourceIndex(0) -3 >Emitted(31, 29) Source(23, 49) + SourceIndex(0) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(32, 9) Source(23, 52) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(33, 13) Source(23, 52) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(34, 13) Source(23, 68) + SourceIndex(0) -2 >Emitted(34, 14) Source(23, 69) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(35, 13) Source(23, 68) + SourceIndex(0) -2 >Emitted(35, 21) Source(23, 69) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(36, 9) Source(23, 68) + SourceIndex(0) -2 >Emitted(36, 10) Source(23, 69) + SourceIndex(0) -3 >Emitted(36, 10) Source(23, 52) + SourceIndex(0) -4 >Emitted(36, 14) Source(23, 69) + SourceIndex(0) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(37, 9) Source(23, 65) + SourceIndex(0) -2 >Emitted(37, 24) Source(23, 66) + SourceIndex(0) -3 >Emitted(37, 28) Source(23, 69) + SourceIndex(0) -4 >Emitted(37, 29) Source(23, 69) + SourceIndex(0) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(38, 5) Source(23, 70) + SourceIndex(0) -2 >Emitted(38, 6) Source(23, 71) + SourceIndex(0) -3 >Emitted(38, 8) Source(23, 36) + SourceIndex(0) -4 >Emitted(38, 21) Source(23, 49) + SourceIndex(0) -5 >Emitted(38, 24) Source(23, 36) + SourceIndex(0) -6 >Emitted(38, 45) Source(23, 49) + SourceIndex(0) -7 >Emitted(38, 50) Source(23, 36) + SourceIndex(0) -8 >Emitted(38, 71) Source(23, 49) + SourceIndex(0) -9 >Emitted(38, 79) Source(23, 71) + SourceIndex(0) ---- ->>> /*@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(39, 5) Source(24, 5) + SourceIndex(0) -2 >Emitted(39, 18) Source(24, 18) + SourceIndex(0) -3 >Emitted(39, 19) Source(24, 19) + SourceIndex(0) -4 >Emitted(39, 23) Source(24, 36) + SourceIndex(0) -5 >Emitted(39, 32) Source(24, 45) + SourceIndex(0) -6 >Emitted(39, 33) Source(24, 85) + SourceIndex(0) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(40, 5) Source(24, 19) + SourceIndex(0) -2 >Emitted(40, 16) Source(24, 36) + SourceIndex(0) -3 >Emitted(40, 25) Source(24, 45) + SourceIndex(0) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(41, 9) Source(24, 46) + SourceIndex(0) -2 >Emitted(41, 13) Source(24, 46) + SourceIndex(0) -3 >Emitted(41, 22) Source(24, 55) + SourceIndex(0) -4 >Emitted(41, 23) Source(24, 85) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(42, 9) Source(24, 46) + SourceIndex(0) -2 >Emitted(42, 20) Source(24, 46) + SourceIndex(0) -3 >Emitted(42, 29) Source(24, 55) + SourceIndex(0) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(43, 13) Source(24, 58) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(44, 17) Source(24, 58) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(45, 17) Source(24, 82) + SourceIndex(0) -2 >Emitted(45, 18) Source(24, 83) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(46, 17) Source(24, 82) + SourceIndex(0) -2 >Emitted(46, 33) Source(24, 83) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(47, 13) Source(24, 82) + SourceIndex(0) -2 >Emitted(47, 14) Source(24, 83) + SourceIndex(0) -3 >Emitted(47, 14) Source(24, 58) + SourceIndex(0) -4 >Emitted(47, 18) Source(24, 83) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(48, 13) Source(24, 71) + SourceIndex(0) -2 >Emitted(48, 32) Source(24, 80) + SourceIndex(0) -3 >Emitted(48, 44) Source(24, 83) + SourceIndex(0) -4 >Emitted(48, 45) Source(24, 83) + SourceIndex(0) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(49, 9) Source(24, 84) + SourceIndex(0) -2 >Emitted(49, 10) Source(24, 85) + SourceIndex(0) -3 >Emitted(49, 12) Source(24, 46) + SourceIndex(0) -4 >Emitted(49, 21) Source(24, 55) + SourceIndex(0) -5 >Emitted(49, 24) Source(24, 46) + SourceIndex(0) -6 >Emitted(49, 43) Source(24, 55) + SourceIndex(0) -7 >Emitted(49, 48) Source(24, 46) + SourceIndex(0) -8 >Emitted(49, 67) Source(24, 55) + SourceIndex(0) -9 >Emitted(49, 75) Source(24, 85) + SourceIndex(0) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(50, 5) Source(24, 84) + SourceIndex(0) -2 >Emitted(50, 6) Source(24, 85) + SourceIndex(0) -3 >Emitted(50, 8) Source(24, 36) + SourceIndex(0) -4 >Emitted(50, 17) Source(24, 45) + SourceIndex(0) -5 >Emitted(50, 20) Source(24, 36) + SourceIndex(0) -6 >Emitted(50, 37) Source(24, 45) + SourceIndex(0) -7 >Emitted(50, 42) Source(24, 36) + SourceIndex(0) -8 >Emitted(50, 59) Source(24, 45) + SourceIndex(0) -9 >Emitted(50, 67) Source(24, 85) + SourceIndex(0) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(51, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(51, 18) Source(25, 18) + SourceIndex(0) -3 >Emitted(51, 19) Source(25, 33) + SourceIndex(0) -4 >Emitted(51, 37) Source(25, 43) + SourceIndex(0) -5 >Emitted(51, 40) Source(25, 46) + SourceIndex(0) -6 >Emitted(51, 53) Source(25, 59) + SourceIndex(0) -7 >Emitted(51, 54) Source(25, 60) + SourceIndex(0) -8 >Emitted(51, 55) Source(25, 61) + SourceIndex(0) -9 >Emitted(51, 56) Source(25, 62) + SourceIndex(0) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(52, 5) Source(27, 5) + SourceIndex(0) -2 >Emitted(52, 18) Source(27, 18) + SourceIndex(0) -3 >Emitted(52, 19) Source(27, 32) + SourceIndex(0) -4 >Emitted(52, 40) Source(27, 45) + SourceIndex(0) -5 >Emitted(52, 43) Source(27, 48) + SourceIndex(0) -6 >Emitted(52, 45) Source(27, 50) + SourceIndex(0) -7 >Emitted(52, 46) Source(27, 51) + SourceIndex(0) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(53, 5) Source(28, 5) + SourceIndex(0) -2 >Emitted(53, 18) Source(28, 18) + SourceIndex(0) -3 >Emitted(53, 19) Source(28, 19) + SourceIndex(0) -4 >Emitted(53, 23) Source(28, 31) + SourceIndex(0) -5 >Emitted(53, 35) Source(28, 55) + SourceIndex(0) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(54, 5) Source(28, 19) + SourceIndex(0) -2 >Emitted(54, 16) Source(28, 31) + SourceIndex(0) -3 >Emitted(54, 28) Source(28, 43) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(55, 9) Source(28, 46) + SourceIndex(0) -2 >Emitted(55, 50) Source(28, 47) + SourceIndex(0) -3 >Emitted(55, 51) Source(28, 47) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(56, 9) Source(28, 49) + SourceIndex(0) -2 >Emitted(56, 50) Source(28, 50) + SourceIndex(0) -3 >Emitted(56, 51) Source(28, 50) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(57, 9) Source(28, 52) + SourceIndex(0) -2 >Emitted(57, 50) Source(28, 53) + SourceIndex(0) -3 >Emitted(57, 51) Source(28, 53) + SourceIndex(0) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(58, 5) Source(28, 54) + SourceIndex(0) -2 >Emitted(58, 6) Source(28, 55) + SourceIndex(0) -3 >Emitted(58, 8) Source(28, 31) + SourceIndex(0) -4 >Emitted(58, 20) Source(28, 43) + SourceIndex(0) -5 >Emitted(58, 23) Source(28, 31) + SourceIndex(0) -6 >Emitted(58, 43) Source(28, 43) + SourceIndex(0) -7 >Emitted(58, 48) Source(28, 31) + SourceIndex(0) -8 >Emitted(58, 68) Source(28, 43) + SourceIndex(0) -9 >Emitted(58, 76) Source(28, 55) + SourceIndex(0) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(59, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(59, 2) Source(29, 2) + SourceIndex(0) -3 >Emitted(59, 4) Source(20, 11) + SourceIndex(0) -4 >Emitted(59, 11) Source(20, 18) + SourceIndex(0) -5 >Emitted(59, 16) Source(20, 11) + SourceIndex(0) -6 >Emitted(59, 23) Source(20, 18) + SourceIndex(0) -7 >Emitted(59, 31) Source(29, 2) + SourceIndex(0) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(60, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(60, 14) Source(30, 14) + SourceIndex(0) -3 >Emitted(60, 15) Source(30, 15) + SourceIndex(0) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(61, 5) Source(30, 15) + SourceIndex(0) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(62, 5) Source(30, 32) + SourceIndex(0) -2 >Emitted(62, 6) Source(30, 33) + SourceIndex(0) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(63, 5) Source(30, 32) + SourceIndex(0) -2 >Emitted(63, 21) Source(30, 33) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(64, 1) Source(30, 32) + SourceIndex(0) -2 >Emitted(64, 2) Source(30, 33) + SourceIndex(0) -3 >Emitted(64, 2) Source(30, 15) + SourceIndex(0) -4 >Emitted(64, 6) Source(30, 33) + SourceIndex(0) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(65, 1) Source(31, 1) + SourceIndex(0) -2 >Emitted(65, 14) Source(31, 14) + SourceIndex(0) -3 >Emitted(65, 15) Source(31, 15) + SourceIndex(0) -4 >Emitted(65, 24) Source(31, 24) + SourceIndex(0) -5 >Emitted(65, 35) Source(31, 35) + SourceIndex(0) -6 >Emitted(65, 40) Source(31, 39) + SourceIndex(0) -7 >Emitted(65, 41) Source(31, 40) + SourceIndex(0) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(66, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(66, 14) Source(32, 14) + SourceIndex(0) -3 >Emitted(66, 15) Source(32, 15) + SourceIndex(0) -4 >Emitted(66, 19) Source(32, 25) + SourceIndex(0) -5 >Emitted(66, 36) Source(32, 42) + SourceIndex(0) -6 >Emitted(66, 37) Source(32, 72) + SourceIndex(0) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(67, 1) Source(32, 15) + SourceIndex(0) -2 >Emitted(67, 12) Source(32, 25) + SourceIndex(0) -3 >Emitted(67, 29) Source(32, 42) + SourceIndex(0) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(68, 5) Source(32, 45) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(69, 9) Source(32, 45) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(70, 9) Source(32, 69) + SourceIndex(0) -2 >Emitted(70, 10) Source(32, 70) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(71, 9) Source(32, 69) + SourceIndex(0) -2 >Emitted(71, 25) Source(32, 70) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(72, 5) Source(32, 69) + SourceIndex(0) -2 >Emitted(72, 6) Source(32, 70) + SourceIndex(0) -3 >Emitted(72, 6) Source(32, 45) + SourceIndex(0) -4 >Emitted(72, 10) Source(32, 70) + SourceIndex(0) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(73, 5) Source(32, 58) + SourceIndex(0) -2 >Emitted(73, 32) Source(32, 67) + SourceIndex(0) -3 >Emitted(73, 44) Source(32, 70) + SourceIndex(0) -4 >Emitted(73, 45) Source(32, 70) + SourceIndex(0) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(74, 1) Source(32, 71) + SourceIndex(0) -2 >Emitted(74, 2) Source(32, 72) + SourceIndex(0) -3 >Emitted(74, 4) Source(32, 25) + SourceIndex(0) -4 >Emitted(74, 21) Source(32, 42) + SourceIndex(0) -5 >Emitted(74, 26) Source(32, 25) + SourceIndex(0) -6 >Emitted(74, 43) Source(32, 42) + SourceIndex(0) -7 >Emitted(74, 51) Source(32, 72) + SourceIndex(0) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(75, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(75, 14) Source(33, 14) + SourceIndex(0) -3 >Emitted(75, 15) Source(33, 15) + SourceIndex(0) -4 >Emitted(75, 19) Source(33, 25) + SourceIndex(0) -5 >Emitted(75, 32) Source(33, 38) + SourceIndex(0) -6 >Emitted(75, 33) Source(33, 78) + SourceIndex(0) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(76, 1) Source(33, 15) + SourceIndex(0) -2 >Emitted(76, 12) Source(33, 25) + SourceIndex(0) -3 >Emitted(76, 25) Source(33, 38) + SourceIndex(0) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(77, 5) Source(33, 39) + SourceIndex(0) -2 >Emitted(77, 9) Source(33, 39) + SourceIndex(0) -3 >Emitted(77, 18) Source(33, 48) + SourceIndex(0) -4 >Emitted(77, 19) Source(33, 78) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(78, 5) Source(33, 39) + SourceIndex(0) -2 >Emitted(78, 16) Source(33, 39) + SourceIndex(0) -3 >Emitted(78, 25) Source(33, 48) + SourceIndex(0) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(79, 9) Source(33, 51) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(80, 13) Source(33, 51) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(81, 13) Source(33, 75) + SourceIndex(0) -2 >Emitted(81, 14) Source(33, 76) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(82, 13) Source(33, 75) + SourceIndex(0) -2 >Emitted(82, 29) Source(33, 76) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(83, 9) Source(33, 75) + SourceIndex(0) -2 >Emitted(83, 10) Source(33, 76) + SourceIndex(0) -3 >Emitted(83, 10) Source(33, 51) + SourceIndex(0) -4 >Emitted(83, 14) Source(33, 76) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(84, 9) Source(33, 64) + SourceIndex(0) -2 >Emitted(84, 28) Source(33, 73) + SourceIndex(0) -3 >Emitted(84, 40) Source(33, 76) + SourceIndex(0) -4 >Emitted(84, 41) Source(33, 76) + SourceIndex(0) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(85, 5) Source(33, 77) + SourceIndex(0) -2 >Emitted(85, 6) Source(33, 78) + SourceIndex(0) -3 >Emitted(85, 8) Source(33, 39) + SourceIndex(0) -4 >Emitted(85, 17) Source(33, 48) + SourceIndex(0) -5 >Emitted(85, 20) Source(33, 39) + SourceIndex(0) -6 >Emitted(85, 43) Source(33, 48) + SourceIndex(0) -7 >Emitted(85, 48) Source(33, 39) + SourceIndex(0) -8 >Emitted(85, 71) Source(33, 48) + SourceIndex(0) -9 >Emitted(85, 79) Source(33, 78) + SourceIndex(0) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(86, 1) Source(33, 77) + SourceIndex(0) -2 >Emitted(86, 2) Source(33, 78) + SourceIndex(0) -3 >Emitted(86, 4) Source(33, 25) + SourceIndex(0) -4 >Emitted(86, 17) Source(33, 38) + SourceIndex(0) -5 >Emitted(86, 22) Source(33, 25) + SourceIndex(0) -6 >Emitted(86, 35) Source(33, 38) + SourceIndex(0) -7 >Emitted(86, 43) Source(33, 78) + SourceIndex(0) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(87, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(87, 14) Source(34, 14) + SourceIndex(0) -3 >Emitted(87, 15) Source(34, 15) + SourceIndex(0) -4 >Emitted(87, 19) Source(34, 22) + SourceIndex(0) -5 >Emitted(87, 33) Source(34, 36) + SourceIndex(0) -6 >Emitted(87, 36) Source(34, 39) + SourceIndex(0) -7 >Emitted(87, 53) Source(34, 56) + SourceIndex(0) -8 >Emitted(87, 54) Source(34, 57) + SourceIndex(0) -9 >Emitted(87, 63) Source(34, 66) + SourceIndex(0) -10>Emitted(87, 64) Source(34, 67) + SourceIndex(0) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(88, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(88, 14) Source(36, 14) + SourceIndex(0) -3 >Emitted(88, 15) Source(36, 15) + SourceIndex(0) -4 >Emitted(88, 19) Source(36, 21) + SourceIndex(0) -5 >Emitted(88, 32) Source(36, 34) + SourceIndex(0) -6 >Emitted(88, 35) Source(36, 37) + SourceIndex(0) -7 >Emitted(88, 37) Source(36, 39) + SourceIndex(0) -8 >Emitted(88, 38) Source(36, 40) + SourceIndex(0) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(89, 1) Source(37, 1) + SourceIndex(0) -2 >Emitted(89, 14) Source(37, 14) + SourceIndex(0) -3 >Emitted(89, 15) Source(37, 15) + SourceIndex(0) -4 >Emitted(89, 19) Source(37, 20) + SourceIndex(0) -5 >Emitted(89, 31) Source(37, 44) + SourceIndex(0) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(90, 1) Source(37, 15) + SourceIndex(0) -2 >Emitted(90, 12) Source(37, 20) + SourceIndex(0) -3 >Emitted(90, 24) Source(37, 32) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(91, 5) Source(37, 35) + SourceIndex(0) -2 >Emitted(91, 46) Source(37, 36) + SourceIndex(0) -3 >Emitted(91, 47) Source(37, 36) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(92, 5) Source(37, 38) + SourceIndex(0) -2 >Emitted(92, 46) Source(37, 39) + SourceIndex(0) -3 >Emitted(92, 47) Source(37, 39) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(93, 5) Source(37, 41) + SourceIndex(0) -2 >Emitted(93, 46) Source(37, 42) + SourceIndex(0) -3 >Emitted(93, 47) Source(37, 42) + SourceIndex(0) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(94, 1) Source(37, 43) + SourceIndex(0) -2 >Emitted(94, 2) Source(37, 44) + SourceIndex(0) -3 >Emitted(94, 4) Source(37, 20) + SourceIndex(0) -4 >Emitted(94, 16) Source(37, 32) + SourceIndex(0) -5 >Emitted(94, 21) Source(37, 20) + SourceIndex(0) -6 >Emitted(94, 33) Source(37, 32) + SourceIndex(0) -7 >Emitted(94, 41) Source(37, 44) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(95, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(96, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(97, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(98, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(98, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(98, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(99, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(99, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(99, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(99, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(99, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(99, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(99, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(99, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(100, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(101, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(102, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(102, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3416, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 77, - "kind": "text" - }, - { - "pos": 77, - "end": 165, - "kind": "internal" - }, - { - "pos": 167, - "end": 199, - "kind": "text" - }, - { - "pos": 199, - "end": 591, - "kind": "internal" - }, - { - "pos": 593, - "end": 596, - "kind": "text" - }, - { - "pos": 596, - "end": 1009, - "kind": "internal" - }, - { - "pos": 1011, - "end": 1059, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-3416) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-77) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (77-165) - constructor(); - prop: string; - method(): void; - /*@internal*/ c: number; ----------------------------------------------------------------------- -text: (167-199) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (199-591) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (593-596) -} - ----------------------------------------------------------------------- -internal: (596-1009) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1011-1059) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "outFile": "./bin/first-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "first_PART1.ts", - "first_part2.ts", - "first_part3.ts" - ], - "references": [ - ] -} - - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ class internalC {} -/*@internal*/ function internalfoo() {} -/*@internal*/ namespace internalNamespace { export class someClass {} } -/*@internal*/ namespace internalOther.something { export class someClass {} } -/*@internal*/ import internalImport = internalNamespace.someClass; -/*@internal*/ type internalType = internalC; -/*@internal*/ const internalConst = 10; -/*@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "../2/second-output.js", - "skipDefaultLibCheck": true - }, - "references": [ - ] -} - - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare const s = "Hello, world"; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(15, 18) Source(14, 18) + SourceIndex(3) -3 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(17, 18) Source(16, 18) + SourceIndex(3) -3 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 43) Source(16, 25) + SourceIndex(3) -5 >Emitted(17, 46) Source(16, 19) + SourceIndex(3) -6 >Emitted(17, 60) Source(16, 30) + SourceIndex(3) -7 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(19, 22) Source(17, 18) + SourceIndex(3) -3 >Emitted(19, 28) Source(17, 19) + SourceIndex(3) -4 >Emitted(19, 42) Source(17, 29) + SourceIndex(3) -5 >Emitted(19, 49) Source(17, 36) + SourceIndex(3) -6 >Emitted(19, 51) Source(17, 38) + SourceIndex(3) -7 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) -8 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) -9 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(20, 22) Source(18, 18) + SourceIndex(3) -3 >Emitted(20, 28) Source(18, 19) + SourceIndex(3) -4 >Emitted(20, 38) Source(18, 25) + SourceIndex(3) -5 >Emitted(20, 41) Source(18, 36) + SourceIndex(3) -6 >Emitted(20, 45) Source(18, 40) + SourceIndex(3) -7 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(28, 18) Source(21, 18) + SourceIndex(3) -3 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(34, 18) Source(22, 18) + SourceIndex(3) -3 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) -4 >Emitted(34, 28) Source(22, 35) + SourceIndex(3) -5 >Emitted(34, 31) Source(22, 38) + SourceIndex(3) -6 >Emitted(34, 36) Source(22, 42) + SourceIndex(3) -7 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(36, 18) Source(23, 18) + SourceIndex(3) -3 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 36) + SourceIndex(3) -5 >Emitted(36, 36) Source(23, 49) + SourceIndex(3) -6 >Emitted(36, 37) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> /*@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(45, 18) Source(24, 18) + SourceIndex(3) -3 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) -4 >Emitted(45, 23) Source(24, 36) + SourceIndex(3) -5 >Emitted(45, 32) Source(24, 45) + SourceIndex(3) -6 >Emitted(45, 33) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(57, 18) Source(25, 18) + SourceIndex(3) -3 >Emitted(57, 19) Source(25, 33) + SourceIndex(3) -4 >Emitted(57, 37) Source(25, 43) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 46) + SourceIndex(3) -6 >Emitted(57, 53) Source(25, 59) + SourceIndex(3) -7 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) -8 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) -9 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(58, 18) Source(27, 18) + SourceIndex(3) -3 >Emitted(58, 19) Source(27, 32) + SourceIndex(3) -4 >Emitted(58, 40) Source(27, 45) + SourceIndex(3) -5 >Emitted(58, 43) Source(27, 48) + SourceIndex(3) -6 >Emitted(58, 45) Source(27, 50) + SourceIndex(3) -7 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(59, 18) Source(28, 18) + SourceIndex(3) -3 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) -4 >Emitted(59, 23) Source(28, 31) + SourceIndex(3) -5 >Emitted(59, 35) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(66, 14) Source(30, 14) + SourceIndex(3) -3 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(71, 14) Source(31, 14) + SourceIndex(3) -3 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) -4 >Emitted(71, 24) Source(31, 24) + SourceIndex(3) -5 >Emitted(71, 35) Source(31, 35) + SourceIndex(3) -6 >Emitted(71, 40) Source(31, 39) + SourceIndex(3) -7 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(72, 14) Source(32, 14) + SourceIndex(3) -3 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) -4 >Emitted(72, 19) Source(32, 25) + SourceIndex(3) -5 >Emitted(72, 36) Source(32, 42) + SourceIndex(3) -6 >Emitted(72, 37) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(81, 14) Source(33, 14) + SourceIndex(3) -3 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 25) + SourceIndex(3) -5 >Emitted(81, 32) Source(33, 38) + SourceIndex(3) -6 >Emitted(81, 33) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(93, 14) Source(34, 14) + SourceIndex(3) -3 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) -4 >Emitted(93, 19) Source(34, 22) + SourceIndex(3) -5 >Emitted(93, 33) Source(34, 36) + SourceIndex(3) -6 >Emitted(93, 36) Source(34, 39) + SourceIndex(3) -7 >Emitted(93, 53) Source(34, 56) + SourceIndex(3) -8 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) -9 >Emitted(93, 63) Source(34, 66) + SourceIndex(3) -10>Emitted(93, 64) Source(34, 67) + SourceIndex(3) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(94, 14) Source(36, 14) + SourceIndex(3) -3 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) -4 >Emitted(94, 19) Source(36, 21) + SourceIndex(3) -5 >Emitted(94, 32) Source(36, 34) + SourceIndex(3) -6 >Emitted(94, 35) Source(36, 37) + SourceIndex(3) -7 >Emitted(94, 37) Source(36, 39) + SourceIndex(3) -8 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(95, 14) Source(37, 14) + SourceIndex(3) -3 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) -4 >Emitted(95, 19) Source(37, 20) + SourceIndex(3) -5 >Emitted(95, 31) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3526, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 3526, - "kind": "text" - } - ] - }, - { - "pos": 3526, - "end": 3562, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 116, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 116, - "kind": "text" - } - ] - }, - { - "pos": 116, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 116, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-3526):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-3526) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3526-3562) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-116) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (116-276) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": false, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, -"stripInternal": true - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal.js deleted file mode 100644 index 6c3036fe151..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/stripInternal.js +++ /dev/null @@ -1,5277 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class normalC { - constructor(); - prop: string; - method(): void; - c: number; -} -declare namespace normalN { - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 15) Source(13, 7) + SourceIndex(0) -3 >Emitted(5, 22) Source(13, 14) + SourceIndex(0) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(7, 5) Source(15, 19) + SourceIndex(0) -2 >Emitted(7, 9) Source(15, 23) + SourceIndex(0) -3 >Emitted(7, 11) Source(15, 25) + SourceIndex(0) -4 >Emitted(7, 17) Source(15, 31) + SourceIndex(0) -5 >Emitted(7, 18) Source(15, 32) + SourceIndex(0) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(8, 5) Source(16, 19) + SourceIndex(0) -2 >Emitted(8, 11) Source(16, 25) + SourceIndex(0) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(9, 5) Source(17, 23) + SourceIndex(0) -2 >Emitted(9, 6) Source(17, 24) + SourceIndex(0) -3 >Emitted(9, 8) Source(18, 30) + SourceIndex(0) -4 >Emitted(9, 14) Source(18, 36) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } - >} -1 >Emitted(10, 2) Source(19, 2) + SourceIndex(0) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(11, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(11, 19) Source(20, 11) + SourceIndex(0) -3 >Emitted(11, 26) Source(20, 18) + SourceIndex(0) -4 >Emitted(11, 27) Source(20, 19) + SourceIndex(0) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(12, 5) Source(21, 19) + SourceIndex(0) -2 >Emitted(12, 11) Source(21, 32) + SourceIndex(0) -3 >Emitted(12, 12) Source(21, 33) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(13, 6) Source(21, 37) + SourceIndex(0) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(14, 5) Source(22, 19) + SourceIndex(0) -2 >Emitted(14, 14) Source(22, 35) + SourceIndex(0) -3 >Emitted(14, 17) Source(22, 38) + SourceIndex(0) -4 >Emitted(14, 26) Source(22, 43) + SourceIndex(0) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(15, 5) Source(23, 19) + SourceIndex(0) -2 >Emitted(15, 15) Source(23, 36) + SourceIndex(0) -3 >Emitted(15, 28) Source(23, 49) + SourceIndex(0) -4 >Emitted(15, 29) Source(23, 50) + SourceIndex(0) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(16, 9) Source(23, 52) + SourceIndex(0) -2 >Emitted(16, 15) Source(23, 65) + SourceIndex(0) -3 >Emitted(16, 16) Source(23, 66) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(17, 10) Source(23, 69) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(18, 6) Source(23, 71) + SourceIndex(0) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(19, 5) Source(24, 19) + SourceIndex(0) -2 >Emitted(19, 15) Source(24, 36) + SourceIndex(0) -3 >Emitted(19, 24) Source(24, 45) + SourceIndex(0) -4 >Emitted(19, 25) Source(24, 46) + SourceIndex(0) -5 >Emitted(19, 34) Source(24, 55) + SourceIndex(0) -6 >Emitted(19, 35) Source(24, 56) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(20, 9) Source(24, 58) + SourceIndex(0) -2 >Emitted(20, 15) Source(24, 71) + SourceIndex(0) -3 >Emitted(20, 24) Source(24, 80) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(21, 10) Source(24, 83) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(22, 6) Source(24, 85) + SourceIndex(0) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(23, 5) Source(25, 19) + SourceIndex(0) -2 >Emitted(23, 11) Source(25, 25) + SourceIndex(0) -3 >Emitted(23, 19) Source(25, 33) + SourceIndex(0) -4 >Emitted(23, 29) Source(25, 43) + SourceIndex(0) -5 >Emitted(23, 32) Source(25, 46) + SourceIndex(0) -6 >Emitted(23, 45) Source(25, 59) + SourceIndex(0) -7 >Emitted(23, 46) Source(25, 60) + SourceIndex(0) -8 >Emitted(23, 47) Source(25, 61) + SourceIndex(0) -9 >Emitted(23, 48) Source(25, 62) + SourceIndex(0) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(24, 5) Source(26, 19) + SourceIndex(0) -2 >Emitted(24, 10) Source(26, 31) + SourceIndex(0) -3 >Emitted(24, 22) Source(26, 43) + SourceIndex(0) -4 >Emitted(24, 25) Source(26, 46) + SourceIndex(0) -5 >Emitted(24, 34) Source(26, 55) + SourceIndex(0) -6 >Emitted(24, 35) Source(26, 56) + SourceIndex(0) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(25, 5) Source(27, 26) + SourceIndex(0) -2 >Emitted(25, 11) Source(27, 32) + SourceIndex(0) -3 >Emitted(25, 24) Source(27, 45) + SourceIndex(0) -4 >Emitted(25, 29) Source(27, 50) + SourceIndex(0) -5 >Emitted(25, 30) Source(27, 51) + SourceIndex(0) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(26, 5) Source(28, 19) + SourceIndex(0) -2 >Emitted(26, 10) Source(28, 31) + SourceIndex(0) -3 >Emitted(26, 22) Source(28, 43) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(27, 9) Source(28, 46) + SourceIndex(0) -2 >Emitted(27, 10) Source(28, 47) + SourceIndex(0) -3 >Emitted(27, 14) Source(28, 47) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(28, 9) Source(28, 49) + SourceIndex(0) -2 >Emitted(28, 10) Source(28, 50) + SourceIndex(0) -3 >Emitted(28, 14) Source(28, 50) + SourceIndex(0) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(29, 9) Source(28, 52) + SourceIndex(0) -2 >Emitted(29, 10) Source(28, 53) + SourceIndex(0) -3 >Emitted(29, 14) Source(28, 53) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(30, 6) Source(28, 55) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(31, 2) Source(29, 2) + SourceIndex(0) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >class -3 > internalC -1->Emitted(32, 1) Source(30, 15) + SourceIndex(0) -2 >Emitted(32, 15) Source(30, 21) + SourceIndex(0) -3 >Emitted(32, 24) Source(30, 30) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(33, 2) Source(30, 33) + SourceIndex(0) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(34, 1) Source(31, 15) + SourceIndex(0) -2 >Emitted(34, 18) Source(31, 24) + SourceIndex(0) -3 >Emitted(34, 29) Source(31, 35) + SourceIndex(0) -4 >Emitted(34, 38) Source(31, 40) + SourceIndex(0) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(35, 1) Source(32, 15) + SourceIndex(0) -2 >Emitted(35, 19) Source(32, 25) + SourceIndex(0) -3 >Emitted(35, 36) Source(32, 42) + SourceIndex(0) -4 >Emitted(35, 37) Source(32, 43) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(36, 5) Source(32, 45) + SourceIndex(0) -2 >Emitted(36, 11) Source(32, 58) + SourceIndex(0) -3 >Emitted(36, 20) Source(32, 67) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(37, 6) Source(32, 70) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(38, 2) Source(32, 72) + SourceIndex(0) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(39, 1) Source(33, 15) + SourceIndex(0) -2 >Emitted(39, 19) Source(33, 25) + SourceIndex(0) -3 >Emitted(39, 32) Source(33, 38) + SourceIndex(0) -4 >Emitted(39, 33) Source(33, 39) + SourceIndex(0) -5 >Emitted(39, 42) Source(33, 48) + SourceIndex(0) -6 >Emitted(39, 43) Source(33, 49) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(40, 5) Source(33, 51) + SourceIndex(0) -2 >Emitted(40, 11) Source(33, 64) + SourceIndex(0) -3 >Emitted(40, 20) Source(33, 73) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(41, 6) Source(33, 76) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(42, 2) Source(33, 78) + SourceIndex(0) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(43, 1) Source(34, 15) + SourceIndex(0) -2 >Emitted(43, 8) Source(34, 22) + SourceIndex(0) -3 >Emitted(43, 22) Source(34, 36) + SourceIndex(0) -4 >Emitted(43, 25) Source(34, 39) + SourceIndex(0) -5 >Emitted(43, 42) Source(34, 56) + SourceIndex(0) -6 >Emitted(43, 43) Source(34, 57) + SourceIndex(0) -7 >Emitted(43, 52) Source(34, 66) + SourceIndex(0) -8 >Emitted(43, 53) Source(34, 67) + SourceIndex(0) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(44, 1) Source(35, 15) + SourceIndex(0) -2 >Emitted(44, 14) Source(35, 20) + SourceIndex(0) -3 >Emitted(44, 26) Source(35, 32) + SourceIndex(0) -4 >Emitted(44, 29) Source(35, 35) + SourceIndex(0) -5 >Emitted(44, 38) Source(35, 44) + SourceIndex(0) -6 >Emitted(44, 39) Source(35, 45) + SourceIndex(0) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(45, 1) Source(36, 15) + SourceIndex(0) -2 >Emitted(45, 9) Source(36, 15) + SourceIndex(0) -3 >Emitted(45, 15) Source(36, 21) + SourceIndex(0) -4 >Emitted(45, 28) Source(36, 34) + SourceIndex(0) -5 >Emitted(45, 33) Source(36, 39) + SourceIndex(0) -6 >Emitted(45, 34) Source(36, 40) + SourceIndex(0) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(46, 1) Source(37, 15) + SourceIndex(0) -2 >Emitted(46, 14) Source(37, 20) + SourceIndex(0) -3 >Emitted(46, 26) Source(37, 32) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(47, 5) Source(37, 35) + SourceIndex(0) -2 >Emitted(47, 6) Source(37, 36) + SourceIndex(0) -3 >Emitted(47, 10) Source(37, 36) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(48, 5) Source(37, 38) + SourceIndex(0) -2 >Emitted(48, 6) Source(37, 39) + SourceIndex(0) -3 >Emitted(48, 10) Source(37, 39) + SourceIndex(0) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(49, 5) Source(37, 41) + SourceIndex(0) -2 >Emitted(49, 6) Source(37, 42) + SourceIndex(0) -3 >Emitted(49, 10) Source(37, 42) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(50, 2) Source(37, 44) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(51, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(51, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(51, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(52, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(52, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(53, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(9, 5) Source(14, 19) + SourceIndex(0) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(10, 5) Source(14, 35) + SourceIndex(0) -2 >Emitted(10, 6) Source(14, 36) + SourceIndex(0) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(11, 5) Source(16, 19) + SourceIndex(0) -2 >Emitted(11, 29) Source(16, 25) + SourceIndex(0) -3 >Emitted(11, 32) Source(16, 19) + SourceIndex(0) -4 >Emitted(11, 46) Source(16, 30) + SourceIndex(0) -5 >Emitted(11, 47) Source(16, 31) + SourceIndex(0) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(12, 5) Source(17, 19) + SourceIndex(0) -2 >Emitted(12, 27) Source(17, 23) + SourceIndex(0) -3 >Emitted(12, 49) Source(17, 24) + SourceIndex(0) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(13, 14) Source(17, 19) + SourceIndex(0) -2 >Emitted(13, 28) Source(17, 29) + SourceIndex(0) -3 >Emitted(13, 35) Source(17, 36) + SourceIndex(0) -4 >Emitted(13, 37) Source(17, 38) + SourceIndex(0) -5 >Emitted(13, 38) Source(17, 39) + SourceIndex(0) -6 >Emitted(13, 39) Source(17, 40) + SourceIndex(0) -7 >Emitted(13, 40) Source(17, 41) + SourceIndex(0) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(14, 14) Source(18, 19) + SourceIndex(0) -2 >Emitted(14, 24) Source(18, 25) + SourceIndex(0) -3 >Emitted(14, 27) Source(18, 36) + SourceIndex(0) -4 >Emitted(14, 31) Source(18, 40) + SourceIndex(0) -5 >Emitted(14, 32) Source(18, 41) + SourceIndex(0) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(17, 8) Source(17, 41) + SourceIndex(0) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(18, 5) Source(19, 1) + SourceIndex(0) -2 >Emitted(18, 19) Source(19, 2) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) -3 >Emitted(19, 2) Source(13, 1) + SourceIndex(0) -4 >Emitted(19, 6) Source(19, 2) + SourceIndex(0) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(20, 5) Source(20, 11) + SourceIndex(0) -3 >Emitted(20, 12) Source(20, 18) + SourceIndex(0) -4 >Emitted(20, 13) Source(29, 2) + SourceIndex(0) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(21, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(21, 12) Source(20, 11) + SourceIndex(0) -3 >Emitted(21, 19) Source(20, 18) + SourceIndex(0) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(22, 5) Source(21, 19) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(23, 9) Source(21, 19) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(24, 9) Source(21, 36) + SourceIndex(0) -2 >Emitted(24, 10) Source(21, 37) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(25, 9) Source(21, 36) + SourceIndex(0) -2 >Emitted(25, 17) Source(21, 37) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(26, 5) Source(21, 36) + SourceIndex(0) -2 >Emitted(26, 6) Source(21, 37) + SourceIndex(0) -3 >Emitted(26, 6) Source(21, 19) + SourceIndex(0) -4 >Emitted(26, 10) Source(21, 37) + SourceIndex(0) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(27, 5) Source(21, 32) + SourceIndex(0) -2 >Emitted(27, 14) Source(21, 33) + SourceIndex(0) -3 >Emitted(27, 18) Source(21, 37) + SourceIndex(0) -4 >Emitted(27, 19) Source(21, 37) + SourceIndex(0) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(28, 5) Source(22, 19) + SourceIndex(0) -2 >Emitted(28, 14) Source(22, 35) + SourceIndex(0) -3 >Emitted(28, 17) Source(22, 38) + SourceIndex(0) -4 >Emitted(28, 22) Source(22, 42) + SourceIndex(0) -5 >Emitted(28, 23) Source(22, 43) + SourceIndex(0) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(29, 5) Source(22, 35) + SourceIndex(0) -2 >Emitted(29, 16) Source(22, 38) + SourceIndex(0) -3 >Emitted(29, 22) Source(22, 43) + SourceIndex(0) -4 >Emitted(29, 23) Source(22, 43) + SourceIndex(0) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(30, 5) Source(23, 19) + SourceIndex(0) -2 >Emitted(30, 9) Source(23, 36) + SourceIndex(0) -3 >Emitted(30, 22) Source(23, 49) + SourceIndex(0) -4 >Emitted(30, 23) Source(23, 71) + SourceIndex(0) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(31, 5) Source(23, 19) + SourceIndex(0) -2 >Emitted(31, 16) Source(23, 36) + SourceIndex(0) -3 >Emitted(31, 29) Source(23, 49) + SourceIndex(0) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(32, 9) Source(23, 52) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(33, 13) Source(23, 52) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(34, 13) Source(23, 68) + SourceIndex(0) -2 >Emitted(34, 14) Source(23, 69) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(35, 13) Source(23, 68) + SourceIndex(0) -2 >Emitted(35, 21) Source(23, 69) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(36, 9) Source(23, 68) + SourceIndex(0) -2 >Emitted(36, 10) Source(23, 69) + SourceIndex(0) -3 >Emitted(36, 10) Source(23, 52) + SourceIndex(0) -4 >Emitted(36, 14) Source(23, 69) + SourceIndex(0) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(37, 9) Source(23, 65) + SourceIndex(0) -2 >Emitted(37, 24) Source(23, 66) + SourceIndex(0) -3 >Emitted(37, 28) Source(23, 69) + SourceIndex(0) -4 >Emitted(37, 29) Source(23, 69) + SourceIndex(0) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(38, 5) Source(23, 70) + SourceIndex(0) -2 >Emitted(38, 6) Source(23, 71) + SourceIndex(0) -3 >Emitted(38, 8) Source(23, 36) + SourceIndex(0) -4 >Emitted(38, 21) Source(23, 49) + SourceIndex(0) -5 >Emitted(38, 24) Source(23, 36) + SourceIndex(0) -6 >Emitted(38, 45) Source(23, 49) + SourceIndex(0) -7 >Emitted(38, 50) Source(23, 36) + SourceIndex(0) -8 >Emitted(38, 71) Source(23, 49) + SourceIndex(0) -9 >Emitted(38, 79) Source(23, 71) + SourceIndex(0) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(39, 5) Source(24, 19) + SourceIndex(0) -2 >Emitted(39, 9) Source(24, 36) + SourceIndex(0) -3 >Emitted(39, 18) Source(24, 45) + SourceIndex(0) -4 >Emitted(39, 19) Source(24, 85) + SourceIndex(0) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(40, 5) Source(24, 19) + SourceIndex(0) -2 >Emitted(40, 16) Source(24, 36) + SourceIndex(0) -3 >Emitted(40, 25) Source(24, 45) + SourceIndex(0) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(41, 9) Source(24, 46) + SourceIndex(0) -2 >Emitted(41, 13) Source(24, 46) + SourceIndex(0) -3 >Emitted(41, 22) Source(24, 55) + SourceIndex(0) -4 >Emitted(41, 23) Source(24, 85) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(42, 9) Source(24, 46) + SourceIndex(0) -2 >Emitted(42, 20) Source(24, 46) + SourceIndex(0) -3 >Emitted(42, 29) Source(24, 55) + SourceIndex(0) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(43, 13) Source(24, 58) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(44, 17) Source(24, 58) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(45, 17) Source(24, 82) + SourceIndex(0) -2 >Emitted(45, 18) Source(24, 83) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(46, 17) Source(24, 82) + SourceIndex(0) -2 >Emitted(46, 33) Source(24, 83) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(47, 13) Source(24, 82) + SourceIndex(0) -2 >Emitted(47, 14) Source(24, 83) + SourceIndex(0) -3 >Emitted(47, 14) Source(24, 58) + SourceIndex(0) -4 >Emitted(47, 18) Source(24, 83) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(48, 13) Source(24, 71) + SourceIndex(0) -2 >Emitted(48, 32) Source(24, 80) + SourceIndex(0) -3 >Emitted(48, 44) Source(24, 83) + SourceIndex(0) -4 >Emitted(48, 45) Source(24, 83) + SourceIndex(0) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(49, 9) Source(24, 84) + SourceIndex(0) -2 >Emitted(49, 10) Source(24, 85) + SourceIndex(0) -3 >Emitted(49, 12) Source(24, 46) + SourceIndex(0) -4 >Emitted(49, 21) Source(24, 55) + SourceIndex(0) -5 >Emitted(49, 24) Source(24, 46) + SourceIndex(0) -6 >Emitted(49, 43) Source(24, 55) + SourceIndex(0) -7 >Emitted(49, 48) Source(24, 46) + SourceIndex(0) -8 >Emitted(49, 67) Source(24, 55) + SourceIndex(0) -9 >Emitted(49, 75) Source(24, 85) + SourceIndex(0) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(50, 5) Source(24, 84) + SourceIndex(0) -2 >Emitted(50, 6) Source(24, 85) + SourceIndex(0) -3 >Emitted(50, 8) Source(24, 36) + SourceIndex(0) -4 >Emitted(50, 17) Source(24, 45) + SourceIndex(0) -5 >Emitted(50, 20) Source(24, 36) + SourceIndex(0) -6 >Emitted(50, 37) Source(24, 45) + SourceIndex(0) -7 >Emitted(50, 42) Source(24, 36) + SourceIndex(0) -8 >Emitted(50, 59) Source(24, 45) + SourceIndex(0) -9 >Emitted(50, 67) Source(24, 85) + SourceIndex(0) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(51, 5) Source(25, 33) + SourceIndex(0) -2 >Emitted(51, 23) Source(25, 43) + SourceIndex(0) -3 >Emitted(51, 26) Source(25, 46) + SourceIndex(0) -4 >Emitted(51, 39) Source(25, 59) + SourceIndex(0) -5 >Emitted(51, 40) Source(25, 60) + SourceIndex(0) -6 >Emitted(51, 41) Source(25, 61) + SourceIndex(0) -7 >Emitted(51, 42) Source(25, 62) + SourceIndex(0) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(52, 5) Source(27, 32) + SourceIndex(0) -2 >Emitted(52, 26) Source(27, 45) + SourceIndex(0) -3 >Emitted(52, 29) Source(27, 48) + SourceIndex(0) -4 >Emitted(52, 31) Source(27, 50) + SourceIndex(0) -5 >Emitted(52, 32) Source(27, 51) + SourceIndex(0) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(53, 5) Source(28, 19) + SourceIndex(0) -2 >Emitted(53, 9) Source(28, 31) + SourceIndex(0) -3 >Emitted(53, 21) Source(28, 55) + SourceIndex(0) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(54, 5) Source(28, 19) + SourceIndex(0) -2 >Emitted(54, 16) Source(28, 31) + SourceIndex(0) -3 >Emitted(54, 28) Source(28, 43) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(55, 9) Source(28, 46) + SourceIndex(0) -2 >Emitted(55, 50) Source(28, 47) + SourceIndex(0) -3 >Emitted(55, 51) Source(28, 47) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(56, 9) Source(28, 49) + SourceIndex(0) -2 >Emitted(56, 50) Source(28, 50) + SourceIndex(0) -3 >Emitted(56, 51) Source(28, 50) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(57, 9) Source(28, 52) + SourceIndex(0) -2 >Emitted(57, 50) Source(28, 53) + SourceIndex(0) -3 >Emitted(57, 51) Source(28, 53) + SourceIndex(0) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(58, 5) Source(28, 54) + SourceIndex(0) -2 >Emitted(58, 6) Source(28, 55) + SourceIndex(0) -3 >Emitted(58, 8) Source(28, 31) + SourceIndex(0) -4 >Emitted(58, 20) Source(28, 43) + SourceIndex(0) -5 >Emitted(58, 23) Source(28, 31) + SourceIndex(0) -6 >Emitted(58, 43) Source(28, 43) + SourceIndex(0) -7 >Emitted(58, 48) Source(28, 31) + SourceIndex(0) -8 >Emitted(58, 68) Source(28, 43) + SourceIndex(0) -9 >Emitted(58, 76) Source(28, 55) + SourceIndex(0) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(59, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(59, 2) Source(29, 2) + SourceIndex(0) -3 >Emitted(59, 4) Source(20, 11) + SourceIndex(0) -4 >Emitted(59, 11) Source(20, 18) + SourceIndex(0) -5 >Emitted(59, 16) Source(20, 11) + SourceIndex(0) -6 >Emitted(59, 23) Source(20, 18) + SourceIndex(0) -7 >Emitted(59, 31) Source(29, 2) + SourceIndex(0) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(60, 1) Source(30, 15) + SourceIndex(0) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(61, 5) Source(30, 15) + SourceIndex(0) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(62, 5) Source(30, 32) + SourceIndex(0) -2 >Emitted(62, 6) Source(30, 33) + SourceIndex(0) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(63, 5) Source(30, 32) + SourceIndex(0) -2 >Emitted(63, 21) Source(30, 33) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(64, 1) Source(30, 32) + SourceIndex(0) -2 >Emitted(64, 2) Source(30, 33) + SourceIndex(0) -3 >Emitted(64, 2) Source(30, 15) + SourceIndex(0) -4 >Emitted(64, 6) Source(30, 33) + SourceIndex(0) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(65, 1) Source(31, 15) + SourceIndex(0) -2 >Emitted(65, 10) Source(31, 24) + SourceIndex(0) -3 >Emitted(65, 21) Source(31, 35) + SourceIndex(0) -4 >Emitted(65, 26) Source(31, 39) + SourceIndex(0) -5 >Emitted(65, 27) Source(31, 40) + SourceIndex(0) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(66, 1) Source(32, 15) + SourceIndex(0) -2 >Emitted(66, 5) Source(32, 25) + SourceIndex(0) -3 >Emitted(66, 22) Source(32, 42) + SourceIndex(0) -4 >Emitted(66, 23) Source(32, 72) + SourceIndex(0) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(67, 1) Source(32, 15) + SourceIndex(0) -2 >Emitted(67, 12) Source(32, 25) + SourceIndex(0) -3 >Emitted(67, 29) Source(32, 42) + SourceIndex(0) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(68, 5) Source(32, 45) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(69, 9) Source(32, 45) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(70, 9) Source(32, 69) + SourceIndex(0) -2 >Emitted(70, 10) Source(32, 70) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(71, 9) Source(32, 69) + SourceIndex(0) -2 >Emitted(71, 25) Source(32, 70) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(72, 5) Source(32, 69) + SourceIndex(0) -2 >Emitted(72, 6) Source(32, 70) + SourceIndex(0) -3 >Emitted(72, 6) Source(32, 45) + SourceIndex(0) -4 >Emitted(72, 10) Source(32, 70) + SourceIndex(0) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(73, 5) Source(32, 58) + SourceIndex(0) -2 >Emitted(73, 32) Source(32, 67) + SourceIndex(0) -3 >Emitted(73, 44) Source(32, 70) + SourceIndex(0) -4 >Emitted(73, 45) Source(32, 70) + SourceIndex(0) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(74, 1) Source(32, 71) + SourceIndex(0) -2 >Emitted(74, 2) Source(32, 72) + SourceIndex(0) -3 >Emitted(74, 4) Source(32, 25) + SourceIndex(0) -4 >Emitted(74, 21) Source(32, 42) + SourceIndex(0) -5 >Emitted(74, 26) Source(32, 25) + SourceIndex(0) -6 >Emitted(74, 43) Source(32, 42) + SourceIndex(0) -7 >Emitted(74, 51) Source(32, 72) + SourceIndex(0) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(75, 1) Source(33, 15) + SourceIndex(0) -2 >Emitted(75, 5) Source(33, 25) + SourceIndex(0) -3 >Emitted(75, 18) Source(33, 38) + SourceIndex(0) -4 >Emitted(75, 19) Source(33, 78) + SourceIndex(0) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(76, 1) Source(33, 15) + SourceIndex(0) -2 >Emitted(76, 12) Source(33, 25) + SourceIndex(0) -3 >Emitted(76, 25) Source(33, 38) + SourceIndex(0) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(77, 5) Source(33, 39) + SourceIndex(0) -2 >Emitted(77, 9) Source(33, 39) + SourceIndex(0) -3 >Emitted(77, 18) Source(33, 48) + SourceIndex(0) -4 >Emitted(77, 19) Source(33, 78) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(78, 5) Source(33, 39) + SourceIndex(0) -2 >Emitted(78, 16) Source(33, 39) + SourceIndex(0) -3 >Emitted(78, 25) Source(33, 48) + SourceIndex(0) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(79, 9) Source(33, 51) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(80, 13) Source(33, 51) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(81, 13) Source(33, 75) + SourceIndex(0) -2 >Emitted(81, 14) Source(33, 76) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(82, 13) Source(33, 75) + SourceIndex(0) -2 >Emitted(82, 29) Source(33, 76) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(83, 9) Source(33, 75) + SourceIndex(0) -2 >Emitted(83, 10) Source(33, 76) + SourceIndex(0) -3 >Emitted(83, 10) Source(33, 51) + SourceIndex(0) -4 >Emitted(83, 14) Source(33, 76) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(84, 9) Source(33, 64) + SourceIndex(0) -2 >Emitted(84, 28) Source(33, 73) + SourceIndex(0) -3 >Emitted(84, 40) Source(33, 76) + SourceIndex(0) -4 >Emitted(84, 41) Source(33, 76) + SourceIndex(0) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(85, 5) Source(33, 77) + SourceIndex(0) -2 >Emitted(85, 6) Source(33, 78) + SourceIndex(0) -3 >Emitted(85, 8) Source(33, 39) + SourceIndex(0) -4 >Emitted(85, 17) Source(33, 48) + SourceIndex(0) -5 >Emitted(85, 20) Source(33, 39) + SourceIndex(0) -6 >Emitted(85, 43) Source(33, 48) + SourceIndex(0) -7 >Emitted(85, 48) Source(33, 39) + SourceIndex(0) -8 >Emitted(85, 71) Source(33, 48) + SourceIndex(0) -9 >Emitted(85, 79) Source(33, 78) + SourceIndex(0) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(86, 1) Source(33, 77) + SourceIndex(0) -2 >Emitted(86, 2) Source(33, 78) + SourceIndex(0) -3 >Emitted(86, 4) Source(33, 25) + SourceIndex(0) -4 >Emitted(86, 17) Source(33, 38) + SourceIndex(0) -5 >Emitted(86, 22) Source(33, 25) + SourceIndex(0) -6 >Emitted(86, 35) Source(33, 38) + SourceIndex(0) -7 >Emitted(86, 43) Source(33, 78) + SourceIndex(0) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(87, 1) Source(34, 15) + SourceIndex(0) -2 >Emitted(87, 5) Source(34, 22) + SourceIndex(0) -3 >Emitted(87, 19) Source(34, 36) + SourceIndex(0) -4 >Emitted(87, 22) Source(34, 39) + SourceIndex(0) -5 >Emitted(87, 39) Source(34, 56) + SourceIndex(0) -6 >Emitted(87, 40) Source(34, 57) + SourceIndex(0) -7 >Emitted(87, 49) Source(34, 66) + SourceIndex(0) -8 >Emitted(87, 50) Source(34, 67) + SourceIndex(0) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(88, 1) Source(36, 15) + SourceIndex(0) -2 >Emitted(88, 5) Source(36, 21) + SourceIndex(0) -3 >Emitted(88, 18) Source(36, 34) + SourceIndex(0) -4 >Emitted(88, 21) Source(36, 37) + SourceIndex(0) -5 >Emitted(88, 23) Source(36, 39) + SourceIndex(0) -6 >Emitted(88, 24) Source(36, 40) + SourceIndex(0) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(89, 1) Source(37, 15) + SourceIndex(0) -2 >Emitted(89, 5) Source(37, 20) + SourceIndex(0) -3 >Emitted(89, 17) Source(37, 44) + SourceIndex(0) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(90, 1) Source(37, 15) + SourceIndex(0) -2 >Emitted(90, 12) Source(37, 20) + SourceIndex(0) -3 >Emitted(90, 24) Source(37, 32) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(91, 5) Source(37, 35) + SourceIndex(0) -2 >Emitted(91, 46) Source(37, 36) + SourceIndex(0) -3 >Emitted(91, 47) Source(37, 36) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(92, 5) Source(37, 38) + SourceIndex(0) -2 >Emitted(92, 46) Source(37, 39) + SourceIndex(0) -3 >Emitted(92, 47) Source(37, 39) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(93, 5) Source(37, 41) + SourceIndex(0) -2 >Emitted(93, 46) Source(37, 42) + SourceIndex(0) -3 >Emitted(93, 47) Source(37, 42) + SourceIndex(0) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(94, 1) Source(37, 43) + SourceIndex(0) -2 >Emitted(94, 2) Source(37, 44) + SourceIndex(0) -3 >Emitted(94, 4) Source(37, 20) + SourceIndex(0) -4 >Emitted(94, 16) Source(37, 32) + SourceIndex(0) -5 >Emitted(94, 21) Source(37, 20) + SourceIndex(0) -6 >Emitted(94, 33) Source(37, 32) + SourceIndex(0) -7 >Emitted(94, 41) Source(37, 44) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(95, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(96, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(97, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(98, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(98, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(98, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(99, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(99, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(99, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(99, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(99, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(99, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(99, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(99, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(100, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(101, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(102, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(102, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3052, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 77, - "kind": "text" - }, - { - "pos": 77, - "end": 151, - "kind": "internal" - }, - { - "pos": 153, - "end": 185, - "kind": "text" - }, - { - "pos": 185, - "end": 577, - "kind": "internal" - }, - { - "pos": 579, - "end": 582, - "kind": "text" - }, - { - "pos": 582, - "end": 995, - "kind": "internal" - }, - { - "pos": 997, - "end": 1045, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-3052) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-77) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (77-151) - constructor(); - prop: string; - method(): void; - c: number; ----------------------------------------------------------------------- -text: (153-185) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (185-577) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (579-582) -} - ----------------------------------------------------------------------- -internal: (582-995) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (997-1045) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ class internalC {} -/*@internal*/ function internalfoo() {} -/*@internal*/ namespace internalNamespace { export class someClass {} } -/*@internal*/ namespace internalOther.something { export class someClass {} } -/*@internal*/ import internalImport = internalNamespace.someClass; -/*@internal*/ type internalType = internalC; -/*@internal*/ const internalConst = 10; -/*@internal*/ enum internalEnum { a, b, c } - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare const s = "Hello, world"; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - >} -1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: true, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3162, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 3162, - "kind": "text" - } - ] - }, - { - "pos": 3162, - "end": 3198, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 116, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 116, - "kind": "text" - } - ] - }, - { - "pos": 116, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 116, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-3162):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-3162) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: true, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3162-3198) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-116) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (116-276) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, -"stripInternal": true - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-all-projects.js deleted file mode 100644 index d75f09700f3..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-all-projects.js +++ /dev/null @@ -1,2114 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/tripleRef.d.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/tripleRef.d.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/third/tripleRef.d.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/2/second-output.d.ts] -/// -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>/// ->>>declare const second_part1Const: secondsecond_part1; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^ -6 > ^ -1 >/// - > -2 > -3 > const -4 > second_part1Const -5 > = new secondsecond_part1() -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) -5 >Emitted(2, 52) Source(2, 51) + SourceIndex(0) -6 >Emitted(2, 53) Source(2, 52) + SourceIndex(0) ---- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > - > -2 >namespace -3 > N -4 > -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(3, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(3, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(3, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(4, 2) Source(5, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 19) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 20) Source(7, 12) + SourceIndex(0) -4 >Emitted(5, 21) Source(7, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(6, 2) Source(13, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(7, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(7, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(7, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(8, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var second_part1Const = new secondsecond_part1(); -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1 >/// - > -2 >const -3 > second_part1Const -4 > = -5 > new -6 > secondsecond_part1 -7 > () -8 > ; -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(1, 22) Source(2, 24) + SourceIndex(0) -4 >Emitted(1, 25) Source(2, 27) + SourceIndex(0) -5 >Emitted(1, 29) Source(2, 31) + SourceIndex(0) -6 >Emitted(1, 47) Source(2, 49) + SourceIndex(0) -7 >Emitted(1, 49) Source(2, 51) + SourceIndex(0) -8 >Emitted(1, 50) Source(2, 52) + SourceIndex(0) ---- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 6) Source(7, 12) + SourceIndex(0) -4 >Emitted(2, 7) Source(13, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(3, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(7, 11) + SourceIndex(0) -3 >Emitted(3, 13) Source(7, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(4, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(4, 14) Source(8, 14) + SourceIndex(0) -3 >Emitted(4, 15) Source(8, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(5, 9) Source(9, 9) + SourceIndex(0) -2 >Emitted(5, 16) Source(9, 16) + SourceIndex(0) -3 >Emitted(5, 17) Source(9, 17) + SourceIndex(0) -4 >Emitted(5, 20) Source(9, 20) + SourceIndex(0) -5 >Emitted(5, 21) Source(9, 21) + SourceIndex(0) -6 >Emitted(5, 30) Source(9, 30) + SourceIndex(0) -7 >Emitted(5, 31) Source(9, 31) + SourceIndex(0) -8 >Emitted(5, 32) Source(9, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(7, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(12, 6) + SourceIndex(0) -3 >Emitted(7, 8) Source(12, 8) + SourceIndex(0) -4 >Emitted(7, 9) Source(12, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(8, 2) Source(13, 2) + SourceIndex(0) -3 >Emitted(8, 4) Source(7, 11) + SourceIndex(0) -4 >Emitted(8, 5) Source(7, 12) + SourceIndex(0) -5 >Emitted(8, 10) Source(7, 11) + SourceIndex(0) -6 >Emitted(8, 11) Source(7, 12) + SourceIndex(0) -7 >Emitted(8, 19) Source(13, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 336, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 49, - "kind": "reference", - "data": "../second/tripleRef.d.ts" - }, - { - "pos": 51, - "end": 205, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-336) -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -reference: (0-49):: ../second/tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (51-205) -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -/// -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>/// ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(5, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(5, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(5, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>declare const first_part2Const: firstfirst_part2; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > first_part2Const -5 > = new firstfirst_part2() -6 > ; -1->Emitted(9, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(9, 9) Source(2, 1) + SourceIndex(1) -3 >Emitted(9, 15) Source(2, 7) + SourceIndex(1) -4 >Emitted(9, 31) Source(2, 23) + SourceIndex(1) -5 >Emitted(9, 49) Source(2, 48) + SourceIndex(1) -6 >Emitted(9, 50) Source(2, 49) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(10, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 158, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 42, - "kind": "reference", - "data": "../tripleRef.d.ts" - }, - { - "pos": 44, - "end": 252, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-158) -var s = "Hello, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -reference: (0-42):: ../tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (44-252) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - -====================================================================== - -//// [/src/first/first_part2.ts] -/// -const first_part2Const = new firstfirst_part2(); -console.log(f()); - - -//// [/src/first/tripleRef.d.ts] -declare class firstfirst_part2 { } - -//// [/src/second/second_part1.ts] -/// -const second_part1Const = new secondsecond_part1(); -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - - -//// [/src/second/tripleRef.d.ts] -declare class secondsecond_part1 { } - -//// [/src/third/thirdjs/output/third-output.d.ts] -/// -/// -/// -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare const third_part1Const: thirdthird_part1; -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>/// ->>>/// ->>>/// ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(4, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(4, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(5, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(5, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(5, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(5, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(5, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(6, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(7, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(7, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(7, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(7, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(7, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(7, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(8, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(8, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(8, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(9, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(9, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>declare const first_part2Const: firstfirst_part2; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > first_part2Const -5 > = new firstfirst_part2() -6 > ; -1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 9) Source(2, 1) + SourceIndex(1) -3 >Emitted(11, 15) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 31) Source(2, 23) + SourceIndex(1) -5 >Emitted(11, 49) Source(2, 48) + SourceIndex(1) -6 >Emitted(11, 50) Source(2, 49) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(12, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(12, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(12, 30) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare const second_part1Const: secondsecond_part1; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > second_part1Const -5 > = new secondsecond_part1() -6 > ; -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 9) Source(2, 1) + SourceIndex(3) -3 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -4 >Emitted(13, 32) Source(2, 24) + SourceIndex(3) -5 >Emitted(13, 52) Source(2, 51) + SourceIndex(3) -6 >Emitted(13, 53) Source(2, 52) + SourceIndex(3) ---- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > - > -2 >namespace -3 > N -4 > -1 >Emitted(14, 1) Source(3, 1) + SourceIndex(3) -2 >Emitted(14, 19) Source(3, 11) + SourceIndex(3) -3 >Emitted(14, 20) Source(3, 12) + SourceIndex(3) -4 >Emitted(14, 21) Source(3, 13) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(16, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(16, 19) Source(7, 11) + SourceIndex(3) -3 >Emitted(16, 20) Source(7, 12) + SourceIndex(3) -4 >Emitted(16, 21) Source(7, 13) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(17, 2) Source(13, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 15) Source(1, 7) + SourceIndex(4) -3 >Emitted(18, 16) Source(1, 8) + SourceIndex(4) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 16) Source(2, 16) + SourceIndex(4) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(20, 2) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare const third_part1Const: thirdthird_part1; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > third_part1Const -5 > = new thirdthird_part1() -6 > ; -1->Emitted(21, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(21, 9) Source(2, 1) + SourceIndex(5) -3 >Emitted(21, 15) Source(2, 7) + SourceIndex(5) -4 >Emitted(21, 31) Source(2, 23) + SourceIndex(5) -5 >Emitted(21, 49) Source(2, 48) + SourceIndex(5) -6 >Emitted(21, 50) Source(2, 49) + SourceIndex(5) ---- ->>>declare var c: C; -1 > -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1 >Emitted(22, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(22, 9) Source(3, 1) + SourceIndex(5) -3 >Emitted(22, 13) Source(3, 5) + SourceIndex(5) -4 >Emitted(22, 14) Source(3, 6) + SourceIndex(5) -5 >Emitted(22, 17) Source(3, 16) + SourceIndex(5) -6 >Emitted(22, 18) Source(3, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var second_part1Const = new secondsecond_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > second_part1Const -4 > = -5 > new -6 > secondsecond_part1 -7 > () -8 > ; -1->Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(2, 7) + SourceIndex(3) -3 >Emitted(8, 22) Source(2, 24) + SourceIndex(3) -4 >Emitted(8, 25) Source(2, 27) + SourceIndex(3) -5 >Emitted(8, 29) Source(2, 31) + SourceIndex(3) -6 >Emitted(8, 47) Source(2, 49) + SourceIndex(3) -7 >Emitted(8, 49) Source(2, 51) + SourceIndex(3) -8 >Emitted(8, 50) Source(2, 52) + SourceIndex(3) ---- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(7, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(13, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(7, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(7, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(8, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(8, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(9, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(9, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(9, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(9, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(9, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(9, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(9, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(9, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(12, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(12, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(12, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(12, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(7, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(7, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(7, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(7, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(13, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var third_part1Const = new thirdthird_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > third_part1Const -4 > = -5 > new -6 > thirdthird_part1 -7 > () -8 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(2, 7) + SourceIndex(5) -3 >Emitted(24, 21) Source(2, 23) + SourceIndex(5) -4 >Emitted(24, 24) Source(2, 26) + SourceIndex(5) -5 >Emitted(24, 28) Source(2, 30) + SourceIndex(5) -6 >Emitted(24, 44) Source(2, 46) + SourceIndex(5) -7 >Emitted(24, 46) Source(2, 48) + SourceIndex(5) -8 >Emitted(24, 47) Source(2, 49) + SourceIndex(5) ---- ->>>var c = new C(); -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1 > - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1 >Emitted(25, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(25, 5) Source(3, 5) + SourceIndex(5) -3 >Emitted(25, 6) Source(3, 6) + SourceIndex(5) -4 >Emitted(25, 9) Source(3, 9) + SourceIndex(5) -5 >Emitted(25, 13) Source(3, 13) + SourceIndex(5) -6 >Emitted(25, 14) Source(3, 14) + SourceIndex(5) -7 >Emitted(25, 16) Source(3, 16) + SourceIndex(5) -8 >Emitted(25, 17) Source(3, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(26, 1) Source(4, 1) + SourceIndex(5) -2 >Emitted(26, 2) Source(4, 2) + SourceIndex(5) -3 >Emitted(26, 3) Source(4, 3) + SourceIndex(5) -4 >Emitted(26, 14) Source(4, 14) + SourceIndex(5) -5 >Emitted(26, 16) Source(4, 16) + SourceIndex(5) -6 >Emitted(26, 17) Source(4, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 158, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 158, - "kind": "text" - } - ] - }, - { - "pos": 158, - "end": 494, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 158, - "end": 494, - "kind": "text" - } - ] - }, - { - "pos": 494, - "end": 578, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 45, - "kind": "reference", - "data": "../../tripleRef.d.ts" - }, - { - "pos": 47, - "end": 101, - "kind": "reference", - "data": "../../../first/tripleRef.d.ts" - }, - { - "pos": 103, - "end": 158, - "kind": "reference", - "data": "../../../second/tripleRef.d.ts" - }, - { - "pos": 160, - "end": 368, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 160, - "end": 368, - "kind": "text" - } - ] - }, - { - "pos": 368, - "end": 522, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 368, - "end": 522, - "kind": "text" - } - ] - }, - { - "pos": 522, - "end": 592, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-158):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-158) -var s = "Hello, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (158-494):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (158-494) -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (494-578) -var third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -reference: (0-45):: ../../tripleRef.d.ts -/// ----------------------------------------------------------------------- -reference: (47-101):: ../../../first/tripleRef.d.ts -/// ----------------------------------------------------------------------- -reference: (103-158):: ../../../second/tripleRef.d.ts -/// ----------------------------------------------------------------------- -prepend: (160-368):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (160-368) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (368-522):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (368-522) -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (522-592) -declare const third_part1Const: thirdthird_part1; -declare var c: C; - -====================================================================== - -//// [/src/third/third_part1.ts] -/// -const third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); - - -//// [/src/third/tripleRef.d.ts] -declare class thirdthird_part1 { } - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-one-project.js deleted file mode 100644 index 79fbe880295..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/triple-slash-refs-in-one-project.js +++ /dev/null @@ -1,1871 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -/// -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>/// ->>>declare const second_part1Const: secondsecond_part1; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^ -6 > ^ -1 >/// - > -2 > -3 > const -4 > second_part1Const -5 > = new secondsecond_part1() -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) -5 >Emitted(2, 52) Source(2, 51) + SourceIndex(0) -6 >Emitted(2, 53) Source(2, 52) + SourceIndex(0) ---- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > - > -2 >namespace -3 > N -4 > -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(3, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(3, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(3, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(4, 2) Source(5, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 19) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 20) Source(7, 12) + SourceIndex(0) -4 >Emitted(5, 21) Source(7, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(6, 2) Source(13, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(7, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(7, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(7, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(8, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var second_part1Const = new secondsecond_part1(); -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1 >/// - > -2 >const -3 > second_part1Const -4 > = -5 > new -6 > secondsecond_part1 -7 > () -8 > ; -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(1, 22) Source(2, 24) + SourceIndex(0) -4 >Emitted(1, 25) Source(2, 27) + SourceIndex(0) -5 >Emitted(1, 29) Source(2, 31) + SourceIndex(0) -6 >Emitted(1, 47) Source(2, 49) + SourceIndex(0) -7 >Emitted(1, 49) Source(2, 51) + SourceIndex(0) -8 >Emitted(1, 50) Source(2, 52) + SourceIndex(0) ---- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 6) Source(7, 12) + SourceIndex(0) -4 >Emitted(2, 7) Source(13, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(3, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(7, 11) + SourceIndex(0) -3 >Emitted(3, 13) Source(7, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(4, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(4, 14) Source(8, 14) + SourceIndex(0) -3 >Emitted(4, 15) Source(8, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(5, 9) Source(9, 9) + SourceIndex(0) -2 >Emitted(5, 16) Source(9, 16) + SourceIndex(0) -3 >Emitted(5, 17) Source(9, 17) + SourceIndex(0) -4 >Emitted(5, 20) Source(9, 20) + SourceIndex(0) -5 >Emitted(5, 21) Source(9, 21) + SourceIndex(0) -6 >Emitted(5, 30) Source(9, 30) + SourceIndex(0) -7 >Emitted(5, 31) Source(9, 31) + SourceIndex(0) -8 >Emitted(5, 32) Source(9, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(7, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(12, 6) + SourceIndex(0) -3 >Emitted(7, 8) Source(12, 8) + SourceIndex(0) -4 >Emitted(7, 9) Source(12, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(8, 2) Source(13, 2) + SourceIndex(0) -3 >Emitted(8, 4) Source(7, 11) + SourceIndex(0) -4 >Emitted(8, 5) Source(7, 12) + SourceIndex(0) -5 >Emitted(8, 10) Source(7, 11) + SourceIndex(0) -6 >Emitted(8, 11) Source(7, 12) + SourceIndex(0) -7 >Emitted(8, 19) Source(13, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 336, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 49, - "kind": "reference", - "data": "../second/tripleRef.d.ts" - }, - { - "pos": 51, - "end": 205, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-336) -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -reference: (0-49):: ../second/tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (51-205) -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/second/second_part1.ts] -/// -const second_part1Const = new secondsecond_part1(); -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - - -//// [/src/second/tripleRef.d.ts] -declare class secondsecond_part1 { } - -//// [/src/third/thirdjs/output/third-output.d.ts] -/// -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>/// ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(5, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(5, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(5, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare const second_part1Const: secondsecond_part1; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > second_part1Const -5 > = new secondsecond_part1() -6 > ; -1->Emitted(10, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(10, 9) Source(2, 1) + SourceIndex(2) -3 >Emitted(10, 15) Source(2, 7) + SourceIndex(2) -4 >Emitted(10, 32) Source(2, 24) + SourceIndex(2) -5 >Emitted(10, 52) Source(2, 51) + SourceIndex(2) -6 >Emitted(10, 53) Source(2, 52) + SourceIndex(2) ---- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > - > -2 >namespace -3 > N -4 > -1 >Emitted(11, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(3, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(3, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(3, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(12, 2) Source(5, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(13, 1) Source(7, 1) + SourceIndex(2) -2 >Emitted(13, 19) Source(7, 11) + SourceIndex(2) -3 >Emitted(13, 20) Source(7, 12) + SourceIndex(2) -4 >Emitted(13, 21) Source(7, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(14, 2) Source(13, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var second_part1Const = new secondsecond_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > second_part1Const -4 > = -5 > new -6 > secondsecond_part1 -7 > () -8 > ; -1->Emitted(7, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(2, 7) + SourceIndex(3) -3 >Emitted(7, 22) Source(2, 24) + SourceIndex(3) -4 >Emitted(7, 25) Source(2, 27) + SourceIndex(3) -5 >Emitted(7, 29) Source(2, 31) + SourceIndex(3) -6 >Emitted(7, 47) Source(2, 49) + SourceIndex(3) -7 >Emitted(7, 49) Source(2, 51) + SourceIndex(3) -8 >Emitted(7, 50) Source(2, 52) + SourceIndex(3) ---- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(8, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(7, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(7, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(13, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(7, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(7, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(8, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(8, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(9, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(9, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(9, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(9, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(9, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(9, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(9, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(9, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(12, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(12, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(12, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(12, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(13, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(7, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(7, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(7, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(7, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(13, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 446, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 446, - "kind": "text" - } - ] - }, - { - "pos": 446, - "end": 482, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 55, - "kind": "reference", - "data": "../../../second/tripleRef.d.ts" - }, - { - "pos": 57, - "end": 214, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 57, - "end": 214, - "kind": "text" - } - ] - }, - { - "pos": 214, - "end": 368, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 214, - "end": 368, - "kind": "text" - } - ] - }, - { - "pos": 368, - "end": 387, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-446):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-446) -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (446-482) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -reference: (0-55):: ../../../second/tripleRef.d.ts -/// ----------------------------------------------------------------------- -prepend: (57-214):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (57-214) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (214-368):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (214-368) -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (368-387) -declare var c: C; - -====================================================================== - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-incremental.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-incremental.js deleted file mode 100644 index dc62ade0d97..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-incremental.js +++ /dev/null @@ -1,1744 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:00:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:00:00 PM - Building project '/src/first/tsconfig.json'... - -4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:00:00 PM - Building project '/src/second/tsconfig.json'... - -4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:00:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 285, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 100, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-285) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-100) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 395, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 395, - "kind": "text" - } - ] - }, - { - "pos": 395, - "end": 431, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-395):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-395) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (395-431) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "incremental": true, - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-uses-project-references.js deleted file mode 100644 index 655ea2d37bd..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-is-not-composite-but-uses-project-references.js +++ /dev/null @@ -1,1590 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 285, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 100, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-285) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-100) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-specifies-tsBuildInfoFile.js deleted file mode 100644 index 89d143e06b4..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-final-project-specifies-tsBuildInfoFile.js +++ /dev/null @@ -1,1745 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:00:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:00:00 PM - Building project '/src/first/tsconfig.json'... - -4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:00:00 PM - Building project '/src/second/tsconfig.json'... - -4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:00:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 285, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 100, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-285) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-100) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 395, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 395, - "kind": "text" - } - ] - }, - { - "pos": 395, - "end": 431, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-395):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-395) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (395-431) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/tsconfig.json] -{ - "compilerOptions": { - "target": "es5", - "composite": true, - "tsBuildInfoFile": "./thirdjs/output/third.tsbuildinfo", - "removeComments": true, - "strict": false, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "outFile": "./thirdjs/output/third-output.js", - "skipDefaultLibCheck": true - }, - "files": [ - "third_part1.ts" - ], - "references": [ - { "path": "../first", "prepend": true }, - { "path": "../second", "prepend": true }, - ] -} - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-source-files-are-empty-in-the-own-file.js deleted file mode 100644 index 2464f8287d2..00000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/when-source-files-are-empty-in-the-own-file.js +++ /dev/null @@ -1,1624 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist - -4:01:00 PM - Building project '/src/first/tsconfig.json'... - -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist - -4:01:00 PM - Building project '/src/second/tsconfig.json'... - -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist - -4:01:00 PM - Building project '/src/third/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 285, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 100, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-285) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-100) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 395, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 395, - "kind": "text" - } - ] - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - } - ] - } - }, - "version": "FakeTSVersion" -} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-395):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-395) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/third/third_part1.ts] - - diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js deleted file mode 100644 index 12929fe77d3..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js +++ /dev/null @@ -1,366 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/tests --verbose -4:04:00 PM - Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json - -4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' - -4:04:00 PM - Building project '/src/core/tsconfig.json'... - -4:04:00 PM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... - -4:04:00 PM - Project 'src/logic/tsconfig.json' is out of date because oldest output 'src/logic/index.js' is older than newest input 'src/core' - -4:04:00 PM - Building project '/src/logic/tsconfig.json'... - -4:04:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/core' - -4:04:00 PM - Building project '/src/tests/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/core/anotherModule.ts": 1, - "/src/core/index.ts": 1, - "/src/core/some_decl.d.ts": 1, - "/src/core/index.d.ts": 2, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/logic/index.ts": 1, - "/src/core/anotherModule.d.ts": 1, - "/src/logic/index.d.ts": 1, - "/src/tests/tsconfig.tsbuildinfo": 1, - "/src/tests/index.ts": 1, - "/src/tests/index.d.ts": 1 -} - -//// [/src/core/index.d.ts] -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -export declare class someClass { -} -//# sourceMappingURL=index.d.ts.map - -//// [/src/core/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAEhE,qBAAa,SAAS;CAAI"} - -//// [/src/core/index.d.ts.map.baseline.txt] -=================================================================== -JsFile: index.d.ts -mapUrl: index.d.ts.map -sourceRoot: -sources: index.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/core/index.d.ts -sourceFile:index.ts -------------------------------------------------------------------- ->>>export declare const someString: string; -1 > -2 >^^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >export -3 > const -4 > someString -5 > : -6 > string = "HELLO WORLD" -7 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 16) Source(1, 8) + SourceIndex(0) -3 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) -4 >Emitted(1, 32) Source(1, 24) + SourceIndex(0) -5 >Emitted(1, 34) Source(1, 26) + SourceIndex(0) -6 >Emitted(1, 40) Source(1, 48) + SourceIndex(0) -7 >Emitted(1, 41) Source(1, 49) + SourceIndex(0) ---- ->>>export declare function leftPad(s: string, n: number): string; -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^^^^^ -12> ^^^^^^^^^^ -13> ^^-> -1-> - > -2 >export function -3 > leftPad -4 > ( -5 > s -6 > : -7 > string -8 > , -9 > n -10> : -11> number -12> ) { return s + n; } -1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 25) Source(2, 17) + SourceIndex(0) -3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) -4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) -5 >Emitted(2, 34) Source(2, 26) + SourceIndex(0) -6 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) -7 >Emitted(2, 42) Source(2, 34) + SourceIndex(0) -8 >Emitted(2, 44) Source(2, 36) + SourceIndex(0) -9 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) -10>Emitted(2, 47) Source(2, 39) + SourceIndex(0) -11>Emitted(2, 53) Source(2, 45) + SourceIndex(0) -12>Emitted(2, 63) Source(2, 64) + SourceIndex(0) ---- ->>>export declare function multiply(a: number, b: number): number; -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^ -4 > ^ -5 > ^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^^^^^ -12> ^^^^^^^^^^ -1-> - > -2 >export function -3 > multiply -4 > ( -5 > a -6 > : -7 > number -8 > , -9 > b -10> : -11> number -12> ) { return a * b; } -1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 25) Source(3, 17) + SourceIndex(0) -3 >Emitted(3, 33) Source(3, 25) + SourceIndex(0) -4 >Emitted(3, 34) Source(3, 26) + SourceIndex(0) -5 >Emitted(3, 35) Source(3, 27) + SourceIndex(0) -6 >Emitted(3, 37) Source(3, 29) + SourceIndex(0) -7 >Emitted(3, 43) Source(3, 35) + SourceIndex(0) -8 >Emitted(3, 45) Source(3, 37) + SourceIndex(0) -9 >Emitted(3, 46) Source(3, 38) + SourceIndex(0) -10>Emitted(3, 48) Source(3, 40) + SourceIndex(0) -11>Emitted(3, 54) Source(3, 46) + SourceIndex(0) -12>Emitted(3, 64) Source(3, 65) + SourceIndex(0) ---- ->>>export declare class someClass { -1 > -2 >^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > - > - > -2 >export class -3 > someClass -1 >Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 22) Source(5, 14) + SourceIndex(0) -3 >Emitted(4, 31) Source(5, 23) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(5, 2) Source(5, 27) + SourceIndex(0) ---- ->>>//# sourceMappingURL=index.d.ts.map - -//// [/src/core/index.js] -"use strict"; -exports.__esModule = true; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -exports.leftPad = leftPad; -function multiply(a, b) { return a * b; } -exports.multiply = multiply; -var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; -}()); -exports.someClass = someClass; - - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -export class someClass { } - -//// [/src/core/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", - "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/logic/index.d.ts] file written with same contents -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/index.js.map.baseline.txt] file written with same contents -//// [/src/logic/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts" - ] - }, - "exportedModulesMap": { - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/tests/index.d.ts] file written with same contents -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "../logic/index.ts": { - "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - }, - "./index.ts": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts", - "../logic/index.d.ts" - ] - }, - "exportedModulesMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js deleted file mode 100644 index d46e6bf0f86..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js +++ /dev/null @@ -1,71 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/core --verbose -4:04:00 PM - Projects in this build: - * src/core/tsconfig.json - -4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.d.ts' does not exist - -4:04:00 PM - Building project '/src/core/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/core/anotherModule.d.ts] -export declare const World = "hello"; - - -//// [/src/core/anotherModule.js] file written with same contents -//// [/src/core/index.d.ts] -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; - - -//// [/src/core/index.js] file written with same contents -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "incremental": true, "declaration": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/core/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" - }, - "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n" - } - }, - "options": { - "incremental": true, - "declaration": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js deleted file mode 100644 index 2bdd1aa6219..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js +++ /dev/null @@ -1,115 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/tests --verbose -4:04:00 PM - Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json - -4:04:00 PM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' - -4:04:00 PM - Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than oldest output 'src/logic/index.js' - -4:04:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/tests/tsconfig.json' - -4:04:00 PM - Building project '/src/tests/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/tests/index.d.ts] file written with same contents -//// [/src/tests/index.js] -"use strict"; -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; -}; -exports.__esModule = true; -var c = __importStar(require("../core/index")); -var logic = __importStar(require("../logic/index")); -c.leftPad("", 10); -logic.getSecondsInDay(); -var mod = __importStar(require("../core/anotherModule")); -exports.m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "esModuleInterop": true - } -} - -//// [/src/tests/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "../logic/index.ts": { - "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - }, - "./index.ts": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "esModuleInterop": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts", - "../logic/index.d.ts" - ] - }, - "exportedModulesMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js deleted file mode 100644 index ba39ab2202f..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js +++ /dev/null @@ -1,172 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/tests --verbose -4:12:00 PM - Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json - -4:12:00 PM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' - -4:12:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/decls/index.d.ts' does not exist - -4:12:00 PM - Building project '/src/logic/tsconfig.json'... - -4:12:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/logic' - -4:12:00 PM - Building project '/src/tests/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/logic/index.ts": 1, - "/src/core/index.d.ts": 1, - "/src/core/anotherModule.d.ts": 1, - "/src/tests/tsconfig.tsbuildinfo": 1, - "/src/tests/index.ts": 1, - "/src/logic/decls/index.d.ts": 1, - "/src/tests/index.d.ts": 1 -} - -//// [/src/logic/decls/index.d.ts] -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - - -//// [/src/logic/index.js] file written with same contents -//// [/src/logic/index.js.map] file written with same contents -//// [/src/logic/index.js.map.baseline.txt] file written with same contents -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - "declarationDir": "decls", - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/src/logic/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "declarationDir": "./decls", - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts" - ] - }, - "exportedModulesMap": { - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/tests/index.d.ts] file written with same contents -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "../logic/index.ts": { - "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - }, - "./index.ts": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts", - "../logic/decls/index.d.ts" - ] - }, - "exportedModulesMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js deleted file mode 100644 index 5fa1cac3e7e..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js +++ /dev/null @@ -1,78 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/core --verbose -4:04:00 PM - Projects in this build: - * src/core/tsconfig.json - -4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' - -4:04:00 PM - Building project '/src/core/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/core/anotherModule.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.World = "hello"; -}); - - -//// [/src/core/index.js] -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.__esModule = true; - exports.someString = "HELLO WORLD"; - function leftPad(s, n) { return s + n; } - exports.leftPad = leftPad; - function multiply(a, b) { return a * b; } - exports.multiply = multiply; -}); - - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "incremental": true, - "module": "amd" - } -} - -//// [/src/core/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" - }, - "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n" - } - }, - "options": { - "incremental": true, - "module": 2, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js deleted file mode 100644 index b8e3134eb7f..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js +++ /dev/null @@ -1,91 +0,0 @@ -//// [/lib/incremental-declaration-changesOutput.txt] -/lib/tsc --b /src/core --verbose -4:04:00 PM - Projects in this build: - * src/core/tsconfig.json - -4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' - -4:04:00 PM - Building project '/src/core/tsconfig.json'... - -TSFILE: /src/core/anotherModule.js -TSFILE: /src/core/index.js -TSFILE: /src/core/tsconfig.tsbuildinfo -/lib/lib.d.ts -/lib/lib.esnext.d.ts -/src/core/anotherModule.ts -/src/core/index.ts -/src/core/some_decl.d.ts -exitCode:: 0 - - -//// [/src/core/anotherModule.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.World = "hello"; - - -//// [/src/core/index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -exports.leftPad = leftPad; -function multiply(a, b) { return a * b; } -exports.multiply = multiply; - - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "incremental": true, -"listFiles": true, -"listEmittedFiles": true, - "target": "es5", - } -} - -//// [/src/core/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "8926001564-/// \n/// ", - "signature": "8926001564-/// \n/// " - }, - "../../lib/lib.esnext.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" - }, - "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n" - } - }, - "options": { - "incremental": true, - "listFiles": true, - "listEmittedFiles": true, - "target": 1, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../../lib/lib.esnext.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js deleted file mode 100644 index 09055358c26..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js +++ /dev/null @@ -1,100 +0,0 @@ -//// [/lib/incremental-declaration-doesnt-changeOutput.txt] -/lib/tsc --b /src/tests --verbose -4:08:00 PM - Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json - -4:08:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' - -4:08:00 PM - Building project '/src/core/tsconfig.json'... - -4:08:00 PM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... - -4:08:00 PM - Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies - -4:08:00 PM - Updating output timestamps of project '/src/logic/tsconfig.json'... - -4:08:00 PM - Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies - -4:08:00 PM - Updating output timestamps of project '/src/tests/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/core/anotherModule.ts": 1, - "/src/core/index.ts": 1, - "/src/core/some_decl.d.ts": 1, - "/src/core/index.d.ts": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/tests/tsconfig.tsbuildinfo": 1 -} - -//// [/src/core/index.d.ts] file written with same contents -//// [/src/core/index.d.ts.map] file written with same contents -//// [/src/core/index.d.ts.map.baseline.txt] file written with same contents -//// [/src/core/index.js] -"use strict"; -exports.__esModule = true; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -exports.leftPad = leftPad; -function multiply(a, b) { return a * b; } -exports.multiply = multiply; -var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; -}()); - - -//// [/src/core/index.ts] -export const someString: string = "HELLO WORLD"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - -class someClass { } - -//// [/src/core/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-16698397488-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nclass someClass { }", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/sample.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/sample.js deleted file mode 100644 index 6dce93cacfd..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/sample.js +++ /dev/null @@ -1,531 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/tests --verbose -4:01:00 PM - Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json - -4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist - -4:01:00 PM - Building project '/src/core/tsconfig.json'... - -4:01:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist - -4:01:00 PM - Building project '/src/logic/tsconfig.json'... - -4:01:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist - -4:01:00 PM - Building project '/src/tests/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/core/anotherModule.ts": 1, - "/src/core/index.ts": 1, - "/src/core/some_decl.d.ts": 1, - "/src/logic/tsconfig.tsbuildinfo": 1, - "/src/logic/index.ts": 1, - "/src/core/index.d.ts": 1, - "/src/core/anotherModule.d.ts": 1, - "/src/tests/tsconfig.tsbuildinfo": 1, - "/src/tests/index.ts": 1, - "/src/logic/index.d.ts": 1 -} - -//// [/src/core/anotherModule.d.ts] -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map - -//// [/src/core/anotherModule.d.ts.map] -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} - -//// [/src/core/anotherModule.d.ts.map.baseline.txt] -=================================================================== -JsFile: anotherModule.d.ts -mapUrl: anotherModule.d.ts.map -sourceRoot: -sources: anotherModule.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/core/anotherModule.d.ts -sourceFile:anotherModule.ts -------------------------------------------------------------------- ->>>export declare const World = "hello"; -1 > -2 >^^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -7 > ^^^^^-> -1 > -2 >export -3 > const -4 > World -5 > = "hello" -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 16) Source(1, 8) + SourceIndex(0) -3 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) -4 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) -5 >Emitted(1, 37) Source(1, 29) + SourceIndex(0) -6 >Emitted(1, 38) Source(1, 30) + SourceIndex(0) ---- ->>>//# sourceMappingURL=anotherModule.d.ts.map - -//// [/src/core/anotherModule.js] -"use strict"; -exports.__esModule = true; -exports.World = "hello"; - - -//// [/src/core/index.d.ts] -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map - -//// [/src/core/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} - -//// [/src/core/index.d.ts.map.baseline.txt] -=================================================================== -JsFile: index.d.ts -mapUrl: index.d.ts.map -sourceRoot: -sources: index.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/core/index.d.ts -sourceFile:index.ts -------------------------------------------------------------------- ->>>export declare const someString: string; -1 > -2 >^^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >export -3 > const -4 > someString -5 > : -6 > string = "HELLO WORLD" -7 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 16) Source(1, 8) + SourceIndex(0) -3 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) -4 >Emitted(1, 32) Source(1, 24) + SourceIndex(0) -5 >Emitted(1, 34) Source(1, 26) + SourceIndex(0) -6 >Emitted(1, 40) Source(1, 48) + SourceIndex(0) -7 >Emitted(1, 41) Source(1, 49) + SourceIndex(0) ---- ->>>export declare function leftPad(s: string, n: number): string; -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^^^^^ -12> ^^^^^^^^^^ -13> ^^-> -1-> - > -2 >export function -3 > leftPad -4 > ( -5 > s -6 > : -7 > string -8 > , -9 > n -10> : -11> number -12> ) { return s + n; } -1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 25) Source(2, 17) + SourceIndex(0) -3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) -4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) -5 >Emitted(2, 34) Source(2, 26) + SourceIndex(0) -6 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) -7 >Emitted(2, 42) Source(2, 34) + SourceIndex(0) -8 >Emitted(2, 44) Source(2, 36) + SourceIndex(0) -9 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) -10>Emitted(2, 47) Source(2, 39) + SourceIndex(0) -11>Emitted(2, 53) Source(2, 45) + SourceIndex(0) -12>Emitted(2, 63) Source(2, 64) + SourceIndex(0) ---- ->>>export declare function multiply(a: number, b: number): number; -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^ -4 > ^ -5 > ^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^^^^^ -12> ^^^^^^^^^^ -1-> - > -2 >export function -3 > multiply -4 > ( -5 > a -6 > : -7 > number -8 > , -9 > b -10> : -11> number -12> ) { return a * b; } -1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 25) Source(3, 17) + SourceIndex(0) -3 >Emitted(3, 33) Source(3, 25) + SourceIndex(0) -4 >Emitted(3, 34) Source(3, 26) + SourceIndex(0) -5 >Emitted(3, 35) Source(3, 27) + SourceIndex(0) -6 >Emitted(3, 37) Source(3, 29) + SourceIndex(0) -7 >Emitted(3, 43) Source(3, 35) + SourceIndex(0) -8 >Emitted(3, 45) Source(3, 37) + SourceIndex(0) -9 >Emitted(3, 46) Source(3, 38) + SourceIndex(0) -10>Emitted(3, 48) Source(3, 40) + SourceIndex(0) -11>Emitted(3, 54) Source(3, 46) + SourceIndex(0) -12>Emitted(3, 64) Source(3, 65) + SourceIndex(0) ---- ->>>//# sourceMappingURL=index.d.ts.map - -//// [/src/core/index.js] -"use strict"; -exports.__esModule = true; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -exports.leftPad = leftPad; -function multiply(a, b) { return a * b; } -exports.multiply = multiply; - - -//// [/src/core/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/logic/index.d.ts] -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - - -//// [/src/logic/index.js] -"use strict"; -exports.__esModule = true; -var c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -exports.getSecondsInDay = getSecondsInDay; -var mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map - -//// [/src/logic/index.js.map] -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} - -//// [/src/logic/index.js.map.baseline.txt] -=================================================================== -JsFile: index.js -mapUrl: index.js.map -sourceRoot: -sources: index.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/logic/index.js -sourceFile:index.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>exports.__esModule = true; ->>>var c = require("../core/index"); -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 >import * as c from '../core/index'; -1 >Emitted(3, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(3, 34) Source(1, 36) + SourceIndex(0) ---- ->>>function getSecondsInDay() { -1 > -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > -2 >export function -3 > getSecondsInDay -1 >Emitted(4, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(4, 10) Source(2, 17) + SourceIndex(0) -3 >Emitted(4, 25) Source(2, 32) + SourceIndex(0) ---- ->>> return c.multiply(10, 15); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^ -6 > ^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^ -1->() { - > -2 > return -3 > c -4 > . -5 > multiply -6 > ( -7 > 10 -8 > , -9 > 15 -10> ) -11> ; -1->Emitted(5, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(5, 12) Source(3, 12) + SourceIndex(0) -3 >Emitted(5, 13) Source(3, 13) + SourceIndex(0) -4 >Emitted(5, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(5, 22) Source(3, 22) + SourceIndex(0) -6 >Emitted(5, 23) Source(3, 23) + SourceIndex(0) -7 >Emitted(5, 25) Source(3, 25) + SourceIndex(0) -8 >Emitted(5, 27) Source(3, 27) + SourceIndex(0) -9 >Emitted(5, 29) Source(3, 29) + SourceIndex(0) -10>Emitted(5, 30) Source(3, 30) + SourceIndex(0) -11>Emitted(5, 31) Source(3, 31) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) ---- ->>>exports.getSecondsInDay = getSecondsInDay; -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^-> -1-> -2 >export function getSecondsInDay() { - > return c.multiply(10, 15); - >} -1->Emitted(7, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(7, 43) Source(4, 2) + SourceIndex(0) ---- ->>>var mod = require("../core/anotherModule"); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >import * as mod from '../core/anotherModule'; -1->Emitted(8, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(8, 44) Source(5, 46) + SourceIndex(0) ---- ->>>exports.m = mod; -1 > -2 >^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^-> -1 > - >export const -2 > -3 > m -4 > = -5 > mod -6 > ; -1 >Emitted(9, 1) Source(6, 14) + SourceIndex(0) -2 >Emitted(9, 9) Source(6, 14) + SourceIndex(0) -3 >Emitted(9, 10) Source(6, 15) + SourceIndex(0) -4 >Emitted(9, 13) Source(6, 18) + SourceIndex(0) -5 >Emitted(9, 16) Source(6, 21) + SourceIndex(0) -6 >Emitted(9, 17) Source(6, 22) + SourceIndex(0) ---- ->>>//# sourceMappingURL=index.js.map - -//// [/src/logic/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts" - ] - }, - "exportedModulesMap": { - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/tests/index.d.ts] -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - - -//// [/src/tests/index.js] -"use strict"; -exports.__esModule = true; -var c = require("../core/index"); -var logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -var mod = require("../core/anotherModule"); -exports.m = mod; - - -//// [/src/tests/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "../logic/index.ts": { - "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - }, - "./index.ts": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts", - "../logic/index.d.ts" - ] - }, - "exportedModulesMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-declaration-option-changes.js deleted file mode 100644 index 5e1f8e0cab2..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-declaration-option-changes.js +++ /dev/null @@ -1,74 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/core --verbose -4:01:00 PM - Projects in this build: - * src/core/tsconfig.json - -4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist - -4:01:00 PM - Building project '/src/core/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/core/anotherModule.js] -"use strict"; -exports.__esModule = true; -exports.World = "hello"; - - -//// [/src/core/index.js] -"use strict"; -exports.__esModule = true; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -exports.leftPad = leftPad; -function multiply(a, b) { return a * b; } -exports.multiply = multiply; - - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "incremental": true, - "skipDefaultLibCheck": true - } -} - -//// [/src/core/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" - }, - "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n" - } - }, - "options": { - "incremental": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-esModuleInterop-option-changes.js deleted file mode 100644 index 74b9a998ff1..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-esModuleInterop-option-changes.js +++ /dev/null @@ -1,259 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/tests --verbose -4:01:00 PM - Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json - -4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist - -4:01:00 PM - Building project '/src/core/tsconfig.json'... - -4:01:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist - -4:01:00 PM - Building project '/src/logic/tsconfig.json'... - -4:01:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist - -4:01:00 PM - Building project '/src/tests/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/core/anotherModule.d.ts] -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map - -//// [/src/core/anotherModule.d.ts.map] -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} - -//// [/src/core/anotherModule.js] -"use strict"; -exports.__esModule = true; -exports.World = "hello"; - - -//// [/src/core/index.d.ts] -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map - -//// [/src/core/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} - -//// [/src/core/index.js] -"use strict"; -exports.__esModule = true; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -exports.leftPad = leftPad; -function multiply(a, b) { return a * b; } -exports.multiply = multiply; - - -//// [/src/core/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/logic/index.d.ts] -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - - -//// [/src/logic/index.js] -"use strict"; -exports.__esModule = true; -var c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -exports.getSecondsInDay = getSecondsInDay; -var mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map - -//// [/src/logic/index.js.map] -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} - -//// [/src/logic/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts" - ] - }, - "exportedModulesMap": { - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/tests/index.d.ts] -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - - -//// [/src/tests/index.js] -"use strict"; -exports.__esModule = true; -var c = require("../core/index"); -var logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -var mod = require("../core/anotherModule"); -exports.m = mod; - - -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "esModuleInterop": false - } -} - -//// [/src/tests/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "../logic/index.ts": { - "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - }, - "./index.ts": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "esModuleInterop": false, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts", - "../logic/index.d.ts" - ] - }, - "exportedModulesMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-specifies-tsBuildInfoFile.js deleted file mode 100644 index 480116121fc..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-logic-specifies-tsBuildInfoFile.js +++ /dev/null @@ -1,548 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/tests --verbose -4:00:00 PM - Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json - -4:00:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist - -4:00:00 PM - Building project '/src/core/tsconfig.json'... - -4:00:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist - -4:00:00 PM - Building project '/src/logic/tsconfig.json'... - -4:00:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist - -4:00:00 PM - Building project '/src/tests/tsconfig.json'... - -exitCode:: 0 -readFiles:: { - "/src/tests/tsconfig.json": 1, - "/src/core/tsconfig.json": 1, - "/src/logic/tsconfig.json": 1, - "/src/core/tsconfig.tsbuildinfo": 1, - "/src/core/anotherModule.ts": 1, - "/src/core/index.ts": 1, - "/src/core/some_decl.d.ts": 1, - "/src/logic/ownFile.tsbuildinfo": 1, - "/src/logic/index.ts": 1, - "/src/core/index.d.ts": 1, - "/src/core/anotherModule.d.ts": 1, - "/src/tests/tsconfig.tsbuildinfo": 1, - "/src/tests/index.ts": 1, - "/src/logic/index.d.ts": 1 -} - -//// [/src/core/anotherModule.d.ts] -export declare const World = "hello"; -//# sourceMappingURL=anotherModule.d.ts.map - -//// [/src/core/anotherModule.d.ts.map] -{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} - -//// [/src/core/anotherModule.d.ts.map.baseline.txt] -=================================================================== -JsFile: anotherModule.d.ts -mapUrl: anotherModule.d.ts.map -sourceRoot: -sources: anotherModule.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/core/anotherModule.d.ts -sourceFile:anotherModule.ts -------------------------------------------------------------------- ->>>export declare const World = "hello"; -1 > -2 >^^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -7 > ^^^^^-> -1 > -2 >export -3 > const -4 > World -5 > = "hello" -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 16) Source(1, 8) + SourceIndex(0) -3 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) -4 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) -5 >Emitted(1, 37) Source(1, 29) + SourceIndex(0) -6 >Emitted(1, 38) Source(1, 30) + SourceIndex(0) ---- ->>>//# sourceMappingURL=anotherModule.d.ts.map - -//// [/src/core/anotherModule.js] -"use strict"; -exports.__esModule = true; -exports.World = "hello"; - - -//// [/src/core/index.d.ts] -export declare const someString: string; -export declare function leftPad(s: string, n: number): string; -export declare function multiply(a: number, b: number): number; -//# sourceMappingURL=index.d.ts.map - -//// [/src/core/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} - -//// [/src/core/index.d.ts.map.baseline.txt] -=================================================================== -JsFile: index.d.ts -mapUrl: index.d.ts.map -sourceRoot: -sources: index.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/core/index.d.ts -sourceFile:index.ts -------------------------------------------------------------------- ->>>export declare const someString: string; -1 > -2 >^^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >export -3 > const -4 > someString -5 > : -6 > string = "HELLO WORLD" -7 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 16) Source(1, 8) + SourceIndex(0) -3 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) -4 >Emitted(1, 32) Source(1, 24) + SourceIndex(0) -5 >Emitted(1, 34) Source(1, 26) + SourceIndex(0) -6 >Emitted(1, 40) Source(1, 48) + SourceIndex(0) -7 >Emitted(1, 41) Source(1, 49) + SourceIndex(0) ---- ->>>export declare function leftPad(s: string, n: number): string; -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^^^^^ -12> ^^^^^^^^^^ -13> ^^-> -1-> - > -2 >export function -3 > leftPad -4 > ( -5 > s -6 > : -7 > string -8 > , -9 > n -10> : -11> number -12> ) { return s + n; } -1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 25) Source(2, 17) + SourceIndex(0) -3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) -4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) -5 >Emitted(2, 34) Source(2, 26) + SourceIndex(0) -6 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) -7 >Emitted(2, 42) Source(2, 34) + SourceIndex(0) -8 >Emitted(2, 44) Source(2, 36) + SourceIndex(0) -9 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) -10>Emitted(2, 47) Source(2, 39) + SourceIndex(0) -11>Emitted(2, 53) Source(2, 45) + SourceIndex(0) -12>Emitted(2, 63) Source(2, 64) + SourceIndex(0) ---- ->>>export declare function multiply(a: number, b: number): number; -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^ -4 > ^ -5 > ^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^^^^^ -12> ^^^^^^^^^^ -1-> - > -2 >export function -3 > multiply -4 > ( -5 > a -6 > : -7 > number -8 > , -9 > b -10> : -11> number -12> ) { return a * b; } -1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 25) Source(3, 17) + SourceIndex(0) -3 >Emitted(3, 33) Source(3, 25) + SourceIndex(0) -4 >Emitted(3, 34) Source(3, 26) + SourceIndex(0) -5 >Emitted(3, 35) Source(3, 27) + SourceIndex(0) -6 >Emitted(3, 37) Source(3, 29) + SourceIndex(0) -7 >Emitted(3, 43) Source(3, 35) + SourceIndex(0) -8 >Emitted(3, 45) Source(3, 37) + SourceIndex(0) -9 >Emitted(3, 46) Source(3, 38) + SourceIndex(0) -10>Emitted(3, 48) Source(3, 40) + SourceIndex(0) -11>Emitted(3, 54) Source(3, 46) + SourceIndex(0) -12>Emitted(3, 64) Source(3, 65) + SourceIndex(0) ---- ->>>//# sourceMappingURL=index.d.ts.map - -//// [/src/core/index.js] -"use strict"; -exports.__esModule = true; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -exports.leftPad = leftPad; -function multiply(a, b) { return a * b; } -exports.multiply = multiply; - - -//// [/src/core/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/logic/index.d.ts] -export declare function getSecondsInDay(): number; -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - - -//// [/src/logic/index.js] -"use strict"; -exports.__esModule = true; -var c = require("../core/index"); -function getSecondsInDay() { - return c.multiply(10, 15); -} -exports.getSecondsInDay = getSecondsInDay; -var mod = require("../core/anotherModule"); -exports.m = mod; -//# sourceMappingURL=index.js.map - -//// [/src/logic/index.js.map] -{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} - -//// [/src/logic/index.js.map.baseline.txt] -=================================================================== -JsFile: index.js -mapUrl: index.js.map -sourceRoot: -sources: index.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/logic/index.js -sourceFile:index.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>exports.__esModule = true; ->>>var c = require("../core/index"); -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 >import * as c from '../core/index'; -1 >Emitted(3, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(3, 34) Source(1, 36) + SourceIndex(0) ---- ->>>function getSecondsInDay() { -1 > -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > -2 >export function -3 > getSecondsInDay -1 >Emitted(4, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(4, 10) Source(2, 17) + SourceIndex(0) -3 >Emitted(4, 25) Source(2, 32) + SourceIndex(0) ---- ->>> return c.multiply(10, 15); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^ -6 > ^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^ -1->() { - > -2 > return -3 > c -4 > . -5 > multiply -6 > ( -7 > 10 -8 > , -9 > 15 -10> ) -11> ; -1->Emitted(5, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(5, 12) Source(3, 12) + SourceIndex(0) -3 >Emitted(5, 13) Source(3, 13) + SourceIndex(0) -4 >Emitted(5, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(5, 22) Source(3, 22) + SourceIndex(0) -6 >Emitted(5, 23) Source(3, 23) + SourceIndex(0) -7 >Emitted(5, 25) Source(3, 25) + SourceIndex(0) -8 >Emitted(5, 27) Source(3, 27) + SourceIndex(0) -9 >Emitted(5, 29) Source(3, 29) + SourceIndex(0) -10>Emitted(5, 30) Source(3, 30) + SourceIndex(0) -11>Emitted(5, 31) Source(3, 31) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) ---- ->>>exports.getSecondsInDay = getSecondsInDay; -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^-> -1-> -2 >export function getSecondsInDay() { - > return c.multiply(10, 15); - >} -1->Emitted(7, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(7, 43) Source(4, 2) + SourceIndex(0) ---- ->>>var mod = require("../core/anotherModule"); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >import * as mod from '../core/anotherModule'; -1->Emitted(8, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(8, 44) Source(5, 46) + SourceIndex(0) ---- ->>>exports.m = mod; -1 > -2 >^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^-> -1 > - >export const -2 > -3 > m -4 > = -5 > mod -6 > ; -1 >Emitted(9, 1) Source(6, 14) + SourceIndex(0) -2 >Emitted(9, 9) Source(6, 14) + SourceIndex(0) -3 >Emitted(9, 10) Source(6, 15) + SourceIndex(0) -4 >Emitted(9, 13) Source(6, 18) + SourceIndex(0) -5 >Emitted(9, 16) Source(6, 21) + SourceIndex(0) -6 >Emitted(9, 17) Source(6, 22) + SourceIndex(0) ---- ->>>//# sourceMappingURL=index.js.map - -//// [/src/logic/ownFile.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "./index.ts": { - "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "tsBuildInfoFile": "./ownFile.tsbuildinfo", - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts" - ] - }, - "exportedModulesMap": { - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - -//// [/src/logic/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "tsBuildInfoFile": "ownFile.tsbuildinfo", - "declaration": true, - "sourceMap": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - }, - "references": [ - { "path": "../core" } - ] -} - - -//// [/src/tests/index.d.ts] -import * as mod from '../core/anotherModule'; -export declare const m: typeof mod; - - -//// [/src/tests/index.js] -"use strict"; -exports.__esModule = true; -var c = require("../core/index"); -var logic = require("../logic/index"); -c.leftPad("", 10); -logic.getSecondsInDay(); -var mod = require("../core/anotherModule"); -exports.m = mod; - - -//// [/src/tests/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../core/index.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "../logic/index.ts": { - "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - }, - "./index.ts": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts", - "../core/index.d.ts", - "../logic/index.d.ts" - ] - }, - "exportedModulesMap": { - "../logic/index.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/anothermodule.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-module-option-changes.js deleted file mode 100644 index 7d38706c85e..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-module-option-changes.js +++ /dev/null @@ -1,74 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/core --verbose -4:01:00 PM - Projects in this build: - * src/core/tsconfig.json - -4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist - -4:01:00 PM - Building project '/src/core/tsconfig.json'... - -exitCode:: 0 - - -//// [/src/core/anotherModule.js] -"use strict"; -exports.__esModule = true; -exports.World = "hello"; - - -//// [/src/core/index.js] -"use strict"; -exports.__esModule = true; -exports.someString = "HELLO WORLD"; -function leftPad(s, n) { return s + n; } -exports.leftPad = leftPad; -function multiply(a, b) { return a * b; } -exports.multiply = multiply; - - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "incremental": true, - "module": "commonjs" - } -} - -//// [/src/core/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" - }, - "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n" - } - }, - "options": { - "incremental": true, - "module": 1, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion" -} - diff --git a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-Build/when-target-option-changes.js deleted file mode 100644 index b9370cc5639..00000000000 --- a/tests/baselines/reference/tsbuild/sample1/initial-Build/when-target-option-changes.js +++ /dev/null @@ -1,108 +0,0 @@ -//// [/lib/initial-buildOutput.txt] -/lib/tsc --b /src/core --verbose -4:01:00 PM - Projects in this build: - * src/core/tsconfig.json - -4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist - -4:01:00 PM - Building project '/src/core/tsconfig.json'... - -TSFILE: /src/core/anotherModule.js -TSFILE: /src/core/index.js -TSFILE: /src/core/tsconfig.tsbuildinfo -/lib/lib.esnext.d.ts -/lib/lib.esnext.full.d.ts -/src/core/anotherModule.ts -/src/core/index.ts -/src/core/some_decl.d.ts -exitCode:: 0 - - -//// [/lib/lib.d.ts] -/// -/// - -//// [/lib/lib.esnext.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/lib/lib.esnext.full.d.ts] -/// -/// - -//// [/src/core/anotherModule.js] -export const World = "hello"; - - -//// [/src/core/index.js] -export const someString = "HELLO WORLD"; -export function leftPad(s, n) { return s + n; } -export function multiply(a, b) { return a * b; } - - -//// [/src/core/tsconfig.json] -{ - "compilerOptions": { - "incremental": true, -"listFiles": true, -"listEmittedFiles": true, - "target": "esnext", - } -} - -//// [/src/core/tsconfig.tsbuildinfo] -{ - "program": { - "fileInfos": { - "../../lib/lib.esnext.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - }, - "../../lib/lib.esnext.full.d.ts": { - "version": "8926001564-/// \n/// ", - "signature": "8926001564-/// \n/// " - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-8396256275-export declare const World = \"hello\";\r\n" - }, - "./index.ts": { - "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n" - } - }, - "options": { - "incremental": true, - "listFiles": true, - "listEmittedFiles": true, - "target": 99, - "configFilePath": "./tsconfig.json" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.esnext.d.ts", - "../../lib/lib.esnext.full.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion" -} - From 220ee81012a789a459fbf7820e04133d7ac0d3a0 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 24 Sep 2019 13:55:17 -0700 Subject: [PATCH 154/159] Accept the baselines --- .../modules-and-globals-mixed-in-amd.js | 584 ++ .../multiple-emitHelpers-in-all-projects.js | 1332 ++++ .../multiple-prologues-in-all-projects.js | 857 +++ .../shebang-in-all-projects.js | 594 ++ .../stripInternal.js | 3776 +++++++++++ .../triple-slash-refs-in-all-projects.js | 734 ++ .../multiple-emitHelpers-in-all-projects.js | 1160 ++++ .../multiple-prologues-in-all-projects.js | 1129 ++++ .../stripInternal.js | 4651 +++++++++++++ .../modules-and-globals-mixed-in-amd.js | 835 +++ .../multiple-emitHelpers-in-all-projects.js | 1731 +++++ .../multiple-prologues-in-all-projects.js | 1169 ++++ .../initial-build/shebang-in-all-projects.js | 866 +++ .../initial-build/stripInternal.js | 4727 +++++++++++++ .../triple-slash-refs-in-all-projects.js | 1076 +++ ...e-resolution-finds-original-source-file.js | 856 +++ ...-emitDeclarationOnly-and-declarationMap.js | 121 + ...import-project-with-emitDeclarationOnly.js | 114 + ...mports-project-with-emitDeclarationOnly.js | 100 + ...mports-project-with-emitDeclarationOnly.js | 90 + ...-emitDeclarationOnly-and-declarationMap.js | 135 + ...import-project-with-emitDeclarationOnly.js | 144 + ...mports-project-with-emitDeclarationOnly.js | 116 + ...-transitive-module-with-isolatedModules.js | 110 + .../inferred-type-from-transitive-module.js | 110 + ...hange-in-signature-with-isolatedModules.js | 24 + ...-transitive-module-with-isolatedModules.js | 155 + .../inferred-type-from-transitive-module.js | 144 + ...hange-in-signature-with-isolatedModules.js | 163 + ...s-merged-and-contains-late-bound-member.js | 79 + ...s-merged-and-contains-late-bound-member.js | 70 + ...zed-module-specifiers-resolve-correctly.js | 192 + .../baseline-sectioned-sourcemaps.js | 1301 ++++ .../emitHelpers-in-all-projects.js | 1700 +++++ .../multiple-prologues-in-all-projects.js | 1501 +++++ .../shebang-in-all-projects.js | 1320 ++++ .../strict-in-all-projects.js | 1361 ++++ ...en-one-two-three-are-prepended-in-order.js | 5505 +++++++++++++++ .../stripInternal.js | 2697 ++++++++ .../triple-slash-refs-in-all-projects.js | 1571 +++++ .../baseline-sectioned-sourcemaps.js | 961 +++ .../emitHelpers-in-all-projects.js | 1281 ++++ ...tHelpers-in-only-one-dependency-project.js | 1077 +++ .../multiple-emitHelpers-in-all-projects.js | 1856 ++++++ ...tiple-emitHelpers-in-different-projects.js | 1389 ++++ .../multiple-prologues-in-all-projects.js | 1155 ++++ ...ultiple-prologues-in-different-projects.js | 1053 +++ .../shebang-in-all-projects.js | 972 +++ .../shebang-in-only-one-dependency-project.js | 942 +++ .../strict-in-all-projects.js | 1021 +++ .../strict-in-one-dependency.js | 950 +++ ...en-one-two-three-are-prepended-in-order.js | 4307 ++++++++++++ .../stripInternal-jsdoc-style-comment.js | 2313 +++++++ ...en-one-two-three-are-prepended-in-order.js | 4507 +++++++++++++ ...-jsdoc-style-with-comments-emit-enabled.js | 2413 +++++++ ...en-one-two-three-are-prepended-in-order.js | 4329 ++++++++++++ ...en-one-two-three-are-prepended-in-order.js | 4507 +++++++++++++ ...tripInternal-with-comments-emit-enabled.js | 2413 +++++++ .../stripInternal.js | 2335 +++++++ .../triple-slash-refs-in-all-projects.js | 1122 ++++ .../triple-slash-refs-in-one-project.js | 979 +++ ...t-composite-but-uses-project-references.js | 785 +++ ...-source-files-are-empty-in-the-own-file.js | 865 +++ .../emitHelpers-in-all-projects.js | 1548 +++++ ...tHelpers-in-only-one-dependency-project.js | 1570 +++++ .../multiple-emitHelpers-in-all-projects.js | 2250 +++++++ ...tiple-emitHelpers-in-different-projects.js | 1670 +++++ .../multiple-prologues-in-all-projects.js | 1534 +++++ ...ultiple-prologues-in-different-projects.js | 1432 ++++ .../strict-in-all-projects.js | 1395 ++++ .../strict-in-one-dependency.js | 1334 ++++ ...en-one-two-three-are-prepended-in-order.js | 1985 ++++++ .../stripInternal-jsdoc-style-comment.js | 943 +++ ...en-one-two-three-are-prepended-in-order.js | 2007 ++++++ ...en-one-two-three-are-prepended-in-order.js | 1985 ++++++ ...tripInternal-with-comments-emit-enabled.js | 943 +++ .../stripInternal.js | 965 +++ .../baseline-sectioned-sourcemaps.js | 1741 +++++ .../declarationMap-and-sourceMap-disabled.js | 900 +++ .../emitHelpers-in-all-projects.js | 2298 +++++++ ...tHelpers-in-only-one-dependency-project.js | 2066 ++++++ .../multiple-emitHelpers-in-all-projects.js | 3308 +++++++++ ...tiple-emitHelpers-in-different-projects.js | 2545 +++++++ .../multiple-prologues-in-all-projects.js | 2158 ++++++ ...ultiple-prologues-in-different-projects.js | 1995 ++++++ .../initial-build/shebang-in-all-projects.js | 1806 +++++ .../shebang-in-only-one-dependency-project.js | 1748 +++++ .../initial-build/strict-in-all-projects.js | 1894 ++++++ .../initial-build/strict-in-one-dependency.js | 1780 +++++ ...hen-internal-is-inside-another-internal.js | 2252 +++++++ ...en-one-two-three-are-prepended-in-order.js | 5566 ++++++++++++++++ .../stripInternal-jsdoc-style-comment.js | 5257 +++++++++++++++ ...en-one-two-three-are-prepended-in-order.js | 5924 +++++++++++++++++ ...-jsdoc-style-with-comments-emit-enabled.js | 5627 ++++++++++++++++ ...l-when-few-members-of-enum-are-internal.js | 2742 ++++++++ ...en-one-two-three-are-prepended-in-order.js | 5586 ++++++++++++++++ ...en-one-two-three-are-prepended-in-order.js | 5788 ++++++++++++++++ ...tripInternal-with-comments-emit-enabled.js | 5497 +++++++++++++++ .../initial-build/stripInternal.js | 5277 +++++++++++++++ .../triple-slash-refs-in-all-projects.js | 2114 ++++++ .../triple-slash-refs-in-one-project.js | 1871 ++++++ ...roject-is-not-composite-but-incremental.js | 1744 +++++ ...t-composite-but-uses-project-references.js | 1590 +++++ ...final-project-specifies-tsBuildInfoFile.js | 1745 +++++ ...-source-files-are-empty-in-the-own-file.js | 1624 +++++ .../incremental-declaration-changes/sample.js | 366 + .../when-declaration-option-changes.js | 71 + .../when-esModuleInterop-option-changes.js | 115 + ...en-logic-config-changes-declaration-dir.js | 172 + .../when-module-option-changes.js | 78 + .../when-target-option-changes.js | 91 + .../sample.js | 100 + .../tsbuild/sample1/initial-build/sample.js | 531 ++ .../when-declaration-option-changes.js | 74 + .../when-esModuleInterop-option-changes.js | 259 + .../when-logic-specifies-tsBuildInfoFile.js | 548 ++ .../when-module-option-changes.js | 74 + .../when-target-option-changes.js | 108 + 118 files changed, 197023 insertions(+) create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/modules-and-globals-mixed-in-amd.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-prologues-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/shebang-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/triple-slash-refs-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/when-the-module-resolution-finds-original-source-file.js create mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js create mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js create mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js create mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js create mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js create mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js create mode 100644 tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js create mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js create mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js create mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js create mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module-with-isolatedModules.js create mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module.js create mode 100644 tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js create mode 100644 tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js create mode 100644 tests/baselines/reference/tsbuild/lateBoundSymbol/initial-build/interface-is-merged-and-contains-late-bound-member.js create mode 100644 tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/declarationMap-and-sourceMap-disabled.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-baseline-when-internal-is-inside-another-internal.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-few-members-of-enum-are-internal.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-incremental.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-specifies-tsBuildInfoFile.js create mode 100644 tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js create mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js create mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js create mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js create mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js create mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js create mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js create mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js create mode 100644 tests/baselines/reference/tsbuild/sample1/initial-build/sample.js create mode 100644 tests/baselines/reference/tsbuild/sample1/initial-build/when-declaration-option-changes.js create mode 100644 tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js create mode 100644 tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js create mode 100644 tests/baselines/reference/tsbuild/sample1/initial-build/when-module-option-changes.js create mode 100644 tests/baselines/reference/tsbuild/sample1/initial-build/when-target-option-changes.js diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js new file mode 100644 index 00000000000..d84e3661d87 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js @@ -0,0 +1,584 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/app --verbose +4:04:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:04:00 PM - Building project '/src/lib/tsconfig.json'... + +4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/module.js] +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(6, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(6, 12) Source(1, 28) + SourceIndex(1) +3 >Emitted(6, 13) Source(1, 29) + SourceIndex(1) +4 >Emitted(6, 16) Source(1, 32) + SourceIndex(1) +5 >Emitted(6, 17) Source(1, 33) + SourceIndex(1) +6 >Emitted(6, 26) Source(1, 34) + SourceIndex(1) +7 >Emitted(6, 27) Source(1, 35) + SourceIndex(1) +8 >Emitted(6, 28) Source(1, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(17, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(17, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(17, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(17, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(17, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(17, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(19, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(19, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(19, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(19, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(19, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 438, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 0, + "end": 438, + "kind": "text" + } + ] + }, + { + "pos": 438, + "end": 639, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (0-438):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-438) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (438-639) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (171-253) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +export const x = 10;console.log(x); + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/src/lib/module.js] +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(6, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(6, 12) Source(1, 28) + SourceIndex(1) +3 >Emitted(6, 13) Source(1, 29) + SourceIndex(1) +4 >Emitted(6, 16) Source(1, 32) + SourceIndex(1) +5 >Emitted(6, 17) Source(1, 33) + SourceIndex(1) +6 >Emitted(6, 26) Source(1, 34) + SourceIndex(1) +7 >Emitted(6, 27) Source(1, 35) + SourceIndex(1) +8 >Emitted(6, 28) Source(1, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 438, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (0-438) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..99f30881334 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -0,0 +1,1332 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/app --verbose +4:04:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:04:00 PM - Building project '/src/lib/tsconfig.json'... + +4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; + function forappfile3Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +var myVar = 30; +function appfile4Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +appfile4Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^^^^^^^^^^^^^^^^^-> +1-> + > +2 >libfile0Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) +3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) +4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) +5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) +6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) +7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) +8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) +9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) +10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) +11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(43, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > function +3 > forlibfile1Rest +1->Emitted(44, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(45, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(45, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(45, 42) Source(2, 48) + SourceIndex(1) +4 >Emitted(45, 44) Source(2, 9) + SourceIndex(1) +5 >Emitted(45, 52) Source(2, 10) + SourceIndex(1) +6 >Emitted(45, 54) Source(2, 12) + SourceIndex(1) +7 >Emitted(45, 78) Source(2, 48) + SourceIndex(1) +8 >Emitted(45, 79) Source(2, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(46, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(46, 6) Source(3, 2) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(47, 5) Source(3, 2) + SourceIndex(1) +2 >Emitted(47, 12) Source(3, 9) + SourceIndex(1) +3 >Emitted(47, 13) Source(3, 10) + SourceIndex(1) +4 >Emitted(47, 16) Source(3, 13) + SourceIndex(1) +5 >Emitted(47, 17) Source(3, 14) + SourceIndex(1) +6 >Emitted(47, 26) Source(3, 15) + SourceIndex(1) +7 >Emitted(47, 27) Source(3, 16) + SourceIndex(1) +8 >Emitted(47, 28) Source(3, 17) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(52, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(52, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(52, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(52, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(52, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(52, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(54, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(54, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(54, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(54, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(54, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(54, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(58, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(58, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(58, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(58, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(58, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(58, 20) Source(1, 21) + SourceIndex(4) +--- +>>> function forappfile3Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >import { x } from "file1"; +2 > function +3 > forappfile3Rest +1->Emitted(59, 5) Source(2, 27) + SourceIndex(4) +2 >Emitted(59, 14) Source(2, 36) + SourceIndex(4) +3 >Emitted(59, 29) Source(2, 51) + SourceIndex(4) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(60, 9) Source(3, 1) + SourceIndex(4) +2 >Emitted(60, 13) Source(3, 7) + SourceIndex(4) +3 >Emitted(60, 42) Source(3, 48) + SourceIndex(4) +4 >Emitted(60, 44) Source(3, 9) + SourceIndex(4) +5 >Emitted(60, 52) Source(3, 10) + SourceIndex(4) +6 >Emitted(60, 54) Source(3, 12) + SourceIndex(4) +7 >Emitted(60, 78) Source(3, 48) + SourceIndex(4) +8 >Emitted(60, 79) Source(3, 49) + SourceIndex(4) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(61, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(61, 6) Source(4, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(63, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(63, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(63, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(63, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(63, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(63, 16) Source(1, 18) + SourceIndex(5) +--- +>>>function appfile4Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > appfile4Spread +1->Emitted(64, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(64, 10) Source(2, 10) + SourceIndex(5) +3 >Emitted(64, 24) Source(2, 24) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(65, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(65, 16) Source(2, 39) + SourceIndex(5) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(66, 10) Source(2, 25) + SourceIndex(5) +2 >Emitted(66, 20) Source(2, 39) + SourceIndex(5) +3 >Emitted(66, 22) Source(2, 25) + SourceIndex(5) +4 >Emitted(66, 43) Source(2, 39) + SourceIndex(5) +5 >Emitted(66, 45) Source(2, 25) + SourceIndex(5) +6 >Emitted(66, 49) Source(2, 39) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(67, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(67, 31) Source(2, 39) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(69, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(69, 2) Source(2, 44) + SourceIndex(5) +--- +>>>appfile4Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >appfile4Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(70, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(70, 15) Source(3, 15) + SourceIndex(5) +3 >Emitted(70, 39) Source(3, 19) + SourceIndex(5) +4 >Emitted(70, 40) Source(3, 20) + SourceIndex(5) +5 >Emitted(70, 42) Source(3, 22) + SourceIndex(5) +6 >Emitted(70, 44) Source(3, 24) + SourceIndex(5) +7 >Emitted(70, 46) Source(3, 26) + SourceIndex(5) +8 >Emitted(70, 48) Source(3, 28) + SourceIndex(5) +9 >Emitted(70, 50) Source(3, 30) + SourceIndex(5) +10>Emitted(70, 51) Source(3, 31) + SourceIndex(5) +11>Emitted(70, 54) Source(3, 33) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 678, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1180, + "end": 1935, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 1180, + "end": 1935, + "kind": "text" + } + ] + }, + { + "pos": 1935, + "end": 2453, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 227, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 227, + "kind": "text" + } + ] + }, + { + "pos": 227, + "end": 365, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (678-1178):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (1180-1935):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1180-1935) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (1935-2453) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; + function forappfile3Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +var myVar = 30; +function appfile4Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +appfile4Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-227):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-227) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (227-365) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +declare function appfile4Spread(...b: number[]): void; + +====================================================================== + +//// [/src/lib/file1.ts] +export const x = 10;function forlibfile1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +}console.log(x); + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/src/lib/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^^^^^^^^^^^^^^^^^-> +1-> + > +2 >libfile0Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) +3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) +4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) +5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) +6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) +7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) +8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) +9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) +10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) +11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(43, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > function +3 > forlibfile1Rest +1->Emitted(44, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(45, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(45, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(45, 42) Source(2, 48) + SourceIndex(1) +4 >Emitted(45, 44) Source(2, 9) + SourceIndex(1) +5 >Emitted(45, 52) Source(2, 10) + SourceIndex(1) +6 >Emitted(45, 54) Source(2, 12) + SourceIndex(1) +7 >Emitted(45, 78) Source(2, 48) + SourceIndex(1) +8 >Emitted(45, 79) Source(2, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(46, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(46, 6) Source(3, 2) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(47, 5) Source(3, 2) + SourceIndex(1) +2 >Emitted(47, 12) Source(3, 9) + SourceIndex(1) +3 >Emitted(47, 13) Source(3, 10) + SourceIndex(1) +4 >Emitted(47, 16) Source(3, 13) + SourceIndex(1) +5 >Emitted(47, 17) Source(3, 14) + SourceIndex(1) +6 >Emitted(47, 26) Source(3, 15) + SourceIndex(1) +7 >Emitted(47, 27) Source(3, 16) + SourceIndex(1) +8 >Emitted(47, 28) Source(3, 17) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(52, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(52, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(52, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(52, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(52, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(52, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(54, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(54, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(54, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(54, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(54, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(54, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 678, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1180, + "end": 1935, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spread", + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 227, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (678-1178):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (1180-1935) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-227) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js new file mode 100644 index 00000000000..aef9b460c46 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js @@ -0,0 +1,857 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/app --verbose +4:04:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:04:00 PM - Building project '/src/lib/tsconfig.json'... + +4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/module.js] +"use strict"; +"myPrologue"; +"myPrologue3"; +"myPrologue2"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/global.ts","file4.ts","../lib/file1.ts","../lib/file2.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/global.ts,file4.ts,../lib/file1.ts,../lib/file2.ts,file3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> +2 >"myPrologue3" +3 > +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) +3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue" + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(5, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(5, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(5, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(5, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(5, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(9, 5) Source(1, 14) + SourceIndex(3) +2 >Emitted(9, 13) Source(1, 14) + SourceIndex(3) +3 >Emitted(9, 14) Source(1, 15) + SourceIndex(3) +4 >Emitted(9, 17) Source(1, 18) + SourceIndex(3) +5 >Emitted(9, 19) Source(1, 20) + SourceIndex(3) +6 >Emitted(9, 20) Source(1, 21) + SourceIndex(3) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(10, 5) Source(1, 21) + SourceIndex(3) +2 >Emitted(10, 12) Source(1, 28) + SourceIndex(3) +3 >Emitted(10, 13) Source(1, 29) + SourceIndex(3) +4 >Emitted(10, 16) Source(1, 32) + SourceIndex(3) +5 >Emitted(10, 17) Source(1, 33) + SourceIndex(3) +6 >Emitted(10, 26) Source(1, 34) + SourceIndex(3) +7 >Emitted(10, 27) Source(1, 35) + SourceIndex(3) +8 >Emitted(10, 28) Source(1, 36) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologueFile"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > "myPrologueFile" +3 > +1 >Emitted(14, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(14, 21) Source(1, 17) + SourceIndex(4) +3 >Emitted(14, 22) Source(1, 17) + SourceIndex(4) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(16, 5) Source(2, 14) + SourceIndex(4) +2 >Emitted(16, 13) Source(2, 14) + SourceIndex(4) +3 >Emitted(16, 14) Source(2, 15) + SourceIndex(4) +4 >Emitted(16, 17) Source(2, 18) + SourceIndex(4) +5 >Emitted(16, 19) Source(2, 20) + SourceIndex(4) +6 >Emitted(16, 20) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >"myPrologue3" + > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(18, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(18, 16) Source(2, 18) + SourceIndex(1) +4 >Emitted(18, 19) Source(2, 21) + SourceIndex(1) +5 >Emitted(18, 21) Source(2, 23) + SourceIndex(1) +6 >Emitted(18, 22) Source(2, 24) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologue"; +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > "myPrologue" +3 > +1->Emitted(21, 5) Source(1, 1) + SourceIndex(5) +2 >Emitted(21, 17) Source(1, 13) + SourceIndex(5) +3 >Emitted(21, 18) Source(1, 13) + SourceIndex(5) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(23, 5) Source(2, 14) + SourceIndex(5) +2 >Emitted(23, 13) Source(2, 14) + SourceIndex(5) +3 >Emitted(23, 14) Source(2, 15) + SourceIndex(5) +4 >Emitted(23, 17) Source(2, 18) + SourceIndex(5) +5 >Emitted(23, 19) Source(2, 20) + SourceIndex(5) +6 >Emitted(23, 20) Source(2, 21) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 >"myPrologue2"; + > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(25, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(25, 5) Source(2, 7) + SourceIndex(2) +3 >Emitted(25, 10) Source(2, 12) + SourceIndex(2) +4 >Emitted(25, 13) Source(2, 15) + SourceIndex(2) +5 >Emitted(25, 15) Source(2, 17) + SourceIndex(2) +6 >Emitted(25, 16) Source(2, 18) + SourceIndex(2) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 62, + "end": 523, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 62, + "end": 523, + "kind": "text" + } + ] + }, + { + "pos": 523, + "end": 743, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 1, + "text": "\"myPrologue2\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue2" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (62-523):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (62-523) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (523-743) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (171-253) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +export const x = 10;console.log(x); + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/src/lib/module.js] +"use strict"; +"myPrologue"; +"myPrologue3"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,global.ts,file1.ts,file2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^-> +1-> +2 >"myPrologue3" +3 > +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue" + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(4, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(8, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(8, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(8, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(8, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(8, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(8, 20) Source(1, 21) + SourceIndex(2) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(9, 5) Source(1, 21) + SourceIndex(2) +2 >Emitted(9, 12) Source(1, 28) + SourceIndex(2) +3 >Emitted(9, 13) Source(1, 29) + SourceIndex(2) +4 >Emitted(9, 16) Source(1, 32) + SourceIndex(2) +5 >Emitted(9, 17) Source(1, 33) + SourceIndex(2) +6 >Emitted(9, 26) Source(1, 34) + SourceIndex(2) +7 >Emitted(9, 27) Source(1, 35) + SourceIndex(2) +8 >Emitted(9, 28) Source(1, 36) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologueFile"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > "myPrologueFile" +3 > +1 >Emitted(13, 5) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 21) Source(1, 17) + SourceIndex(3) +3 >Emitted(13, 22) Source(1, 17) + SourceIndex(3) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(15, 5) Source(2, 14) + SourceIndex(3) +2 >Emitted(15, 13) Source(2, 14) + SourceIndex(3) +3 >Emitted(15, 14) Source(2, 15) + SourceIndex(3) +4 >Emitted(15, 17) Source(2, 18) + SourceIndex(3) +5 >Emitted(15, 19) Source(2, 20) + SourceIndex(3) +6 >Emitted(15, 20) Source(2, 21) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 >"myPrologue3" + > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(17, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(17, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(17, 16) Source(2, 18) + SourceIndex(1) +4 >Emitted(17, 19) Source(2, 21) + SourceIndex(1) +5 >Emitted(17, 21) Source(2, 23) + SourceIndex(1) +6 >Emitted(17, 22) Source(2, 24) + SourceIndex(1) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 46, + "end": 507, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + }, + { + "file": 3, + "text": "\"myPrologue3\"", + "directives": [ + { + "pos": 0, + "end": 13, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue3" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +text: (46-507) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js new file mode 100644 index 00000000000..552db042308 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js @@ -0,0 +1,594 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/app --verbose +4:04:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:04:00 PM - Building project '/src/lib/tsconfig.json'... + +4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/module.js] +#!someshebang lib file0 +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>#!someshebang lib file0 +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >#!someshebang lib file0 + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->#!someshebang lib file1 + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(6, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(6, 13) Source(2, 14) + SourceIndex(1) +3 >Emitted(6, 14) Source(2, 15) + SourceIndex(1) +4 >Emitted(6, 17) Source(2, 18) + SourceIndex(1) +5 >Emitted(6, 19) Source(2, 20) + SourceIndex(1) +6 >Emitted(6, 20) Source(2, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(7, 5) Source(2, 21) + SourceIndex(1) +2 >Emitted(7, 12) Source(2, 28) + SourceIndex(1) +3 >Emitted(7, 13) Source(2, 29) + SourceIndex(1) +4 >Emitted(7, 16) Source(2, 32) + SourceIndex(1) +5 >Emitted(7, 17) Source(2, 33) + SourceIndex(1) +6 >Emitted(7, 26) Source(2, 34) + SourceIndex(1) +7 >Emitted(7, 27) Source(2, 35) + SourceIndex(1) +8 >Emitted(7, 28) Source(2, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->#!someshebang app file3 + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(18, 5) Source(2, 14) + SourceIndex(4) +2 >Emitted(18, 13) Source(2, 14) + SourceIndex(4) +3 >Emitted(18, 14) Source(2, 15) + SourceIndex(4) +4 >Emitted(18, 17) Source(2, 18) + SourceIndex(4) +5 >Emitted(18, 19) Source(2, 20) + SourceIndex(4) +6 >Emitted(18, 20) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(20, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(20, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(20, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(20, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(20, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(20, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 25, + "end": 463, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 25, + "end": 463, + "kind": "text" + } + ] + }, + { + "pos": 463, + "end": 664, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 25, + "end": 196, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 25, + "end": 196, + "kind": "text" + } + ] + }, + { + "pos": 196, + "end": 278, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (25-463):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (25-463) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (463-664) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (25-196):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (25-196) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (196-278) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +#!someshebang lib file1 +export const x = 10;console.log(x); + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/src/lib/module.js] +#!someshebang lib file0 +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>#!someshebang lib file0 +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >#!someshebang lib file0 + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->#!someshebang lib file1 + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(6, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(6, 13) Source(2, 14) + SourceIndex(1) +3 >Emitted(6, 14) Source(2, 15) + SourceIndex(1) +4 >Emitted(6, 17) Source(2, 18) + SourceIndex(1) +5 >Emitted(6, 19) Source(2, 20) + SourceIndex(1) +6 >Emitted(6, 20) Source(2, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(7, 5) Source(2, 21) + SourceIndex(1) +2 >Emitted(7, 12) Source(2, 28) + SourceIndex(1) +3 >Emitted(7, 13) Source(2, 29) + SourceIndex(1) +4 >Emitted(7, 16) Source(2, 32) + SourceIndex(1) +5 >Emitted(7, 17) Source(2, 33) + SourceIndex(1) +6 >Emitted(7, 26) Source(2, 34) + SourceIndex(1) +7 >Emitted(7, 27) Source(2, 35) + SourceIndex(1) +8 >Emitted(7, 28) Source(2, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 25, + "end": 463, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 25, + "end": 196, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (25-463) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (25-196) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js new file mode 100644 index 00000000000..54ef4f2ee1f --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js @@ -0,0 +1,3776 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/app --verbose +4:04:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:04:00 PM - Building project '/src/lib/tsconfig.json'... + +4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/module.js] +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>/*@internal*/ var myGlob = 20; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >/*@internal*/ +3 > +4 > const +5 > myGlob +6 > = +7 > 20 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) +5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +>>> var normalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) +--- +>>> /*@internal*/ function normalC() { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->export class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) +3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) +2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) +2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) +3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) +4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) +5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) +6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) +7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) +3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) +2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) +3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) +4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) +5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) +6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) +7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) +8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) +9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) +2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) +3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) +4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) +5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) +6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) +7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) +--- +>>> return normalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) +2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) +2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) +3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) +--- +>>> exports.normalC = normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > normalC +1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) +--- +>>> var normalN; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} + > +2 > export namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) +3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) +4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) +--- +>>> (function (normalN) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export namespace +3 > normalN +1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) +3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) +2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) +3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) +2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) +3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) +4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) +--- +>>> normalN.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) +2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) +3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) +4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function foo() { } +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) +2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) +3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) +4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) +5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) +6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) +7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) +--- +>>> normalN.foo = foo; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) +2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) +3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) +4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) +2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) +3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) +4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) +5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) +6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) +--- +>>> (function (someNamespace) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) +3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) +2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) +3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) +4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) +--- +>>> someNamespace.C = C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) +2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) +3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) +4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) +2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) +3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) +4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) +5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) +6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) +7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) +8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) +9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) +--- +>>> /*@internal*/ var someOther; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) +2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) +3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) +4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) +5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) +6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) +--- +>>> (function (someOther) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) +3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) +3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) +4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) +3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) +2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) +3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) +4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) +2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) +3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) +4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) +2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) +3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) +4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) +5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) +6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) +7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) +8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) +9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) +2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) +3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) +4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) +5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) +6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) +7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) +8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) +9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) +2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) +3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) +5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) +6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) +7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) +8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) +9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) +2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) +3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) +4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) +5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) +6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) +7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) +2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) +3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) +4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) +5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) +3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) +3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) +3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) +3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) +2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) +3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) +4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) +5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) +6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) +7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) +8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) +9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) +--- +>>> })(normalN = exports.normalN || (exports.normalN = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +10> ^^^-> +1 > + > +2 > } +3 > +4 > normalN +5 > +6 > normalN +7 > +8 > normalN +9 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) +2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) +3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) +4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) +5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) +6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) +7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) +8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) +9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) +--- +>>> /*@internal*/ var internalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > /*@internal*/ +3 > +1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) +2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) +3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) +--- +>>> function internalC() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class internalC { +2 > } +1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) +--- +>>> return internalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class internalC {} +1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) +2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) +3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) +4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) +--- +>>> exports.internalC = internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^-> +1-> +2 > internalC +1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) +2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function internalfoo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> {} + > +2 > /*@internal*/ +3 > +4 > export function +5 > internalfoo +6 > () { +7 > } +1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) +2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) +3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) +4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) +5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) +6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) +7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) +--- +>>> exports.internalfoo = internalfoo; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^-> +1 > +2 > export function internalfoo() {} +1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalNamespace +6 > { export class someClass {} } +1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) +2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) +3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) +4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) +5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) +6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) +--- +>>> (function (internalNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > internalNamespace +1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) +3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) +2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) +3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) +4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) +2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) +3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) +4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) +--- +>>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > +8 > internalNamespace +9 > { export class someClass {} } +1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) +2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) +3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) +4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) +5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) +6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) +7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) +8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) +9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) +--- +>>> /*@internal*/ var internalOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) +2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) +3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) +4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) +5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) +6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) +--- +>>> (function (internalOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 > export namespace +3 > internalOther +1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) +3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) +3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) +4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) +3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) +2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) +3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) +4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) +2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) +3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) +4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) +2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) +3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) +4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) +5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) +6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) +7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) +8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) +9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) +--- +>>> })(internalOther = exports.internalOther || (exports.internalOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > internalOther +5 > +6 > internalOther +7 > +8 > internalOther +9 > .something { export class someClass {} } +1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) +2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) +3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) +4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) +5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) +6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) +7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) +8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) +9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalImport = internalNamespace.someClass; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) +2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) +3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) +5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) +6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) +7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) +8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) +9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) +10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) +2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) +3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) +4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) +5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) +6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) +7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) +8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) +2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) +3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) +4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) +5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) +3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) +3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) +3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) +3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) +--- +>>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) +2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) +3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) +4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) +5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) +6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) +7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) +8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) +9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) +--- +>>> console.log(exports.x); +1 >^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1 > +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1 >Emitted(96, 5) Source(26, 51) + SourceIndex(1) +2 >Emitted(96, 12) Source(26, 58) + SourceIndex(1) +3 >Emitted(96, 13) Source(26, 59) + SourceIndex(1) +4 >Emitted(96, 16) Source(26, 62) + SourceIndex(1) +5 >Emitted(96, 17) Source(26, 63) + SourceIndex(1) +6 >Emitted(96, 26) Source(26, 64) + SourceIndex(1) +7 >Emitted(96, 27) Source(26, 65) + SourceIndex(1) +8 >Emitted(96, 28) Source(26, 66) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(101, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(101, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(101, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(101, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(101, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(101, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(103, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(103, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(103, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(103, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(103, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(103, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(107, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(107, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(107, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(107, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(107, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(107, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(109, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(109, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(109, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(109, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 4158, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 0, + "end": 4158, + "kind": "text" + } + ] + }, + { + "pos": 4158, + "end": 4359, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 217, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 217, + "kind": "text" + } + ] + }, + { + "pos": 217, + "end": 299, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (0-4158):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-4158) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (4158-4359) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-217):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-217) +declare module "file1" { + export const x = 10; + export class normalC { + } + export namespace normalN { + } +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (217-299) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +export const x = 10; +export class normalC { + /*@internal*/ constructor() { } + /*@internal*/ prop: string; + /*@internal*/ method() { } + /*@internal*/ get c() { return 10; } + /*@internal*/ set c(val: number) { } +} +export namespace normalN { + /*@internal*/ export class C { } + /*@internal*/ export function foo() {} + /*@internal*/ export namespace someNamespace { export class C {} } + /*@internal*/ export namespace someOther.something { export class someClass {} } + /*@internal*/ export import someImport = someNamespace.C; + /*@internal*/ export type internalType = internalC; + /*@internal*/ export const internalConst = 10; + /*@internal*/ export enum internalEnum { a, b, c } +} +/*@internal*/ export class internalC {} +/*@internal*/ export function internalfoo() {} +/*@internal*/ export namespace internalNamespace { export class someClass {} } +/*@internal*/ export namespace internalOther.something { export class someClass {} } +/*@internal*/ export import internalImport = internalNamespace.someClass; +/*@internal*/ export type internalType = internalC; +/*@internal*/ export const internalConst = 10; +/*@internal*/ export enum internalEnum { a, b, c }console.log(x); + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/src/lib/module.js] +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>/*@internal*/ var myGlob = 20; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >/*@internal*/ +3 > +4 > const +5 > myGlob +6 > = +7 > 20 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) +5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +>>> var normalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) +--- +>>> /*@internal*/ function normalC() { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->export class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) +3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) +2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) +2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) +3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) +4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) +5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) +6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) +7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) +3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) +2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) +3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) +4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) +5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) +6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) +7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) +8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) +9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) +2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) +3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) +4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) +5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) +6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) +7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) +--- +>>> return normalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) +2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) +2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) +3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) +--- +>>> exports.normalC = normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > normalC +1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) +--- +>>> var normalN; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} + > +2 > export namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) +3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) +4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) +--- +>>> (function (normalN) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export namespace +3 > normalN +1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) +3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) +2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) +3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) +2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) +3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) +4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) +--- +>>> normalN.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) +2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) +3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) +4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function foo() { } +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) +2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) +3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) +4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) +5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) +6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) +7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) +--- +>>> normalN.foo = foo; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) +2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) +3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) +4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) +2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) +3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) +4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) +5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) +6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) +--- +>>> (function (someNamespace) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) +3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) +2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) +3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) +4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) +--- +>>> someNamespace.C = C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) +2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) +3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) +4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) +2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) +3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) +4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) +5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) +6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) +7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) +8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) +9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) +--- +>>> /*@internal*/ var someOther; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) +2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) +3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) +4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) +5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) +6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) +--- +>>> (function (someOther) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) +3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) +3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) +4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) +3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) +2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) +3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) +4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) +2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) +3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) +4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) +2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) +3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) +4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) +5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) +6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) +7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) +8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) +9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) +2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) +3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) +4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) +5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) +6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) +7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) +8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) +9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) +2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) +3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) +5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) +6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) +7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) +8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) +9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) +2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) +3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) +4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) +5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) +6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) +7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) +2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) +3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) +4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) +5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) +3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) +3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) +3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) +3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) +2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) +3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) +4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) +5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) +6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) +7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) +8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) +9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) +--- +>>> })(normalN = exports.normalN || (exports.normalN = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +10> ^^^-> +1 > + > +2 > } +3 > +4 > normalN +5 > +6 > normalN +7 > +8 > normalN +9 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) +2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) +3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) +4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) +5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) +6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) +7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) +8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) +9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) +--- +>>> /*@internal*/ var internalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > /*@internal*/ +3 > +1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) +2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) +3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) +--- +>>> function internalC() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class internalC { +2 > } +1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) +--- +>>> return internalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class internalC {} +1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) +2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) +3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) +4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) +--- +>>> exports.internalC = internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^-> +1-> +2 > internalC +1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) +2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function internalfoo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> {} + > +2 > /*@internal*/ +3 > +4 > export function +5 > internalfoo +6 > () { +7 > } +1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) +2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) +3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) +4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) +5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) +6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) +7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) +--- +>>> exports.internalfoo = internalfoo; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^-> +1 > +2 > export function internalfoo() {} +1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalNamespace +6 > { export class someClass {} } +1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) +2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) +3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) +4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) +5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) +6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) +--- +>>> (function (internalNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > internalNamespace +1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) +3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) +2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) +3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) +4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) +2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) +3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) +4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) +--- +>>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > +8 > internalNamespace +9 > { export class someClass {} } +1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) +2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) +3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) +4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) +5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) +6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) +7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) +8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) +9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) +--- +>>> /*@internal*/ var internalOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) +2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) +3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) +4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) +5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) +6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) +--- +>>> (function (internalOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 > export namespace +3 > internalOther +1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) +3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) +3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) +4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) +3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) +2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) +3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) +4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) +2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) +3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) +4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) +2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) +3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) +4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) +5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) +6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) +7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) +8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) +9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) +--- +>>> })(internalOther = exports.internalOther || (exports.internalOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > internalOther +5 > +6 > internalOther +7 > +8 > internalOther +9 > .something { export class someClass {} } +1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) +2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) +3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) +4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) +5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) +6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) +7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) +8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) +9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalImport = internalNamespace.someClass; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) +2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) +3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) +5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) +6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) +7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) +8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) +9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) +10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) +2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) +3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) +4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) +5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) +6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) +7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) +8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) +2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) +3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) +4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) +5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) +3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) +3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) +3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) +3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) +--- +>>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) +2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) +3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) +4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) +5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) +6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) +7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) +8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) +9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) +--- +>>> console.log(exports.x); +1 >^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1 > +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1 >Emitted(96, 5) Source(26, 51) + SourceIndex(1) +2 >Emitted(96, 12) Source(26, 58) + SourceIndex(1) +3 >Emitted(96, 13) Source(26, 59) + SourceIndex(1) +4 >Emitted(96, 16) Source(26, 62) + SourceIndex(1) +5 >Emitted(96, 17) Source(26, 63) + SourceIndex(1) +6 >Emitted(96, 26) Source(26, 64) + SourceIndex(1) +7 >Emitted(96, 27) Source(26, 65) + SourceIndex(1) +8 >Emitted(96, 28) Source(26, 66) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(101, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(101, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(101, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(101, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(101, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(101, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(103, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(103, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(103, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(103, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(103, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(103, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 4158, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 26, + "kind": "internal" + }, + { + "pos": 28, + "end": 108, + "kind": "text" + }, + { + "pos": 108, + "end": 212, + "kind": "internal" + }, + { + "pos": 214, + "end": 253, + "kind": "text" + }, + { + "pos": 253, + "end": 721, + "kind": "internal" + }, + { + "pos": 723, + "end": 730, + "kind": "text" + }, + { + "pos": 730, + "end": 1219, + "kind": "internal" + }, + { + "pos": 1221, + "end": 1312, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (0-4158) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +internal: (0-26) +declare const myGlob = 20; +---------------------------------------------------------------------- +text: (28-108) +declare module "file1" { + export const x = 10; + export class normalC { + +---------------------------------------------------------------------- +internal: (108-212) + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (214-253) + } + export namespace normalN { + +---------------------------------------------------------------------- +internal: (253-721) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (723-730) + } + +---------------------------------------------------------------------- +internal: (730-1219) + export class internalC { + } + export function internalfoo(): void; + export namespace internalNamespace { + class someClass { + } + } + export namespace internalOther.something { + class someClass { + } + } + export import internalImport = internalNamespace.someClass; + export type internalType = internalC; + export const internalConst = 10; + export enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (1221-1312) +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js new file mode 100644 index 00000000000..3f4f863e663 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js @@ -0,0 +1,734 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/app --verbose +4:04:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:04:00 PM - Building project '/src/lib/tsconfig.json'... + +4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/module.js] +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +/// +var file4Const = new appfile4(); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0) +--- +>>>var file0Const = new libfile0(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^ +7 > ^^ +8 > ^ +1 > + > +2 >const +3 > file0Const +4 > = +5 > new +6 > libfile0 +7 > () +8 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0) +4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0) +5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) +6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0) +7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0) +8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0) +--- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0) +4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0) +5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0) +6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(7, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(8, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(8, 12) Source(1, 28) + SourceIndex(1) +3 >Emitted(8, 13) Source(1, 29) + SourceIndex(1) +4 >Emitted(8, 16) Source(1, 32) + SourceIndex(1) +5 >Emitted(8, 17) Source(1, 33) + SourceIndex(1) +6 >Emitted(8, 26) Source(1, 34) + SourceIndex(1) +7 >Emitted(8, 27) Source(1, 35) + SourceIndex(1) +8 >Emitted(8, 28) Source(1, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(13, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(13, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(13, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(13, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(13, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(13, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(15, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(15, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(15, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(19, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(19, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(19, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(19, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(19, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(19, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(21, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(21, 40) Source(1, 40) + SourceIndex(5) +--- +>>>var file4Const = new appfile4(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^ +7 > ^^ +8 > ^ +1 > + > +2 >const +3 > file4Const +4 > = +5 > new +6 > appfile4 +7 > () +8 > ; +1 >Emitted(22, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(22, 5) Source(2, 7) + SourceIndex(5) +3 >Emitted(22, 15) Source(2, 17) + SourceIndex(5) +4 >Emitted(22, 18) Source(2, 20) + SourceIndex(5) +5 >Emitted(22, 22) Source(2, 24) + SourceIndex(5) +6 >Emitted(22, 30) Source(2, 32) + SourceIndex(5) +7 >Emitted(22, 32) Source(2, 34) + SourceIndex(5) +8 >Emitted(22, 33) Source(2, 35) + SourceIndex(5) +--- +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(23, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(3, 7) + SourceIndex(5) +3 >Emitted(23, 10) Source(3, 12) + SourceIndex(5) +4 >Emitted(23, 13) Source(3, 15) + SourceIndex(5) +5 >Emitted(23, 15) Source(3, 17) + SourceIndex(5) +6 >Emitted(23, 16) Source(3, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 513, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 0, + "end": 513, + "kind": "text" + } + ] + }, + { + "pos": 513, + "end": 789, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "reference", + "data": "tripleRef.d.ts" + }, + { + "pos": 41, + "end": 87, + "kind": "reference", + "data": "../lib/tripleRef.d.ts" + }, + { + "pos": 89, + "end": 297, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 89, + "end": 297, + "kind": "text" + } + ] + }, + { + "pos": 297, + "end": 416, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (0-513):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-513) +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (513-789) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +/// +var file4Const = new appfile4(); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +reference: (0-39):: tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (41-87):: ../lib/tripleRef.d.ts +/// +---------------------------------------------------------------------- +prepend: (89-297):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (89-297) +declare const file0Const: libfile0; +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (297-416) +declare module "file3" { + export const z = 30; +} +declare const file4Const: appfile4; +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +export const x = 10;console.log(x); + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/src/lib/module.js] +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0) +--- +>>>var file0Const = new libfile0(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^ +7 > ^^ +8 > ^ +1 > + > +2 >const +3 > file0Const +4 > = +5 > new +6 > libfile0 +7 > () +8 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0) +4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0) +5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) +6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0) +7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0) +8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0) +--- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0) +4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0) +5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0) +6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(7, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(8, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(8, 12) Source(1, 28) + SourceIndex(1) +3 >Emitted(8, 13) Source(1, 29) + SourceIndex(1) +4 >Emitted(8, 16) Source(1, 32) + SourceIndex(1) +5 >Emitted(8, 17) Source(1, 33) + SourceIndex(1) +6 >Emitted(8, 26) Source(1, 34) + SourceIndex(1) +7 >Emitted(8, 27) Source(1, 35) + SourceIndex(1) +8 >Emitted(8, 28) Source(1, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(13, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(13, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(13, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(13, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(13, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(13, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(15, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(15, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(15, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 513, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "reference", + "data": "tripleRef.d.ts" + }, + { + "pos": 41, + "end": 249, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (0-513) +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +reference: (0-39):: tripleRef.d.ts +/// +---------------------------------------------------------------------- +text: (41-249) +declare const file0Const: libfile0; +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..16696da278d --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -0,0 +1,1160 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/app --verbose +4:08:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:08:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:08:00 PM - Building project '/src/lib/tsconfig.json'... + +4:08:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:08:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; + function forappfile3Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +var myVar = 30; +function appfile4Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +appfile4Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;;;;;ICArC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^^^^^^^^^^^^^^^^^-> +1-> + > +2 >libfile0Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) +3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) +4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) +5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) +6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) +7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) +8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) +9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) +10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) +11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(43, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> +2 > function +3 > forlibfile1Rest +4 > () { +5 > } +1->Emitted(44, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1) +4 >Emitted(44, 34) Source(1, 50) + SourceIndex(1) +5 >Emitted(44, 35) Source(1, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(49, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(49, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(49, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(49, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(49, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(49, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(51, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(51, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(51, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(51, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(51, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(51, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(55, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(55, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(55, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(55, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(55, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(55, 20) Source(1, 21) + SourceIndex(4) +--- +>>> function forappfile3Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >import { x } from "file1"; +2 > function +3 > forappfile3Rest +1->Emitted(56, 5) Source(2, 27) + SourceIndex(4) +2 >Emitted(56, 14) Source(2, 36) + SourceIndex(4) +3 >Emitted(56, 29) Source(2, 51) + SourceIndex(4) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(57, 9) Source(3, 1) + SourceIndex(4) +2 >Emitted(57, 13) Source(3, 7) + SourceIndex(4) +3 >Emitted(57, 42) Source(3, 48) + SourceIndex(4) +4 >Emitted(57, 44) Source(3, 9) + SourceIndex(4) +5 >Emitted(57, 52) Source(3, 10) + SourceIndex(4) +6 >Emitted(57, 54) Source(3, 12) + SourceIndex(4) +7 >Emitted(57, 78) Source(3, 48) + SourceIndex(4) +8 >Emitted(57, 79) Source(3, 49) + SourceIndex(4) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(58, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(58, 6) Source(4, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(60, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(60, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(60, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(60, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(60, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(60, 16) Source(1, 18) + SourceIndex(5) +--- +>>>function appfile4Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > appfile4Spread +1->Emitted(61, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(61, 10) Source(2, 10) + SourceIndex(5) +3 >Emitted(61, 24) Source(2, 24) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(62, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(62, 16) Source(2, 39) + SourceIndex(5) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(63, 10) Source(2, 25) + SourceIndex(5) +2 >Emitted(63, 20) Source(2, 39) + SourceIndex(5) +3 >Emitted(63, 22) Source(2, 25) + SourceIndex(5) +4 >Emitted(63, 43) Source(2, 39) + SourceIndex(5) +5 >Emitted(63, 45) Source(2, 25) + SourceIndex(5) +6 >Emitted(63, 49) Source(2, 39) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(64, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(64, 31) Source(2, 39) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(66, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(66, 2) Source(2, 44) + SourceIndex(5) +--- +>>>appfile4Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >appfile4Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(67, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(67, 15) Source(3, 15) + SourceIndex(5) +3 >Emitted(67, 39) Source(3, 19) + SourceIndex(5) +4 >Emitted(67, 40) Source(3, 20) + SourceIndex(5) +5 >Emitted(67, 42) Source(3, 22) + SourceIndex(5) +6 >Emitted(67, 44) Source(3, 24) + SourceIndex(5) +7 >Emitted(67, 46) Source(3, 26) + SourceIndex(5) +8 >Emitted(67, 48) Source(3, 28) + SourceIndex(5) +9 >Emitted(67, 50) Source(3, 30) + SourceIndex(5) +10>Emitted(67, 51) Source(3, 31) + SourceIndex(5) +11>Emitted(67, 54) Source(3, 33) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 678, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1180, + "end": 1821, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 1180, + "end": 1821, + "kind": "text" + } + ] + }, + { + "pos": 1821, + "end": 2339, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 227, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 227, + "kind": "text" + } + ] + }, + { + "pos": 227, + "end": 365, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (678-1178):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (1180-1821):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1180-1821) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (1821-2339) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; + function forappfile3Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +var myVar = 30; +function appfile4Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +appfile4Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-227):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-227) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (227-365) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +declare function appfile4Spread(...b: number[]): void; + +====================================================================== + +//// [/src/lib/file1.ts] +export const x = 10;function forlibfile1Rest() { } + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/src/lib/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;;;;;ICArC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(21, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(21, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(21, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(21, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(21, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(21, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(22, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(22, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(22, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(23, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(23, 16) Source(2, 39) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(24, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(24, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(24, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(24, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(24, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(24, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(25, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(25, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(27, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(27, 2) Source(2, 44) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^^^^^^^^^^^^^^^^^-> +1-> + > +2 >libfile0Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(28, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(28, 15) Source(3, 15) + SourceIndex(0) +3 >Emitted(28, 39) Source(3, 19) + SourceIndex(0) +4 >Emitted(28, 40) Source(3, 20) + SourceIndex(0) +5 >Emitted(28, 42) Source(3, 22) + SourceIndex(0) +6 >Emitted(28, 44) Source(3, 24) + SourceIndex(0) +7 >Emitted(28, 46) Source(3, 26) + SourceIndex(0) +8 >Emitted(28, 48) Source(3, 28) + SourceIndex(0) +9 >Emitted(28, 50) Source(3, 30) + SourceIndex(0) +10>Emitted(28, 51) Source(3, 31) + SourceIndex(0) +11>Emitted(28, 54) Source(3, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(32, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(32, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(32, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(32, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(32, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(32, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> +2 > function +3 > forlibfile1Rest +4 > () { +5 > } +1->Emitted(33, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(33, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(33, 29) Source(1, 45) + SourceIndex(1) +4 >Emitted(33, 34) Source(1, 50) + SourceIndex(1) +5 >Emitted(33, 35) Source(1, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(38, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(38, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(38, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(38, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(38, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(38, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(40, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(40, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(40, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(40, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(40, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(40, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 678, + "end": 1319, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 227, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +text: (678-1319) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-227) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js new file mode 100644 index 00000000000..c14352761c7 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js @@ -0,0 +1,1129 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/app --verbose +4:08:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:08:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:08:00 PM - Building project '/src/lib/tsconfig.json'... + +4:08:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:08:00 PM - Updating output of project '/src/app/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >"myPrologue" + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologue5" + > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(2, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(2, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(2, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(2, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(2, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologueFile" + > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 >"myPrologue3" + > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(2, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologue" + > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(10, 5) Source(2, 1) + SourceIndex(4) +2 >Emitted(10, 11) Source(2, 7) + SourceIndex(4) +3 >Emitted(10, 12) Source(2, 8) + SourceIndex(4) +4 >Emitted(10, 18) Source(2, 14) + SourceIndex(4) +5 >Emitted(10, 19) Source(2, 15) + SourceIndex(4) +6 >Emitted(10, 24) Source(2, 20) + SourceIndex(4) +7 >Emitted(10, 25) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 >"myPrologue2"; + > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(12, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(12, 9) Source(2, 1) + SourceIndex(5) +3 >Emitted(12, 15) Source(2, 7) + SourceIndex(5) +4 >Emitted(12, 20) Source(2, 12) + SourceIndex(5) +5 >Emitted(12, 25) Source(2, 17) + SourceIndex(5) +6 >Emitted(12, 26) Source(2, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +"use strict"; +"myPrologue"; +"myPrologue3"; +"myPrologue2"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue5"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/global.ts","file4.ts","../lib/file1.ts","../lib/file2.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;IGDlB,aAAa,CAAA;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICDpB,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/global.ts,file4.ts,../lib/file1.ts,../lib/file2.ts,file3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> +2 >"myPrologue3" +3 > +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) +3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue" + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(5, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(5, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(5, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(5, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(5, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologue5"; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > "myPrologue5" +3 > +1->Emitted(8, 5) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 18) Source(1, 14) + SourceIndex(3) +3 >Emitted(8, 19) Source(1, 14) + SourceIndex(3) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(10, 5) Source(2, 14) + SourceIndex(3) +2 >Emitted(10, 13) Source(2, 14) + SourceIndex(3) +3 >Emitted(10, 14) Source(2, 15) + SourceIndex(3) +4 >Emitted(10, 17) Source(2, 18) + SourceIndex(3) +5 >Emitted(10, 19) Source(2, 20) + SourceIndex(3) +6 >Emitted(10, 20) Source(2, 21) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologueFile"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > "myPrologueFile" +3 > +1 >Emitted(14, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(14, 21) Source(1, 17) + SourceIndex(4) +3 >Emitted(14, 22) Source(1, 17) + SourceIndex(4) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(16, 5) Source(2, 14) + SourceIndex(4) +2 >Emitted(16, 13) Source(2, 14) + SourceIndex(4) +3 >Emitted(16, 14) Source(2, 15) + SourceIndex(4) +4 >Emitted(16, 17) Source(2, 18) + SourceIndex(4) +5 >Emitted(16, 19) Source(2, 20) + SourceIndex(4) +6 >Emitted(16, 20) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >"myPrologue3" + > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(18, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(18, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(18, 16) Source(2, 18) + SourceIndex(1) +4 >Emitted(18, 19) Source(2, 21) + SourceIndex(1) +5 >Emitted(18, 21) Source(2, 23) + SourceIndex(1) +6 >Emitted(18, 22) Source(2, 24) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologue"; +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > "myPrologue" +3 > +1->Emitted(21, 5) Source(1, 1) + SourceIndex(5) +2 >Emitted(21, 17) Source(1, 13) + SourceIndex(5) +3 >Emitted(21, 18) Source(1, 13) + SourceIndex(5) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(23, 5) Source(2, 14) + SourceIndex(5) +2 >Emitted(23, 13) Source(2, 14) + SourceIndex(5) +3 >Emitted(23, 14) Source(2, 15) + SourceIndex(5) +4 >Emitted(23, 17) Source(2, 18) + SourceIndex(5) +5 >Emitted(23, 19) Source(2, 20) + SourceIndex(5) +6 >Emitted(23, 20) Source(2, 21) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 >"myPrologue2"; + > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(25, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(25, 5) Source(2, 7) + SourceIndex(2) +3 >Emitted(25, 10) Source(2, 12) + SourceIndex(2) +4 >Emitted(25, 13) Source(2, 15) + SourceIndex(2) +5 >Emitted(25, 15) Source(2, 17) + SourceIndex(2) +6 >Emitted(25, 16) Source(2, 18) + SourceIndex(2) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 62, + "end": 514, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 62, + "end": 514, + "kind": "text" + } + ] + }, + { + "pos": 514, + "end": 734, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 1, + "text": "\"myPrologue2\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue2" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (62-514):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (62-514) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue5"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (514-734) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (171-253) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +"myPrologue5" +export const x = 10; + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >"myPrologue" + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologue5" + > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(2, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(2, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(2, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(2, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(2, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologueFile" + > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 >"myPrologue3" + > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(2, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +"use strict"; +"myPrologue"; +"myPrologue3"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue5"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;IEDlB,aAAa,CAAA;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICDpB,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,global.ts,file1.ts,file2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^-> +1-> +2 >"myPrologue3" +3 > +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue" + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(4, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologue5"; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > "myPrologue5" +3 > +1->Emitted(7, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) +3 >Emitted(7, 19) Source(1, 14) + SourceIndex(2) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(9, 5) Source(2, 14) + SourceIndex(2) +2 >Emitted(9, 13) Source(2, 14) + SourceIndex(2) +3 >Emitted(9, 14) Source(2, 15) + SourceIndex(2) +4 >Emitted(9, 17) Source(2, 18) + SourceIndex(2) +5 >Emitted(9, 19) Source(2, 20) + SourceIndex(2) +6 >Emitted(9, 20) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologueFile"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > "myPrologueFile" +3 > +1 >Emitted(13, 5) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 21) Source(1, 17) + SourceIndex(3) +3 >Emitted(13, 22) Source(1, 17) + SourceIndex(3) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(15, 5) Source(2, 14) + SourceIndex(3) +2 >Emitted(15, 13) Source(2, 14) + SourceIndex(3) +3 >Emitted(15, 14) Source(2, 15) + SourceIndex(3) +4 >Emitted(15, 17) Source(2, 18) + SourceIndex(3) +5 >Emitted(15, 19) Source(2, 20) + SourceIndex(3) +6 >Emitted(15, 20) Source(2, 21) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 >"myPrologue3" + > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(17, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(17, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(17, 16) Source(2, 18) + SourceIndex(1) +4 >Emitted(17, 19) Source(2, 21) + SourceIndex(1) +5 >Emitted(17, 21) Source(2, 23) + SourceIndex(1) +6 >Emitted(17, 22) Source(2, 24) + SourceIndex(1) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 46, + "end": 498, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + }, + { + "file": 3, + "text": "\"myPrologue3\"", + "directives": [ + { + "pos": 0, + "end": 13, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue3" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +text: (46-498) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue5"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js new file mode 100644 index 00000000000..0ed0c54963e --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js @@ -0,0 +1,4651 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/app --verbose +4:08:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:08:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +4:08:00 PM - Building project '/src/lib/tsconfig.json'... + +4:08:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +4:08:00 PM - Updating output of project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/module.d.ts] +declare module "file1" { + export class normalC { + } + export namespace normalN { + } +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";IACA,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export class normalC { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^ +1 >/*@internal*/ export const x = 10; + > +2 > export +3 > class +4 > normalC +1 >Emitted(2, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 18) Source(2, 14) + SourceIndex(0) +4 >Emitted(2, 25) Source(2, 21) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(3, 6) Source(8, 2) + SourceIndex(0) +--- +>>> export namespace normalN { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^ +5 > ^ +1-> + > +2 > export +3 > namespace +4 > normalN +5 > +1->Emitted(4, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(4, 11) Source(9, 7) + SourceIndex(0) +3 >Emitted(4, 22) Source(9, 18) + SourceIndex(0) +4 >Emitted(4, 29) Source(9, 25) + SourceIndex(0) +5 >Emitted(4, 30) Source(9, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(5, 6) Source(18, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(8, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(8, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(8, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(8, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(8, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(8, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 9) Source(1, 1) + SourceIndex(2) +3 >Emitted(10, 15) Source(1, 7) + SourceIndex(2) +4 >Emitted(10, 26) Source(1, 18) + SourceIndex(2) +5 >Emitted(10, 31) Source(1, 23) + SourceIndex(2) +6 >Emitted(10, 32) Source(1, 24) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(12, 5) Source(1, 1) + SourceIndex(3) +2 >Emitted(12, 11) Source(1, 7) + SourceIndex(3) +3 >Emitted(12, 12) Source(1, 8) + SourceIndex(3) +4 >Emitted(12, 18) Source(1, 14) + SourceIndex(3) +5 >Emitted(12, 19) Source(1, 15) + SourceIndex(3) +6 >Emitted(12, 24) Source(1, 20) + SourceIndex(3) +7 >Emitted(12, 25) Source(1, 21) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(14, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(14, 15) Source(1, 7) + SourceIndex(4) +4 >Emitted(14, 20) Source(1, 12) + SourceIndex(4) +5 >Emitted(14, 25) Source(1, 17) + SourceIndex(4) +6 >Emitted(14, 26) Source(1, 18) + SourceIndex(4) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + /*@internal*/ exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>/*@internal*/ var myGlob = 20; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >/*@internal*/ +3 > +4 > const +5 > myGlob +6 > = +7 > 20 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) +5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> /*@internal*/ exports.x = 10; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^-> +1-> +2 > /*@internal*/ +3 > export const +4 > +5 > x +6 > = +7 > 10 +8 > ; +1->Emitted(5, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 28) + SourceIndex(1) +4 >Emitted(5, 27) Source(1, 28) + SourceIndex(1) +5 >Emitted(5, 28) Source(1, 29) + SourceIndex(1) +6 >Emitted(5, 31) Source(1, 32) + SourceIndex(1) +7 >Emitted(5, 33) Source(1, 34) + SourceIndex(1) +8 >Emitted(5, 34) Source(1, 35) + SourceIndex(1) +--- +>>> var normalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) +--- +>>> /*@internal*/ function normalC() { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->export class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) +3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) +2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) +2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) +3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) +4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) +5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) +6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) +7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) +3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) +2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) +3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) +4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) +5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) +6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) +7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) +8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) +9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) +2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) +3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) +4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) +5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) +6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) +7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) +--- +>>> return normalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) +2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) +2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) +3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) +--- +>>> exports.normalC = normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > normalC +1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) +--- +>>> var normalN; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} + > +2 > export namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) +3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) +4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) +--- +>>> (function (normalN) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export namespace +3 > normalN +1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) +3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) +2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) +3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) +2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) +3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) +4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) +--- +>>> normalN.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) +2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) +3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) +4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function foo() { } +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) +2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) +3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) +4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) +5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) +6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) +7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) +--- +>>> normalN.foo = foo; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) +2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) +3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) +4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) +2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) +3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) +4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) +5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) +6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) +--- +>>> (function (someNamespace) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) +3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) +2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) +3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) +4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) +--- +>>> someNamespace.C = C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) +2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) +3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) +4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) +2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) +3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) +4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) +5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) +6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) +7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) +8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) +9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) +--- +>>> /*@internal*/ var someOther; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) +2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) +3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) +4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) +5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) +6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) +--- +>>> (function (someOther) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) +3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) +3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) +4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) +3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) +2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) +3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) +4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) +2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) +3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) +4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) +2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) +3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) +4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) +5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) +6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) +7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) +8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) +9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) +2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) +3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) +4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) +5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) +6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) +7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) +8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) +9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) +2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) +3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) +5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) +6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) +7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) +8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) +9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) +2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) +3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) +4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) +5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) +6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) +7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) +2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) +3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) +4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) +5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) +3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) +3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) +3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) +3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) +2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) +3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) +4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) +5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) +6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) +7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) +8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) +9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) +--- +>>> })(normalN = exports.normalN || (exports.normalN = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +10> ^^^-> +1 > + > +2 > } +3 > +4 > normalN +5 > +6 > normalN +7 > +8 > normalN +9 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) +2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) +3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) +4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) +5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) +6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) +7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) +8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) +9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) +--- +>>> /*@internal*/ var internalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > /*@internal*/ +3 > +1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) +2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) +3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) +--- +>>> function internalC() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class internalC { +2 > } +1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) +--- +>>> return internalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class internalC {} +1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) +2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) +3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) +4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) +--- +>>> exports.internalC = internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^-> +1-> +2 > internalC +1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) +2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function internalfoo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> {} + > +2 > /*@internal*/ +3 > +4 > export function +5 > internalfoo +6 > () { +7 > } +1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) +2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) +3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) +4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) +5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) +6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) +7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) +--- +>>> exports.internalfoo = internalfoo; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^-> +1 > +2 > export function internalfoo() {} +1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalNamespace +6 > { export class someClass {} } +1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) +2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) +3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) +4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) +5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) +6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) +--- +>>> (function (internalNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > internalNamespace +1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) +3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) +2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) +3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) +4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) +2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) +3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) +4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) +--- +>>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > +8 > internalNamespace +9 > { export class someClass {} } +1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) +2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) +3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) +4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) +5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) +6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) +7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) +8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) +9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) +--- +>>> /*@internal*/ var internalOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) +2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) +3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) +4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) +5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) +6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) +--- +>>> (function (internalOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 > export namespace +3 > internalOther +1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) +3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) +3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) +4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) +3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) +2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) +3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) +4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) +2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) +3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) +4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) +2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) +3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) +4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) +5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) +6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) +7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) +8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) +9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) +--- +>>> })(internalOther = exports.internalOther || (exports.internalOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > internalOther +5 > +6 > internalOther +7 > +8 > internalOther +9 > .something { export class someClass {} } +1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) +2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) +3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) +4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) +5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) +6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) +7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) +8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) +9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalImport = internalNamespace.someClass; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) +2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) +3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) +5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) +6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) +7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) +8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) +9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) +10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) +2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) +3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) +4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) +5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) +6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) +7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) +8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) +2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) +3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) +4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) +5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) +3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) +3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) +3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) +3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) +--- +>>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) +2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) +3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) +4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) +5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) +6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) +7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) +8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) +9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(100, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(100, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(100, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(100, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(100, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(100, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(102, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(102, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(102, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(102, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(102, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(106, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(106, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(106, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(106, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(106, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(106, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(108, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(108, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(108, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(108, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(108, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(108, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 4143, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 0, + "end": 4143, + "kind": "text" + } + ] + }, + { + "pos": 4143, + "end": 4344, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 191, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 191, + "kind": "text" + } + ] + }, + { + "pos": 191, + "end": 273, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (0-4143):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-4143) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + /*@internal*/ exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (4143-4344) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-191):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-191) +declare module "file1" { + export class normalC { + } + export namespace normalN { + } +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (191-273) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +/*@internal*/ export const x = 10; +export class normalC { + /*@internal*/ constructor() { } + /*@internal*/ prop: string; + /*@internal*/ method() { } + /*@internal*/ get c() { return 10; } + /*@internal*/ set c(val: number) { } +} +export namespace normalN { + /*@internal*/ export class C { } + /*@internal*/ export function foo() {} + /*@internal*/ export namespace someNamespace { export class C {} } + /*@internal*/ export namespace someOther.something { export class someClass {} } + /*@internal*/ export import someImport = someNamespace.C; + /*@internal*/ export type internalType = internalC; + /*@internal*/ export const internalConst = 10; + /*@internal*/ export enum internalEnum { a, b, c } +} +/*@internal*/ export class internalC {} +/*@internal*/ export function internalfoo() {} +/*@internal*/ export namespace internalNamespace { export class someClass {} } +/*@internal*/ export namespace internalOther.something { export class someClass {} } +/*@internal*/ export import internalImport = internalNamespace.someClass; +/*@internal*/ export type internalType = internalC; +/*@internal*/ export const internalConst = 10; +/*@internal*/ export enum internalEnum { a, b, c } + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;sBACF,CAAC,EACM,MAAM;KAClC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >/*@internal*/ +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 15) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 21) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 27) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 32) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^^^-> +1 >/*@internal*/ +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(1, 15) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 21) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 22) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 28) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 29) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 34) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 35) + SourceIndex(1) +--- +>>> export class normalC { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^ +1-> + > +2 > export +3 > class +4 > normalC +1->Emitted(4, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) +3 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) +4 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(6, 9) Source(4, 19) + SourceIndex(1) +2 >Emitted(6, 13) Source(4, 23) + SourceIndex(1) +3 >Emitted(6, 15) Source(4, 25) + SourceIndex(1) +4 >Emitted(6, 21) Source(4, 31) + SourceIndex(1) +5 >Emitted(6, 22) Source(4, 32) + SourceIndex(1) +--- +>>> method(): void; +1->^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(7, 9) Source(5, 19) + SourceIndex(1) +2 >Emitted(7, 15) Source(5, 25) + SourceIndex(1) +--- +>>> /*@internal*/ c: number; +1->^^^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /*@internal*/ get +2 > c +3 > () { return 10; } + > /*@internal*/ set c(val: +4 > number +1->Emitted(8, 23) Source(6, 23) + SourceIndex(1) +2 >Emitted(8, 24) Source(6, 24) + SourceIndex(1) +3 >Emitted(8, 26) Source(7, 30) + SourceIndex(1) +4 >Emitted(8, 32) Source(7, 36) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(9, 6) Source(8, 2) + SourceIndex(1) +--- +>>> export namespace normalN { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^ +5 > ^ +1-> + > +2 > export +3 > namespace +4 > normalN +5 > +1->Emitted(10, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(10, 11) Source(9, 7) + SourceIndex(1) +3 >Emitted(10, 22) Source(9, 18) + SourceIndex(1) +4 >Emitted(10, 29) Source(9, 25) + SourceIndex(1) +5 >Emitted(10, 30) Source(9, 26) + SourceIndex(1) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(11, 9) Source(10, 19) + SourceIndex(1) +2 >Emitted(11, 15) Source(10, 32) + SourceIndex(1) +3 >Emitted(11, 16) Source(10, 33) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(12, 10) Source(10, 37) + SourceIndex(1) +--- +>>> function foo(): void; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(13, 9) Source(11, 19) + SourceIndex(1) +2 >Emitted(13, 18) Source(11, 35) + SourceIndex(1) +3 >Emitted(13, 21) Source(11, 38) + SourceIndex(1) +4 >Emitted(13, 30) Source(11, 43) + SourceIndex(1) +--- +>>> namespace someNamespace { +1->^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(14, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(14, 19) Source(12, 36) + SourceIndex(1) +3 >Emitted(14, 32) Source(12, 49) + SourceIndex(1) +4 >Emitted(14, 33) Source(12, 50) + SourceIndex(1) +--- +>>> class C { +1 >^^^^^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(15, 13) Source(12, 52) + SourceIndex(1) +2 >Emitted(15, 19) Source(12, 65) + SourceIndex(1) +3 >Emitted(15, 20) Source(12, 66) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^^^^^ +1 > {} +1 >Emitted(16, 14) Source(12, 69) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(17, 10) Source(12, 71) + SourceIndex(1) +--- +>>> namespace someOther.something { +1->^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(18, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(18, 19) Source(13, 36) + SourceIndex(1) +3 >Emitted(18, 28) Source(13, 45) + SourceIndex(1) +4 >Emitted(18, 29) Source(13, 46) + SourceIndex(1) +5 >Emitted(18, 38) Source(13, 55) + SourceIndex(1) +6 >Emitted(18, 39) Source(13, 56) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(19, 13) Source(13, 58) + SourceIndex(1) +2 >Emitted(19, 19) Source(13, 71) + SourceIndex(1) +3 >Emitted(19, 28) Source(13, 80) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^^^^^ +1 > {} +1 >Emitted(20, 14) Source(13, 83) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(21, 10) Source(13, 85) + SourceIndex(1) +--- +>>> export import someImport = someNamespace.C; +1->^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /*@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(22, 9) Source(14, 19) + SourceIndex(1) +2 >Emitted(22, 15) Source(14, 25) + SourceIndex(1) +3 >Emitted(22, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(22, 33) Source(14, 43) + SourceIndex(1) +5 >Emitted(22, 36) Source(14, 46) + SourceIndex(1) +6 >Emitted(22, 49) Source(14, 59) + SourceIndex(1) +7 >Emitted(22, 50) Source(14, 60) + SourceIndex(1) +8 >Emitted(22, 51) Source(14, 61) + SourceIndex(1) +9 >Emitted(22, 52) Source(14, 62) + SourceIndex(1) +--- +>>> type internalType = internalC; +1 >^^^^^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(23, 9) Source(15, 19) + SourceIndex(1) +2 >Emitted(23, 14) Source(15, 31) + SourceIndex(1) +3 >Emitted(23, 26) Source(15, 43) + SourceIndex(1) +4 >Emitted(23, 29) Source(15, 46) + SourceIndex(1) +5 >Emitted(23, 38) Source(15, 55) + SourceIndex(1) +6 >Emitted(23, 39) Source(15, 56) + SourceIndex(1) +--- +>>> const internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(24, 9) Source(16, 26) + SourceIndex(1) +2 >Emitted(24, 15) Source(16, 32) + SourceIndex(1) +3 >Emitted(24, 28) Source(16, 45) + SourceIndex(1) +4 >Emitted(24, 33) Source(16, 50) + SourceIndex(1) +5 >Emitted(24, 34) Source(16, 51) + SourceIndex(1) +--- +>>> enum internalEnum { +1 >^^^^^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(25, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(25, 14) Source(17, 31) + SourceIndex(1) +3 >Emitted(25, 26) Source(17, 43) + SourceIndex(1) +--- +>>> a = 0, +1 >^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(26, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(26, 14) Source(17, 47) + SourceIndex(1) +3 >Emitted(26, 18) Source(17, 47) + SourceIndex(1) +--- +>>> b = 1, +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(27, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(27, 14) Source(17, 50) + SourceIndex(1) +3 >Emitted(27, 18) Source(17, 50) + SourceIndex(1) +--- +>>> c = 2 +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(28, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(28, 14) Source(17, 53) + SourceIndex(1) +3 >Emitted(28, 18) Source(17, 53) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > } +1 >Emitted(29, 10) Source(17, 55) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(30, 6) Source(18, 2) + SourceIndex(1) +--- +>>> export class internalC { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 > export +3 > class +4 > internalC +1->Emitted(31, 5) Source(19, 15) + SourceIndex(1) +2 >Emitted(31, 11) Source(19, 21) + SourceIndex(1) +3 >Emitted(31, 18) Source(19, 28) + SourceIndex(1) +4 >Emitted(31, 27) Source(19, 37) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(32, 6) Source(19, 40) + SourceIndex(1) +--- +>>> export function internalfoo(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^ +6 > ^-> +1-> + >/*@internal*/ +2 > export +3 > function +4 > internalfoo +5 > () {} +1->Emitted(33, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(33, 11) Source(20, 21) + SourceIndex(1) +3 >Emitted(33, 21) Source(20, 31) + SourceIndex(1) +4 >Emitted(33, 32) Source(20, 42) + SourceIndex(1) +5 >Emitted(33, 41) Source(20, 47) + SourceIndex(1) +--- +>>> export namespace internalNamespace { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 > export +3 > namespace +4 > internalNamespace +5 > +1->Emitted(34, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(34, 11) Source(21, 21) + SourceIndex(1) +3 >Emitted(34, 22) Source(21, 32) + SourceIndex(1) +4 >Emitted(34, 39) Source(21, 49) + SourceIndex(1) +5 >Emitted(34, 40) Source(21, 50) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(35, 9) Source(21, 52) + SourceIndex(1) +2 >Emitted(35, 15) Source(21, 65) + SourceIndex(1) +3 >Emitted(35, 24) Source(21, 74) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(36, 10) Source(21, 77) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(37, 6) Source(21, 79) + SourceIndex(1) +--- +>>> export namespace internalOther.something { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +1-> + >/*@internal*/ +2 > export +3 > namespace +4 > internalOther +5 > . +6 > something +7 > +1->Emitted(38, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(38, 11) Source(22, 21) + SourceIndex(1) +3 >Emitted(38, 22) Source(22, 32) + SourceIndex(1) +4 >Emitted(38, 35) Source(22, 45) + SourceIndex(1) +5 >Emitted(38, 36) Source(22, 46) + SourceIndex(1) +6 >Emitted(38, 45) Source(22, 55) + SourceIndex(1) +7 >Emitted(38, 46) Source(22, 56) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(39, 9) Source(22, 58) + SourceIndex(1) +2 >Emitted(39, 15) Source(22, 71) + SourceIndex(1) +3 >Emitted(39, 24) Source(22, 80) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(40, 10) Source(22, 83) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(41, 6) Source(22, 85) + SourceIndex(1) +--- +>>> export import internalImport = internalNamespace.someClass; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^^^^^^^^^ +9 > ^ +1-> + >/*@internal*/ +2 > export +3 > import +4 > internalImport +5 > = +6 > internalNamespace +7 > . +8 > someClass +9 > ; +1->Emitted(42, 5) Source(23, 15) + SourceIndex(1) +2 >Emitted(42, 11) Source(23, 21) + SourceIndex(1) +3 >Emitted(42, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(42, 33) Source(23, 43) + SourceIndex(1) +5 >Emitted(42, 36) Source(23, 46) + SourceIndex(1) +6 >Emitted(42, 53) Source(23, 63) + SourceIndex(1) +7 >Emitted(42, 54) Source(23, 64) + SourceIndex(1) +8 >Emitted(42, 63) Source(23, 73) + SourceIndex(1) +9 >Emitted(42, 64) Source(23, 74) + SourceIndex(1) +--- +>>> export type internalType = internalC; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^ +7 > ^ +1 > + >/*@internal*/ +2 > export +3 > type +4 > internalType +5 > = +6 > internalC +7 > ; +1 >Emitted(43, 5) Source(24, 15) + SourceIndex(1) +2 >Emitted(43, 11) Source(24, 21) + SourceIndex(1) +3 >Emitted(43, 17) Source(24, 27) + SourceIndex(1) +4 >Emitted(43, 29) Source(24, 39) + SourceIndex(1) +5 >Emitted(43, 32) Source(24, 42) + SourceIndex(1) +6 >Emitted(43, 41) Source(24, 51) + SourceIndex(1) +7 >Emitted(43, 42) Source(24, 52) + SourceIndex(1) +--- +>>> export const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1 > + >/*@internal*/ +2 > export +3 > +4 > const +5 > internalConst +6 > = 10 +7 > ; +1 >Emitted(44, 5) Source(25, 15) + SourceIndex(1) +2 >Emitted(44, 11) Source(25, 21) + SourceIndex(1) +3 >Emitted(44, 12) Source(25, 22) + SourceIndex(1) +4 >Emitted(44, 18) Source(25, 28) + SourceIndex(1) +5 >Emitted(44, 31) Source(25, 41) + SourceIndex(1) +6 >Emitted(44, 36) Source(25, 46) + SourceIndex(1) +7 >Emitted(44, 37) Source(25, 47) + SourceIndex(1) +--- +>>> export enum internalEnum { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 > export +3 > enum +4 > internalEnum +1 >Emitted(45, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(45, 11) Source(26, 21) + SourceIndex(1) +3 >Emitted(45, 17) Source(26, 27) + SourceIndex(1) +4 >Emitted(45, 29) Source(26, 39) + SourceIndex(1) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(46, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(46, 10) Source(26, 43) + SourceIndex(1) +3 >Emitted(46, 14) Source(26, 43) + SourceIndex(1) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(47, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(47, 10) Source(26, 46) + SourceIndex(1) +3 >Emitted(47, 14) Source(26, 46) + SourceIndex(1) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(48, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(48, 10) Source(26, 49) + SourceIndex(1) +3 >Emitted(48, 14) Source(26, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(49, 6) Source(26, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(52, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(52, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(52, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(52, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(52, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(52, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(52, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(54, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(54, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(54, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(54, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(54, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(54, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + /*@internal*/ exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>/*@internal*/ var myGlob = 20; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >/*@internal*/ +3 > +4 > const +5 > myGlob +6 > = +7 > 20 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) +5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> /*@internal*/ exports.x = 10; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^-> +1-> +2 > /*@internal*/ +3 > export const +4 > +5 > x +6 > = +7 > 10 +8 > ; +1->Emitted(5, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 28) + SourceIndex(1) +4 >Emitted(5, 27) Source(1, 28) + SourceIndex(1) +5 >Emitted(5, 28) Source(1, 29) + SourceIndex(1) +6 >Emitted(5, 31) Source(1, 32) + SourceIndex(1) +7 >Emitted(5, 33) Source(1, 34) + SourceIndex(1) +8 >Emitted(5, 34) Source(1, 35) + SourceIndex(1) +--- +>>> var normalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) +--- +>>> /*@internal*/ function normalC() { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->export class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) +3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) +2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) +2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) +3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) +4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) +5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) +6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) +7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) +3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) +2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) +3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) +4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) +5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) +6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) +7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) +8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) +9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) +2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) +3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) +4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) +5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) +6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) +7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) +--- +>>> return normalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) +2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) +2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) +3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) +--- +>>> exports.normalC = normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > normalC +1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) +--- +>>> var normalN; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} + > +2 > export namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) +3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) +4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) +--- +>>> (function (normalN) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export namespace +3 > normalN +1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) +3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) +2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) +3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) +2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) +3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) +4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) +--- +>>> normalN.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) +2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) +3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) +4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function foo() { } +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) +2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) +3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) +4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) +5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) +6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) +7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) +--- +>>> normalN.foo = foo; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) +2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) +3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) +4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) +2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) +3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) +4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) +5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) +6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) +--- +>>> (function (someNamespace) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) +3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) +2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) +3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) +4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) +--- +>>> someNamespace.C = C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) +2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) +3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) +4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) +2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) +3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) +4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) +5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) +6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) +7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) +8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) +9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) +--- +>>> /*@internal*/ var someOther; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) +2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) +3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) +4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) +5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) +6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) +--- +>>> (function (someOther) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) +3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) +3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) +4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) +3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) +2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) +3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) +4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) +2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) +3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) +4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) +2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) +3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) +4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) +5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) +6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) +7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) +8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) +9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) +2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) +3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) +4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) +5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) +6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) +7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) +8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) +9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) +2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) +3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) +5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) +6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) +7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) +8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) +9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) +2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) +3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) +4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) +5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) +6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) +7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) +2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) +3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) +4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) +5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) +3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) +3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) +3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) +3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) +2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) +3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) +4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) +5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) +6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) +7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) +8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) +9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) +--- +>>> })(normalN = exports.normalN || (exports.normalN = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +10> ^^^-> +1 > + > +2 > } +3 > +4 > normalN +5 > +6 > normalN +7 > +8 > normalN +9 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) +2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) +3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) +4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) +5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) +6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) +7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) +8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) +9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) +--- +>>> /*@internal*/ var internalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > /*@internal*/ +3 > +1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) +2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) +3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) +--- +>>> function internalC() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class internalC { +2 > } +1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) +--- +>>> return internalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class internalC {} +1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) +2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) +3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) +4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) +--- +>>> exports.internalC = internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^-> +1-> +2 > internalC +1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) +2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function internalfoo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> {} + > +2 > /*@internal*/ +3 > +4 > export function +5 > internalfoo +6 > () { +7 > } +1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) +2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) +3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) +4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) +5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) +6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) +7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) +--- +>>> exports.internalfoo = internalfoo; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^-> +1 > +2 > export function internalfoo() {} +1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalNamespace +6 > { export class someClass {} } +1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) +2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) +3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) +4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) +5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) +6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) +--- +>>> (function (internalNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > internalNamespace +1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) +3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) +2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) +3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) +4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) +2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) +3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) +4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) +--- +>>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > +8 > internalNamespace +9 > { export class someClass {} } +1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) +2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) +3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) +4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) +5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) +6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) +7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) +8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) +9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) +--- +>>> /*@internal*/ var internalOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) +2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) +3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) +4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) +5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) +6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) +--- +>>> (function (internalOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 > export namespace +3 > internalOther +1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) +3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) +3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) +4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) +3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) +2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) +3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) +4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) +2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) +3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) +4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) +2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) +3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) +4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) +5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) +6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) +7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) +8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) +9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) +--- +>>> })(internalOther = exports.internalOther || (exports.internalOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > internalOther +5 > +6 > internalOther +7 > +8 > internalOther +9 > .something { export class someClass {} } +1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) +2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) +3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) +4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) +5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) +6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) +7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) +8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) +9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalImport = internalNamespace.someClass; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) +2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) +3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) +5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) +6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) +7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) +8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) +9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) +10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) +2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) +3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) +4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) +5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) +6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) +7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) +8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) +2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) +3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) +4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) +5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) +3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) +3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) +3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) +3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) +--- +>>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) +2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) +3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) +4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) +5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) +6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) +7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) +8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) +9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(100, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(100, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(100, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(100, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(100, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(100, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(102, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(102, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(102, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(102, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(102, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 4143, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 26, + "kind": "internal" + }, + { + "pos": 28, + "end": 54, + "kind": "text" + }, + { + "pos": 54, + "end": 78, + "kind": "internal" + }, + { + "pos": 80, + "end": 108, + "kind": "text" + }, + { + "pos": 108, + "end": 212, + "kind": "internal" + }, + { + "pos": 214, + "end": 253, + "kind": "text" + }, + { + "pos": 253, + "end": 721, + "kind": "internal" + }, + { + "pos": 723, + "end": 730, + "kind": "text" + }, + { + "pos": 730, + "end": 1219, + "kind": "internal" + }, + { + "pos": 1221, + "end": 1312, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (0-4143) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + /*@internal*/ exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +internal: (0-26) +declare const myGlob = 20; +---------------------------------------------------------------------- +text: (28-54) +declare module "file1" { + +---------------------------------------------------------------------- +internal: (54-78) + export const x = 10; +---------------------------------------------------------------------- +text: (80-108) + export class normalC { + +---------------------------------------------------------------------- +internal: (108-212) + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (214-253) + } + export namespace normalN { + +---------------------------------------------------------------------- +internal: (253-721) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (723-730) + } + +---------------------------------------------------------------------- +internal: (730-1219) + export class internalC { + } + export function internalfoo(): void; + export namespace internalNamespace { + class someClass { + } + } + export namespace internalOther.something { + class someClass { + } + } + export import internalImport = internalNamespace.someClass; + export type internalType = internalC; + export const internalConst = 10; + export enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (1221-1312) +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/modules-and-globals-mixed-in-amd.js new file mode 100644 index 00000000000..2773ed36d67 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/modules-and-globals-mixed-in-amd.js @@ -0,0 +1,835 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/app --verbose +4:01:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist + +4:01:00 PM - Building project '/src/lib/tsconfig.json'... + +4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:01:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/module.d.ts] +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(10, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(10, 11) Source(1, 7) + SourceIndex(4) +3 >Emitted(10, 12) Source(1, 8) + SourceIndex(4) +4 >Emitted(10, 18) Source(1, 14) + SourceIndex(4) +5 >Emitted(10, 19) Source(1, 15) + SourceIndex(4) +6 >Emitted(10, 24) Source(1, 20) + SourceIndex(4) +7 >Emitted(10, 25) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(12, 9) Source(1, 1) + SourceIndex(5) +3 >Emitted(12, 15) Source(1, 7) + SourceIndex(5) +4 >Emitted(12, 20) Source(1, 12) + SourceIndex(5) +5 >Emitted(12, 25) Source(1, 17) + SourceIndex(5) +6 >Emitted(12, 26) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(10, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(10, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(10, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(10, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(10, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(10, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(12, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(12, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(12, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(12, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(12, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(16, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(16, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(16, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(16, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(16, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(16, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(18, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(18, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(18, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(18, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(18, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 409, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 0, + "end": 409, + "kind": "text" + } + ] + }, + { + "pos": 409, + "end": 610, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (0-409):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-409) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (409-610) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (171-253) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/module.d.ts] +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(10, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(10, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(10, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(10, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(10, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(10, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(12, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(12, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(12, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(12, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(12, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 409, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (0-409) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..bbc069cc44f --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js @@ -0,0 +1,1731 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/app --verbose +4:01:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist + +4:01:00 PM - Building project '/src/lib/tsconfig.json'... + +4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:01:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/file3.ts] +export const z = 30; +import { x } from "file1";function forappfile3Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + +//// [/src/app/file4.ts] +const myVar = 30; +function appfile4Spread(...b: number[]) { } +appfile4Spread(...[10, 20, 30]); + +//// [/src/app/module.d.ts] +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +declare function appfile4Spread(...b: number[]): void; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;;ICD3C,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +--- +>>>declare function libfile0Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 18) Source(2, 10) + SourceIndex(0) +3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) +4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) +5 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) +6 >Emitted(2, 39) Source(2, 31) + SourceIndex(0) +7 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) +8 >Emitted(2, 47) Source(2, 39) + SourceIndex(0) +9 >Emitted(2, 55) Source(2, 44) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(4, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(4, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(4, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(4, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(4, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(4, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(11, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(11, 11) Source(1, 7) + SourceIndex(4) +3 >Emitted(11, 12) Source(1, 8) + SourceIndex(4) +4 >Emitted(11, 18) Source(1, 14) + SourceIndex(4) +5 >Emitted(11, 19) Source(1, 15) + SourceIndex(4) +6 >Emitted(11, 24) Source(1, 20) + SourceIndex(4) +7 >Emitted(11, 25) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(13, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(13, 9) Source(1, 1) + SourceIndex(5) +3 >Emitted(13, 15) Source(1, 7) + SourceIndex(5) +4 >Emitted(13, 20) Source(1, 12) + SourceIndex(5) +5 >Emitted(13, 25) Source(1, 17) + SourceIndex(5) +6 >Emitted(13, 26) Source(1, 18) + SourceIndex(5) +--- +>>>declare function appfile4Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > appfile4Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(14, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(14, 18) Source(2, 10) + SourceIndex(5) +3 >Emitted(14, 32) Source(2, 24) + SourceIndex(5) +4 >Emitted(14, 33) Source(2, 25) + SourceIndex(5) +5 >Emitted(14, 36) Source(2, 28) + SourceIndex(5) +6 >Emitted(14, 39) Source(2, 31) + SourceIndex(5) +7 >Emitted(14, 45) Source(2, 37) + SourceIndex(5) +8 >Emitted(14, 47) Source(2, 39) + SourceIndex(5) +9 >Emitted(14, 55) Source(2, 44) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; + function forappfile3Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +var myVar = 30; +function appfile4Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +appfile4Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^^^^^^^^^^^^^^^^^-> +1-> + > +2 >libfile0Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) +3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) +4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) +5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) +6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) +7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) +8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) +9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) +10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) +11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(43, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > function +3 > forlibfile1Rest +1->Emitted(44, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(45, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(45, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(45, 42) Source(2, 48) + SourceIndex(1) +4 >Emitted(45, 44) Source(2, 9) + SourceIndex(1) +5 >Emitted(45, 52) Source(2, 10) + SourceIndex(1) +6 >Emitted(45, 54) Source(2, 12) + SourceIndex(1) +7 >Emitted(45, 78) Source(2, 48) + SourceIndex(1) +8 >Emitted(45, 79) Source(2, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(46, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(46, 6) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(51, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(51, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(51, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(51, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(51, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(51, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(53, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(53, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(53, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(53, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(53, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(53, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(57, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(57, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(57, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(57, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(57, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(57, 20) Source(1, 21) + SourceIndex(4) +--- +>>> function forappfile3Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >import { x } from "file1"; +2 > function +3 > forappfile3Rest +1->Emitted(58, 5) Source(2, 27) + SourceIndex(4) +2 >Emitted(58, 14) Source(2, 36) + SourceIndex(4) +3 >Emitted(58, 29) Source(2, 51) + SourceIndex(4) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(59, 9) Source(3, 1) + SourceIndex(4) +2 >Emitted(59, 13) Source(3, 7) + SourceIndex(4) +3 >Emitted(59, 42) Source(3, 48) + SourceIndex(4) +4 >Emitted(59, 44) Source(3, 9) + SourceIndex(4) +5 >Emitted(59, 52) Source(3, 10) + SourceIndex(4) +6 >Emitted(59, 54) Source(3, 12) + SourceIndex(4) +7 >Emitted(59, 78) Source(3, 48) + SourceIndex(4) +8 >Emitted(59, 79) Source(3, 49) + SourceIndex(4) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(60, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(60, 6) Source(4, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(62, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(62, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(62, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(62, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(62, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(62, 16) Source(1, 18) + SourceIndex(5) +--- +>>>function appfile4Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > appfile4Spread +1->Emitted(63, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(63, 10) Source(2, 10) + SourceIndex(5) +3 >Emitted(63, 24) Source(2, 24) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(64, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(64, 16) Source(2, 39) + SourceIndex(5) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(65, 10) Source(2, 25) + SourceIndex(5) +2 >Emitted(65, 20) Source(2, 39) + SourceIndex(5) +3 >Emitted(65, 22) Source(2, 25) + SourceIndex(5) +4 >Emitted(65, 43) Source(2, 39) + SourceIndex(5) +5 >Emitted(65, 45) Source(2, 25) + SourceIndex(5) +6 >Emitted(65, 49) Source(2, 39) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(66, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(66, 31) Source(2, 39) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(68, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(68, 2) Source(2, 44) + SourceIndex(5) +--- +>>>appfile4Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >appfile4Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(69, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(69, 15) Source(3, 15) + SourceIndex(5) +3 >Emitted(69, 39) Source(3, 19) + SourceIndex(5) +4 >Emitted(69, 40) Source(3, 20) + SourceIndex(5) +5 >Emitted(69, 42) Source(3, 22) + SourceIndex(5) +6 >Emitted(69, 44) Source(3, 24) + SourceIndex(5) +7 >Emitted(69, 46) Source(3, 26) + SourceIndex(5) +8 >Emitted(69, 48) Source(3, 28) + SourceIndex(5) +9 >Emitted(69, 50) Source(3, 30) + SourceIndex(5) +10>Emitted(69, 51) Source(3, 31) + SourceIndex(5) +11>Emitted(69, 54) Source(3, 33) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 678, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1180, + "end": 1906, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 1180, + "end": 1906, + "kind": "text" + } + ] + }, + { + "pos": 1906, + "end": 2424, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 227, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 227, + "kind": "text" + } + ] + }, + { + "pos": 227, + "end": 365, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (678-1178):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (1180-1906):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1180-1906) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (1906-2424) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; + function forappfile3Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +var myVar = 30; +function appfile4Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +appfile4Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-227):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-227) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (227-365) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +declare function appfile4Spread(...b: number[]): void; + +====================================================================== + +//// [/src/app/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": ["module.d.ts"] + "references": [ + { "path": "../lib", "prepend": true } + ] +} + +//// [/src/lib/file0.ts] +const myGlob = 20; +function libfile0Spread(...b: number[]) { } +libfile0Spread(...[10, 20, 30]); + +//// [/src/lib/file1.ts] +export const x = 10;function forlibfile1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + +//// [/src/lib/module.d.ts] +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;;ICD3C,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +--- +>>>declare function libfile0Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 18) Source(2, 10) + SourceIndex(0) +3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) +4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) +5 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) +6 >Emitted(2, 39) Source(2, 31) + SourceIndex(0) +7 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) +8 >Emitted(2, 47) Source(2, 39) + SourceIndex(0) +9 >Emitted(2, 55) Source(2, 44) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(4, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(4, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(4, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(4, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(4, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(4, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^^^^^^^^^^^^^^^^^-> +1-> + > +2 >libfile0Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) +3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) +4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) +5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) +6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) +7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) +8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) +9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) +10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) +11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(43, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > function +3 > forlibfile1Rest +1->Emitted(44, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(45, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(45, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(45, 42) Source(2, 48) + SourceIndex(1) +4 >Emitted(45, 44) Source(2, 9) + SourceIndex(1) +5 >Emitted(45, 52) Source(2, 10) + SourceIndex(1) +6 >Emitted(45, 54) Source(2, 12) + SourceIndex(1) +7 >Emitted(45, 78) Source(2, 48) + SourceIndex(1) +8 >Emitted(45, 79) Source(2, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(46, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(46, 6) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(51, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(51, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(51, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(51, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(51, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(51, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(53, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(53, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(53, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(53, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(53, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(53, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 678, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1180, + "end": 1906, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spread", + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 227, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (678-1178):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (1180-1906) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-227) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + +//// [/src/lib/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "downlevelIteration": true, + "outFile": "module.js" + }, + "exclude": ["module.d.ts"] + +} + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-prologues-in-all-projects.js new file mode 100644 index 00000000000..b87b167bc66 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-prologues-in-all-projects.js @@ -0,0 +1,1169 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/app --verbose +4:01:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist + +4:01:00 PM - Building project '/src/lib/tsconfig.json'... + +4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:01:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/file3.ts] +"myPrologue" +export const z = 30; +import { x } from "file1"; + +//// [/src/app/file4.ts] +"myPrologue2"; +const myVar = 30; + +//// [/src/app/module.d.ts] +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >"myPrologue" + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologueFile" + > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 >"myPrologue3" + > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(2, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologue" + > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(10, 5) Source(2, 1) + SourceIndex(4) +2 >Emitted(10, 11) Source(2, 7) + SourceIndex(4) +3 >Emitted(10, 12) Source(2, 8) + SourceIndex(4) +4 >Emitted(10, 18) Source(2, 14) + SourceIndex(4) +5 >Emitted(10, 19) Source(2, 15) + SourceIndex(4) +6 >Emitted(10, 24) Source(2, 20) + SourceIndex(4) +7 >Emitted(10, 25) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 >"myPrologue2"; + > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(12, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(12, 9) Source(2, 1) + SourceIndex(5) +3 >Emitted(12, 15) Source(2, 7) + SourceIndex(5) +4 >Emitted(12, 20) Source(2, 12) + SourceIndex(5) +5 >Emitted(12, 25) Source(2, 17) + SourceIndex(5) +6 >Emitted(12, 26) Source(2, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +"use strict"; +"myPrologue"; +"myPrologue3"; +"myPrologue2"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/global.ts","file4.ts","../lib/file1.ts","../lib/file2.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,YAAY,CAAA;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/global.ts,file4.ts,../lib/file1.ts,../lib/file2.ts,file3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> +2 >"myPrologue3" +3 > +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) +3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue" + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(5, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(5, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(5, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(5, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(5, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(9, 5) Source(1, 14) + SourceIndex(3) +2 >Emitted(9, 13) Source(1, 14) + SourceIndex(3) +3 >Emitted(9, 14) Source(1, 15) + SourceIndex(3) +4 >Emitted(9, 17) Source(1, 18) + SourceIndex(3) +5 >Emitted(9, 19) Source(1, 20) + SourceIndex(3) +6 >Emitted(9, 20) Source(1, 21) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologueFile"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > "myPrologueFile" +3 > +1 >Emitted(13, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(13, 21) Source(1, 17) + SourceIndex(4) +3 >Emitted(13, 22) Source(1, 17) + SourceIndex(4) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(15, 5) Source(2, 14) + SourceIndex(4) +2 >Emitted(15, 13) Source(2, 14) + SourceIndex(4) +3 >Emitted(15, 14) Source(2, 15) + SourceIndex(4) +4 >Emitted(15, 17) Source(2, 18) + SourceIndex(4) +5 >Emitted(15, 19) Source(2, 20) + SourceIndex(4) +6 >Emitted(15, 20) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >"myPrologue3" + > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(17, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(17, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(17, 16) Source(2, 18) + SourceIndex(1) +4 >Emitted(17, 19) Source(2, 21) + SourceIndex(1) +5 >Emitted(17, 21) Source(2, 23) + SourceIndex(1) +6 >Emitted(17, 22) Source(2, 24) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologue"; +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > "myPrologue" +3 > +1->Emitted(20, 5) Source(1, 1) + SourceIndex(5) +2 >Emitted(20, 17) Source(1, 13) + SourceIndex(5) +3 >Emitted(20, 18) Source(1, 13) + SourceIndex(5) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(22, 5) Source(2, 14) + SourceIndex(5) +2 >Emitted(22, 13) Source(2, 14) + SourceIndex(5) +3 >Emitted(22, 14) Source(2, 15) + SourceIndex(5) +4 >Emitted(22, 17) Source(2, 18) + SourceIndex(5) +5 >Emitted(22, 19) Source(2, 20) + SourceIndex(5) +6 >Emitted(22, 20) Source(2, 21) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 >"myPrologue2"; + > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(24, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(2, 7) + SourceIndex(2) +3 >Emitted(24, 10) Source(2, 12) + SourceIndex(2) +4 >Emitted(24, 13) Source(2, 15) + SourceIndex(2) +5 >Emitted(24, 15) Source(2, 17) + SourceIndex(2) +6 >Emitted(24, 16) Source(2, 18) + SourceIndex(2) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 62, + "end": 494, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 62, + "end": 494, + "kind": "text" + } + ] + }, + { + "pos": 494, + "end": 714, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 1, + "text": "\"myPrologue2\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue2" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (62-494):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (62-494) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (494-714) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (171-253) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/app/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": ["module.d.ts"] + "references": [ + { "path": "../lib", "prepend": true } + ] +} + +//// [/src/lib/file0.ts] +"myPrologue" +const myGlob = 20; + +//// [/src/lib/file2.ts] +"myPrologueFile" +export const y = 20; + +//// [/src/lib/global.ts] +"myPrologue3" +const globalConst = 10; + +//// [/src/lib/module.d.ts] +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >"myPrologue" + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologueFile" + > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 >"myPrologue3" + > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(2, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +"use strict"; +"myPrologue"; +"myPrologue3"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,global.ts,file1.ts,file2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^-> +1-> +2 >"myPrologue3" +3 > +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue" + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(4, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(8, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(8, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(8, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(8, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(8, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(8, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologueFile"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > "myPrologueFile" +3 > +1 >Emitted(12, 5) Source(1, 1) + SourceIndex(3) +2 >Emitted(12, 21) Source(1, 17) + SourceIndex(3) +3 >Emitted(12, 22) Source(1, 17) + SourceIndex(3) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(14, 5) Source(2, 14) + SourceIndex(3) +2 >Emitted(14, 13) Source(2, 14) + SourceIndex(3) +3 >Emitted(14, 14) Source(2, 15) + SourceIndex(3) +4 >Emitted(14, 17) Source(2, 18) + SourceIndex(3) +5 >Emitted(14, 19) Source(2, 20) + SourceIndex(3) +6 >Emitted(14, 20) Source(2, 21) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 >"myPrologue3" + > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(16, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(16, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(16, 16) Source(2, 18) + SourceIndex(1) +4 >Emitted(16, 19) Source(2, 21) + SourceIndex(1) +5 >Emitted(16, 21) Source(2, 23) + SourceIndex(1) +6 >Emitted(16, 22) Source(2, 24) + SourceIndex(1) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 46, + "end": 478, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + }, + { + "file": 3, + "text": "\"myPrologue3\"", + "directives": [ + { + "pos": 0, + "end": 13, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue3" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +text: (46-478) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + +//// [/src/lib/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": true, + "outFile": "module.js" + }, + "exclude": ["module.d.ts"] + +} + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/shebang-in-all-projects.js new file mode 100644 index 00000000000..48e53ba2ecb --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/shebang-in-all-projects.js @@ -0,0 +1,866 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/app --verbose +4:01:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist + +4:01:00 PM - Building project '/src/lib/tsconfig.json'... + +4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:01:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/file3.ts] +#!someshebang app file3 +export const z = 30; +import { x } from "file1"; + +//// [/src/app/module.d.ts] +#!someshebang lib file0 +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>#!someshebang lib file0 +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >#!someshebang lib file0 + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) +5 >Emitted(2, 26) Source(2, 18) + SourceIndex(0) +6 >Emitted(2, 27) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >#!someshebang lib file1 + > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(4, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) +3 >Emitted(4, 12) Source(2, 8) + SourceIndex(1) +4 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) +5 >Emitted(4, 19) Source(2, 15) + SourceIndex(1) +6 >Emitted(4, 24) Source(2, 20) + SourceIndex(1) +7 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >#!someshebang app file3 + > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(11, 5) Source(2, 1) + SourceIndex(4) +2 >Emitted(11, 11) Source(2, 7) + SourceIndex(4) +3 >Emitted(11, 12) Source(2, 8) + SourceIndex(4) +4 >Emitted(11, 18) Source(2, 14) + SourceIndex(4) +5 >Emitted(11, 19) Source(2, 15) + SourceIndex(4) +6 >Emitted(11, 24) Source(2, 20) + SourceIndex(4) +7 >Emitted(11, 25) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(13, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(13, 9) Source(1, 1) + SourceIndex(5) +3 >Emitted(13, 15) Source(1, 7) + SourceIndex(5) +4 >Emitted(13, 20) Source(1, 12) + SourceIndex(5) +5 >Emitted(13, 25) Source(1, 17) + SourceIndex(5) +6 >Emitted(13, 26) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +#!someshebang lib file0 +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>#!someshebang lib file0 +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >#!someshebang lib file0 + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->#!someshebang lib file1 + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(6, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(6, 13) Source(2, 14) + SourceIndex(1) +3 >Emitted(6, 14) Source(2, 15) + SourceIndex(1) +4 >Emitted(6, 17) Source(2, 18) + SourceIndex(1) +5 >Emitted(6, 19) Source(2, 20) + SourceIndex(1) +6 >Emitted(6, 20) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->#!someshebang app file3 + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(17, 5) Source(2, 14) + SourceIndex(4) +2 >Emitted(17, 13) Source(2, 14) + SourceIndex(4) +3 >Emitted(17, 14) Source(2, 15) + SourceIndex(4) +4 >Emitted(17, 17) Source(2, 18) + SourceIndex(4) +5 >Emitted(17, 19) Source(2, 20) + SourceIndex(4) +6 >Emitted(17, 20) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(19, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(19, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(19, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(19, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(19, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 25, + "end": 434, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 25, + "end": 434, + "kind": "text" + } + ] + }, + { + "pos": 434, + "end": 635, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 25, + "end": 196, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 25, + "end": 196, + "kind": "text" + } + ] + }, + { + "pos": 196, + "end": 278, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (25-434):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (25-434) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (434-635) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (25-196):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (25-196) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (196-278) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file0.ts] +#!someshebang lib file0 +const myGlob = 20; + +//// [/src/lib/file1.ts] +#!someshebang lib file1 +export const x = 10; + +//// [/src/lib/module.d.ts] +#!someshebang lib file0 +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>#!someshebang lib file0 +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >#!someshebang lib file0 + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) +5 >Emitted(2, 26) Source(2, 18) + SourceIndex(0) +6 >Emitted(2, 27) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >#!someshebang lib file1 + > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(4, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) +3 >Emitted(4, 12) Source(2, 8) + SourceIndex(1) +4 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) +5 >Emitted(4, 19) Source(2, 15) + SourceIndex(1) +6 >Emitted(4, 24) Source(2, 20) + SourceIndex(1) +7 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +#!someshebang lib file0 +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>#!someshebang lib file0 +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >#!someshebang lib file0 + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->#!someshebang lib file1 + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(6, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(6, 13) Source(2, 14) + SourceIndex(1) +3 >Emitted(6, 14) Source(2, 15) + SourceIndex(1) +4 >Emitted(6, 17) Source(2, 18) + SourceIndex(1) +5 >Emitted(6, 19) Source(2, 20) + SourceIndex(1) +6 >Emitted(6, 20) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 25, + "end": 434, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 25, + "end": 196, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (25-434) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (25-196) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js new file mode 100644 index 00000000000..2180d402e80 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js @@ -0,0 +1,4727 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/app --verbose +4:01:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist + +4:01:00 PM - Building project '/src/lib/tsconfig.json'... + +4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:01:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/module.d.ts] +declare module "file1" { + export const x = 10; + export class normalC { + } + export namespace normalN { + } +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^^^-> +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(2, 5) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(1, 7) + SourceIndex(0) +3 >Emitted(2, 12) Source(1, 8) + SourceIndex(0) +4 >Emitted(2, 18) Source(1, 14) + SourceIndex(0) +5 >Emitted(2, 19) Source(1, 15) + SourceIndex(0) +6 >Emitted(2, 24) Source(1, 20) + SourceIndex(0) +7 >Emitted(2, 25) Source(1, 21) + SourceIndex(0) +--- +>>> export class normalC { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^ +1-> + > +2 > export +3 > class +4 > normalC +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 11) Source(2, 7) + SourceIndex(0) +3 >Emitted(3, 18) Source(2, 14) + SourceIndex(0) +4 >Emitted(3, 25) Source(2, 21) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(4, 6) Source(8, 2) + SourceIndex(0) +--- +>>> export namespace normalN { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^ +5 > ^ +1-> + > +2 > export +3 > namespace +4 > normalN +5 > +1->Emitted(5, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(9, 7) + SourceIndex(0) +3 >Emitted(5, 22) Source(9, 18) + SourceIndex(0) +4 >Emitted(5, 29) Source(9, 25) + SourceIndex(0) +5 >Emitted(5, 30) Source(9, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(6, 6) Source(18, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(9, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(9, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(9, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(9, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(9, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(9, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(11, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(11, 9) Source(1, 1) + SourceIndex(2) +3 >Emitted(11, 15) Source(1, 7) + SourceIndex(2) +4 >Emitted(11, 26) Source(1, 18) + SourceIndex(2) +5 >Emitted(11, 31) Source(1, 23) + SourceIndex(2) +6 >Emitted(11, 32) Source(1, 24) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(13, 5) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 11) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 12) Source(1, 8) + SourceIndex(3) +4 >Emitted(13, 18) Source(1, 14) + SourceIndex(3) +5 >Emitted(13, 19) Source(1, 15) + SourceIndex(3) +6 >Emitted(13, 24) Source(1, 20) + SourceIndex(3) +7 >Emitted(13, 25) Source(1, 21) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(15, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(15, 15) Source(1, 7) + SourceIndex(4) +4 >Emitted(15, 20) Source(1, 12) + SourceIndex(4) +5 >Emitted(15, 25) Source(1, 17) + SourceIndex(4) +6 >Emitted(15, 26) Source(1, 18) + SourceIndex(4) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>/*@internal*/ var myGlob = 20; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >/*@internal*/ +3 > +4 > const +5 > myGlob +6 > = +7 > 20 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) +5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +>>> var normalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) +--- +>>> /*@internal*/ function normalC() { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->export class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) +3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) +2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) +2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) +3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) +4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) +5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) +6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) +7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) +3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) +2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) +3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) +4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) +5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) +6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) +7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) +8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) +9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) +2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) +3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) +4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) +5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) +6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) +7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) +--- +>>> return normalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) +2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) +2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) +3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) +--- +>>> exports.normalC = normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > normalC +1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) +--- +>>> var normalN; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} + > +2 > export namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) +3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) +4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) +--- +>>> (function (normalN) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export namespace +3 > normalN +1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) +3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) +2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) +3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) +2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) +3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) +4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) +--- +>>> normalN.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) +2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) +3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) +4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function foo() { } +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) +2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) +3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) +4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) +5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) +6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) +7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) +--- +>>> normalN.foo = foo; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) +2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) +3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) +4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) +2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) +3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) +4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) +5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) +6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) +--- +>>> (function (someNamespace) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) +3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) +2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) +3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) +4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) +--- +>>> someNamespace.C = C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) +2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) +3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) +4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) +2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) +3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) +4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) +5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) +6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) +7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) +8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) +9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) +--- +>>> /*@internal*/ var someOther; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) +2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) +3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) +4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) +5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) +6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) +--- +>>> (function (someOther) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) +3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) +3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) +4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) +3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) +2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) +3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) +4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) +2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) +3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) +4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) +2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) +3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) +4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) +5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) +6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) +7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) +8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) +9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) +2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) +3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) +4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) +5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) +6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) +7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) +8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) +9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) +2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) +3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) +5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) +6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) +7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) +8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) +9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) +2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) +3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) +4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) +5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) +6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) +7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) +2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) +3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) +4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) +5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) +3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) +3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) +3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) +3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) +2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) +3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) +4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) +5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) +6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) +7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) +8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) +9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) +--- +>>> })(normalN = exports.normalN || (exports.normalN = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +10> ^^^-> +1 > + > +2 > } +3 > +4 > normalN +5 > +6 > normalN +7 > +8 > normalN +9 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) +2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) +3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) +4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) +5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) +6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) +7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) +8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) +9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) +--- +>>> /*@internal*/ var internalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > /*@internal*/ +3 > +1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) +2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) +3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) +--- +>>> function internalC() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class internalC { +2 > } +1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) +--- +>>> return internalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class internalC {} +1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) +2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) +3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) +4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) +--- +>>> exports.internalC = internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^-> +1-> +2 > internalC +1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) +2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function internalfoo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> {} + > +2 > /*@internal*/ +3 > +4 > export function +5 > internalfoo +6 > () { +7 > } +1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) +2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) +3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) +4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) +5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) +6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) +7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) +--- +>>> exports.internalfoo = internalfoo; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^-> +1 > +2 > export function internalfoo() {} +1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalNamespace +6 > { export class someClass {} } +1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) +2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) +3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) +4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) +5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) +6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) +--- +>>> (function (internalNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > internalNamespace +1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) +3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) +2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) +3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) +4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) +2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) +3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) +4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) +--- +>>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > +8 > internalNamespace +9 > { export class someClass {} } +1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) +2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) +3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) +4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) +5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) +6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) +7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) +8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) +9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) +--- +>>> /*@internal*/ var internalOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) +2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) +3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) +4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) +5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) +6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) +--- +>>> (function (internalOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 > export namespace +3 > internalOther +1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) +3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) +3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) +4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) +3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) +2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) +3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) +4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) +2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) +3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) +4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) +2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) +3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) +4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) +5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) +6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) +7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) +8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) +9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) +--- +>>> })(internalOther = exports.internalOther || (exports.internalOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > internalOther +5 > +6 > internalOther +7 > +8 > internalOther +9 > .something { export class someClass {} } +1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) +2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) +3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) +4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) +5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) +6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) +7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) +8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) +9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalImport = internalNamespace.someClass; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) +2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) +3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) +5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) +6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) +7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) +8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) +9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) +10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) +2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) +3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) +4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) +5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) +6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) +7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) +8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) +2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) +3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) +4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) +5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) +3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) +3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) +3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) +3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) +--- +>>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) +2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) +3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) +4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) +5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) +6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) +7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) +8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) +9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(100, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(100, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(100, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(100, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(100, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(100, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(102, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(102, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(102, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(102, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(102, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(106, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(106, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(106, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(106, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(106, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(106, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(108, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(108, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(108, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(108, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(108, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(108, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 4129, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 0, + "end": 4129, + "kind": "text" + } + ] + }, + { + "pos": 4129, + "end": 4330, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 217, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 217, + "kind": "text" + } + ] + }, + { + "pos": 217, + "end": 299, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (0-4129):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-4129) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (4129-4330) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-217):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-217) +declare module "file1" { + export const x = 10; + export class normalC { + } + export namespace normalN { + } +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (217-299) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/app/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, +"stripInternal": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": ["module.d.ts"] + "references": [ + { "path": "../lib", "prepend": true } + ] +} + +//// [/src/lib/file0.ts] +/*@internal*/ const myGlob = 20; + +//// [/src/lib/file1.ts] +export const x = 10; +export class normalC { + /*@internal*/ constructor() { } + /*@internal*/ prop: string; + /*@internal*/ method() { } + /*@internal*/ get c() { return 10; } + /*@internal*/ set c(val: number) { } +} +export namespace normalN { + /*@internal*/ export class C { } + /*@internal*/ export function foo() {} + /*@internal*/ export namespace someNamespace { export class C {} } + /*@internal*/ export namespace someOther.something { export class someClass {} } + /*@internal*/ export import someImport = someNamespace.C; + /*@internal*/ export type internalType = internalC; + /*@internal*/ export const internalConst = 10; + /*@internal*/ export enum internalEnum { a, b, c } +} +/*@internal*/ export class internalC {} +/*@internal*/ export function internalfoo() {} +/*@internal*/ export namespace internalNamespace { export class someClass {} } +/*@internal*/ export namespace internalOther.something { export class someClass {} } +/*@internal*/ export import internalImport = internalNamespace.someClass; +/*@internal*/ export type internalType = internalC; +/*@internal*/ export const internalConst = 10; +/*@internal*/ export enum internalEnum { a, b, c } + +//// [/src/lib/module.d.ts] +declare const myGlob = 20; +declare module "file1" { + export const x = 10; + export class normalC { + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; + } + export namespace normalN { + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } + } + export class internalC { + } + export function internalfoo(): void; + export namespace internalNamespace { + class someClass { + } + } + export namespace internalOther.something { + class someClass { + } + } + export import internalImport = internalNamespace.someClass; + export type internalType = internalC; + export const internalConst = 10; + export enum internalEnum { + a = 0, + b = 1, + c = 2 + } +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAhC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;sBACF,CAAC,EACM,MAAM;KAClC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >/*@internal*/ +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 15) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 21) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 27) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 32) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^^^-> +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +>>> export class normalC { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^ +1-> + > +2 > export +3 > class +4 > normalC +1->Emitted(4, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) +3 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) +4 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(6, 9) Source(4, 19) + SourceIndex(1) +2 >Emitted(6, 13) Source(4, 23) + SourceIndex(1) +3 >Emitted(6, 15) Source(4, 25) + SourceIndex(1) +4 >Emitted(6, 21) Source(4, 31) + SourceIndex(1) +5 >Emitted(6, 22) Source(4, 32) + SourceIndex(1) +--- +>>> method(): void; +1->^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(7, 9) Source(5, 19) + SourceIndex(1) +2 >Emitted(7, 15) Source(5, 25) + SourceIndex(1) +--- +>>> /*@internal*/ c: number; +1->^^^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /*@internal*/ get +2 > c +3 > () { return 10; } + > /*@internal*/ set c(val: +4 > number +1->Emitted(8, 23) Source(6, 23) + SourceIndex(1) +2 >Emitted(8, 24) Source(6, 24) + SourceIndex(1) +3 >Emitted(8, 26) Source(7, 30) + SourceIndex(1) +4 >Emitted(8, 32) Source(7, 36) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(9, 6) Source(8, 2) + SourceIndex(1) +--- +>>> export namespace normalN { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^ +5 > ^ +1-> + > +2 > export +3 > namespace +4 > normalN +5 > +1->Emitted(10, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(10, 11) Source(9, 7) + SourceIndex(1) +3 >Emitted(10, 22) Source(9, 18) + SourceIndex(1) +4 >Emitted(10, 29) Source(9, 25) + SourceIndex(1) +5 >Emitted(10, 30) Source(9, 26) + SourceIndex(1) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(11, 9) Source(10, 19) + SourceIndex(1) +2 >Emitted(11, 15) Source(10, 32) + SourceIndex(1) +3 >Emitted(11, 16) Source(10, 33) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(12, 10) Source(10, 37) + SourceIndex(1) +--- +>>> function foo(): void; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(13, 9) Source(11, 19) + SourceIndex(1) +2 >Emitted(13, 18) Source(11, 35) + SourceIndex(1) +3 >Emitted(13, 21) Source(11, 38) + SourceIndex(1) +4 >Emitted(13, 30) Source(11, 43) + SourceIndex(1) +--- +>>> namespace someNamespace { +1->^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(14, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(14, 19) Source(12, 36) + SourceIndex(1) +3 >Emitted(14, 32) Source(12, 49) + SourceIndex(1) +4 >Emitted(14, 33) Source(12, 50) + SourceIndex(1) +--- +>>> class C { +1 >^^^^^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(15, 13) Source(12, 52) + SourceIndex(1) +2 >Emitted(15, 19) Source(12, 65) + SourceIndex(1) +3 >Emitted(15, 20) Source(12, 66) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^^^^^ +1 > {} +1 >Emitted(16, 14) Source(12, 69) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(17, 10) Source(12, 71) + SourceIndex(1) +--- +>>> namespace someOther.something { +1->^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(18, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(18, 19) Source(13, 36) + SourceIndex(1) +3 >Emitted(18, 28) Source(13, 45) + SourceIndex(1) +4 >Emitted(18, 29) Source(13, 46) + SourceIndex(1) +5 >Emitted(18, 38) Source(13, 55) + SourceIndex(1) +6 >Emitted(18, 39) Source(13, 56) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(19, 13) Source(13, 58) + SourceIndex(1) +2 >Emitted(19, 19) Source(13, 71) + SourceIndex(1) +3 >Emitted(19, 28) Source(13, 80) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^^^^^ +1 > {} +1 >Emitted(20, 14) Source(13, 83) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(21, 10) Source(13, 85) + SourceIndex(1) +--- +>>> export import someImport = someNamespace.C; +1->^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /*@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(22, 9) Source(14, 19) + SourceIndex(1) +2 >Emitted(22, 15) Source(14, 25) + SourceIndex(1) +3 >Emitted(22, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(22, 33) Source(14, 43) + SourceIndex(1) +5 >Emitted(22, 36) Source(14, 46) + SourceIndex(1) +6 >Emitted(22, 49) Source(14, 59) + SourceIndex(1) +7 >Emitted(22, 50) Source(14, 60) + SourceIndex(1) +8 >Emitted(22, 51) Source(14, 61) + SourceIndex(1) +9 >Emitted(22, 52) Source(14, 62) + SourceIndex(1) +--- +>>> type internalType = internalC; +1 >^^^^^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(23, 9) Source(15, 19) + SourceIndex(1) +2 >Emitted(23, 14) Source(15, 31) + SourceIndex(1) +3 >Emitted(23, 26) Source(15, 43) + SourceIndex(1) +4 >Emitted(23, 29) Source(15, 46) + SourceIndex(1) +5 >Emitted(23, 38) Source(15, 55) + SourceIndex(1) +6 >Emitted(23, 39) Source(15, 56) + SourceIndex(1) +--- +>>> const internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(24, 9) Source(16, 26) + SourceIndex(1) +2 >Emitted(24, 15) Source(16, 32) + SourceIndex(1) +3 >Emitted(24, 28) Source(16, 45) + SourceIndex(1) +4 >Emitted(24, 33) Source(16, 50) + SourceIndex(1) +5 >Emitted(24, 34) Source(16, 51) + SourceIndex(1) +--- +>>> enum internalEnum { +1 >^^^^^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(25, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(25, 14) Source(17, 31) + SourceIndex(1) +3 >Emitted(25, 26) Source(17, 43) + SourceIndex(1) +--- +>>> a = 0, +1 >^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(26, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(26, 14) Source(17, 47) + SourceIndex(1) +3 >Emitted(26, 18) Source(17, 47) + SourceIndex(1) +--- +>>> b = 1, +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(27, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(27, 14) Source(17, 50) + SourceIndex(1) +3 >Emitted(27, 18) Source(17, 50) + SourceIndex(1) +--- +>>> c = 2 +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(28, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(28, 14) Source(17, 53) + SourceIndex(1) +3 >Emitted(28, 18) Source(17, 53) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > } +1 >Emitted(29, 10) Source(17, 55) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(30, 6) Source(18, 2) + SourceIndex(1) +--- +>>> export class internalC { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 > export +3 > class +4 > internalC +1->Emitted(31, 5) Source(19, 15) + SourceIndex(1) +2 >Emitted(31, 11) Source(19, 21) + SourceIndex(1) +3 >Emitted(31, 18) Source(19, 28) + SourceIndex(1) +4 >Emitted(31, 27) Source(19, 37) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(32, 6) Source(19, 40) + SourceIndex(1) +--- +>>> export function internalfoo(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^ +6 > ^-> +1-> + >/*@internal*/ +2 > export +3 > function +4 > internalfoo +5 > () {} +1->Emitted(33, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(33, 11) Source(20, 21) + SourceIndex(1) +3 >Emitted(33, 21) Source(20, 31) + SourceIndex(1) +4 >Emitted(33, 32) Source(20, 42) + SourceIndex(1) +5 >Emitted(33, 41) Source(20, 47) + SourceIndex(1) +--- +>>> export namespace internalNamespace { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 > export +3 > namespace +4 > internalNamespace +5 > +1->Emitted(34, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(34, 11) Source(21, 21) + SourceIndex(1) +3 >Emitted(34, 22) Source(21, 32) + SourceIndex(1) +4 >Emitted(34, 39) Source(21, 49) + SourceIndex(1) +5 >Emitted(34, 40) Source(21, 50) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(35, 9) Source(21, 52) + SourceIndex(1) +2 >Emitted(35, 15) Source(21, 65) + SourceIndex(1) +3 >Emitted(35, 24) Source(21, 74) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(36, 10) Source(21, 77) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(37, 6) Source(21, 79) + SourceIndex(1) +--- +>>> export namespace internalOther.something { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +1-> + >/*@internal*/ +2 > export +3 > namespace +4 > internalOther +5 > . +6 > something +7 > +1->Emitted(38, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(38, 11) Source(22, 21) + SourceIndex(1) +3 >Emitted(38, 22) Source(22, 32) + SourceIndex(1) +4 >Emitted(38, 35) Source(22, 45) + SourceIndex(1) +5 >Emitted(38, 36) Source(22, 46) + SourceIndex(1) +6 >Emitted(38, 45) Source(22, 55) + SourceIndex(1) +7 >Emitted(38, 46) Source(22, 56) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(39, 9) Source(22, 58) + SourceIndex(1) +2 >Emitted(39, 15) Source(22, 71) + SourceIndex(1) +3 >Emitted(39, 24) Source(22, 80) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(40, 10) Source(22, 83) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(41, 6) Source(22, 85) + SourceIndex(1) +--- +>>> export import internalImport = internalNamespace.someClass; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^^^^^^^^^ +9 > ^ +1-> + >/*@internal*/ +2 > export +3 > import +4 > internalImport +5 > = +6 > internalNamespace +7 > . +8 > someClass +9 > ; +1->Emitted(42, 5) Source(23, 15) + SourceIndex(1) +2 >Emitted(42, 11) Source(23, 21) + SourceIndex(1) +3 >Emitted(42, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(42, 33) Source(23, 43) + SourceIndex(1) +5 >Emitted(42, 36) Source(23, 46) + SourceIndex(1) +6 >Emitted(42, 53) Source(23, 63) + SourceIndex(1) +7 >Emitted(42, 54) Source(23, 64) + SourceIndex(1) +8 >Emitted(42, 63) Source(23, 73) + SourceIndex(1) +9 >Emitted(42, 64) Source(23, 74) + SourceIndex(1) +--- +>>> export type internalType = internalC; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^ +7 > ^ +1 > + >/*@internal*/ +2 > export +3 > type +4 > internalType +5 > = +6 > internalC +7 > ; +1 >Emitted(43, 5) Source(24, 15) + SourceIndex(1) +2 >Emitted(43, 11) Source(24, 21) + SourceIndex(1) +3 >Emitted(43, 17) Source(24, 27) + SourceIndex(1) +4 >Emitted(43, 29) Source(24, 39) + SourceIndex(1) +5 >Emitted(43, 32) Source(24, 42) + SourceIndex(1) +6 >Emitted(43, 41) Source(24, 51) + SourceIndex(1) +7 >Emitted(43, 42) Source(24, 52) + SourceIndex(1) +--- +>>> export const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1 > + >/*@internal*/ +2 > export +3 > +4 > const +5 > internalConst +6 > = 10 +7 > ; +1 >Emitted(44, 5) Source(25, 15) + SourceIndex(1) +2 >Emitted(44, 11) Source(25, 21) + SourceIndex(1) +3 >Emitted(44, 12) Source(25, 22) + SourceIndex(1) +4 >Emitted(44, 18) Source(25, 28) + SourceIndex(1) +5 >Emitted(44, 31) Source(25, 41) + SourceIndex(1) +6 >Emitted(44, 36) Source(25, 46) + SourceIndex(1) +7 >Emitted(44, 37) Source(25, 47) + SourceIndex(1) +--- +>>> export enum internalEnum { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 > export +3 > enum +4 > internalEnum +1 >Emitted(45, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(45, 11) Source(26, 21) + SourceIndex(1) +3 >Emitted(45, 17) Source(26, 27) + SourceIndex(1) +4 >Emitted(45, 29) Source(26, 39) + SourceIndex(1) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(46, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(46, 10) Source(26, 43) + SourceIndex(1) +3 >Emitted(46, 14) Source(26, 43) + SourceIndex(1) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(47, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(47, 10) Source(26, 46) + SourceIndex(1) +3 >Emitted(47, 14) Source(26, 46) + SourceIndex(1) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(48, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(48, 10) Source(26, 49) + SourceIndex(1) +3 >Emitted(48, 14) Source(26, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(49, 6) Source(26, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(52, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(52, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(52, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(52, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(52, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(52, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(52, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(54, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(54, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(54, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(54, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(54, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(54, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>/*@internal*/ var myGlob = 20; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >/*@internal*/ +3 > +4 > const +5 > myGlob +6 > = +7 > 20 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) +5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +>>> var normalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) +--- +>>> /*@internal*/ function normalC() { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->export class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) +3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) +2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) +2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) +3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) +4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) +5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) +6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) +7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) +3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) +2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) +3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) +4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) +5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) +6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) +7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) +8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) +9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) +2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) +3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) +4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) +5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) +6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) +7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) +--- +>>> return normalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) +2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) +2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) +3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) +--- +>>> exports.normalC = normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > normalC +1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) +--- +>>> var normalN; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} + > +2 > export namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) +3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) +4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) +--- +>>> (function (normalN) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export namespace +3 > normalN +1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) +3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) +2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) +3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) +2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) +3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) +4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) +--- +>>> normalN.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) +2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) +3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) +4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function foo() { } +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) +2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) +3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) +4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) +5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) +6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) +7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) +--- +>>> normalN.foo = foo; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) +2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) +3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) +4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) +2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) +3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) +4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) +5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) +6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) +--- +>>> (function (someNamespace) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) +3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) +2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) +3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) +4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) +--- +>>> someNamespace.C = C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) +2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) +3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) +4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) +2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) +3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) +4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) +5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) +6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) +7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) +8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) +9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) +--- +>>> /*@internal*/ var someOther; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) +2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) +3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) +4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) +5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) +6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) +--- +>>> (function (someOther) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) +3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) +3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) +4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) +3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) +2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) +3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) +4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) +2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) +3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) +4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) +2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) +3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) +4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) +5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) +6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) +7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) +8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) +9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) +2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) +3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) +4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) +5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) +6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) +7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) +8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) +9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) +2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) +3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) +5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) +6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) +7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) +8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) +9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) +2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) +3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) +4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) +5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) +6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) +7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) +2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) +3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) +4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) +5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) +3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) +3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) +3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) +3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) +2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) +3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) +4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) +5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) +6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) +7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) +8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) +9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) +--- +>>> })(normalN = exports.normalN || (exports.normalN = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +10> ^^^-> +1 > + > +2 > } +3 > +4 > normalN +5 > +6 > normalN +7 > +8 > normalN +9 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) +2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) +3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) +4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) +5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) +6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) +7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) +8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) +9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) +--- +>>> /*@internal*/ var internalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > /*@internal*/ +3 > +1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) +2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) +3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) +--- +>>> function internalC() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class internalC { +2 > } +1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) +--- +>>> return internalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class internalC {} +1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) +2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) +3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) +4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) +--- +>>> exports.internalC = internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^-> +1-> +2 > internalC +1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) +2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function internalfoo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> {} + > +2 > /*@internal*/ +3 > +4 > export function +5 > internalfoo +6 > () { +7 > } +1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) +2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) +3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) +4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) +5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) +6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) +7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) +--- +>>> exports.internalfoo = internalfoo; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^-> +1 > +2 > export function internalfoo() {} +1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalNamespace +6 > { export class someClass {} } +1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) +2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) +3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) +4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) +5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) +6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) +--- +>>> (function (internalNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > internalNamespace +1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) +3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) +2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) +3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) +4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) +2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) +3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) +4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) +--- +>>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > +8 > internalNamespace +9 > { export class someClass {} } +1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) +2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) +3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) +4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) +5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) +6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) +7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) +8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) +9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) +--- +>>> /*@internal*/ var internalOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) +2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) +3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) +4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) +5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) +6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) +--- +>>> (function (internalOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 > export namespace +3 > internalOther +1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) +3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) +3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) +4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) +3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) +2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) +3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) +4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) +2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) +3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) +4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) +2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) +3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) +4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) +5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) +6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) +7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) +8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) +9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) +--- +>>> })(internalOther = exports.internalOther || (exports.internalOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > internalOther +5 > +6 > internalOther +7 > +8 > internalOther +9 > .something { export class someClass {} } +1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) +2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) +3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) +4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) +5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) +6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) +7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) +8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) +9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalImport = internalNamespace.someClass; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) +2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) +3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) +5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) +6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) +7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) +8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) +9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) +10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) +2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) +3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) +4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) +5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) +6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) +7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) +8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) +2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) +3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) +4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) +5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) +3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) +3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) +3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) +3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) +--- +>>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) +2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) +3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) +4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) +5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) +6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) +7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) +8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) +9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(100, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(100, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(100, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(100, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(100, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(100, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(102, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(102, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(102, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(102, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(102, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 4129, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 26, + "kind": "internal" + }, + { + "pos": 28, + "end": 108, + "kind": "text" + }, + { + "pos": 108, + "end": 212, + "kind": "internal" + }, + { + "pos": 214, + "end": 253, + "kind": "text" + }, + { + "pos": 253, + "end": 721, + "kind": "internal" + }, + { + "pos": 723, + "end": 730, + "kind": "text" + }, + { + "pos": 730, + "end": 1219, + "kind": "internal" + }, + { + "pos": 1221, + "end": 1312, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (0-4129) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +internal: (0-26) +declare const myGlob = 20; +---------------------------------------------------------------------- +text: (28-108) +declare module "file1" { + export const x = 10; + export class normalC { + +---------------------------------------------------------------------- +internal: (108-212) + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (214-253) + } + export namespace normalN { + +---------------------------------------------------------------------- +internal: (253-721) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (723-730) + } + +---------------------------------------------------------------------- +internal: (730-1219) + export class internalC { + } + export function internalfoo(): void; + export namespace internalNamespace { + class someClass { + } + } + export namespace internalOther.something { + class someClass { + } + } + export import internalImport = internalNamespace.someClass; + export type internalType = internalC; + export const internalConst = 10; + export enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (1221-1312) +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/triple-slash-refs-in-all-projects.js new file mode 100644 index 00000000000..352f657481b --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/triple-slash-refs-in-all-projects.js @@ -0,0 +1,1076 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/app --verbose +4:01:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist + +4:01:00 PM - Building project '/src/lib/tsconfig.json'... + +4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:01:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/file4.ts] +/// +const file4Const = new appfile4(); +const myVar = 30; + +//// [/src/app/module.d.ts] +/// +/// +declare const file0Const: libfile0; +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const file4Const: appfile4; +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>/// +>>>/// +>>>declare const file0Const: libfile0; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 >/// + > +2 > +3 > const +4 > file0Const +5 > = new libfile0() +6 > ; +1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(3, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(3, 25) Source(2, 17) + SourceIndex(0) +5 >Emitted(3, 35) Source(2, 34) + SourceIndex(0) +6 >Emitted(3, 36) Source(2, 35) + SourceIndex(0) +--- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(4, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(3, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(3, 7) + SourceIndex(0) +4 >Emitted(4, 21) Source(3, 13) + SourceIndex(0) +5 >Emitted(4, 26) Source(3, 18) + SourceIndex(0) +6 >Emitted(4, 27) Source(3, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(6, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(6, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(6, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(6, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(6, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(6, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(9, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(9, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(9, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(9, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(9, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(9, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(11, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(11, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(11, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(11, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(11, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(11, 32) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(13, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(13, 11) Source(1, 7) + SourceIndex(4) +3 >Emitted(13, 12) Source(1, 8) + SourceIndex(4) +4 >Emitted(13, 18) Source(1, 14) + SourceIndex(4) +5 >Emitted(13, 19) Source(1, 15) + SourceIndex(4) +6 >Emitted(13, 24) Source(1, 20) + SourceIndex(4) +7 >Emitted(13, 25) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const file4Const: appfile4; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 >/// + > +2 > +3 > const +4 > file4Const +5 > = new appfile4() +6 > ; +1 >Emitted(15, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(15, 9) Source(2, 1) + SourceIndex(5) +3 >Emitted(15, 15) Source(2, 7) + SourceIndex(5) +4 >Emitted(15, 25) Source(2, 17) + SourceIndex(5) +5 >Emitted(15, 35) Source(2, 34) + SourceIndex(5) +6 >Emitted(15, 36) Source(2, 35) + SourceIndex(5) +--- +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > + > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(16, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(16, 9) Source(3, 1) + SourceIndex(5) +3 >Emitted(16, 15) Source(3, 7) + SourceIndex(5) +4 >Emitted(16, 20) Source(3, 12) + SourceIndex(5) +5 >Emitted(16, 25) Source(3, 17) + SourceIndex(5) +6 >Emitted(16, 26) Source(3, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +/// +var file4Const = new appfile4(); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0) +--- +>>>var file0Const = new libfile0(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^ +7 > ^^ +8 > ^ +1 > + > +2 >const +3 > file0Const +4 > = +5 > new +6 > libfile0 +7 > () +8 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0) +4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0) +5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) +6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0) +7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0) +8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0) +--- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0) +4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0) +5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0) +6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(7, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(18, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(18, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(18, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(18, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(18, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(18, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(20, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(20, 40) Source(1, 40) + SourceIndex(5) +--- +>>>var file4Const = new appfile4(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^ +7 > ^^ +8 > ^ +1 > + > +2 >const +3 > file4Const +4 > = +5 > new +6 > appfile4 +7 > () +8 > ; +1 >Emitted(21, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(21, 5) Source(2, 7) + SourceIndex(5) +3 >Emitted(21, 15) Source(2, 17) + SourceIndex(5) +4 >Emitted(21, 18) Source(2, 20) + SourceIndex(5) +5 >Emitted(21, 22) Source(2, 24) + SourceIndex(5) +6 >Emitted(21, 30) Source(2, 32) + SourceIndex(5) +7 >Emitted(21, 32) Source(2, 34) + SourceIndex(5) +8 >Emitted(21, 33) Source(2, 35) + SourceIndex(5) +--- +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(22, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(22, 5) Source(3, 7) + SourceIndex(5) +3 >Emitted(22, 10) Source(3, 12) + SourceIndex(5) +4 >Emitted(22, 13) Source(3, 15) + SourceIndex(5) +5 >Emitted(22, 15) Source(3, 17) + SourceIndex(5) +6 >Emitted(22, 16) Source(3, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 484, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 0, + "end": 484, + "kind": "text" + } + ] + }, + { + "pos": 484, + "end": 760, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "reference", + "data": "tripleRef.d.ts" + }, + { + "pos": 41, + "end": 87, + "kind": "reference", + "data": "../lib/tripleRef.d.ts" + }, + { + "pos": 89, + "end": 297, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 89, + "end": 297, + "kind": "text" + } + ] + }, + { + "pos": 297, + "end": 416, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (0-484):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-484) +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (484-760) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +/// +var file4Const = new appfile4(); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +reference: (0-39):: tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (41-87):: ../lib/tripleRef.d.ts +/// +---------------------------------------------------------------------- +prepend: (89-297):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (89-297) +declare const file0Const: libfile0; +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (297-416) +declare module "file3" { + export const z = 30; +} +declare const file4Const: appfile4; +declare const myVar = 30; + +====================================================================== + +//// [/src/app/tripleRef.d.ts] +declare class appfile4 { } + +//// [/src/lib/file0.ts] +/// +const file0Const = new libfile0(); +const myGlob = 20; + +//// [/src/lib/module.d.ts] +/// +declare const file0Const: libfile0; +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>/// +>>>declare const file0Const: libfile0; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 >/// + > +2 > +3 > const +4 > file0Const +5 > = new libfile0() +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(2, 25) Source(2, 17) + SourceIndex(0) +5 >Emitted(2, 35) Source(2, 34) + SourceIndex(0) +6 >Emitted(2, 36) Source(2, 35) + SourceIndex(0) +--- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 9) Source(3, 1) + SourceIndex(0) +3 >Emitted(3, 15) Source(3, 7) + SourceIndex(0) +4 >Emitted(3, 21) Source(3, 13) + SourceIndex(0) +5 >Emitted(3, 26) Source(3, 18) + SourceIndex(0) +6 >Emitted(3, 27) Source(3, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(5, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(5, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(5, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(5, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(8, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(8, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(8, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(8, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(8, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(8, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(10, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(10, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(10, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(10, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(10, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0) +--- +>>>var file0Const = new libfile0(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^ +7 > ^^ +8 > ^ +1 > + > +2 >const +3 > file0Const +4 > = +5 > new +6 > libfile0 +7 > () +8 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0) +4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0) +5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) +6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0) +7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0) +8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0) +--- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0) +4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0) +5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0) +6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(7, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 484, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "reference", + "data": "tripleRef.d.ts" + }, + { + "pos": 41, + "end": 249, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (0-484) +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +reference: (0-39):: tripleRef.d.ts +/// +---------------------------------------------------------------------- +text: (41-249) +declare const file0Const: libfile0; +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + +//// [/src/lib/tripleRef.d.ts] +declare class libfile0 { } + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/when-the-module-resolution-finds-original-source-file.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/when-the-module-resolution-finds-original-source-file.js new file mode 100644 index 00000000000..23e2db1476a --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/when-the-module-resolution-finds-original-source-file.js @@ -0,0 +1,856 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc -b /src/app --verbose +4:00:00 PM - Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +4:00:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/module.js' does not exist + +4:00:00 PM - Building project '/src/lib/tsconfig.json'... + +4:00:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist + +4:00:00 PM - Building project '/src/app/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/app/file3.ts] +export const z = 30; +import { x } from "lib/file1"; + +//// [/src/app/module.d.ts] +declare const myGlob = 20; +declare module "lib/file1" { + export const x = 10; +} +declare module "lib/file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^-> +1 > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "lib/file1" { +>>> export const x = 10; +1->^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1-> +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1->Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "lib/file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(10, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(10, 11) Source(1, 7) + SourceIndex(4) +3 >Emitted(10, 12) Source(1, 8) + SourceIndex(4) +4 >Emitted(10, 18) Source(1, 14) + SourceIndex(4) +5 >Emitted(10, 19) Source(1, 15) + SourceIndex(4) +6 >Emitted(10, 24) Source(1, 20) + SourceIndex(4) +7 >Emitted(10, 25) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(12, 9) Source(1, 1) + SourceIndex(5) +3 >Emitted(12, 15) Source(1, 7) + SourceIndex(5) +4 >Emitted(12, 20) Source(1, 12) + SourceIndex(5) +5 >Emitted(12, 25) Source(1, 17) + SourceIndex(5) +6 >Emitted(12, 26) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +var myGlob = 20; +define("lib/file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("lib/file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("lib/file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("lib/file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(10, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(10, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(10, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(10, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(10, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(10, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(12, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(12, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(12, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(12, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(12, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(16, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(16, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(16, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(16, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(16, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(16, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(18, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(18, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(18, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(18, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(18, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 417, + "kind": "prepend", + "data": "../module.js", + "texts": [ + { + "pos": 0, + "end": 417, + "kind": "text" + } + ] + }, + { + "pos": 417, + "end": 618, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 179, + "kind": "prepend", + "data": "../module.d.ts", + "texts": [ + { + "pos": 0, + "end": 179, + "kind": "text" + } + ] + }, + { + "pos": 179, + "end": 261, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (0-417):: ../module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-417) +var myGlob = 20; +define("lib/file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("lib/file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (417-618) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-179):: ../module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-179) +declare const myGlob = 20; +declare module "lib/file1" { + export const x = 10; +} +declare module "lib/file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (179-261) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "../module.js", "rootDir": "../" + }, + "exclude": ["module.d.ts"] + +} + +//// [/src/module.d.ts] +declare const myGlob = 20; +declare module "lib/file1" { + export const x = 10; +} +declare module "lib/file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["lib/file0.ts","lib/file1.ts","lib/file2.ts","lib/global.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: lib/file0.ts,lib/file1.ts,lib/file2.ts,lib/global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/module.d.ts +sourceFile:lib/file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^-> +1 > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/module.d.ts +sourceFile:lib/file1.ts +------------------------------------------------------------------- +>>>declare module "lib/file1" { +>>> export const x = 10; +1->^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1-> +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1->Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/module.d.ts +sourceFile:lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "lib/file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/module.d.ts +sourceFile:lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/module.js] +var myGlob = 20; +define("lib/file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("lib/file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["lib/file0.ts","lib/file1.ts","lib/file2.ts","lib/global.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: lib/file0.ts,lib/file1.ts,lib/file2.ts,lib/global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/module.js +sourceFile:lib/file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/module.js +sourceFile:lib/file1.ts +------------------------------------------------------------------- +>>>define("lib/file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/module.js +sourceFile:lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("lib/file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(10, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(10, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(10, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(10, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(10, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(10, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/module.js +sourceFile:lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(12, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(12, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(12, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(12, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(12, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./lib/file0.ts", + "./lib/file1.ts", + "./lib/file2.ts", + "./lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 417, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 179, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/module.js +---------------------------------------------------------------------- +text: (0-417) +var myGlob = 20; +define("lib/file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("lib/file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/module.d.ts +---------------------------------------------------------------------- +text: (0-179) +declare const myGlob = 20; +declare module "lib/file1" { + export const x = 10; +} +declare module "lib/file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js new file mode 100644 index 00000000000..f6c9acc7f49 --- /dev/null +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js @@ -0,0 +1,121 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src --verbose +4:04:00 PM - Projects in this build: + * src/tsconfig.json + +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' + +4:04:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/lib/a.d.ts] +import { B } from "./b"; +export interface A { + b: B; + foo: any; +} +//# sourceMappingURL=a.d.ts.map + +//// [/src/lib/a.d.ts.map] +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"} + +//// [/src/lib/b.d.ts] file written with same contents +//// [/src/lib/b.d.ts.map] file written with same contents +//// [/src/lib/c.d.ts] file written with same contents +//// [/src/lib/c.d.ts.map] file written with same contents +//// [/src/lib/index.d.ts] file written with same contents +//// [/src/lib/index.d.ts.map] file written with same contents +//// [/src/src/a.ts] +import { B } from "./b"; + +export interface A { + b: B; foo: any; +} + + +//// [/src/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./src/c.ts": { + "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "signature": "-21569163793-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n//# sourceMappingURL=c.d.ts.map" + }, + "./src/b.ts": { + "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "signature": "25318058868-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n//# sourceMappingURL=b.d.ts.map" + }, + "./src/a.ts": { + "version": "-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", + "signature": "-11119001497-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n foo: any;\r\n}\r\n//# sourceMappingURL=a.d.ts.map" + }, + "./src/index.ts": { + "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "signature": "14762544269-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n//# sourceMappingURL=index.d.ts.map" + } + }, + "options": { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, + "alwaysStrict": true, + "rootDir": "./src", + "emitDeclarationOnly": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./src/a.ts": [ + "./src/b.ts" + ], + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ], + "./src/index.ts": [ + "./src/a.ts", + "./src/b.ts", + "./src/c.ts" + ] + }, + "exportedModulesMap": { + "./src/a.ts": [ + "./src/b.ts" + ], + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ], + "./src/index.ts": [ + "./src/a.ts", + "./src/b.ts", + "./src/c.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../lib/lib.d.ts", + "./src/a.ts", + "./src/b.ts", + "./src/c.ts", + "./src/index.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js new file mode 100644 index 00000000000..30db772ad18 --- /dev/null +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -0,0 +1,114 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src --verbose +4:04:00 PM - Projects in this build: + * src/tsconfig.json + +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' + +4:04:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/lib/a.d.ts] +import { B } from "./b"; +export interface A { + b: B; + foo: any; +} + + +//// [/src/lib/b.d.ts] file written with same contents +//// [/src/lib/c.d.ts] file written with same contents +//// [/src/lib/index.d.ts] file written with same contents +//// [/src/src/a.ts] +import { B } from "./b"; + +export interface A { + b: B; foo: any; +} + + +//// [/src/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./src/c.ts": { + "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "signature": "-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n" + }, + "./src/b.ts": { + "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "signature": "20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n" + }, + "./src/a.ts": { + "version": "-14761736732-import { B } from \"./b\";\n\nexport interface A {\n b: B; foo: any;\n}\n", + "signature": "-7639584379-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n foo: any;\r\n}\r\n" + }, + "./src/index.ts": { + "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "signature": "-6009477228-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n" + } + }, + "options": { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, + "alwaysStrict": true, + "rootDir": "./src", + "emitDeclarationOnly": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./src/a.ts": [ + "./src/b.ts" + ], + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ], + "./src/index.ts": [ + "./src/a.ts", + "./src/b.ts", + "./src/c.ts" + ] + }, + "exportedModulesMap": { + "./src/a.ts": [ + "./src/b.ts" + ], + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ], + "./src/index.ts": [ + "./src/a.ts", + "./src/b.ts", + "./src/c.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../lib/lib.d.ts", + "./src/a.ts", + "./src/b.ts", + "./src/c.ts", + "./src/index.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js new file mode 100644 index 00000000000..68d31fc370e --- /dev/null +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -0,0 +1,100 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src --verbose +4:04:00 PM - Projects in this build: + * src/tsconfig.json + +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' + +4:04:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/lib/a.d.ts] +export declare class B { + prop: string; +} +export interface A { + b: B; + foo: any; +} +//# sourceMappingURL=a.d.ts.map + +//// [/src/lib/a.d.ts.map] +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAElC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAChB"} + +//// [/src/lib/b.d.ts] file written with same contents +//// [/src/lib/b.d.ts.map] file written with same contents +//// [/src/lib/c.d.ts] file written with same contents +//// [/src/lib/c.d.ts.map] file written with same contents +//// [/src/src/a.ts] +export class B { prop = "hello"; } + +export interface A { + b: B; foo: any; +} + + +//// [/src/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./src/a.ts": { + "version": "7973388544-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B; foo: any;\n}\n", + "signature": "3224647069-export declare class B {\r\n prop: string;\r\n}\r\nexport interface A {\r\n b: B;\r\n foo: any;\r\n}\r\n//# sourceMappingURL=a.d.ts.map" + }, + "./src/c.ts": { + "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "signature": "-21569163793-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n//# sourceMappingURL=c.d.ts.map" + }, + "./src/b.ts": { + "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "signature": "25318058868-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n//# sourceMappingURL=b.d.ts.map" + } + }, + "options": { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, + "alwaysStrict": true, + "rootDir": "./src", + "emitDeclarationOnly": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ] + }, + "exportedModulesMap": { + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../lib/lib.d.ts", + "./src/a.ts", + "./src/b.ts", + "./src/c.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js new file mode 100644 index 00000000000..74786c8fde9 --- /dev/null +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -0,0 +1,90 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src --verbose +4:08:00 PM - Projects in this build: + * src/tsconfig.json + +4:08:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' + +4:08:00 PM - Building project '/src/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/lib/a.d.ts] file written with same contents +//// [/src/lib/a.d.ts.map] +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAGlC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} + +//// [/src/src/a.ts] +export class B { prop = "hello"; } + +class C { } +export interface A { + b: B; +} + + +//// [/src/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./src/a.ts": { + "version": "6651905050-export class B { prop = \"hello\"; }\n\nclass C { }\nexport interface A {\n b: B;\n}\n", + "signature": "-14608980923-export declare class B {\r\n prop: string;\r\n}\r\nexport interface A {\r\n b: B;\r\n}\r\n//# sourceMappingURL=a.d.ts.map" + }, + "./src/c.ts": { + "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "signature": "-21569163793-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n//# sourceMappingURL=c.d.ts.map" + }, + "./src/b.ts": { + "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "signature": "25318058868-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n//# sourceMappingURL=b.d.ts.map" + } + }, + "options": { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, + "alwaysStrict": true, + "rootDir": "./src", + "emitDeclarationOnly": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ] + }, + "exportedModulesMap": { + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../lib/lib.d.ts", + "./src/a.ts", + "./src/b.ts", + "./src/c.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js new file mode 100644 index 00000000000..516bc472994 --- /dev/null +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js @@ -0,0 +1,135 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src --verbose +4:01:00 PM - Projects in this build: + * src/tsconfig.json + +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist + +4:01:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/lib/a.d.ts] +import { B } from "./b"; +export interface A { + b: B; +} +//# sourceMappingURL=a.d.ts.map + +//// [/src/lib/a.d.ts.map] +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} + +//// [/src/lib/b.d.ts] +import { C } from "./c"; +export interface B { + b: C; +} +//# sourceMappingURL=b.d.ts.map + +//// [/src/lib/b.d.ts.map] +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} + +//// [/src/lib/c.d.ts] +import { A } from "./a"; +export interface C { + a: A; +} +//# sourceMappingURL=c.d.ts.map + +//// [/src/lib/c.d.ts.map] +{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} + +//// [/src/lib/index.d.ts] +export { A } from "./a"; +export { B } from "./b"; +export { C } from "./c"; +//# sourceMappingURL=index.d.ts.map + +//// [/src/lib/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"} + +//// [/src/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./src/c.ts": { + "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "signature": "-21569163793-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n//# sourceMappingURL=c.d.ts.map" + }, + "./src/b.ts": { + "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "signature": "25318058868-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n//# sourceMappingURL=b.d.ts.map" + }, + "./src/a.ts": { + "version": "-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", + "signature": "-4935617457-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n}\r\n//# sourceMappingURL=a.d.ts.map" + }, + "./src/index.ts": { + "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "signature": "14762544269-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n//# sourceMappingURL=index.d.ts.map" + } + }, + "options": { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, + "alwaysStrict": true, + "rootDir": "./src", + "emitDeclarationOnly": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./src/a.ts": [ + "./src/b.ts" + ], + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ], + "./src/index.ts": [ + "./src/a.ts", + "./src/b.ts", + "./src/c.ts" + ] + }, + "exportedModulesMap": { + "./src/a.ts": [ + "./src/b.ts" + ], + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ], + "./src/index.ts": [ + "./src/a.ts", + "./src/b.ts", + "./src/c.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../lib/lib.d.ts", + "./src/a.ts", + "./src/b.ts", + "./src/c.ts", + "./src/index.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js new file mode 100644 index 00000000000..001ed2e2517 --- /dev/null +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -0,0 +1,144 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src --verbose +4:01:00 PM - Projects in this build: + * src/tsconfig.json + +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist + +4:01:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/lib/a.d.ts] +import { B } from "./b"; +export interface A { + b: B; +} + + +//// [/src/lib/b.d.ts] +import { C } from "./c"; +export interface B { + b: C; +} + + +//// [/src/lib/c.d.ts] +import { A } from "./a"; +export interface C { + a: A; +} + + +//// [/src/lib/index.d.ts] +export { A } from "./a"; +export { B } from "./b"; +export { C } from "./c"; + + +//// [/src/tsconfig.json] +{ + "compilerOptions": { + "incremental": true, /* Enable incremental compilation */ + "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + "declaration": true, /* Generates corresponding '.d.ts' file. */ + /* Generates a sourcemap for each corresponding '.d.ts' file. */ + "sourceMap": true, /* Generates corresponding '.map' file. */ + "outDir": "./lib", /* Redirect output structure to the directory. */ + "composite": true, /* Enable project compilation */ + "strict": true, /* Enable all strict type-checking options. */ + + "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + + "alwaysStrict": true, + "rootDir": "src", + "emitDeclarationOnly": true + } +} + + +//// [/src/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./src/c.ts": { + "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "signature": "-2697851509-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n" + }, + "./src/b.ts": { + "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "signature": "20298635505-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n" + }, + "./src/a.ts": { + "version": "-15463561693-import { B } from \"./b\";\n\nexport interface A {\n b: B;\n}\n", + "signature": "-4206296467-import { B } from \"./b\";\r\nexport interface A {\r\n b: B;\r\n}\r\n" + }, + "./src/index.ts": { + "version": "1286756397-export { A } from \"./a\";\nexport { B } from \"./b\";\nexport { C } from \"./c\";\n", + "signature": "-6009477228-export { A } from \"./a\";\r\nexport { B } from \"./b\";\r\nexport { C } from \"./c\";\r\n" + } + }, + "options": { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, + "alwaysStrict": true, + "rootDir": "./src", + "emitDeclarationOnly": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./src/a.ts": [ + "./src/b.ts" + ], + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ], + "./src/index.ts": [ + "./src/a.ts", + "./src/b.ts", + "./src/c.ts" + ] + }, + "exportedModulesMap": { + "./src/a.ts": [ + "./src/b.ts" + ], + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ], + "./src/index.ts": [ + "./src/a.ts", + "./src/b.ts", + "./src/c.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../lib/lib.d.ts", + "./src/a.ts", + "./src/b.ts", + "./src/c.ts", + "./src/index.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js new file mode 100644 index 00000000000..f673e36cf40 --- /dev/null +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -0,0 +1,116 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src --verbose +4:01:00 PM - Projects in this build: + * src/tsconfig.json + +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist + +4:01:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/lib/a.d.ts] +export declare class B { + prop: string; +} +export interface A { + b: B; +} +//# sourceMappingURL=a.d.ts.map + +//// [/src/lib/a.d.ts.map] +{"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../src/a.ts"],"names":[],"mappings":"AAAA,qBAAa,CAAC;IAAG,IAAI,SAAW;CAAE;AAElC,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} + +//// [/src/lib/b.d.ts] +import { C } from "./c"; +export interface B { + b: C; +} +//# sourceMappingURL=b.d.ts.map + +//// [/src/lib/b.d.ts.map] +{"version":3,"file":"b.d.ts","sourceRoot":"","sources":["../src/b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} + +//// [/src/lib/c.d.ts] +import { A } from "./a"; +export interface C { + a: A; +} +//# sourceMappingURL=c.d.ts.map + +//// [/src/lib/c.d.ts.map] +{"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../src/c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,CAAC;IAChB,CAAC,EAAE,CAAC,CAAC;CACN"} + +//// [/src/src/index.ts] unlink +//// [/src/src/a.ts] +export class B { prop = "hello"; } + +export interface A { + b: B; +} + + +//// [/src/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./src/a.ts": { + "version": "11179224639-export class B { prop = \"hello\"; }\n\nexport interface A {\n b: B;\n}\n", + "signature": "-14608980923-export declare class B {\r\n prop: string;\r\n}\r\nexport interface A {\r\n b: B;\r\n}\r\n//# sourceMappingURL=a.d.ts.map" + }, + "./src/c.ts": { + "version": "429593025-import { A } from \"./a\";\n\nexport interface C {\n a: A;\n}\n", + "signature": "-21569163793-import { A } from \"./a\";\r\nexport interface C {\r\n a: A;\r\n}\r\n//# sourceMappingURL=c.d.ts.map" + }, + "./src/b.ts": { + "version": "-2273488249-import { C } from \"./c\";\n\nexport interface B {\n b: C;\n}\n", + "signature": "25318058868-import { C } from \"./c\";\r\nexport interface B {\r\n b: C;\r\n}\r\n//# sourceMappingURL=b.d.ts.map" + } + }, + "options": { + "incremental": true, + "target": 1, + "module": 1, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "outDir": "./lib", + "composite": true, + "strict": true, + "esModuleInterop": true, + "alwaysStrict": true, + "rootDir": "./src", + "emitDeclarationOnly": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ] + }, + "exportedModulesMap": { + "./src/b.ts": [ + "./src/c.ts" + ], + "./src/c.ts": [ + "./src/a.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../lib/lib.d.ts", + "./src/a.ts", + "./src/b.ts", + "./src/c.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js new file mode 100644 index 00000000000..bf4bee4eab4 --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js @@ -0,0 +1,110 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src --verbose +4:04:00 PM - Projects in this build: + * src/tsconfig.json + +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' + +4:04:00 PM - Building project '/src/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/bar.ts] +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + +//// [/src/obj/bar.d.ts] +declare const _default: () => void; +export default _default; + + +//// [/src/obj/bar.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar() { +}); + + +//// [/src/obj/index.d.ts] +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; + + +//// [/src/obj/lazyIndex.d.ts] file written with same contents +//// [/src/obj/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../bar.ts": { + "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "signature": "-9232740537-declare const _default: () => void;\r\nexport default _default;\r\n" + }, + "../bundling.ts": { + "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" + }, + "../global.d.ts": { + "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" + }, + "../lazyindex.ts": { + "version": "-6956449754-export { default as bar } from './bar';\n", + "signature": "-6224542381-export { default as bar } from './bar';\r\n" + }, + "../index.ts": { + "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "6256067474-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\r\n" + } + }, + "options": { + "target": 1, + "declaration": true, + "outDir": "./", + "incremental": true, + "isolatedModules": true, + "configFilePath": "../tsconfig.json" + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "exportedModulesMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../index.ts", + "../lazyindex.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js new file mode 100644 index 00000000000..391ee8b2b0a --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js @@ -0,0 +1,110 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src --verbose +4:04:00 PM - Projects in this build: + * src/tsconfig.json + +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' + +4:04:00 PM - Building project '/src/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/bar.ts] +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + +//// [/src/obj/bar.d.ts] +declare const _default: () => void; +export default _default; + + +//// [/src/obj/bar.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar() { +}); + + +//// [/src/obj/index.d.ts] +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; + + +//// [/src/obj/lazyIndex.d.ts] file written with same contents +//// [/src/obj/lazyIndex.js] file written with same contents +//// [/src/obj/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../bar.ts": { + "version": "747071916-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(): void {\r\n});", + "signature": "-9232740537-declare const _default: () => void;\r\nexport default _default;\r\n" + }, + "../bundling.ts": { + "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" + }, + "../global.d.ts": { + "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" + }, + "../lazyindex.ts": { + "version": "-6956449754-export { default as bar } from './bar';\n", + "signature": "-6224542381-export { default as bar } from './bar';\r\n" + }, + "../index.ts": { + "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "6256067474-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\r\n" + } + }, + "options": { + "target": 1, + "declaration": true, + "outDir": "./", + "incremental": true, + "configFilePath": "../tsconfig.json" + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "exportedModulesMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../index.ts", + "../lazyindex.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js new file mode 100644 index 00000000000..000d32c145e --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -0,0 +1,24 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src --verbose +4:04:00 PM - Projects in this build: + * src/tsconfig.json + +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' + +4:04:00 PM - Building project '/src/tsconfig.json'... + +src/lazyIndex.ts(4,5): error TS2554: Expected 0 arguments, but got 1. +exitCode:: 1 + + +//// [/src/bar.ts] +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module-with-isolatedModules.js new file mode 100644 index 00000000000..b743ce8ce0e --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module-with-isolatedModules.js @@ -0,0 +1,155 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src --verbose +4:01:00 PM - Projects in this build: + * src/tsconfig.json + +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist + +4:01:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/obj/bar.d.ts] +declare const _default: (param: string) => void; +export default _default; + + +//// [/src/obj/bar.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + + +//// [/src/obj/bundling.d.ts] +export declare class LazyModule { + private importCallback; + constructor(importCallback: () => Promise); +} +export declare class LazyAction any, TModule> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); +} + + +//// [/src/obj/bundling.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var LazyModule = /** @class */ (function () { + function LazyModule(importCallback) { + this.importCallback = importCallback; + } + return LazyModule; +}()); +exports.LazyModule = LazyModule; +var LazyAction = /** @class */ (function () { + function LazyAction(_lazyModule, _getter) { + } + return LazyAction; +}()); +exports.LazyAction = LazyAction; + + +//// [/src/obj/index.d.ts] +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + + +//// [/src/obj/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var bundling_1 = require("./bundling"); +var lazyModule = new bundling_1.LazyModule(function () { + return Promise.resolve().then(function () { return require('./lazyIndex'); }); +}); +exports.lazyBar = new bundling_1.LazyAction(lazyModule, function (m) { return m.bar; }); + + +//// [/src/obj/lazyIndex.d.ts] +export { default as bar } from './bar'; + + +//// [/src/obj/lazyIndex.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var bar_1 = require("./bar"); +exports.bar = bar_1.default; + + +//// [/src/obj/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../bar.ts": { + "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "signature": "11191036521-declare const _default: (param: string) => void;\r\nexport default _default;\r\n" + }, + "../bundling.ts": { + "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" + }, + "../global.d.ts": { + "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" + }, + "../lazyindex.ts": { + "version": "-6956449754-export { default as bar } from './bar';\n", + "signature": "-6224542381-export { default as bar } from './bar';\r\n" + }, + "../index.ts": { + "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "18468008756-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\r\n" + } + }, + "options": { + "target": 1, + "declaration": true, + "outDir": "./", + "incremental": true, + "isolatedModules": true, + "configFilePath": "../tsconfig.json" + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "exportedModulesMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../index.ts", + "../lazyindex.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, "isolatedModules": true + } +} + diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module.js new file mode 100644 index 00000000000..c97faefa51b --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module.js @@ -0,0 +1,144 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src --verbose +4:01:00 PM - Projects in this build: + * src/tsconfig.json + +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist + +4:01:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/obj/bar.d.ts] +declare const _default: (param: string) => void; +export default _default; + + +//// [/src/obj/bar.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + + +//// [/src/obj/bundling.d.ts] +export declare class LazyModule { + private importCallback; + constructor(importCallback: () => Promise); +} +export declare class LazyAction any, TModule> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); +} + + +//// [/src/obj/bundling.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var LazyModule = /** @class */ (function () { + function LazyModule(importCallback) { + this.importCallback = importCallback; + } + return LazyModule; +}()); +exports.LazyModule = LazyModule; +var LazyAction = /** @class */ (function () { + function LazyAction(_lazyModule, _getter) { + } + return LazyAction; +}()); +exports.LazyAction = LazyAction; + + +//// [/src/obj/index.d.ts] +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + + +//// [/src/obj/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var bundling_1 = require("./bundling"); +var lazyModule = new bundling_1.LazyModule(function () { + return Promise.resolve().then(function () { return require('./lazyIndex'); }); +}); +exports.lazyBar = new bundling_1.LazyAction(lazyModule, function (m) { return m.bar; }); + + +//// [/src/obj/lazyIndex.d.ts] +export { default as bar } from './bar'; + + +//// [/src/obj/lazyIndex.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var bar_1 = require("./bar"); +exports.bar = bar_1.default; + + +//// [/src/obj/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../bar.ts": { + "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "signature": "11191036521-declare const _default: (param: string) => void;\r\nexport default _default;\r\n" + }, + "../bundling.ts": { + "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" + }, + "../global.d.ts": { + "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" + }, + "../lazyindex.ts": { + "version": "-6956449754-export { default as bar } from './bar';\n", + "signature": "-6224542381-export { default as bar } from './bar';\r\n" + }, + "../index.ts": { + "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "18468008756-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\r\n" + } + }, + "options": { + "target": 1, + "declaration": true, + "outDir": "./", + "incremental": true, + "configFilePath": "../tsconfig.json" + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "exportedModulesMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../index.ts", + "../lazyindex.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js new file mode 100644 index 00000000000..e8e91111756 --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -0,0 +1,163 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src --verbose +4:01:00 PM - Projects in this build: + * src/tsconfig.json + +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist + +4:01:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/lazyIndex.ts] +export { default as bar } from './bar'; + +import { default as bar } from './bar'; +bar("hello"); + +//// [/src/obj/bar.d.ts] +declare const _default: (param: string) => void; +export default _default; + + +//// [/src/obj/bar.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + + +//// [/src/obj/bundling.d.ts] +export declare class LazyModule { + private importCallback; + constructor(importCallback: () => Promise); +} +export declare class LazyAction any, TModule> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); +} + + +//// [/src/obj/bundling.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var LazyModule = /** @class */ (function () { + function LazyModule(importCallback) { + this.importCallback = importCallback; + } + return LazyModule; +}()); +exports.LazyModule = LazyModule; +var LazyAction = /** @class */ (function () { + function LazyAction(_lazyModule, _getter) { + } + return LazyAction; +}()); +exports.LazyAction = LazyAction; + + +//// [/src/obj/index.d.ts] +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + + +//// [/src/obj/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var bundling_1 = require("./bundling"); +var lazyModule = new bundling_1.LazyModule(function () { + return Promise.resolve().then(function () { return require('./lazyIndex'); }); +}); +exports.lazyBar = new bundling_1.LazyAction(lazyModule, function (m) { return m.bar; }); + + +//// [/src/obj/lazyIndex.d.ts] +export { default as bar } from './bar'; + + +//// [/src/obj/lazyIndex.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var bar_1 = require("./bar"); +exports.bar = bar_1.default; +var bar_2 = require("./bar"); +bar_2.default("hello"); + + +//// [/src/obj/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../bar.ts": { + "version": "5936740878-interface RawAction {\r\n (...args: any[]): Promise | void;\r\n}\r\ninterface ActionFactory {\r\n (target: T): T;\r\n}\r\ndeclare function foo(): ActionFactory;\r\nexport default foo()(function foobar(param: string): void {\r\n});", + "signature": "11191036521-declare const _default: (param: string) => void;\r\nexport default _default;\r\n" + }, + "../bundling.ts": { + "version": "-21659820217-export class LazyModule {\r\n constructor(private importCallback: () => Promise) {}\r\n}\r\n\r\nexport class LazyAction<\r\n TAction extends (...args: any[]) => any,\r\n TModule\r\n> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\r\n }\r\n}\r\n", + "signature": "-40032907372-export declare class LazyModule {\r\n private importCallback;\r\n constructor(importCallback: () => Promise);\r\n}\r\nexport declare class LazyAction any, TModule> {\r\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\r\n}\r\n" + }, + "../global.d.ts": { + "version": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}", + "signature": "-9780226215-interface PromiseConstructor {\r\n new (): Promise;\r\n}\r\ndeclare var Promise: PromiseConstructor;\r\ninterface Promise {\r\n}" + }, + "../lazyindex.ts": { + "version": "3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");", + "signature": "-6224542381-export { default as bar } from './bar';\r\n" + }, + "../index.ts": { + "version": "-11602502901-import { LazyAction, LazyModule } from './bundling';\r\nconst lazyModule = new LazyModule(() =>\r\n import('./lazyIndex')\r\n);\r\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "18468008756-import { LazyAction } from './bundling';\r\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\r\n" + } + }, + "options": { + "target": 1, + "declaration": true, + "outDir": "./", + "incremental": true, + "isolatedModules": true, + "configFilePath": "../tsconfig.json" + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "exportedModulesMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyindex.ts" + ], + "../lazyindex.ts": [ + "../bar.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../index.ts", + "../lazyindex.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, "isolatedModules": true + } +} + diff --git a/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js b/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js new file mode 100644 index 00000000000..8b430f96e07 --- /dev/null +++ b/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js @@ -0,0 +1,79 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/tsconfig.json --verbose +4:04:00 PM - Projects in this build: + * src/tsconfig.json + +4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/src/hkt.js' is older than newest input 'src/src/main.ts' + +4:04:00 PM - Building project '/src/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/src/main.js] +"use strict"; +exports.__esModule = true; +var sym = Symbol(); + + +//// [/src/src/main.ts] +import { HKT } from "./hkt"; + +const sym = Symbol(); + +declare module "./hkt" { + interface HKT { + [sym]: { a: T } + } +} + +type A = HKT[typeof sym]; + +//// [/src/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./src/globals.d.ts": { + "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "signature": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;" + }, + "./src/hkt.ts": { + "version": "675797797-export interface HKT { }", + "signature": "2373810515-export interface HKT {\r\n}\r\n" + }, + "./src/main.ts": { + "version": "-27494779858-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\n\r\ntype A = HKT[typeof sym];", + "signature": "-7779857705-declare const sym: unique symbol;\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: {\r\n a: T;\r\n };\r\n }\r\n}\r\nexport {};\r\n" + } + }, + "options": { + "rootDir": "./src", + "incremental": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/hkt.ts" + ] + }, + "exportedModulesMap": { + "./src/main.ts": [ + "./src/hkt.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../lib/lib.d.ts", + "./src/globals.d.ts", + "./src/hkt.ts", + "./src/main.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-build/interface-is-merged-and-contains-late-bound-member.js b/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-build/interface-is-merged-and-contains-late-bound-member.js new file mode 100644 index 00000000000..1138bdc9f23 --- /dev/null +++ b/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-build/interface-is-merged-and-contains-late-bound-member.js @@ -0,0 +1,70 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/tsconfig.json --verbose +4:01:00 PM - Projects in this build: + * src/tsconfig.json + +4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/src/hkt.js' does not exist + +4:01:00 PM - Building project '/src/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/src/hkt.js] +"use strict"; +exports.__esModule = true; + + +//// [/src/src/main.js] +"use strict"; +exports.__esModule = true; +var sym = Symbol(); +var x = 10; + + +//// [/src/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./src/globals.d.ts": { + "version": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;", + "signature": "-1994196675-interface SymbolConstructor {\n (description?: string | number): symbol;\n}\ndeclare var Symbol: SymbolConstructor;" + }, + "./src/hkt.ts": { + "version": "675797797-export interface HKT { }", + "signature": "2373810515-export interface HKT {\r\n}\r\n" + }, + "./src/main.ts": { + "version": "-28387946490-import { HKT } from \"./hkt\";\r\n\r\nconst sym = Symbol();\r\n\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: { a: T }\r\n }\r\n}\r\nconst x = 10;\r\ntype A = HKT[typeof sym];", + "signature": "-7779857705-declare const sym: unique symbol;\r\ndeclare module \"./hkt\" {\r\n interface HKT {\r\n [sym]: {\r\n a: T;\r\n };\r\n }\r\n}\r\nexport {};\r\n" + } + }, + "options": { + "rootDir": "./src", + "incremental": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./src/main.ts": [ + "./src/hkt.ts" + ] + }, + "exportedModulesMap": { + "./src/main.ts": [ + "./src/hkt.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../lib/lib.d.ts", + "./src/globals.d.ts", + "./src/hkt.ts", + "./src/main.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js b/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js new file mode 100644 index 00000000000..2701a84f6b4 --- /dev/null +++ b/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js @@ -0,0 +1,192 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc -b /src --verbose +4:00:00 PM - Projects in this build: + * src/solution/common/tsconfig.json + * src/solution/sub-project/tsconfig.json + * src/solution/sub-project-2/tsconfig.json + * src/solution/tsconfig.json + * src/tsconfig.json + +4:00:00 PM - Project 'src/solution/common/tsconfig.json' is out of date because output file 'src/lib/solution/common/nominal.js' does not exist + +4:00:00 PM - Building project '/src/solution/common/tsconfig.json'... + +4:00:00 PM - Project 'src/solution/sub-project/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project/index.js' does not exist + +4:00:00 PM - Building project '/src/solution/sub-project/tsconfig.json'... + +4:00:00 PM - Project 'src/solution/sub-project-2/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project-2/index.js' does not exist + +4:00:00 PM - Building project '/src/solution/sub-project-2/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/lib/solution/common/nominal.d.ts] +export declare type Nominal = T & { + [Symbol.species]: Name; +}; + + +//// [/src/lib/solution/common/nominal.js] +"use strict"; +exports.__esModule = true; + + +//// [/src/lib/solution/common/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../../../lib/lib.d.ts": { + "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", + "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" + }, + "../../../solution/common/nominal.ts": { + "version": "-24498031910-export declare type Nominal = T & {\n [Symbol.species]: Name;\n};\n", + "signature": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" + } + }, + "options": { + "skipLibCheck": true, + "rootDir": "../../..", + "outDir": "../..", + "composite": true, + "configFilePath": "../../../solution/common/tsconfig.json" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../../../lib/lib.d.ts", + "../../../solution/common/nominal.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/solution/sub-project/index.d.ts] +import { Nominal } from '../common/nominal'; +export declare type MyNominal = Nominal; + + +//// [/src/lib/solution/sub-project/index.js] +"use strict"; +exports.__esModule = true; + + +//// [/src/lib/solution/sub-project/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../../../lib/lib.d.ts": { + "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", + "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" + }, + "../../../solution/common/nominal.ts": { + "version": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n", + "signature": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" + }, + "../../../solution/sub-project/index.ts": { + "version": "-22894055505-import { Nominal } from '../common/nominal';\n\nexport type MyNominal = Nominal;\n", + "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n" + } + }, + "options": { + "skipLibCheck": true, + "rootDir": "../../..", + "outDir": "../..", + "composite": true, + "configFilePath": "../../../solution/sub-project/tsconfig.json" + }, + "referencedMap": { + "../../../solution/sub-project/index.ts": [ + "../common/nominal.d.ts" + ] + }, + "exportedModulesMap": { + "../../../solution/sub-project/index.ts": [ + "../common/nominal.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../../../lib/lib.d.ts", + "../../../solution/common/nominal.ts", + "../../../solution/sub-project/index.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/lib/solution/sub-project-2/index.d.ts] +declare const variable: { + key: import("../common/nominal").Nominal; +}; +export declare function getVar(): keyof typeof variable; +export {}; + + +//// [/src/lib/solution/sub-project-2/index.js] +"use strict"; +exports.__esModule = true; +var variable = { + key: 'value' +}; +function getVar() { + return 'key'; +} +exports.getVar = getVar; + + +//// [/src/lib/solution/sub-project-2/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../../../lib/lib.d.ts": { + "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", + "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" + }, + "../../../solution/common/nominal.ts": { + "version": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n", + "signature": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" + }, + "../../../solution/sub-project/index.ts": { + "version": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n", + "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n" + }, + "../../../solution/sub-project-2/index.ts": { + "version": "-13939373533-import { MyNominal } from '../sub-project/index';\n\nconst variable = {\n key: 'value' as MyNominal,\n};\n\nexport function getVar(): keyof typeof variable {\n return 'key';\n}\n", + "signature": "-17233212183-declare const variable: {\r\n key: import(\"../common/nominal\").Nominal;\r\n};\r\nexport declare function getVar(): keyof typeof variable;\r\nexport {};\r\n" + } + }, + "options": { + "skipLibCheck": true, + "rootDir": "../../..", + "outDir": "../..", + "composite": true, + "configFilePath": "../../../solution/sub-project-2/tsconfig.json" + }, + "referencedMap": { + "../../../solution/sub-project-2/index.ts": [ + "../sub-project/index.d.ts" + ], + "../../../solution/sub-project/index.ts": [ + "../common/nominal.d.ts" + ] + }, + "exportedModulesMap": { + "../../../solution/sub-project-2/index.ts": [ + "../common/nominal.d.ts" + ], + "../../../solution/sub-project/index.ts": [ + "../common/nominal.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../../../lib/lib.d.ts", + "../../../solution/common/nominal.ts", + "../../../solution/sub-project-2/index.ts", + "../../../solution/sub-project/index.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js new file mode 100644 index 00000000000..9367a222e95 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js @@ -0,0 +1,1301 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +4:04:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + { + "pos": 109, + "end": 394, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 109, + "end": 394, + "kind": "text" + } + ] + }, + { + "pos": 394, + "end": 430, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-109):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (109-394):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (109-394) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (394-430) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..dde86a0a636 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js @@ -0,0 +1,1700 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +4:04:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 728, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 207, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (502-728) +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-207) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +declare var c: C; +declare function forthirdthird_part1Rest(): void; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) +--- +>>>declare function forthirdthird_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + >c.doSomething(); + > +2 >function +3 > forthirdthird_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(23, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(24, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(26, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(28, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(28, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(28, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(29, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(29, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(29, 38) Source(13, 48) + SourceIndex(3) +4 >Emitted(29, 40) Source(13, 9) + SourceIndex(3) +5 >Emitted(29, 48) Source(13, 10) + SourceIndex(3) +6 >Emitted(29, 50) Source(13, 12) + SourceIndex(3) +7 >Emitted(29, 74) Source(13, 48) + SourceIndex(3) +8 >Emitted(29, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(30, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(30, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(31, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(32, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(33, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(34, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(34, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(34, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(35, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(35, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(35, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(35, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(35, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(35, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(35, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(35, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(36, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(37, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(38, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(39, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(39, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(39, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(39, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(39, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(39, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(39, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(39, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(40, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(40, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(40, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(40, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(40, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(40, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(41, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(41, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(41, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(42, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(42, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(42, 38) Source(4, 48) + SourceIndex(5) +4 >Emitted(42, 40) Source(4, 9) + SourceIndex(5) +5 >Emitted(42, 48) Source(4, 10) + SourceIndex(5) +6 >Emitted(42, 50) Source(4, 12) + SourceIndex(5) +7 >Emitted(42, 74) Source(4, 48) + SourceIndex(5) +8 >Emitted(42, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(43, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(43, 2) Source(5, 2) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 728, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 502, + "end": 728, + "kind": "text" + } + ] + }, + { + "pos": 728, + "end": 1132, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 728, + "end": 1132, + "kind": "text" + } + ] + }, + { + "pos": 1132, + "end": 1285, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 207, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 207, + "kind": "text" + } + ] + }, + { + "pos": 207, + "end": 360, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 207, + "end": 360, + "kind": "text" + } + ] + }, + { + "pos": 360, + "end": 430, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (502-728):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (502-728) +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (728-1132):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (728-1132) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1132-1285) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-207):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-207) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (207-360):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (207-360) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (360-430) +declare var c: C; +declare function forthirdthird_part1Rest(): void; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js new file mode 100644 index 00000000000..8b6e2ffc4f1 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js @@ -0,0 +1,1501 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +4:04:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(6, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +"myPrologue"; +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +>>>var s = "Hola, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 139, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +text: (30-139) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +"myPrologue" +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(6, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >"myPrologue" + > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1->"myPrologue2"; + > +2 >class +3 > C +1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue3"; + >"myPrologue"; + > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(3, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(3, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(3, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(3, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(3, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue"; +"myPrologue2"; +"myPrologue3"; +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^-> +1-> +2 >"myPrologue3" +3 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) +3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1->"myPrologue" + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(5, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) +3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) +4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) +5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) +6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) +7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) +8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) +9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) +3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) +3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) +4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(11, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(11, 5) Source(6, 11) + SourceIndex(5) +3 >Emitted(11, 6) Source(6, 12) + SourceIndex(5) +4 >Emitted(11, 7) Source(12, 2) + SourceIndex(5) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(12, 12) Source(6, 11) + SourceIndex(5) +3 >Emitted(12, 13) Source(6, 12) + SourceIndex(5) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(13, 5) Source(7, 5) + SourceIndex(5) +2 >Emitted(13, 14) Source(7, 14) + SourceIndex(5) +3 >Emitted(13, 15) Source(7, 15) + SourceIndex(5) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(14, 9) Source(8, 9) + SourceIndex(5) +2 >Emitted(14, 16) Source(8, 16) + SourceIndex(5) +3 >Emitted(14, 17) Source(8, 17) + SourceIndex(5) +4 >Emitted(14, 20) Source(8, 20) + SourceIndex(5) +5 >Emitted(14, 21) Source(8, 21) + SourceIndex(5) +6 >Emitted(14, 30) Source(8, 30) + SourceIndex(5) +7 >Emitted(14, 31) Source(8, 31) + SourceIndex(5) +8 >Emitted(14, 32) Source(8, 32) + SourceIndex(5) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(15, 5) Source(9, 5) + SourceIndex(5) +2 >Emitted(15, 6) Source(9, 6) + SourceIndex(5) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(16, 5) Source(11, 5) + SourceIndex(5) +2 >Emitted(16, 6) Source(11, 6) + SourceIndex(5) +3 >Emitted(16, 8) Source(11, 8) + SourceIndex(5) +4 >Emitted(16, 9) Source(11, 9) + SourceIndex(5) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(17, 1) Source(12, 1) + SourceIndex(5) +2 >Emitted(17, 2) Source(12, 2) + SourceIndex(5) +3 >Emitted(17, 4) Source(6, 11) + SourceIndex(5) +4 >Emitted(17, 5) Source(6, 12) + SourceIndex(5) +5 >Emitted(17, 10) Source(6, 11) + SourceIndex(5) +6 >Emitted(17, 11) Source(6, 12) + SourceIndex(5) +7 >Emitted(17, 19) Source(12, 2) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(18, 1) Source(2, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(19, 5) Source(2, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(20, 6) Source(6, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(21, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(21, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(21, 31) Source(3, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(22, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(22, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(22, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(22, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(22, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(22, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(22, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(22, 43) Source(4, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(24, 13) Source(6, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(25, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(25, 6) Source(6, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1->"myPrologue3"; + >"myPrologue"; + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(26, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(26, 5) Source(3, 5) + SourceIndex(2) +3 >Emitted(26, 6) Source(3, 6) + SourceIndex(2) +4 >Emitted(26, 9) Source(3, 9) + SourceIndex(2) +5 >Emitted(26, 13) Source(3, 13) + SourceIndex(2) +6 >Emitted(26, 14) Source(3, 14) + SourceIndex(2) +7 >Emitted(26, 16) Source(3, 16) + SourceIndex(2) +8 >Emitted(26, 17) Source(3, 17) + SourceIndex(2) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(27, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(27, 2) Source(4, 2) + SourceIndex(2) +3 >Emitted(27, 3) Source(4, 3) + SourceIndex(2) +4 >Emitted(27, 14) Source(4, 14) + SourceIndex(2) +5 >Emitted(27, 16) Source(4, 16) + SourceIndex(2) +6 >Emitted(27, 17) Source(4, 17) + SourceIndex(2) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 62, + "end": 171, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 62, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 456, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 171, + "end": 456, + "kind": "text" + } + ] + }, + { + "pos": 456, + "end": 492, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue3\";\n\"myPrologue\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue3" + } + }, + { + "pos": 14, + "end": 28, + "expression": { + "pos": 14, + "end": 27, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +prepend: (62-171):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (62-171) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (171-456):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (171-456) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (456-492) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js new file mode 100644 index 00000000000..b01cb4d4cce --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js @@ -0,0 +1,1320 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +4:04:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +#!someshebang first first_PART1 +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >#!someshebang first first_PART1 + > +2 >interface +3 > TheFirst +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(5, 32) Source(6, 24) + SourceIndex(0) +6 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +#!someshebang first first_PART1 +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >#!someshebang first first_PART1 + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(2, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1->#!someshebang first first_part2 + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 33, + "end": 142, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 33, + "end": 189, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (33-142) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (33-189) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +#!someshebang first first_PART1 +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +#!someshebang first first_PART1 +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >#!someshebang first first_PART1 + > +2 >interface +3 > TheFirst +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(5, 32) Source(6, 24) + SourceIndex(0) +6 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >#!someshebang second second_part1 + > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(2, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(6, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1->#!someshebang third third_part1 + > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(2, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(2, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(2, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(2, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(2, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(2, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +#!someshebang first first_PART1 +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >#!someshebang first first_PART1 + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(2, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1->#!someshebang first first_part2 + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->#!someshebang second second_part1 + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(6, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(12, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(6, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(6, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(7, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(7, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(7, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(8, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(8, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(8, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(8, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(8, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(8, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(8, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(8, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(9, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(11, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(11, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(11, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(11, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(6, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(6, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(6, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(6, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(12, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1->#!someshebang third third_part1 + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(2, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(2, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(2, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(2, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(3, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(3, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(3, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(3, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(3, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 33, + "end": 142, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 33, + "end": 142, + "kind": "text" + } + ] + }, + { + "pos": 142, + "end": 427, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 142, + "end": 427, + "kind": "text" + } + ] + }, + { + "pos": 427, + "end": 463, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 33, + "end": 189, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 33, + "end": 189, + "kind": "text" + } + ] + }, + { + "pos": 189, + "end": 289, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 189, + "end": 289, + "kind": "text" + } + ] + }, + { + "pos": 289, + "end": 308, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (33-142):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (33-142) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (142-427):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (142-427) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (427-463) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (33-189):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (33-189) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (189-289):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (189-289) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (289-308) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js new file mode 100644 index 00000000000..b267bf60ed3 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js @@ -0,0 +1,1361 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +4:04:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 124, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +text: (15-124) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 124, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 15, + "end": 124, + "kind": "text" + } + ] + }, + { + "pos": 124, + "end": 409, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 124, + "end": 409, + "kind": "text" + } + ] + }, + { + "pos": 409, + "end": 445, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prepend: (15-124):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (15-124) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (124-409):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (124-409) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (409-445) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js new file mode 100644 index 00000000000..4f373f2715d --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,5505 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because oldest output 'src/2/second-output.js' is older than newest input 'src/first' + +4:04:00 PM - Building project '/src/second/tsconfig.json'... + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/second' + +4:04:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts": 2, + "/src/third/third_part1.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.js": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/2/second-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { + constructor(); + prop: string; + method(): void; + c: number; +} +declare namespace normalN { + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +} +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/*@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +--- +>>> c: number; +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /*@internal*/ get +2 > c +3 > () { return 10; } + > /*@internal*/ set c(val: +4 > number +1->Emitted(17, 5) Source(17, 23) + SourceIndex(2) +2 >Emitted(17, 6) Source(17, 24) + SourceIndex(2) +3 >Emitted(17, 8) Source(18, 30) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 36) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(20, 5) Source(21, 19) + SourceIndex(2) +2 >Emitted(20, 11) Source(21, 32) + SourceIndex(2) +3 >Emitted(20, 12) Source(21, 33) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(21, 6) Source(21, 37) + SourceIndex(2) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(22, 5) Source(22, 19) + SourceIndex(2) +2 >Emitted(22, 14) Source(22, 35) + SourceIndex(2) +3 >Emitted(22, 17) Source(22, 38) + SourceIndex(2) +4 >Emitted(22, 26) Source(22, 43) + SourceIndex(2) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(23, 5) Source(23, 19) + SourceIndex(2) +2 >Emitted(23, 15) Source(23, 36) + SourceIndex(2) +3 >Emitted(23, 28) Source(23, 49) + SourceIndex(2) +4 >Emitted(23, 29) Source(23, 50) + SourceIndex(2) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(24, 9) Source(23, 52) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 65) + SourceIndex(2) +3 >Emitted(24, 16) Source(23, 66) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(25, 10) Source(23, 69) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(26, 6) Source(23, 71) + SourceIndex(2) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(27, 5) Source(24, 19) + SourceIndex(2) +2 >Emitted(27, 15) Source(24, 36) + SourceIndex(2) +3 >Emitted(27, 24) Source(24, 45) + SourceIndex(2) +4 >Emitted(27, 25) Source(24, 46) + SourceIndex(2) +5 >Emitted(27, 34) Source(24, 55) + SourceIndex(2) +6 >Emitted(27, 35) Source(24, 56) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(28, 9) Source(24, 58) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 71) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 80) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(29, 10) Source(24, 83) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(30, 6) Source(24, 85) + SourceIndex(2) +--- +>>> export import someImport = someNamespace.C; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /*@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(31, 5) Source(25, 19) + SourceIndex(2) +2 >Emitted(31, 11) Source(25, 25) + SourceIndex(2) +3 >Emitted(31, 19) Source(25, 33) + SourceIndex(2) +4 >Emitted(31, 29) Source(25, 43) + SourceIndex(2) +5 >Emitted(31, 32) Source(25, 46) + SourceIndex(2) +6 >Emitted(31, 45) Source(25, 59) + SourceIndex(2) +7 >Emitted(31, 46) Source(25, 60) + SourceIndex(2) +8 >Emitted(31, 47) Source(25, 61) + SourceIndex(2) +9 >Emitted(31, 48) Source(25, 62) + SourceIndex(2) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(32, 5) Source(26, 19) + SourceIndex(2) +2 >Emitted(32, 10) Source(26, 31) + SourceIndex(2) +3 >Emitted(32, 22) Source(26, 43) + SourceIndex(2) +4 >Emitted(32, 25) Source(26, 46) + SourceIndex(2) +5 >Emitted(32, 34) Source(26, 55) + SourceIndex(2) +6 >Emitted(32, 35) Source(26, 56) + SourceIndex(2) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(33, 5) Source(27, 26) + SourceIndex(2) +2 >Emitted(33, 11) Source(27, 32) + SourceIndex(2) +3 >Emitted(33, 24) Source(27, 45) + SourceIndex(2) +4 >Emitted(33, 29) Source(27, 50) + SourceIndex(2) +5 >Emitted(33, 30) Source(27, 51) + SourceIndex(2) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(34, 5) Source(28, 19) + SourceIndex(2) +2 >Emitted(34, 10) Source(28, 31) + SourceIndex(2) +3 >Emitted(34, 22) Source(28, 43) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(35, 9) Source(28, 46) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 47) + SourceIndex(2) +3 >Emitted(35, 14) Source(28, 47) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(36, 9) Source(28, 49) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 50) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 50) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(37, 9) Source(28, 52) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 53) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 53) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(38, 6) Source(28, 55) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 >class +3 > internalC +1->Emitted(40, 1) Source(30, 15) + SourceIndex(2) +2 >Emitted(40, 15) Source(30, 21) + SourceIndex(2) +3 >Emitted(40, 24) Source(30, 30) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(41, 2) Source(30, 33) + SourceIndex(2) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(42, 1) Source(31, 15) + SourceIndex(2) +2 >Emitted(42, 18) Source(31, 24) + SourceIndex(2) +3 >Emitted(42, 29) Source(31, 35) + SourceIndex(2) +4 >Emitted(42, 38) Source(31, 40) + SourceIndex(2) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(43, 1) Source(32, 15) + SourceIndex(2) +2 >Emitted(43, 19) Source(32, 25) + SourceIndex(2) +3 >Emitted(43, 36) Source(32, 42) + SourceIndex(2) +4 >Emitted(43, 37) Source(32, 43) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(44, 5) Source(32, 45) + SourceIndex(2) +2 >Emitted(44, 11) Source(32, 58) + SourceIndex(2) +3 >Emitted(44, 20) Source(32, 67) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(45, 6) Source(32, 70) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(46, 2) Source(32, 72) + SourceIndex(2) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(47, 1) Source(33, 15) + SourceIndex(2) +2 >Emitted(47, 19) Source(33, 25) + SourceIndex(2) +3 >Emitted(47, 32) Source(33, 38) + SourceIndex(2) +4 >Emitted(47, 33) Source(33, 39) + SourceIndex(2) +5 >Emitted(47, 42) Source(33, 48) + SourceIndex(2) +6 >Emitted(47, 43) Source(33, 49) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(48, 5) Source(33, 51) + SourceIndex(2) +2 >Emitted(48, 11) Source(33, 64) + SourceIndex(2) +3 >Emitted(48, 20) Source(33, 73) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(49, 6) Source(33, 76) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(50, 2) Source(33, 78) + SourceIndex(2) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(51, 1) Source(34, 15) + SourceIndex(2) +2 >Emitted(51, 8) Source(34, 22) + SourceIndex(2) +3 >Emitted(51, 22) Source(34, 36) + SourceIndex(2) +4 >Emitted(51, 25) Source(34, 39) + SourceIndex(2) +5 >Emitted(51, 42) Source(34, 56) + SourceIndex(2) +6 >Emitted(51, 43) Source(34, 57) + SourceIndex(2) +7 >Emitted(51, 52) Source(34, 66) + SourceIndex(2) +8 >Emitted(51, 53) Source(34, 67) + SourceIndex(2) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(52, 1) Source(35, 15) + SourceIndex(2) +2 >Emitted(52, 14) Source(35, 20) + SourceIndex(2) +3 >Emitted(52, 26) Source(35, 32) + SourceIndex(2) +4 >Emitted(52, 29) Source(35, 35) + SourceIndex(2) +5 >Emitted(52, 38) Source(35, 44) + SourceIndex(2) +6 >Emitted(52, 39) Source(35, 45) + SourceIndex(2) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(53, 1) Source(36, 15) + SourceIndex(2) +2 >Emitted(53, 9) Source(36, 15) + SourceIndex(2) +3 >Emitted(53, 15) Source(36, 21) + SourceIndex(2) +4 >Emitted(53, 28) Source(36, 34) + SourceIndex(2) +5 >Emitted(53, 33) Source(36, 39) + SourceIndex(2) +6 >Emitted(53, 34) Source(36, 40) + SourceIndex(2) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(54, 1) Source(37, 15) + SourceIndex(2) +2 >Emitted(54, 14) Source(37, 20) + SourceIndex(2) +3 >Emitted(54, 26) Source(37, 32) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(55, 5) Source(37, 35) + SourceIndex(2) +2 >Emitted(55, 6) Source(37, 36) + SourceIndex(2) +3 >Emitted(55, 10) Source(37, 36) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 5) Source(37, 38) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 39) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 39) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(57, 5) Source(37, 41) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 42) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 42) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(58, 2) Source(37, 44) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + { + "pos": 109, + "end": 3161, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 233, + "kind": "text" + }, + { + "pos": 233, + "end": 307, + "kind": "internal" + }, + { + "pos": 309, + "end": 341, + "kind": "text" + }, + { + "pos": 341, + "end": 733, + "kind": "internal" + }, + { + "pos": 735, + "end": 738, + "kind": "text" + }, + { + "pos": 738, + "end": 1151, + "kind": "internal" + }, + { + "pos": 1153, + "end": 1201, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-109):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (109-3161) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (41-156) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (156-233) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (233-307) + constructor(); + prop: string; + method(): void; + c: number; +---------------------------------------------------------------------- +text: (309-341) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (341-733) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (735-738) +} + +---------------------------------------------------------------------- +internal: (738-1151) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1153-1201) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/*@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-156) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare const s = "Hola, world"; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(1, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3161, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3161, + "kind": "text" + } + ] + }, + { + "pos": 3161, + "end": 3197, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 275, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 275, + "kind": "text" + } + ] + }, + { + "pos": 275, + "end": 294, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3161):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3161) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3161-3197) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-275):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-275) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (275-294) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js new file mode 100644 index 00000000000..6e0f9dad311 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js @@ -0,0 +1,2697 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +4:04:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/*@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-156) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare const s = "Hola, world"; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(1, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + { + "pos": 109, + "end": 3161, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 109, + "end": 3161, + "kind": "text" + } + ] + }, + { + "pos": 3161, + "end": 3197, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 115, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 115, + "kind": "text" + } + ] + }, + { + "pos": 115, + "end": 275, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 115, + "end": 275, + "kind": "text" + } + ] + }, + { + "pos": 275, + "end": 294, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-109):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (109-3161):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (109-3161) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3161-3197) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-115):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-115) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (115-275):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (115-275) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (275-294) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js new file mode 100644 index 00000000000..bfdd60afdbe --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js @@ -0,0 +1,1571 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +4:04:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/second/tripleRef.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/third/tripleRef.d.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +/// +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>/// +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(2, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(5, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(5, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(5, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(5, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(5, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(6, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(6, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(6, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(7, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(7, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(7, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>declare const first_part2Const: firstfirst_part2; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > first_part2Const +5 > = new firstfirst_part2() +6 > ; +1->Emitted(9, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(9, 9) Source(2, 1) + SourceIndex(1) +3 >Emitted(9, 15) Source(2, 7) + SourceIndex(1) +4 >Emitted(9, 31) Source(2, 23) + SourceIndex(1) +5 >Emitted(9, 49) Source(2, 48) + SourceIndex(1) +6 >Emitted(9, 50) Source(2, 49) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(10, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>var first_part2Const = new firstfirst_part2(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > first_part2Const +4 > = +5 > new +6 > firstfirst_part2 +7 > () +8 > ; +1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) +4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) +5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) +6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) +7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) +8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) +--- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 42, + "kind": "reference", + "data": "../tripleRef.d.ts" + }, + { + "pos": 44, + "end": 251, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-157) +var s = "Hola, world"; +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +reference: (0-42):: ../tripleRef.d.ts +/// +---------------------------------------------------------------------- +text: (44-251) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +/// +/// +/// +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare const third_part1Const: thirdthird_part1; +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>/// +>>>/// +>>>/// +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(4, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(4, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(5, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(5, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(5, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(5, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(5, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(6, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(7, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(7, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(7, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(7, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(8, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(9, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>declare const first_part2Const: firstfirst_part2; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > first_part2Const +5 > = new firstfirst_part2() +6 > ; +1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(11, 9) Source(2, 1) + SourceIndex(1) +3 >Emitted(11, 15) Source(2, 7) + SourceIndex(1) +4 >Emitted(11, 31) Source(2, 23) + SourceIndex(1) +5 >Emitted(11, 49) Source(2, 48) + SourceIndex(1) +6 >Emitted(11, 50) Source(2, 49) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(12, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(12, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(12, 30) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare const second_part1Const: secondsecond_part1; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > second_part1Const +5 > = new secondsecond_part1() +6 > ; +1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(13, 9) Source(2, 1) + SourceIndex(3) +3 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) +4 >Emitted(13, 32) Source(2, 24) + SourceIndex(3) +5 >Emitted(13, 52) Source(2, 51) + SourceIndex(3) +6 >Emitted(13, 53) Source(2, 52) + SourceIndex(3) +--- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > + > +2 >namespace +3 > N +4 > +1 >Emitted(14, 1) Source(3, 1) + SourceIndex(3) +2 >Emitted(14, 19) Source(3, 11) + SourceIndex(3) +3 >Emitted(14, 20) Source(3, 12) + SourceIndex(3) +4 >Emitted(14, 21) Source(3, 13) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(16, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(16, 19) Source(7, 11) + SourceIndex(3) +3 >Emitted(16, 20) Source(7, 12) + SourceIndex(3) +4 >Emitted(16, 21) Source(7, 13) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(17, 2) Source(13, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(4) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(4) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(4) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare const third_part1Const: thirdthird_part1; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > third_part1Const +5 > = new thirdthird_part1() +6 > ; +1->Emitted(21, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(21, 9) Source(2, 1) + SourceIndex(5) +3 >Emitted(21, 15) Source(2, 7) + SourceIndex(5) +4 >Emitted(21, 31) Source(2, 23) + SourceIndex(5) +5 >Emitted(21, 49) Source(2, 48) + SourceIndex(5) +6 >Emitted(21, 50) Source(2, 49) + SourceIndex(5) +--- +>>>declare var c: C; +1 > +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1 >Emitted(22, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(22, 9) Source(3, 1) + SourceIndex(5) +3 >Emitted(22, 13) Source(3, 5) + SourceIndex(5) +4 >Emitted(22, 14) Source(3, 6) + SourceIndex(5) +5 >Emitted(22, 17) Source(3, 16) + SourceIndex(5) +6 >Emitted(22, 18) Source(3, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var third_part1Const = new thirdthird_part1(); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>var first_part2Const = new firstfirst_part2(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > first_part2Const +4 > = +5 > new +6 > firstfirst_part2 +7 > () +8 > ; +1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) +4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) +5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) +6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) +7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) +8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) +--- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var second_part1Const = new secondsecond_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > second_part1Const +4 > = +5 > new +6 > secondsecond_part1 +7 > () +8 > ; +1->Emitted(8, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(2, 7) + SourceIndex(3) +3 >Emitted(8, 22) Source(2, 24) + SourceIndex(3) +4 >Emitted(8, 25) Source(2, 27) + SourceIndex(3) +5 >Emitted(8, 29) Source(2, 31) + SourceIndex(3) +6 >Emitted(8, 47) Source(2, 49) + SourceIndex(3) +7 >Emitted(8, 49) Source(2, 51) + SourceIndex(3) +8 >Emitted(8, 50) Source(2, 52) + SourceIndex(3) +--- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(7, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(13, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(7, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(7, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(8, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(8, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(9, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(9, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(9, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(9, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(9, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(9, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(9, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(9, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(12, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(12, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(12, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(12, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(7, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(7, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(7, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(7, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(13, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var third_part1Const = new thirdthird_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > third_part1Const +4 > = +5 > new +6 > thirdthird_part1 +7 > () +8 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(2, 7) + SourceIndex(5) +3 >Emitted(24, 21) Source(2, 23) + SourceIndex(5) +4 >Emitted(24, 24) Source(2, 26) + SourceIndex(5) +5 >Emitted(24, 28) Source(2, 30) + SourceIndex(5) +6 >Emitted(24, 44) Source(2, 46) + SourceIndex(5) +7 >Emitted(24, 46) Source(2, 48) + SourceIndex(5) +8 >Emitted(24, 47) Source(2, 49) + SourceIndex(5) +--- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1 > + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(25, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(3, 5) + SourceIndex(5) +3 >Emitted(25, 6) Source(3, 6) + SourceIndex(5) +4 >Emitted(25, 9) Source(3, 9) + SourceIndex(5) +5 >Emitted(25, 13) Source(3, 13) + SourceIndex(5) +6 >Emitted(25, 14) Source(3, 14) + SourceIndex(5) +7 >Emitted(25, 16) Source(3, 16) + SourceIndex(5) +8 >Emitted(25, 17) Source(3, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(26, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(26, 2) Source(4, 2) + SourceIndex(5) +3 >Emitted(26, 3) Source(4, 3) + SourceIndex(5) +4 >Emitted(26, 14) Source(4, 14) + SourceIndex(5) +5 >Emitted(26, 16) Source(4, 16) + SourceIndex(5) +6 >Emitted(26, 17) Source(4, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 493, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 157, + "end": 493, + "kind": "text" + } + ] + }, + { + "pos": 493, + "end": 577, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 45, + "kind": "reference", + "data": "../../tripleRef.d.ts" + }, + { + "pos": 47, + "end": 101, + "kind": "reference", + "data": "../../../first/tripleRef.d.ts" + }, + { + "pos": 103, + "end": 158, + "kind": "reference", + "data": "../../../second/tripleRef.d.ts" + }, + { + "pos": 160, + "end": 367, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 160, + "end": 367, + "kind": "text" + } + ] + }, + { + "pos": 367, + "end": 521, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 367, + "end": 521, + "kind": "text" + } + ] + }, + { + "pos": 521, + "end": 591, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +var s = "Hola, world"; +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (157-493):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (157-493) +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (493-577) +var third_part1Const = new thirdthird_part1(); +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +reference: (0-45):: ../../tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (47-101):: ../../../first/tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (103-158):: ../../../second/tripleRef.d.ts +/// +---------------------------------------------------------------------- +prepend: (160-367):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (160-367) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (367-521):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (367-521) +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (521-591) +declare const third_part1Const: thirdthird_part1; +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js new file mode 100644 index 00000000000..554b360c244 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js @@ -0,0 +1,961 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 412, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 412, + "kind": "text" + } + ] + }, + { + "pos": 412, + "end": 448, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-412):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-412) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (412-448) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..1a351abf785 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js @@ -0,0 +1,1281 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 746, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (502-746) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +}console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(22, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(22, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(22, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(23, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(23, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(23, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(24, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(24, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(24, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(25, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(25, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(25, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(25, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(25, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(25, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(25, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(25, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(26, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(26, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(27, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(27, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(27, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(27, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(28, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(28, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(28, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(28, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(28, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(28, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(28, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(29, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(29, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(29, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(30, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(30, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(30, 38) Source(13, 48) + SourceIndex(3) +4 >Emitted(30, 40) Source(13, 9) + SourceIndex(3) +5 >Emitted(30, 48) Source(13, 10) + SourceIndex(3) +6 >Emitted(30, 50) Source(13, 12) + SourceIndex(3) +7 >Emitted(30, 74) Source(13, 48) + SourceIndex(3) +8 >Emitted(30, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(31, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(31, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(32, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(33, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(34, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(34, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(35, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(35, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(35, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(36, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(36, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(36, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(36, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(36, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(36, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(36, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(36, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(37, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(37, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(38, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(39, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(39, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(39, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(39, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(40, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(40, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(40, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(40, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(40, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(40, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(40, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(40, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(41, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(41, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(41, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(41, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(41, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(41, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(42, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(42, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(42, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(43, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(43, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(43, 38) Source(4, 48) + SourceIndex(5) +4 >Emitted(43, 40) Source(4, 9) + SourceIndex(5) +5 >Emitted(43, 48) Source(4, 10) + SourceIndex(5) +6 >Emitted(43, 50) Source(4, 12) + SourceIndex(5) +7 >Emitted(43, 74) Source(4, 48) + SourceIndex(5) +8 >Emitted(43, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(44, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(44, 2) Source(5, 2) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 746, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 502, + "end": 746, + "kind": "text" + } + ] + }, + { + "pos": 746, + "end": 1150, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 746, + "end": 1150, + "kind": "text" + } + ] + }, + { + "pos": 1150, + "end": 1303, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 361, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 361, + "kind": "text" + } + ] + }, + { + "pos": 361, + "end": 431, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (502-746):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (502-746) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (746-1150):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (746-1150) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1150-1303) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-361) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (361-431) +declare var c: C; +declare function forthirdthird_part1Rest(): void; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js new file mode 100644 index 00000000000..6c4af8b33e5 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js @@ -0,0 +1,1077 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 39) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 46) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 47) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 50) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 51) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 52) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 53) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 54) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 167, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-167) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { }console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(15, 1) Source(12, 39) + SourceIndex(0) +2 >Emitted(15, 8) Source(12, 46) + SourceIndex(0) +3 >Emitted(15, 9) Source(12, 47) + SourceIndex(0) +4 >Emitted(15, 12) Source(12, 50) + SourceIndex(0) +5 >Emitted(15, 13) Source(12, 51) + SourceIndex(0) +6 >Emitted(15, 14) Source(12, 52) + SourceIndex(0) +7 >Emitted(15, 15) Source(12, 53) + SourceIndex(0) +8 >Emitted(15, 16) Source(12, 54) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(16, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(16, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(16, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(16, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(16, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(16, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(16, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(16, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(17, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(17, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(17, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(18, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(18, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(18, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(18, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(19, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(20, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(20, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(20, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(21, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(21, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(22, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(22, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(22, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(23, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(23, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(23, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(23, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(23, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(23, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(23, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(23, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(24, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(24, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(25, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(25, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(25, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(25, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(26, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(26, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(26, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(26, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(26, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(26, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(27, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(27, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(27, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(28, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(28, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(28, 38) Source(13, 48) + SourceIndex(3) +4 >Emitted(28, 40) Source(13, 9) + SourceIndex(3) +5 >Emitted(28, 48) Source(13, 10) + SourceIndex(3) +6 >Emitted(28, 50) Source(13, 12) + SourceIndex(3) +7 >Emitted(28, 74) Source(13, 48) + SourceIndex(3) +8 >Emitted(28, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(29, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(29, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(30, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(31, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(32, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(33, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(33, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(33, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(34, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(34, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(34, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(34, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(34, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(34, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(34, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(34, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(35, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(36, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(37, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(37, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(38, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(38, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(38, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(38, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(38, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(38, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(38, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(38, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(39, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(39, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(39, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(39, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(39, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(39, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 669, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 502, + "end": 669, + "kind": "text" + } + ] + }, + { + "pos": 669, + "end": 1073, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 669, + "end": 1073, + "kind": "text" + } + ] + }, + { + "pos": 1073, + "end": 1109, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 361, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 361, + "kind": "text" + } + ] + }, + { + "pos": 361, + "end": 380, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (502-669):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (502-669) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (669-1073):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (669-1073) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1073-1109) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-361) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (361-380) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..8b110dd43d3 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -0,0 +1,1856 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(37, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(37, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(37, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(37, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(37, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(37, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(37, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(37, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(38, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(38, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(38, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(38, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(38, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(38, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(38, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(38, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(38, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(39, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(39, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(39, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(40, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(40, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(40, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(40, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2) +--- +>>>function firstfirst_part3Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +1->Emitted(42, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(42, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(42, 32) Source(4, 32) + SourceIndex(2) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(43, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(43, 16) Source(4, 47) + SourceIndex(2) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(44, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(44, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(44, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(44, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(44, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(44, 49) Source(4, 47) + SourceIndex(2) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(45, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(45, 31) Source(4, 47) + SourceIndex(2) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(47, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(47, 2) Source(4, 52) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >firstfirst_part3Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(48, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(48, 23) Source(5, 23) + SourceIndex(2) +3 >Emitted(48, 47) Source(5, 27) + SourceIndex(2) +4 >Emitted(48, 48) Source(5, 28) + SourceIndex(2) +5 >Emitted(48, 50) Source(5, 30) + SourceIndex(2) +6 >Emitted(48, 52) Source(5, 32) + SourceIndex(2) +7 >Emitted(48, 54) Source(5, 34) + SourceIndex(2) +8 >Emitted(48, 56) Source(5, 36) + SourceIndex(2) +9 >Emitted(48, 58) Source(5, 38) + SourceIndex(2) +10>Emitted(48, 59) Source(5, 39) + SourceIndex(2) +11>Emitted(48, 62) Source(5, 41) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 1180, + "end": 1636, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 272, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1178):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +text: (1180-1636) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-272) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare function firstfirst_part3Spread(...b: number[]): void; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +}console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +function secondsecond_part2Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +function thirdthird_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACP1C,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(37, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(37, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(37, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(37, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(37, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(37, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(37, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(37, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(38, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(38, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(38, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(38, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(38, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(38, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(38, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(38, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(38, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(39, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(39, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(39, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(40, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(40, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(40, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(40, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2) +--- +>>>function firstfirst_part3Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +1->Emitted(42, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(42, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(42, 32) Source(4, 32) + SourceIndex(2) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(43, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(43, 16) Source(4, 47) + SourceIndex(2) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(44, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(44, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(44, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(44, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(44, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(44, 49) Source(4, 47) + SourceIndex(2) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(45, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(45, 31) Source(4, 47) + SourceIndex(2) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(47, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(47, 2) Source(4, 52) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >firstfirst_part3Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(48, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(48, 23) Source(5, 23) + SourceIndex(2) +3 >Emitted(48, 47) Source(5, 27) + SourceIndex(2) +4 >Emitted(48, 48) Source(5, 28) + SourceIndex(2) +5 >Emitted(48, 50) Source(5, 30) + SourceIndex(2) +6 >Emitted(48, 52) Source(5, 32) + SourceIndex(2) +7 >Emitted(48, 54) Source(5, 34) + SourceIndex(2) +8 >Emitted(48, 56) Source(5, 36) + SourceIndex(2) +9 >Emitted(48, 58) Source(5, 38) + SourceIndex(2) +10>Emitted(48, 59) Source(5, 39) + SourceIndex(2) +11>Emitted(48, 62) Source(5, 41) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(49, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(49, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(49, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(49, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(50, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(50, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(50, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(51, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(51, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(51, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(52, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(52, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(52, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(52, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(52, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(52, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(52, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(52, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(53, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(53, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(54, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(54, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(54, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(54, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(55, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(55, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(55, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(55, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(55, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(55, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(55, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(56, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(56, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(56, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(57, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(57, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(57, 38) Source(13, 48) + SourceIndex(3) +4 >Emitted(57, 40) Source(13, 9) + SourceIndex(3) +5 >Emitted(57, 48) Source(13, 10) + SourceIndex(3) +6 >Emitted(57, 50) Source(13, 12) + SourceIndex(3) +7 >Emitted(57, 74) Source(13, 48) + SourceIndex(3) +8 >Emitted(57, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(58, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(58, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(59, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(60, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(61, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(61, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(62, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(62, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(62, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(63, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(63, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(63, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(63, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(63, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(63, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(63, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(63, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(64, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(64, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(65, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(65, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(66, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(66, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(66, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(66, 6) Source(5, 2) + SourceIndex(4) +--- +>>>function secondsecond_part2Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part2Spread +1->Emitted(67, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(67, 10) Source(7, 10) + SourceIndex(4) +3 >Emitted(67, 34) Source(7, 34) + SourceIndex(4) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(68, 5) Source(7, 35) + SourceIndex(4) +2 >Emitted(68, 16) Source(7, 49) + SourceIndex(4) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(69, 10) Source(7, 35) + SourceIndex(4) +2 >Emitted(69, 20) Source(7, 49) + SourceIndex(4) +3 >Emitted(69, 22) Source(7, 35) + SourceIndex(4) +4 >Emitted(69, 43) Source(7, 49) + SourceIndex(4) +5 >Emitted(69, 45) Source(7, 35) + SourceIndex(4) +6 >Emitted(69, 49) Source(7, 49) + SourceIndex(4) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(70, 9) Source(7, 35) + SourceIndex(4) +2 >Emitted(70, 31) Source(7, 49) + SourceIndex(4) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(72, 1) Source(7, 53) + SourceIndex(4) +2 >Emitted(72, 2) Source(7, 54) + SourceIndex(4) +--- +>>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >secondsecond_part2Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(73, 1) Source(8, 1) + SourceIndex(4) +2 >Emitted(73, 25) Source(8, 25) + SourceIndex(4) +3 >Emitted(73, 49) Source(8, 29) + SourceIndex(4) +4 >Emitted(73, 50) Source(8, 30) + SourceIndex(4) +5 >Emitted(73, 52) Source(8, 32) + SourceIndex(4) +6 >Emitted(73, 54) Source(8, 34) + SourceIndex(4) +7 >Emitted(73, 56) Source(8, 36) + SourceIndex(4) +8 >Emitted(73, 58) Source(8, 38) + SourceIndex(4) +9 >Emitted(73, 60) Source(8, 40) + SourceIndex(4) +10>Emitted(73, 61) Source(8, 41) + SourceIndex(4) +11>Emitted(73, 64) Source(8, 43) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1 > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(74, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(74, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(74, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(74, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(74, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(74, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(74, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(74, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(75, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(75, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(75, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(75, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(75, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(75, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(76, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(76, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(76, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(77, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(77, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(77, 38) Source(4, 48) + SourceIndex(5) +4 >Emitted(77, 40) Source(4, 9) + SourceIndex(5) +5 >Emitted(77, 48) Source(4, 10) + SourceIndex(5) +6 >Emitted(77, 50) Source(4, 12) + SourceIndex(5) +7 >Emitted(77, 74) Source(4, 48) + SourceIndex(5) +8 >Emitted(77, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(78, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(78, 2) Source(5, 2) + SourceIndex(5) +--- +>>>function thirdthird_part1Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > thirdthird_part1Spread +1->Emitted(79, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(79, 10) Source(6, 10) + SourceIndex(5) +3 >Emitted(79, 32) Source(6, 32) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(80, 5) Source(6, 33) + SourceIndex(5) +2 >Emitted(80, 16) Source(6, 47) + SourceIndex(5) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(81, 10) Source(6, 33) + SourceIndex(5) +2 >Emitted(81, 20) Source(6, 47) + SourceIndex(5) +3 >Emitted(81, 22) Source(6, 33) + SourceIndex(5) +4 >Emitted(81, 43) Source(6, 47) + SourceIndex(5) +5 >Emitted(81, 45) Source(6, 33) + SourceIndex(5) +6 >Emitted(81, 49) Source(6, 47) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(82, 9) Source(6, 33) + SourceIndex(5) +2 >Emitted(82, 31) Source(6, 47) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(84, 1) Source(6, 51) + SourceIndex(5) +2 >Emitted(84, 2) Source(6, 52) + SourceIndex(5) +--- +>>>thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >thirdthird_part1Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(85, 1) Source(7, 1) + SourceIndex(5) +2 >Emitted(85, 23) Source(7, 23) + SourceIndex(5) +3 >Emitted(85, 47) Source(7, 27) + SourceIndex(5) +4 >Emitted(85, 48) Source(7, 28) + SourceIndex(5) +5 >Emitted(85, 50) Source(7, 30) + SourceIndex(5) +6 >Emitted(85, 52) Source(7, 32) + SourceIndex(5) +7 >Emitted(85, 54) Source(7, 34) + SourceIndex(5) +8 >Emitted(85, 56) Source(7, 36) + SourceIndex(5) +9 >Emitted(85, 58) Source(7, 38) + SourceIndex(5) +10>Emitted(85, 59) Source(7, 39) + SourceIndex(5) +11>Emitted(85, 62) Source(7, 41) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 1180, + "end": 1636, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 1180, + "end": 1636, + "kind": "text" + } + ] + }, + { + "pos": 1636, + "end": 2256, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 1636, + "end": 2256, + "kind": "text" + } + ] + }, + { + "pos": 2256, + "end": 2621, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 272, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 272, + "kind": "text" + } + ] + }, + { + "pos": 272, + "end": 491, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 272, + "end": 491, + "kind": "text" + } + ] + }, + { + "pos": 491, + "end": 625, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1178):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +prepend: (1180-1636):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1180-1636) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); + +---------------------------------------------------------------------- +prepend: (1636-2256):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1636-2256) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +function secondsecond_part2Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); + +---------------------------------------------------------------------- +text: (2256-2621) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +function thirdthird_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-272):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-272) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare function firstfirst_part3Spread(...b: number[]): void; + +---------------------------------------------------------------------- +prepend: (272-491):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (272-491) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +declare function secondsecond_part2Spread(...b: number[]): void; + +---------------------------------------------------------------------- +text: (491-625) +declare var c: C; +declare function forthirdthird_part1Rest(): void; +declare function thirdthird_part1Spread(...b: number[]): void; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js new file mode 100644 index 00000000000..ca1beb99e0b --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js @@ -0,0 +1,1389 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 746, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (502-746) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +}console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function secondsecond_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(37, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(37, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(37, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(37, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(37, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(37, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(37, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(37, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(38, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(38, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(38, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(38, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(38, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(38, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(38, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(38, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(38, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(39, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(39, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(39, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(40, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(40, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(40, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(40, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(42, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(42, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(42, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(42, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(43, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(43, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(43, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(44, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(44, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(44, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(45, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(45, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(45, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(45, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(45, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(45, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(45, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(45, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(46, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(46, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(47, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(47, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(47, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(47, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(48, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(48, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(48, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(48, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(48, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(48, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(48, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function secondsecond_part1Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part1Spread +1->Emitted(49, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(49, 10) Source(13, 10) + SourceIndex(3) +3 >Emitted(49, 34) Source(13, 34) + SourceIndex(3) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(50, 5) Source(13, 35) + SourceIndex(3) +2 >Emitted(50, 16) Source(13, 49) + SourceIndex(3) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(51, 10) Source(13, 35) + SourceIndex(3) +2 >Emitted(51, 20) Source(13, 49) + SourceIndex(3) +3 >Emitted(51, 22) Source(13, 35) + SourceIndex(3) +4 >Emitted(51, 43) Source(13, 49) + SourceIndex(3) +5 >Emitted(51, 45) Source(13, 35) + SourceIndex(3) +6 >Emitted(51, 49) Source(13, 49) + SourceIndex(3) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(52, 9) Source(13, 35) + SourceIndex(3) +2 >Emitted(52, 31) Source(13, 49) + SourceIndex(3) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(54, 1) Source(13, 53) + SourceIndex(3) +2 >Emitted(54, 2) Source(13, 54) + SourceIndex(3) +--- +>>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >secondsecond_part1Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(55, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(55, 25) Source(14, 25) + SourceIndex(3) +3 >Emitted(55, 49) Source(14, 29) + SourceIndex(3) +4 >Emitted(55, 50) Source(14, 30) + SourceIndex(3) +5 >Emitted(55, 52) Source(14, 32) + SourceIndex(3) +6 >Emitted(55, 54) Source(14, 34) + SourceIndex(3) +7 >Emitted(55, 56) Source(14, 36) + SourceIndex(3) +8 >Emitted(55, 58) Source(14, 38) + SourceIndex(3) +9 >Emitted(55, 60) Source(14, 40) + SourceIndex(3) +10>Emitted(55, 61) Source(14, 41) + SourceIndex(3) +11>Emitted(55, 64) Source(14, 43) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(56, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(57, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(58, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(58, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(59, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(59, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(59, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(60, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(60, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(60, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(60, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(60, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(60, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(60, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(60, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(61, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(61, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(62, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(62, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(63, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(63, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(63, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(63, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(64, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(64, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(64, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(64, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(64, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(64, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(64, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(64, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(65, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(65, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(65, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(65, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(65, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(65, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(66, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(66, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(66, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(67, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(67, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(67, 38) Source(4, 48) + SourceIndex(5) +4 >Emitted(67, 40) Source(4, 9) + SourceIndex(5) +5 >Emitted(67, 48) Source(4, 10) + SourceIndex(5) +6 >Emitted(67, 50) Source(4, 12) + SourceIndex(5) +7 >Emitted(67, 74) Source(4, 48) + SourceIndex(5) +8 >Emitted(67, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(68, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(68, 2) Source(5, 2) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 1180, + "end": 1424, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 1180, + "end": 1424, + "kind": "text" + } + ] + }, + { + "pos": 1424, + "end": 1925, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 1424, + "end": 1925, + "kind": "text" + } + ] + }, + { + "pos": 1925, + "end": 2078, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 374, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 374, + "kind": "text" + } + ] + }, + { + "pos": 374, + "end": 444, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1178):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +prepend: (1180-1424):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1180-1424) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (1424-1925):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1424-1925) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function secondsecond_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1925-2078) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-374):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-374) +declare namespace N { +} +declare namespace N { +} +declare function secondsecond_part1Spread(...b: number[]): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (374-444) +declare var c: C; +declare function forthirdthird_part1Rest(): void; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js new file mode 100644 index 00000000000..f735bc5dc4c --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js @@ -0,0 +1,1155 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +"use strict"; +"myPrologue"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(9, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 157, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +text: (30-157) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +"myPrologue" +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue"; +"myPrologue2"; +"myPrologue3"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >"myPrologue3" +3 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) +3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1->"myPrologue" + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(5, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(7, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(7, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(7, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(7, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(7, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(7, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(7, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(7, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 8) Source(1, 8) + SourceIndex(3) +3 >Emitted(8, 9) Source(1, 9) + SourceIndex(3) +4 >Emitted(8, 12) Source(1, 12) + SourceIndex(3) +5 >Emitted(8, 13) Source(1, 13) + SourceIndex(3) +6 >Emitted(8, 14) Source(1, 14) + SourceIndex(3) +7 >Emitted(8, 16) Source(1, 16) + SourceIndex(3) +8 >Emitted(8, 17) Source(1, 17) + SourceIndex(3) +9 >Emitted(8, 18) Source(1, 18) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(9, 10) Source(1, 10) + SourceIndex(4) +3 >Emitted(9, 11) Source(1, 11) + SourceIndex(4) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(10, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(10, 12) Source(2, 12) + SourceIndex(4) +3 >Emitted(10, 28) Source(2, 28) + SourceIndex(4) +4 >Emitted(10, 29) Source(2, 29) + SourceIndex(4) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(11, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(11, 2) Source(3, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(12, 5) Source(6, 11) + SourceIndex(5) +3 >Emitted(12, 6) Source(6, 12) + SourceIndex(5) +4 >Emitted(12, 7) Source(12, 2) + SourceIndex(5) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(13, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(13, 12) Source(6, 11) + SourceIndex(5) +3 >Emitted(13, 13) Source(6, 12) + SourceIndex(5) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(14, 5) Source(7, 5) + SourceIndex(5) +2 >Emitted(14, 14) Source(7, 14) + SourceIndex(5) +3 >Emitted(14, 15) Source(7, 15) + SourceIndex(5) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(15, 9) Source(8, 9) + SourceIndex(5) +2 >Emitted(15, 16) Source(8, 16) + SourceIndex(5) +3 >Emitted(15, 17) Source(8, 17) + SourceIndex(5) +4 >Emitted(15, 20) Source(8, 20) + SourceIndex(5) +5 >Emitted(15, 21) Source(8, 21) + SourceIndex(5) +6 >Emitted(15, 30) Source(8, 30) + SourceIndex(5) +7 >Emitted(15, 31) Source(8, 31) + SourceIndex(5) +8 >Emitted(15, 32) Source(8, 32) + SourceIndex(5) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(16, 5) Source(9, 5) + SourceIndex(5) +2 >Emitted(16, 6) Source(9, 6) + SourceIndex(5) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(17, 5) Source(11, 5) + SourceIndex(5) +2 >Emitted(17, 6) Source(11, 6) + SourceIndex(5) +3 >Emitted(17, 8) Source(11, 8) + SourceIndex(5) +4 >Emitted(17, 9) Source(11, 9) + SourceIndex(5) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(18, 1) Source(12, 1) + SourceIndex(5) +2 >Emitted(18, 2) Source(12, 2) + SourceIndex(5) +3 >Emitted(18, 4) Source(6, 11) + SourceIndex(5) +4 >Emitted(18, 5) Source(6, 12) + SourceIndex(5) +5 >Emitted(18, 10) Source(6, 11) + SourceIndex(5) +6 >Emitted(18, 11) Source(6, 12) + SourceIndex(5) +7 >Emitted(18, 19) Source(12, 2) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(19, 1) Source(2, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(20, 5) Source(2, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(21, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(21, 6) Source(6, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(22, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(22, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(22, 31) Source(3, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(23, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(23, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(23, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(23, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(23, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(23, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(23, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(23, 43) Source(4, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(24, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(24, 6) Source(5, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(25, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(25, 13) Source(6, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(26, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(26, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(26, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(26, 6) Source(6, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1->"myPrologue3"; + >"myPrologue"; + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(27, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(27, 5) Source(3, 5) + SourceIndex(2) +3 >Emitted(27, 6) Source(3, 6) + SourceIndex(2) +4 >Emitted(27, 9) Source(3, 9) + SourceIndex(2) +5 >Emitted(27, 13) Source(3, 13) + SourceIndex(2) +6 >Emitted(27, 14) Source(3, 14) + SourceIndex(2) +7 >Emitted(27, 16) Source(3, 16) + SourceIndex(2) +8 >Emitted(27, 17) Source(3, 17) + SourceIndex(2) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(28, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(4, 2) + SourceIndex(2) +3 >Emitted(28, 3) Source(4, 3) + SourceIndex(2) +4 >Emitted(28, 14) Source(4, 14) + SourceIndex(2) +5 >Emitted(28, 16) Source(4, 16) + SourceIndex(2) +6 >Emitted(28, 17) Source(4, 17) + SourceIndex(2) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 62, + "end": 189, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 62, + "end": 189, + "kind": "text" + } + ] + }, + { + "pos": 189, + "end": 474, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 189, + "end": 474, + "kind": "text" + } + ] + }, + { + "pos": 474, + "end": 510, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue3\";\n\"myPrologue\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue3" + } + }, + { + "pos": 14, + "end": 28, + "expression": { + "pos": 14, + "end": 27, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +prepend: (62-189):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (62-189) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (189-474):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (189-474) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (474-510) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js new file mode 100644 index 00000000000..b5914e9854d --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js @@ -0,0 +1,1053 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +"use strict"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 142, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +text: (15-142) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue"; +"myPrologue2"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../second/second_part1.ts","../../../second/second_part2.ts","../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../second/second_part1.ts,../../../second/second_part2.ts,../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1->interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(4, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(4, 6) Source(5, 8) + SourceIndex(2) +4 >Emitted(4, 9) Source(5, 11) + SourceIndex(2) +5 >Emitted(4, 23) Source(5, 25) + SourceIndex(2) +6 >Emitted(4, 24) Source(5, 26) + SourceIndex(2) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(5, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(5, 8) Source(11, 8) + SourceIndex(2) +3 >Emitted(5, 9) Source(11, 9) + SourceIndex(2) +4 >Emitted(5, 12) Source(11, 12) + SourceIndex(2) +5 >Emitted(5, 13) Source(11, 13) + SourceIndex(2) +6 >Emitted(5, 14) Source(11, 14) + SourceIndex(2) +7 >Emitted(5, 15) Source(11, 15) + SourceIndex(2) +8 >Emitted(5, 16) Source(11, 16) + SourceIndex(2) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(6, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(6, 8) Source(12, 8) + SourceIndex(2) +3 >Emitted(6, 9) Source(12, 9) + SourceIndex(2) +4 >Emitted(6, 12) Source(12, 12) + SourceIndex(2) +5 >Emitted(6, 13) Source(12, 13) + SourceIndex(2) +6 >Emitted(6, 14) Source(12, 14) + SourceIndex(2) +7 >Emitted(6, 15) Source(12, 15) + SourceIndex(2) +8 >Emitted(6, 16) Source(12, 16) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) +3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) +4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) +5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) +6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) +7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) +8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) +9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) +3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) +3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) +4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(11, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(11, 5) Source(6, 11) + SourceIndex(0) +3 >Emitted(11, 6) Source(6, 12) + SourceIndex(0) +4 >Emitted(11, 7) Source(12, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(12, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(12, 12) Source(6, 11) + SourceIndex(0) +3 >Emitted(12, 13) Source(6, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(13, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(13, 14) Source(7, 14) + SourceIndex(0) +3 >Emitted(13, 15) Source(7, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(14, 9) Source(8, 9) + SourceIndex(0) +2 >Emitted(14, 16) Source(8, 16) + SourceIndex(0) +3 >Emitted(14, 17) Source(8, 17) + SourceIndex(0) +4 >Emitted(14, 20) Source(8, 20) + SourceIndex(0) +5 >Emitted(14, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(14, 30) Source(8, 30) + SourceIndex(0) +7 >Emitted(14, 31) Source(8, 31) + SourceIndex(0) +8 >Emitted(14, 32) Source(8, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(15, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(15, 6) Source(9, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(16, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(16, 6) Source(11, 6) + SourceIndex(0) +3 >Emitted(16, 8) Source(11, 8) + SourceIndex(0) +4 >Emitted(16, 9) Source(11, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(17, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(12, 2) + SourceIndex(0) +3 >Emitted(17, 4) Source(6, 11) + SourceIndex(0) +4 >Emitted(17, 5) Source(6, 12) + SourceIndex(0) +5 >Emitted(17, 10) Source(6, 11) + SourceIndex(0) +6 >Emitted(17, 11) Source(6, 12) + SourceIndex(0) +7 >Emitted(17, 19) Source(12, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(18, 1) Source(2, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(19, 5) Source(2, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(20, 6) Source(6, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(21, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(21, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(21, 31) Source(3, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(22, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(22, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(22, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(22, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(22, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(22, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(22, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(22, 43) Source(4, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(24, 13) Source(6, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(25, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(25, 6) Source(6, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(26, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(26, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(26, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(26, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(26, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(26, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(26, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(26, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(27, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(27, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(27, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(27, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(27, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(27, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 46, + "end": 173, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 46, + "end": 173, + "kind": "text" + } + ] + }, + { + "pos": 173, + "end": 458, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 173, + "end": 458, + "kind": "text" + } + ] + }, + { + "pos": 458, + "end": 494, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (46-173):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (46-173) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (173-458):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (173-458) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (458-494) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js new file mode 100644 index 00000000000..fed09ab53ca --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js @@ -0,0 +1,972 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/2/second-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +#!someshebang first first_PART1 +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >#!someshebang first first_PART1 + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1->#!someshebang first first_part2 + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(2, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(2, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(2, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(2, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(2, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(2, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(2, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 33, + "end": 160, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 33, + "end": 190, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (33-160) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (33-190) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +#!someshebang first first_PART1 +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +#!someshebang first first_PART1 +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >#!someshebang first first_PART1 + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1->#!someshebang first first_part2 + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(2, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(2, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(2, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(2, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(2, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(2, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(2, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->#!someshebang second second_part1 + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(6, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(12, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(6, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(6, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(7, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(7, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(7, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(8, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(8, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(8, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(8, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(8, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(8, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(8, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(8, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(9, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(11, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(11, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(11, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(11, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(6, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(6, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(6, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(6, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(12, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1->#!someshebang third third_part1 + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(2, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(2, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(2, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(2, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(25, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(3, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(3, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(3, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(3, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(3, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 33, + "end": 160, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 33, + "end": 160, + "kind": "text" + } + ] + }, + { + "pos": 160, + "end": 445, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 160, + "end": 445, + "kind": "text" + } + ] + }, + { + "pos": 445, + "end": 481, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 33, + "end": 190, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 33, + "end": 190, + "kind": "text" + } + ] + }, + { + "pos": 190, + "end": 290, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 190, + "end": 290, + "kind": "text" + } + ] + }, + { + "pos": 290, + "end": 309, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (33-160):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (33-160) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (160-445):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (160-445) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (445-481) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (33-190):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (33-190) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (190-290):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (190-290) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (290-309) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js new file mode 100644 index 00000000000..3d32544f7fb --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js @@ -0,0 +1,942 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +#!someshebang second second_part1 +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang second second_part1 +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->#!someshebang second second_part1 + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(6, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(12, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(6, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(6, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(7, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(7, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(7, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(8, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(8, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(8, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(8, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(8, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(8, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(8, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(8, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(9, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(11, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(11, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(11, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(11, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(6, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(6, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(6, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(6, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(12, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 35, + "end": 162, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 35, + "end": 162, + "kind": "text" + } + ] + }, + { + "pos": 162, + "end": 447, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 162, + "end": 447, + "kind": "text" + } + ] + }, + { + "pos": 447, + "end": 483, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 35, + "end": 192, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 35, + "end": 192, + "kind": "text" + } + ] + }, + { + "pos": 192, + "end": 292, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 192, + "end": 292, + "kind": "text" + } + ] + }, + { + "pos": 292, + "end": 311, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (35-162):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (35-162) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (162-447):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (162-447) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (447-483) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (35-192):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (35-192) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (192-292):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (192-292) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (292-311) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js new file mode 100644 index 00000000000..f5066a128eb --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js @@ -0,0 +1,1021 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +"use strict"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 142, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +text: (15-142) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 142, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 15, + "end": 142, + "kind": "text" + } + ] + }, + { + "pos": 142, + "end": 427, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 142, + "end": 427, + "kind": "text" + } + ] + }, + { + "pos": 427, + "end": 463, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prepend: (15-142):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (15-142) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (142-427):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (142-427) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (427-463) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js new file mode 100644 index 00000000000..6959522b4b3 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js @@ -0,0 +1,950 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 142, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 15, + "end": 142, + "kind": "text" + } + ] + }, + { + "pos": 142, + "end": 427, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 142, + "end": 427, + "kind": "text" + } + ] + }, + { + "pos": 427, + "end": 463, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prepend: (15-142):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (15-142) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (142-427):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (142-427) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (427-463) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js new file mode 100644 index 00000000000..83ef9f7b6c8 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,4307 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/second/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /**@internal*/ +1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /**@internal*/ prop: string; + > /**@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(18, 5) Source(16, 20) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 26) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 20) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 31) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /**@internal*/ +2 > get +3 > c +1->Emitted(19, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(20, 14) Source(17, 20) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 30) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 37) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 39) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 40) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 41) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 42) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /**@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(21, 14) Source(18, 20) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 26) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 37) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 41) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /**@internal*/ +1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(35, 5) Source(22, 20) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 36) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 39) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(36, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 37) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 50) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(38, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(45, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 37) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 46) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(47, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(56, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(57, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /**@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(58, 5) Source(25, 34) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 44) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 47) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 60) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 61) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 62) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 63) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(59, 5) Source(27, 33) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 46) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 49) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 51) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 52) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 32) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(61, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(65, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/**@internal*/ +1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(72, 1) Source(31, 16) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 25) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 36) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 40) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 41) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 26) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 43) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(74, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 26) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 39) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(83, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(92, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(94, 1) Source(34, 16) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 23) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 37) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 40) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 57) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 58) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 67) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 68) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/**@internal*/ type internalType = internalC; + >/**@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(95, 1) Source(36, 16) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 22) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 35) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 38) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 40) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 41) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 21) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(97, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3179, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 308, + "kind": "internal" + }, + { + "pos": 310, + "end": 342, + "kind": "text" + }, + { + "pos": 342, + "end": 734, + "kind": "internal" + }, + { + "pos": 736, + "end": 739, + "kind": "text" + }, + { + "pos": 739, + "end": 1152, + "kind": "internal" + }, + { + "pos": 1154, + "end": 1202, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (127-3179) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-308) + constructor(); + prop: string; + method(): void; + c: number; +---------------------------------------------------------------------- +text: (310-342) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (342-734) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (736-739) +} + +---------------------------------------------------------------------- +internal: (739-1152) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1154-1202) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /**@internal*/ +1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /**@internal*/ prop: string; + > /**@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(18, 5) Source(16, 20) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 26) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 20) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 31) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /**@internal*/ +2 > get +3 > c +1->Emitted(19, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(20, 14) Source(17, 20) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 30) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 37) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 39) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 40) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 41) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 42) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /**@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(21, 14) Source(18, 20) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 26) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 37) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 41) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /**@internal*/ +1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(35, 5) Source(22, 20) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 36) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 39) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(36, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 37) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 50) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(38, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(45, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 37) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 46) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(47, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(56, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(57, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /**@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(58, 5) Source(25, 34) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 44) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 47) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 60) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 61) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 62) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 63) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(59, 5) Source(27, 33) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 46) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 49) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 51) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 52) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 32) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(61, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(65, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/**@internal*/ +1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(72, 1) Source(31, 16) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 25) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 36) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 40) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 41) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 26) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 43) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(74, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 26) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 39) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(83, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(92, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(94, 1) Source(34, 16) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 23) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 37) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 40) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 57) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 58) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 67) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 68) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/**@internal*/ type internalType = internalC; + >/**@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(95, 1) Source(36, 16) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 22) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 35) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 38) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 40) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 41) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 21) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(97, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3179, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3179, + "kind": "text" + } + ] + }, + { + "pos": 3179, + "end": 3215, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3179):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3179) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3179-3215) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-276) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js new file mode 100644 index 00000000000..728eede4865 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js @@ -0,0 +1,2313 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /**@internal*/ +1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /**@internal*/ prop: string; + > /**@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(18, 5) Source(16, 20) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 26) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 20) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 31) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /**@internal*/ +2 > get +3 > c +1->Emitted(19, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(20, 14) Source(17, 20) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 30) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 37) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 39) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 40) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 41) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 42) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /**@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(21, 14) Source(18, 20) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 26) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 37) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 41) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /**@internal*/ +1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(35, 5) Source(22, 20) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 36) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 39) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(36, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 37) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 50) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(38, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(45, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 37) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 46) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(47, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(56, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(57, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /**@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(58, 5) Source(25, 34) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 44) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 47) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 60) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 61) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 62) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 63) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(59, 5) Source(27, 33) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 46) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 49) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 51) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 52) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 32) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(61, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(65, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/**@internal*/ +1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(72, 1) Source(31, 16) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 25) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 36) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 40) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 41) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 26) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 43) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(74, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 26) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 39) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(83, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(92, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(94, 1) Source(34, 16) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 23) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 37) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 40) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 57) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 58) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 67) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 68) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/**@internal*/ type internalType = internalC; + >/**@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(95, 1) Source(36, 16) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 22) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 35) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 38) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 40) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 41) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 21) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(97, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3179, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 3179, + "kind": "text" + } + ] + }, + { + "pos": 3179, + "end": 3215, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 116, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 116, + "kind": "text" + } + ] + }, + { + "pos": 116, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 116, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-3179):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-3179) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3179-3215) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-116) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (116-276) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js new file mode 100644 index 00000000000..063cf4616a5 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,4507 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/second/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /**@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /**@internal*/ +3 > +1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) +3 >Emitted(16, 20) Source(14, 20) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +--- +>>> /**@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /**@internal*/ prop: string; + > +2 > /**@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(18, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) +3 >Emitted(18, 20) Source(16, 20) + SourceIndex(3) +4 >Emitted(18, 44) Source(16, 26) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 20) + SourceIndex(3) +6 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) +7 >Emitted(18, 62) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^-> +1 > + > /**@internal*/ +2 > get +3 > c +1 >Emitted(19, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) +--- +>>> /**@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /**@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(20, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(20, 23) Source(17, 19) + SourceIndex(3) +3 >Emitted(20, 29) Source(17, 20) + SourceIndex(3) +4 >Emitted(20, 43) Source(17, 30) + SourceIndex(3) +5 >Emitted(20, 50) Source(17, 37) + SourceIndex(3) +6 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) +7 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) +8 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) +9 >Emitted(20, 55) Source(17, 42) + SourceIndex(3) +--- +>>> /**@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(21, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(21, 23) Source(18, 19) + SourceIndex(3) +3 >Emitted(21, 29) Source(18, 20) + SourceIndex(3) +4 >Emitted(21, 39) Source(18, 26) + SourceIndex(3) +5 >Emitted(21, 42) Source(18, 37) + SourceIndex(3) +6 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) +7 >Emitted(21, 47) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /**@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1-> { + > +2 > /**@internal*/ +3 > +1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) +3 >Emitted(29, 20) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) +--- +>>> /**@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) +3 >Emitted(35, 20) Source(22, 20) + SourceIndex(3) +4 >Emitted(35, 29) Source(22, 36) + SourceIndex(3) +5 >Emitted(35, 32) Source(22, 39) + SourceIndex(3) +6 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) +7 >Emitted(35, 38) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(36, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) +--- +>>> /**@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) +3 >Emitted(37, 20) Source(23, 20) + SourceIndex(3) +4 >Emitted(37, 24) Source(23, 37) + SourceIndex(3) +5 >Emitted(37, 37) Source(23, 50) + SourceIndex(3) +6 >Emitted(37, 38) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(38, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(45, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) +--- +>>> /**@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) +3 >Emitted(46, 20) Source(24, 20) + SourceIndex(3) +4 >Emitted(46, 24) Source(24, 37) + SourceIndex(3) +5 >Emitted(46, 33) Source(24, 46) + SourceIndex(3) +6 >Emitted(46, 34) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(47, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(56, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(57, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) +--- +>>> /**@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /**@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(58, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(58, 19) Source(25, 19) + SourceIndex(3) +3 >Emitted(58, 20) Source(25, 34) + SourceIndex(3) +4 >Emitted(58, 38) Source(25, 44) + SourceIndex(3) +5 >Emitted(58, 41) Source(25, 47) + SourceIndex(3) +6 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) +7 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) +8 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) +9 >Emitted(58, 57) Source(25, 63) + SourceIndex(3) +--- +>>> /**@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > +2 > /**@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(59, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(59, 19) Source(27, 19) + SourceIndex(3) +3 >Emitted(59, 20) Source(27, 33) + SourceIndex(3) +4 >Emitted(59, 41) Source(27, 46) + SourceIndex(3) +5 >Emitted(59, 44) Source(27, 49) + SourceIndex(3) +6 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) +7 >Emitted(59, 47) Source(27, 52) + SourceIndex(3) +--- +>>> /**@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /**@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) +3 >Emitted(60, 20) Source(28, 20) + SourceIndex(3) +4 >Emitted(60, 24) Source(28, 32) + SourceIndex(3) +5 >Emitted(60, 36) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(61, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(65, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/**@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^-> +1-> + > +2 >/**@internal*/ +3 > +1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) +3 >Emitted(67, 16) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) +--- +>>>/**@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) +3 >Emitted(72, 16) Source(31, 16) + SourceIndex(3) +4 >Emitted(72, 25) Source(31, 25) + SourceIndex(3) +5 >Emitted(72, 36) Source(31, 36) + SourceIndex(3) +6 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) +7 >Emitted(72, 42) Source(31, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) +3 >Emitted(73, 16) Source(32, 16) + SourceIndex(3) +4 >Emitted(73, 20) Source(32, 26) + SourceIndex(3) +5 >Emitted(73, 37) Source(32, 43) + SourceIndex(3) +6 >Emitted(73, 38) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(74, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) +--- +>>>/**@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) +3 >Emitted(82, 16) Source(33, 16) + SourceIndex(3) +4 >Emitted(82, 20) Source(33, 26) + SourceIndex(3) +5 >Emitted(82, 33) Source(33, 39) + SourceIndex(3) +6 >Emitted(82, 34) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(83, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(92, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) +--- +>>>/**@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/**@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) +3 >Emitted(94, 16) Source(34, 16) + SourceIndex(3) +4 >Emitted(94, 20) Source(34, 23) + SourceIndex(3) +5 >Emitted(94, 34) Source(34, 37) + SourceIndex(3) +6 >Emitted(94, 37) Source(34, 40) + SourceIndex(3) +7 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) +8 >Emitted(94, 55) Source(34, 58) + SourceIndex(3) +9 >Emitted(94, 64) Source(34, 67) + SourceIndex(3) +10>Emitted(94, 65) Source(34, 68) + SourceIndex(3) +--- +>>>/**@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/**@internal*/ type internalType = internalC; + > +2 >/**@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) +3 >Emitted(95, 16) Source(36, 16) + SourceIndex(3) +4 >Emitted(95, 20) Source(36, 22) + SourceIndex(3) +5 >Emitted(95, 33) Source(36, 35) + SourceIndex(3) +6 >Emitted(95, 36) Source(36, 38) + SourceIndex(3) +7 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) +8 >Emitted(95, 39) Source(36, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/**@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) +3 >Emitted(96, 16) Source(37, 16) + SourceIndex(3) +4 >Emitted(96, 20) Source(37, 21) + SourceIndex(3) +5 >Emitted(96, 32) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(97, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3561, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 172, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, + "end": 172, + "kind": "text" + } + ] + }, + { + "pos": 172, + "end": 249, + "kind": "text" + }, + { + "pos": 249, + "end": 398, + "kind": "internal" + }, + { + "pos": 400, + "end": 432, + "kind": "text" + }, + { + "pos": 432, + "end": 944, + "kind": "internal" + }, + { + "pos": 946, + "end": 949, + "kind": "text" + }, + { + "pos": 949, + "end": 1482, + "kind": "internal" + }, + { + "pos": 1484, + "end": 1532, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (127-3561) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-172):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-54) +/**@internal*/ interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (56-172) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (172-249) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (249-398) + /**@internal*/ constructor(); + /**@internal*/ prop: string; + /**@internal*/ method(): void; + /**@internal*/ /**@internal*/ c: number; +---------------------------------------------------------------------- +text: (400-432) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (432-944) + /**@internal*/ class C { + } + /**@internal*/ function foo(): void; + /**@internal*/ namespace someNamespace { + class C { + } + } + /**@internal*/ namespace someOther.something { + class someClass { + } + } + /**@internal*/ export import someImport = someNamespace.C; + /**@internal*/ type internalType = internalC; + /**@internal*/ const internalConst = 10; + /**@internal*/ enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (946-949) +} + +---------------------------------------------------------------------- +internal: (949-1482) +/**@internal*/ declare class internalC { +} +/**@internal*/ declare function internalfoo(): void; +/**@internal*/ declare namespace internalNamespace { + class someClass { + } +} +/**@internal*/ declare namespace internalOther.something { + class someClass { + } +} +/**@internal*/ import internalImport = internalNamespace.someClass; +/**@internal*/ declare type internalType = internalC; +/**@internal*/ declare const internalConst = 10; +/**@internal*/ declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1484-1532) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, + "end": 172, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-54) +/**@internal*/ interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (56-172) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /**@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /**@internal*/ +3 > +1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) +3 >Emitted(16, 20) Source(14, 20) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +--- +>>> /**@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /**@internal*/ prop: string; + > +2 > /**@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(18, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) +3 >Emitted(18, 20) Source(16, 20) + SourceIndex(3) +4 >Emitted(18, 44) Source(16, 26) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 20) + SourceIndex(3) +6 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) +7 >Emitted(18, 62) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^-> +1 > + > /**@internal*/ +2 > get +3 > c +1 >Emitted(19, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) +--- +>>> /**@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /**@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(20, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(20, 23) Source(17, 19) + SourceIndex(3) +3 >Emitted(20, 29) Source(17, 20) + SourceIndex(3) +4 >Emitted(20, 43) Source(17, 30) + SourceIndex(3) +5 >Emitted(20, 50) Source(17, 37) + SourceIndex(3) +6 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) +7 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) +8 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) +9 >Emitted(20, 55) Source(17, 42) + SourceIndex(3) +--- +>>> /**@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(21, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(21, 23) Source(18, 19) + SourceIndex(3) +3 >Emitted(21, 29) Source(18, 20) + SourceIndex(3) +4 >Emitted(21, 39) Source(18, 26) + SourceIndex(3) +5 >Emitted(21, 42) Source(18, 37) + SourceIndex(3) +6 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) +7 >Emitted(21, 47) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /**@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1-> { + > +2 > /**@internal*/ +3 > +1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) +3 >Emitted(29, 20) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) +--- +>>> /**@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) +3 >Emitted(35, 20) Source(22, 20) + SourceIndex(3) +4 >Emitted(35, 29) Source(22, 36) + SourceIndex(3) +5 >Emitted(35, 32) Source(22, 39) + SourceIndex(3) +6 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) +7 >Emitted(35, 38) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(36, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) +--- +>>> /**@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) +3 >Emitted(37, 20) Source(23, 20) + SourceIndex(3) +4 >Emitted(37, 24) Source(23, 37) + SourceIndex(3) +5 >Emitted(37, 37) Source(23, 50) + SourceIndex(3) +6 >Emitted(37, 38) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(38, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(45, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) +--- +>>> /**@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) +3 >Emitted(46, 20) Source(24, 20) + SourceIndex(3) +4 >Emitted(46, 24) Source(24, 37) + SourceIndex(3) +5 >Emitted(46, 33) Source(24, 46) + SourceIndex(3) +6 >Emitted(46, 34) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(47, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(56, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(57, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) +--- +>>> /**@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /**@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(58, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(58, 19) Source(25, 19) + SourceIndex(3) +3 >Emitted(58, 20) Source(25, 34) + SourceIndex(3) +4 >Emitted(58, 38) Source(25, 44) + SourceIndex(3) +5 >Emitted(58, 41) Source(25, 47) + SourceIndex(3) +6 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) +7 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) +8 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) +9 >Emitted(58, 57) Source(25, 63) + SourceIndex(3) +--- +>>> /**@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > +2 > /**@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(59, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(59, 19) Source(27, 19) + SourceIndex(3) +3 >Emitted(59, 20) Source(27, 33) + SourceIndex(3) +4 >Emitted(59, 41) Source(27, 46) + SourceIndex(3) +5 >Emitted(59, 44) Source(27, 49) + SourceIndex(3) +6 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) +7 >Emitted(59, 47) Source(27, 52) + SourceIndex(3) +--- +>>> /**@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /**@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) +3 >Emitted(60, 20) Source(28, 20) + SourceIndex(3) +4 >Emitted(60, 24) Source(28, 32) + SourceIndex(3) +5 >Emitted(60, 36) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(61, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(65, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/**@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^-> +1-> + > +2 >/**@internal*/ +3 > +1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) +3 >Emitted(67, 16) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) +--- +>>>/**@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) +3 >Emitted(72, 16) Source(31, 16) + SourceIndex(3) +4 >Emitted(72, 25) Source(31, 25) + SourceIndex(3) +5 >Emitted(72, 36) Source(31, 36) + SourceIndex(3) +6 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) +7 >Emitted(72, 42) Source(31, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) +3 >Emitted(73, 16) Source(32, 16) + SourceIndex(3) +4 >Emitted(73, 20) Source(32, 26) + SourceIndex(3) +5 >Emitted(73, 37) Source(32, 43) + SourceIndex(3) +6 >Emitted(73, 38) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(74, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) +--- +>>>/**@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) +3 >Emitted(82, 16) Source(33, 16) + SourceIndex(3) +4 >Emitted(82, 20) Source(33, 26) + SourceIndex(3) +5 >Emitted(82, 33) Source(33, 39) + SourceIndex(3) +6 >Emitted(82, 34) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(83, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(92, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) +--- +>>>/**@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/**@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) +3 >Emitted(94, 16) Source(34, 16) + SourceIndex(3) +4 >Emitted(94, 20) Source(34, 23) + SourceIndex(3) +5 >Emitted(94, 34) Source(34, 37) + SourceIndex(3) +6 >Emitted(94, 37) Source(34, 40) + SourceIndex(3) +7 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) +8 >Emitted(94, 55) Source(34, 58) + SourceIndex(3) +9 >Emitted(94, 64) Source(34, 67) + SourceIndex(3) +10>Emitted(94, 65) Source(34, 68) + SourceIndex(3) +--- +>>>/**@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/**@internal*/ type internalType = internalC; + > +2 >/**@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) +3 >Emitted(95, 16) Source(36, 16) + SourceIndex(3) +4 >Emitted(95, 20) Source(36, 22) + SourceIndex(3) +5 >Emitted(95, 33) Source(36, 35) + SourceIndex(3) +6 >Emitted(95, 36) Source(36, 38) + SourceIndex(3) +7 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) +8 >Emitted(95, 39) Source(36, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/**@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) +3 >Emitted(96, 16) Source(37, 16) + SourceIndex(3) +4 >Emitted(96, 20) Source(37, 21) + SourceIndex(3) +5 >Emitted(96, 32) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(97, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3561, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3561, + "kind": "text" + } + ] + }, + { + "pos": 3561, + "end": 3597, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3561):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3561) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3561-3597) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-276) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js new file mode 100644 index 00000000000..693db25d6cc --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -0,0 +1,2413 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, + "end": 172, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-54) +/**@internal*/ interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (56-172) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /**@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /**@internal*/ +3 > +1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) +3 >Emitted(16, 20) Source(14, 20) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +--- +>>> /**@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /**@internal*/ prop: string; + > +2 > /**@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(18, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) +3 >Emitted(18, 20) Source(16, 20) + SourceIndex(3) +4 >Emitted(18, 44) Source(16, 26) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 20) + SourceIndex(3) +6 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) +7 >Emitted(18, 62) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^-> +1 > + > /**@internal*/ +2 > get +3 > c +1 >Emitted(19, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) +--- +>>> /**@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /**@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(20, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(20, 23) Source(17, 19) + SourceIndex(3) +3 >Emitted(20, 29) Source(17, 20) + SourceIndex(3) +4 >Emitted(20, 43) Source(17, 30) + SourceIndex(3) +5 >Emitted(20, 50) Source(17, 37) + SourceIndex(3) +6 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) +7 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) +8 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) +9 >Emitted(20, 55) Source(17, 42) + SourceIndex(3) +--- +>>> /**@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(21, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(21, 23) Source(18, 19) + SourceIndex(3) +3 >Emitted(21, 29) Source(18, 20) + SourceIndex(3) +4 >Emitted(21, 39) Source(18, 26) + SourceIndex(3) +5 >Emitted(21, 42) Source(18, 37) + SourceIndex(3) +6 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) +7 >Emitted(21, 47) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /**@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1-> { + > +2 > /**@internal*/ +3 > +1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) +3 >Emitted(29, 20) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) +--- +>>> /**@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) +3 >Emitted(35, 20) Source(22, 20) + SourceIndex(3) +4 >Emitted(35, 29) Source(22, 36) + SourceIndex(3) +5 >Emitted(35, 32) Source(22, 39) + SourceIndex(3) +6 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) +7 >Emitted(35, 38) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(36, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) +--- +>>> /**@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) +3 >Emitted(37, 20) Source(23, 20) + SourceIndex(3) +4 >Emitted(37, 24) Source(23, 37) + SourceIndex(3) +5 >Emitted(37, 37) Source(23, 50) + SourceIndex(3) +6 >Emitted(37, 38) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(38, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(45, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) +--- +>>> /**@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) +3 >Emitted(46, 20) Source(24, 20) + SourceIndex(3) +4 >Emitted(46, 24) Source(24, 37) + SourceIndex(3) +5 >Emitted(46, 33) Source(24, 46) + SourceIndex(3) +6 >Emitted(46, 34) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(47, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(56, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(57, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) +--- +>>> /**@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /**@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(58, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(58, 19) Source(25, 19) + SourceIndex(3) +3 >Emitted(58, 20) Source(25, 34) + SourceIndex(3) +4 >Emitted(58, 38) Source(25, 44) + SourceIndex(3) +5 >Emitted(58, 41) Source(25, 47) + SourceIndex(3) +6 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) +7 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) +8 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) +9 >Emitted(58, 57) Source(25, 63) + SourceIndex(3) +--- +>>> /**@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > +2 > /**@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(59, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(59, 19) Source(27, 19) + SourceIndex(3) +3 >Emitted(59, 20) Source(27, 33) + SourceIndex(3) +4 >Emitted(59, 41) Source(27, 46) + SourceIndex(3) +5 >Emitted(59, 44) Source(27, 49) + SourceIndex(3) +6 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) +7 >Emitted(59, 47) Source(27, 52) + SourceIndex(3) +--- +>>> /**@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /**@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) +3 >Emitted(60, 20) Source(28, 20) + SourceIndex(3) +4 >Emitted(60, 24) Source(28, 32) + SourceIndex(3) +5 >Emitted(60, 36) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(61, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(65, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/**@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^-> +1-> + > +2 >/**@internal*/ +3 > +1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) +3 >Emitted(67, 16) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) +--- +>>>/**@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) +3 >Emitted(72, 16) Source(31, 16) + SourceIndex(3) +4 >Emitted(72, 25) Source(31, 25) + SourceIndex(3) +5 >Emitted(72, 36) Source(31, 36) + SourceIndex(3) +6 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) +7 >Emitted(72, 42) Source(31, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) +3 >Emitted(73, 16) Source(32, 16) + SourceIndex(3) +4 >Emitted(73, 20) Source(32, 26) + SourceIndex(3) +5 >Emitted(73, 37) Source(32, 43) + SourceIndex(3) +6 >Emitted(73, 38) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(74, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) +--- +>>>/**@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) +3 >Emitted(82, 16) Source(33, 16) + SourceIndex(3) +4 >Emitted(82, 20) Source(33, 26) + SourceIndex(3) +5 >Emitted(82, 33) Source(33, 39) + SourceIndex(3) +6 >Emitted(82, 34) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(83, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(92, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) +--- +>>>/**@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/**@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) +3 >Emitted(94, 16) Source(34, 16) + SourceIndex(3) +4 >Emitted(94, 20) Source(34, 23) + SourceIndex(3) +5 >Emitted(94, 34) Source(34, 37) + SourceIndex(3) +6 >Emitted(94, 37) Source(34, 40) + SourceIndex(3) +7 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) +8 >Emitted(94, 55) Source(34, 58) + SourceIndex(3) +9 >Emitted(94, 64) Source(34, 67) + SourceIndex(3) +10>Emitted(94, 65) Source(34, 68) + SourceIndex(3) +--- +>>>/**@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/**@internal*/ type internalType = internalC; + > +2 >/**@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) +3 >Emitted(95, 16) Source(36, 16) + SourceIndex(3) +4 >Emitted(95, 20) Source(36, 22) + SourceIndex(3) +5 >Emitted(95, 33) Source(36, 35) + SourceIndex(3) +6 >Emitted(95, 36) Source(36, 38) + SourceIndex(3) +7 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) +8 >Emitted(95, 39) Source(36, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/**@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) +3 >Emitted(96, 16) Source(37, 16) + SourceIndex(3) +4 >Emitted(96, 20) Source(37, 21) + SourceIndex(3) +5 >Emitted(96, 32) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(97, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3561, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 3561, + "kind": "text" + } + ] + }, + { + "pos": 3561, + "end": 3597, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 116, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 116, + "kind": "text" + } + ] + }, + { + "pos": 116, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 116, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-3561):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-3561) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3561-3597) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-116) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (116-276) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js new file mode 100644 index 00000000000..262c5704c9e --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,4329 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/second/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 2, + "/src/2/second-output.js": 2, + "/src/2/second-output.js.map": 2, + "/src/2/second-output.d.ts": 2, + "/src/2/second-output.d.ts.map": 2, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1 +} + +//// [/src/2/second-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(18, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(19, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(20, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(21, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(35, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(36, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(38, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(45, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(47, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(56, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(57, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(58, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(59, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(61, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(65, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(72, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(74, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(83, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(92, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(94, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(95, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(97, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3179, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 308, + "kind": "internal" + }, + { + "pos": 310, + "end": 342, + "kind": "text" + }, + { + "pos": 342, + "end": 734, + "kind": "internal" + }, + { + "pos": 736, + "end": 739, + "kind": "text" + }, + { + "pos": 739, + "end": 1152, + "kind": "internal" + }, + { + "pos": 1154, + "end": 1202, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (127-3179) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-308) + constructor(); + prop: string; + method(): void; + c: number; +---------------------------------------------------------------------- +text: (310-342) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (342-734) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (736-739) +} + +---------------------------------------------------------------------- +internal: (739-1152) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1154-1202) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(18, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(19, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(20, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(21, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(35, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(36, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(38, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(45, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(47, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(56, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(57, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(58, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(59, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(61, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(65, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(72, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(74, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(83, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(92, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(94, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(95, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(97, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3179, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3179, + "kind": "text" + } + ] + }, + { + "pos": 3179, + "end": 3215, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3179):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3179) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3179-3215) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-276) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js new file mode 100644 index 00000000000..5485cd7efe4 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,4507 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/second/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /*@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(16, 18) Source(14, 18) + SourceIndex(3) +3 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(18, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(18, 18) Source(16, 18) + SourceIndex(3) +3 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) +4 >Emitted(18, 43) Source(16, 25) + SourceIndex(3) +5 >Emitted(18, 46) Source(16, 19) + SourceIndex(3) +6 >Emitted(18, 60) Source(16, 30) + SourceIndex(3) +7 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(19, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(20, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(20, 22) Source(17, 18) + SourceIndex(3) +3 >Emitted(20, 28) Source(17, 19) + SourceIndex(3) +4 >Emitted(20, 42) Source(17, 29) + SourceIndex(3) +5 >Emitted(20, 49) Source(17, 36) + SourceIndex(3) +6 >Emitted(20, 51) Source(17, 38) + SourceIndex(3) +7 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) +8 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) +9 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(21, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(21, 22) Source(18, 18) + SourceIndex(3) +3 >Emitted(21, 28) Source(18, 19) + SourceIndex(3) +4 >Emitted(21, 38) Source(18, 25) + SourceIndex(3) +5 >Emitted(21, 41) Source(18, 36) + SourceIndex(3) +6 >Emitted(21, 45) Source(18, 40) + SourceIndex(3) +7 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(29, 18) Source(21, 18) + SourceIndex(3) +3 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) +--- +>>> /*@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(35, 18) Source(22, 18) + SourceIndex(3) +3 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) +4 >Emitted(35, 28) Source(22, 35) + SourceIndex(3) +5 >Emitted(35, 31) Source(22, 38) + SourceIndex(3) +6 >Emitted(35, 36) Source(22, 42) + SourceIndex(3) +7 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(36, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(37, 18) Source(23, 18) + SourceIndex(3) +3 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 36) + SourceIndex(3) +5 >Emitted(37, 36) Source(23, 49) + SourceIndex(3) +6 >Emitted(37, 37) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(38, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(45, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) +--- +>>> /*@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(46, 18) Source(24, 18) + SourceIndex(3) +3 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) +4 >Emitted(46, 23) Source(24, 36) + SourceIndex(3) +5 >Emitted(46, 32) Source(24, 45) + SourceIndex(3) +6 >Emitted(46, 33) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(47, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(56, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(57, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(58, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(58, 18) Source(25, 18) + SourceIndex(3) +3 >Emitted(58, 19) Source(25, 33) + SourceIndex(3) +4 >Emitted(58, 37) Source(25, 43) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 46) + SourceIndex(3) +6 >Emitted(58, 53) Source(25, 59) + SourceIndex(3) +7 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) +8 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) +9 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(59, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(59, 18) Source(27, 18) + SourceIndex(3) +3 >Emitted(59, 19) Source(27, 32) + SourceIndex(3) +4 >Emitted(59, 40) Source(27, 45) + SourceIndex(3) +5 >Emitted(59, 43) Source(27, 48) + SourceIndex(3) +6 >Emitted(59, 45) Source(27, 50) + SourceIndex(3) +7 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(60, 18) Source(28, 18) + SourceIndex(3) +3 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) +4 >Emitted(60, 23) Source(28, 31) + SourceIndex(3) +5 >Emitted(60, 35) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(61, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(65, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/*@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 >/*@internal*/ +3 > +1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(67, 14) Source(30, 14) + SourceIndex(3) +3 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) +--- +>>>/*@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/*@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(72, 14) Source(31, 14) + SourceIndex(3) +3 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) +4 >Emitted(72, 24) Source(31, 24) + SourceIndex(3) +5 >Emitted(72, 35) Source(31, 35) + SourceIndex(3) +6 >Emitted(72, 40) Source(31, 39) + SourceIndex(3) +7 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(73, 14) Source(32, 14) + SourceIndex(3) +3 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) +4 >Emitted(73, 19) Source(32, 25) + SourceIndex(3) +5 >Emitted(73, 36) Source(32, 42) + SourceIndex(3) +6 >Emitted(73, 37) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(74, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) +--- +>>>/*@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(82, 14) Source(33, 14) + SourceIndex(3) +3 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 25) + SourceIndex(3) +5 >Emitted(82, 32) Source(33, 38) + SourceIndex(3) +6 >Emitted(82, 33) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(83, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(92, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) +--- +>>>/*@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/*@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(94, 14) Source(34, 14) + SourceIndex(3) +3 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) +4 >Emitted(94, 19) Source(34, 22) + SourceIndex(3) +5 >Emitted(94, 33) Source(34, 36) + SourceIndex(3) +6 >Emitted(94, 36) Source(34, 39) + SourceIndex(3) +7 >Emitted(94, 53) Source(34, 56) + SourceIndex(3) +8 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) +9 >Emitted(94, 63) Source(34, 66) + SourceIndex(3) +10>Emitted(94, 64) Source(34, 67) + SourceIndex(3) +--- +>>>/*@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ type internalType = internalC; + > +2 >/*@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(95, 14) Source(36, 14) + SourceIndex(3) +3 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) +4 >Emitted(95, 19) Source(36, 21) + SourceIndex(3) +5 >Emitted(95, 32) Source(36, 34) + SourceIndex(3) +6 >Emitted(95, 35) Source(36, 37) + SourceIndex(3) +7 >Emitted(95, 37) Source(36, 39) + SourceIndex(3) +8 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/*@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(96, 14) Source(37, 14) + SourceIndex(3) +3 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) +4 >Emitted(96, 19) Source(37, 20) + SourceIndex(3) +5 >Emitted(96, 31) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(97, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3543, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 322, + "kind": "internal" + }, + { + "pos": 324, + "end": 356, + "kind": "text" + }, + { + "pos": 356, + "end": 748, + "kind": "internal" + }, + { + "pos": 750, + "end": 753, + "kind": "text" + }, + { + "pos": 753, + "end": 1166, + "kind": "internal" + }, + { + "pos": 1168, + "end": 1216, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (127-3543) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-322) + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (324-356) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (356-748) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (750-753) +} + +---------------------------------------------------------------------- +internal: (753-1166) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1168-1216) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /*@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(16, 18) Source(14, 18) + SourceIndex(3) +3 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(18, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(18, 18) Source(16, 18) + SourceIndex(3) +3 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) +4 >Emitted(18, 43) Source(16, 25) + SourceIndex(3) +5 >Emitted(18, 46) Source(16, 19) + SourceIndex(3) +6 >Emitted(18, 60) Source(16, 30) + SourceIndex(3) +7 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(19, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(20, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(20, 22) Source(17, 18) + SourceIndex(3) +3 >Emitted(20, 28) Source(17, 19) + SourceIndex(3) +4 >Emitted(20, 42) Source(17, 29) + SourceIndex(3) +5 >Emitted(20, 49) Source(17, 36) + SourceIndex(3) +6 >Emitted(20, 51) Source(17, 38) + SourceIndex(3) +7 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) +8 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) +9 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(21, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(21, 22) Source(18, 18) + SourceIndex(3) +3 >Emitted(21, 28) Source(18, 19) + SourceIndex(3) +4 >Emitted(21, 38) Source(18, 25) + SourceIndex(3) +5 >Emitted(21, 41) Source(18, 36) + SourceIndex(3) +6 >Emitted(21, 45) Source(18, 40) + SourceIndex(3) +7 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(29, 18) Source(21, 18) + SourceIndex(3) +3 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) +--- +>>> /*@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(35, 18) Source(22, 18) + SourceIndex(3) +3 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) +4 >Emitted(35, 28) Source(22, 35) + SourceIndex(3) +5 >Emitted(35, 31) Source(22, 38) + SourceIndex(3) +6 >Emitted(35, 36) Source(22, 42) + SourceIndex(3) +7 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(36, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(37, 18) Source(23, 18) + SourceIndex(3) +3 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 36) + SourceIndex(3) +5 >Emitted(37, 36) Source(23, 49) + SourceIndex(3) +6 >Emitted(37, 37) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(38, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(45, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) +--- +>>> /*@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(46, 18) Source(24, 18) + SourceIndex(3) +3 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) +4 >Emitted(46, 23) Source(24, 36) + SourceIndex(3) +5 >Emitted(46, 32) Source(24, 45) + SourceIndex(3) +6 >Emitted(46, 33) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(47, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(56, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(57, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(58, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(58, 18) Source(25, 18) + SourceIndex(3) +3 >Emitted(58, 19) Source(25, 33) + SourceIndex(3) +4 >Emitted(58, 37) Source(25, 43) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 46) + SourceIndex(3) +6 >Emitted(58, 53) Source(25, 59) + SourceIndex(3) +7 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) +8 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) +9 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(59, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(59, 18) Source(27, 18) + SourceIndex(3) +3 >Emitted(59, 19) Source(27, 32) + SourceIndex(3) +4 >Emitted(59, 40) Source(27, 45) + SourceIndex(3) +5 >Emitted(59, 43) Source(27, 48) + SourceIndex(3) +6 >Emitted(59, 45) Source(27, 50) + SourceIndex(3) +7 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(60, 18) Source(28, 18) + SourceIndex(3) +3 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) +4 >Emitted(60, 23) Source(28, 31) + SourceIndex(3) +5 >Emitted(60, 35) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(61, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(65, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/*@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 >/*@internal*/ +3 > +1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(67, 14) Source(30, 14) + SourceIndex(3) +3 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) +--- +>>>/*@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/*@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(72, 14) Source(31, 14) + SourceIndex(3) +3 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) +4 >Emitted(72, 24) Source(31, 24) + SourceIndex(3) +5 >Emitted(72, 35) Source(31, 35) + SourceIndex(3) +6 >Emitted(72, 40) Source(31, 39) + SourceIndex(3) +7 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(73, 14) Source(32, 14) + SourceIndex(3) +3 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) +4 >Emitted(73, 19) Source(32, 25) + SourceIndex(3) +5 >Emitted(73, 36) Source(32, 42) + SourceIndex(3) +6 >Emitted(73, 37) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(74, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) +--- +>>>/*@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(82, 14) Source(33, 14) + SourceIndex(3) +3 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 25) + SourceIndex(3) +5 >Emitted(82, 32) Source(33, 38) + SourceIndex(3) +6 >Emitted(82, 33) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(83, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(92, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) +--- +>>>/*@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/*@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(94, 14) Source(34, 14) + SourceIndex(3) +3 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) +4 >Emitted(94, 19) Source(34, 22) + SourceIndex(3) +5 >Emitted(94, 33) Source(34, 36) + SourceIndex(3) +6 >Emitted(94, 36) Source(34, 39) + SourceIndex(3) +7 >Emitted(94, 53) Source(34, 56) + SourceIndex(3) +8 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) +9 >Emitted(94, 63) Source(34, 66) + SourceIndex(3) +10>Emitted(94, 64) Source(34, 67) + SourceIndex(3) +--- +>>>/*@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ type internalType = internalC; + > +2 >/*@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(95, 14) Source(36, 14) + SourceIndex(3) +3 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) +4 >Emitted(95, 19) Source(36, 21) + SourceIndex(3) +5 >Emitted(95, 32) Source(36, 34) + SourceIndex(3) +6 >Emitted(95, 35) Source(36, 37) + SourceIndex(3) +7 >Emitted(95, 37) Source(36, 39) + SourceIndex(3) +8 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/*@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(96, 14) Source(37, 14) + SourceIndex(3) +3 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) +4 >Emitted(96, 19) Source(37, 20) + SourceIndex(3) +5 >Emitted(96, 31) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(97, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3543, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3543, + "kind": "text" + } + ] + }, + { + "pos": 3543, + "end": 3579, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3543):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3543) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3543-3579) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-276) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js new file mode 100644 index 00000000000..bef29197431 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js @@ -0,0 +1,2413 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /*@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(16, 18) Source(14, 18) + SourceIndex(3) +3 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(18, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(18, 18) Source(16, 18) + SourceIndex(3) +3 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) +4 >Emitted(18, 43) Source(16, 25) + SourceIndex(3) +5 >Emitted(18, 46) Source(16, 19) + SourceIndex(3) +6 >Emitted(18, 60) Source(16, 30) + SourceIndex(3) +7 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(19, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(20, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(20, 22) Source(17, 18) + SourceIndex(3) +3 >Emitted(20, 28) Source(17, 19) + SourceIndex(3) +4 >Emitted(20, 42) Source(17, 29) + SourceIndex(3) +5 >Emitted(20, 49) Source(17, 36) + SourceIndex(3) +6 >Emitted(20, 51) Source(17, 38) + SourceIndex(3) +7 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) +8 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) +9 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(21, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(21, 22) Source(18, 18) + SourceIndex(3) +3 >Emitted(21, 28) Source(18, 19) + SourceIndex(3) +4 >Emitted(21, 38) Source(18, 25) + SourceIndex(3) +5 >Emitted(21, 41) Source(18, 36) + SourceIndex(3) +6 >Emitted(21, 45) Source(18, 40) + SourceIndex(3) +7 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(29, 18) Source(21, 18) + SourceIndex(3) +3 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) +--- +>>> /*@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(35, 18) Source(22, 18) + SourceIndex(3) +3 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) +4 >Emitted(35, 28) Source(22, 35) + SourceIndex(3) +5 >Emitted(35, 31) Source(22, 38) + SourceIndex(3) +6 >Emitted(35, 36) Source(22, 42) + SourceIndex(3) +7 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(36, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(37, 18) Source(23, 18) + SourceIndex(3) +3 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 36) + SourceIndex(3) +5 >Emitted(37, 36) Source(23, 49) + SourceIndex(3) +6 >Emitted(37, 37) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(38, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(45, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) +--- +>>> /*@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(46, 18) Source(24, 18) + SourceIndex(3) +3 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) +4 >Emitted(46, 23) Source(24, 36) + SourceIndex(3) +5 >Emitted(46, 32) Source(24, 45) + SourceIndex(3) +6 >Emitted(46, 33) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(47, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(56, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(57, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(58, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(58, 18) Source(25, 18) + SourceIndex(3) +3 >Emitted(58, 19) Source(25, 33) + SourceIndex(3) +4 >Emitted(58, 37) Source(25, 43) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 46) + SourceIndex(3) +6 >Emitted(58, 53) Source(25, 59) + SourceIndex(3) +7 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) +8 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) +9 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(59, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(59, 18) Source(27, 18) + SourceIndex(3) +3 >Emitted(59, 19) Source(27, 32) + SourceIndex(3) +4 >Emitted(59, 40) Source(27, 45) + SourceIndex(3) +5 >Emitted(59, 43) Source(27, 48) + SourceIndex(3) +6 >Emitted(59, 45) Source(27, 50) + SourceIndex(3) +7 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(60, 18) Source(28, 18) + SourceIndex(3) +3 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) +4 >Emitted(60, 23) Source(28, 31) + SourceIndex(3) +5 >Emitted(60, 35) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(61, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(65, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/*@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 >/*@internal*/ +3 > +1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(67, 14) Source(30, 14) + SourceIndex(3) +3 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) +--- +>>>/*@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/*@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(72, 14) Source(31, 14) + SourceIndex(3) +3 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) +4 >Emitted(72, 24) Source(31, 24) + SourceIndex(3) +5 >Emitted(72, 35) Source(31, 35) + SourceIndex(3) +6 >Emitted(72, 40) Source(31, 39) + SourceIndex(3) +7 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(73, 14) Source(32, 14) + SourceIndex(3) +3 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) +4 >Emitted(73, 19) Source(32, 25) + SourceIndex(3) +5 >Emitted(73, 36) Source(32, 42) + SourceIndex(3) +6 >Emitted(73, 37) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(74, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) +--- +>>>/*@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(82, 14) Source(33, 14) + SourceIndex(3) +3 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 25) + SourceIndex(3) +5 >Emitted(82, 32) Source(33, 38) + SourceIndex(3) +6 >Emitted(82, 33) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(83, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(92, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) +--- +>>>/*@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/*@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(94, 14) Source(34, 14) + SourceIndex(3) +3 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) +4 >Emitted(94, 19) Source(34, 22) + SourceIndex(3) +5 >Emitted(94, 33) Source(34, 36) + SourceIndex(3) +6 >Emitted(94, 36) Source(34, 39) + SourceIndex(3) +7 >Emitted(94, 53) Source(34, 56) + SourceIndex(3) +8 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) +9 >Emitted(94, 63) Source(34, 66) + SourceIndex(3) +10>Emitted(94, 64) Source(34, 67) + SourceIndex(3) +--- +>>>/*@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ type internalType = internalC; + > +2 >/*@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(95, 14) Source(36, 14) + SourceIndex(3) +3 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) +4 >Emitted(95, 19) Source(36, 21) + SourceIndex(3) +5 >Emitted(95, 32) Source(36, 34) + SourceIndex(3) +6 >Emitted(95, 35) Source(36, 37) + SourceIndex(3) +7 >Emitted(95, 37) Source(36, 39) + SourceIndex(3) +8 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/*@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(96, 14) Source(37, 14) + SourceIndex(3) +3 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) +4 >Emitted(96, 19) Source(37, 20) + SourceIndex(3) +5 >Emitted(96, 31) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(97, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3543, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 3543, + "kind": "text" + } + ] + }, + { + "pos": 3543, + "end": 3579, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 116, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 116, + "kind": "text" + } + ] + }, + { + "pos": 116, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 116, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-3543):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-3543) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3543-3579) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-116) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (116-276) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js new file mode 100644 index 00000000000..a159a645e0b --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js @@ -0,0 +1,2335 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(18, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(19, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(20, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(21, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(35, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(36, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(38, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(45, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(47, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(56, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(57, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(58, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(59, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(61, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(65, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(72, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(74, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(83, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(92, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(94, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(95, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(97, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3179, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 3179, + "kind": "text" + } + ] + }, + { + "pos": 3179, + "end": 3215, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 116, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 116, + "kind": "text" + } + ] + }, + { + "pos": 116, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 116, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-3179):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-3179) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3179-3215) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-116) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (116-276) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js new file mode 100644 index 00000000000..45662bd5aed --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js @@ -0,0 +1,1122 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>var first_part2Const = new firstfirst_part2(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > first_part2Const +4 > = +5 > new +6 > firstfirst_part2 +7 > () +8 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(4, 21) Source(2, 23) + SourceIndex(1) +4 >Emitted(4, 24) Source(2, 26) + SourceIndex(1) +5 >Emitted(4, 28) Source(2, 30) + SourceIndex(1) +6 >Emitted(4, 44) Source(2, 46) + SourceIndex(1) +7 >Emitted(4, 46) Source(2, 48) + SourceIndex(1) +8 >Emitted(4, 47) Source(2, 49) + SourceIndex(1) +--- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(5, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(3, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(3, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(3, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(3, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(3, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(3, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(3, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 175, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 42, + "kind": "reference", + "data": "../tripleRef.d.ts" + }, + { + "pos": 44, + "end": 252, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-175) +var s = "Hello, world"; +console.log(s); +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +reference: (0-42):: ../tripleRef.d.ts +/// +---------------------------------------------------------------------- +text: (44-252) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var third_part1Const = new thirdthird_part1(); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>var first_part2Const = new firstfirst_part2(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > first_part2Const +4 > = +5 > new +6 > firstfirst_part2 +7 > () +8 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(4, 21) Source(2, 23) + SourceIndex(1) +4 >Emitted(4, 24) Source(2, 26) + SourceIndex(1) +5 >Emitted(4, 28) Source(2, 30) + SourceIndex(1) +6 >Emitted(4, 44) Source(2, 46) + SourceIndex(1) +7 >Emitted(4, 46) Source(2, 48) + SourceIndex(1) +8 >Emitted(4, 47) Source(2, 49) + SourceIndex(1) +--- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(5, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(3, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(3, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(3, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(3, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(3, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(3, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(3, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var second_part1Const = new secondsecond_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > second_part1Const +4 > = +5 > new +6 > secondsecond_part1 +7 > () +8 > ; +1->Emitted(9, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(2, 7) + SourceIndex(3) +3 >Emitted(9, 22) Source(2, 24) + SourceIndex(3) +4 >Emitted(9, 25) Source(2, 27) + SourceIndex(3) +5 >Emitted(9, 29) Source(2, 31) + SourceIndex(3) +6 >Emitted(9, 47) Source(2, 49) + SourceIndex(3) +7 >Emitted(9, 49) Source(2, 51) + SourceIndex(3) +8 >Emitted(9, 50) Source(2, 52) + SourceIndex(3) +--- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(10, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(10, 5) Source(7, 11) + SourceIndex(3) +3 >Emitted(10, 6) Source(7, 12) + SourceIndex(3) +4 >Emitted(10, 7) Source(13, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(11, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(11, 12) Source(7, 11) + SourceIndex(3) +3 >Emitted(11, 13) Source(7, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 14) Source(8, 14) + SourceIndex(3) +3 >Emitted(12, 15) Source(8, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(13, 9) Source(9, 9) + SourceIndex(3) +2 >Emitted(13, 16) Source(9, 16) + SourceIndex(3) +3 >Emitted(13, 17) Source(9, 17) + SourceIndex(3) +4 >Emitted(13, 20) Source(9, 20) + SourceIndex(3) +5 >Emitted(13, 21) Source(9, 21) + SourceIndex(3) +6 >Emitted(13, 30) Source(9, 30) + SourceIndex(3) +7 >Emitted(13, 31) Source(9, 31) + SourceIndex(3) +8 >Emitted(13, 32) Source(9, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(14, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(15, 5) Source(12, 5) + SourceIndex(3) +2 >Emitted(15, 6) Source(12, 6) + SourceIndex(3) +3 >Emitted(15, 8) Source(12, 8) + SourceIndex(3) +4 >Emitted(15, 9) Source(12, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(16, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(16, 2) Source(13, 2) + SourceIndex(3) +3 >Emitted(16, 4) Source(7, 11) + SourceIndex(3) +4 >Emitted(16, 5) Source(7, 12) + SourceIndex(3) +5 >Emitted(16, 10) Source(7, 11) + SourceIndex(3) +6 >Emitted(16, 11) Source(7, 12) + SourceIndex(3) +7 >Emitted(16, 19) Source(13, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(18, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(19, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(20, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(20, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(20, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(21, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(21, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(21, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(21, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(21, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(21, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(21, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(21, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(22, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(24, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(24, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var third_part1Const = new thirdthird_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > third_part1Const +4 > = +5 > new +6 > thirdthird_part1 +7 > () +8 > ; +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(2, 7) + SourceIndex(5) +3 >Emitted(25, 21) Source(2, 23) + SourceIndex(5) +4 >Emitted(25, 24) Source(2, 26) + SourceIndex(5) +5 >Emitted(25, 28) Source(2, 30) + SourceIndex(5) +6 >Emitted(25, 44) Source(2, 46) + SourceIndex(5) +7 >Emitted(25, 46) Source(2, 48) + SourceIndex(5) +8 >Emitted(25, 47) Source(2, 49) + SourceIndex(5) +--- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1 > + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(26, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(26, 5) Source(3, 5) + SourceIndex(5) +3 >Emitted(26, 6) Source(3, 6) + SourceIndex(5) +4 >Emitted(26, 9) Source(3, 9) + SourceIndex(5) +5 >Emitted(26, 13) Source(3, 13) + SourceIndex(5) +6 >Emitted(26, 14) Source(3, 14) + SourceIndex(5) +7 >Emitted(26, 16) Source(3, 16) + SourceIndex(5) +8 >Emitted(26, 17) Source(3, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(27, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(27, 2) Source(4, 2) + SourceIndex(5) +3 >Emitted(27, 3) Source(4, 3) + SourceIndex(5) +4 >Emitted(27, 14) Source(4, 14) + SourceIndex(5) +5 >Emitted(27, 16) Source(4, 16) + SourceIndex(5) +6 >Emitted(27, 17) Source(4, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 175, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 175, + "kind": "text" + } + ] + }, + { + "pos": 175, + "end": 511, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 175, + "end": 511, + "kind": "text" + } + ] + }, + { + "pos": 511, + "end": 595, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 45, + "kind": "reference", + "data": "../../tripleRef.d.ts" + }, + { + "pos": 47, + "end": 101, + "kind": "reference", + "data": "../../../first/tripleRef.d.ts" + }, + { + "pos": 103, + "end": 158, + "kind": "reference", + "data": "../../../second/tripleRef.d.ts" + }, + { + "pos": 160, + "end": 368, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 160, + "end": 368, + "kind": "text" + } + ] + }, + { + "pos": 368, + "end": 522, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 368, + "end": 522, + "kind": "text" + } + ] + }, + { + "pos": 522, + "end": 592, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-175):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-175) +var s = "Hello, world"; +console.log(s); +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (175-511):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (175-511) +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (511-595) +var third_part1Const = new thirdthird_part1(); +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +reference: (0-45):: ../../tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (47-101):: ../../../first/tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (103-158):: ../../../second/tripleRef.d.ts +/// +---------------------------------------------------------------------- +prepend: (160-368):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (160-368) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (368-522):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (368-522) +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (522-592) +declare const third_part1Const: thirdthird_part1; +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js new file mode 100644 index 00000000000..f5b05d0504c --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js @@ -0,0 +1,979 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var second_part1Const = new secondsecond_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > second_part1Const +4 > = +5 > new +6 > secondsecond_part1 +7 > () +8 > ; +1->Emitted(8, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(2, 7) + SourceIndex(3) +3 >Emitted(8, 22) Source(2, 24) + SourceIndex(3) +4 >Emitted(8, 25) Source(2, 27) + SourceIndex(3) +5 >Emitted(8, 29) Source(2, 31) + SourceIndex(3) +6 >Emitted(8, 47) Source(2, 49) + SourceIndex(3) +7 >Emitted(8, 49) Source(2, 51) + SourceIndex(3) +8 >Emitted(8, 50) Source(2, 52) + SourceIndex(3) +--- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(7, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(13, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(7, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(7, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(8, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(8, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(9, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(9, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(9, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(9, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(9, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(9, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(9, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(9, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(12, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(12, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(12, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(12, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(7, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(7, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(7, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(7, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(13, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 463, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 463, + "kind": "text" + } + ] + }, + { + "pos": 463, + "end": 499, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 55, + "kind": "reference", + "data": "../../../second/tripleRef.d.ts" + }, + { + "pos": 57, + "end": 214, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 57, + "end": 214, + "kind": "text" + } + ] + }, + { + "pos": 214, + "end": 368, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 214, + "end": 368, + "kind": "text" + } + ] + }, + { + "pos": 368, + "end": 387, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-463):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-463) +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (463-499) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +reference: (0-55):: ../../../second/tripleRef.d.ts +/// +---------------------------------------------------------------------- +prepend: (57-214):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (57-214) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (214-368):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (214-368) +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (368-387) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js new file mode 100644 index 00000000000..42617018b17 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js @@ -0,0 +1,785 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents +//// [/src/third/thirdjs/output/third-output.d.ts.map] file written with same contents +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js new file mode 100644 index 00000000000..fb897c92939 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js @@ -0,0 +1,865 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/third --verbose +4:04:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:04:00 PM - Building project '/src/first/tsconfig.json'... + +4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 412, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 412, + "kind": "text" + } + ] + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-412):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-412) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..e5b38afe127 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js @@ -0,0 +1,1548 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:12:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:12:00 PM - Building project '/src/first/tsconfig.json'... + +4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 150, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-150) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { } + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) +--- +>>>declare function forthirdthird_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + >c.doSomething(); + > +2 >function +3 > forthirdthird_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(15, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(15, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(15, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(15, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(15, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(15, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(15, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(15, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(16, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(16, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(16, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(17, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(17, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(17, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(17, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(19, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(19, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(19, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(19, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(20, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(20, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(21, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(21, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(21, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(22, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(22, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(22, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(22, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(22, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(22, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(22, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(22, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(23, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(23, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(24, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(24, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(24, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(24, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(25, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(25, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(25, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(25, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(25, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(25, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(26, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(26, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(26, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(27, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(27, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(27, 38) Source(13, 48) + SourceIndex(3) +4 >Emitted(27, 40) Source(13, 9) + SourceIndex(3) +5 >Emitted(27, 48) Source(13, 10) + SourceIndex(3) +6 >Emitted(27, 50) Source(13, 12) + SourceIndex(3) +7 >Emitted(27, 74) Source(13, 48) + SourceIndex(3) +8 >Emitted(27, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(28, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(28, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(29, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(30, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(31, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(31, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(32, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(32, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(32, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(33, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(33, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(33, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(33, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(33, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(33, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(33, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(33, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(34, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(34, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(35, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(35, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(36, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(36, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(36, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(36, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(37, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(37, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(37, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(37, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(37, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(37, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(37, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(37, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(38, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(38, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(38, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(38, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(38, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(38, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(39, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(39, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(39, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(40, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(40, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(40, 38) Source(4, 48) + SourceIndex(5) +4 >Emitted(40, 40) Source(4, 9) + SourceIndex(5) +5 >Emitted(40, 48) Source(4, 10) + SourceIndex(5) +6 >Emitted(40, 50) Source(4, 12) + SourceIndex(5) +7 >Emitted(40, 74) Source(4, 48) + SourceIndex(5) +8 >Emitted(40, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(41, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(41, 2) Source(5, 2) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 652, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 502, + "end": 652, + "kind": "text" + } + ] + }, + { + "pos": 652, + "end": 1056, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 652, + "end": 1056, + "kind": "text" + } + ] + }, + { + "pos": 1056, + "end": 1209, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 361, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 361, + "kind": "text" + } + ] + }, + { + "pos": 361, + "end": 431, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (502-652):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (502-652) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (652-1056):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (652-1056) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1056-1209) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-361) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (361-431) +declare var c: C; +declare function forthirdthird_part1Rest(): void; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js new file mode 100644 index 00000000000..374744c3500 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js @@ -0,0 +1,1570 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 729, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (502-729) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(23, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(24, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(26, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(28, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(28, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(28, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(29, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(29, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(29, 38) Source(13, 48) + SourceIndex(3) +4 >Emitted(29, 40) Source(13, 9) + SourceIndex(3) +5 >Emitted(29, 48) Source(13, 10) + SourceIndex(3) +6 >Emitted(29, 50) Source(13, 12) + SourceIndex(3) +7 >Emitted(29, 74) Source(13, 48) + SourceIndex(3) +8 >Emitted(29, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(30, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(30, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(31, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(32, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(33, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(34, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(34, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(34, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(35, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(35, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(35, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(35, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(35, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(35, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(35, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(35, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(36, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(37, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(38, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(39, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(39, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(39, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(39, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(39, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(39, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(39, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(39, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(40, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(40, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(40, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(40, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(40, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(40, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 729, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 502, + "end": 729, + "kind": "text" + } + ] + }, + { + "pos": 729, + "end": 1133, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 729, + "end": 1133, + "kind": "text" + } + ] + }, + { + "pos": 1133, + "end": 1169, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 361, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 361, + "kind": "text" + } + ] + }, + { + "pos": 361, + "end": 380, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (502-729):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (502-729) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (729-1133):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (729-1133) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1133-1169) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-361) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (361-380) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..8e8099d954e --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -0,0 +1,2250 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>declare function firstfirst_part3Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(10, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(10, 18) Source(4, 10) + SourceIndex(2) +3 >Emitted(10, 40) Source(4, 32) + SourceIndex(2) +4 >Emitted(10, 41) Source(4, 33) + SourceIndex(2) +5 >Emitted(10, 44) Source(4, 36) + SourceIndex(2) +6 >Emitted(10, 47) Source(4, 39) + SourceIndex(2) +7 >Emitted(10, 53) Source(4, 45) + SourceIndex(2) +8 >Emitted(10, 55) Source(4, 47) + SourceIndex(2) +9 >Emitted(10, 63) Source(4, 52) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(21, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(21, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(21, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(21, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(21, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(21, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(22, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(22, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(22, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(22, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(22, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(22, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(22, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(22, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(23, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(23, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(23, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(23, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(23, 39) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(24, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(24, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(24, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(24, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(24, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(25, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(25, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(25, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(26, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(26, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(26, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(26, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(27, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(27, 2) Source(3, 2) + SourceIndex(2) +--- +>>>function firstfirst_part3Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +1->Emitted(28, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(28, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(28, 32) Source(4, 32) + SourceIndex(2) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(29, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(29, 16) Source(4, 47) + SourceIndex(2) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(30, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(30, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(30, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(30, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(30, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(30, 49) Source(4, 47) + SourceIndex(2) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(31, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(31, 31) Source(4, 47) + SourceIndex(2) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(33, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(33, 2) Source(4, 52) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >firstfirst_part3Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(34, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(34, 23) Source(5, 23) + SourceIndex(2) +3 >Emitted(34, 47) Source(5, 27) + SourceIndex(2) +4 >Emitted(34, 48) Source(5, 28) + SourceIndex(2) +5 >Emitted(34, 50) Source(5, 30) + SourceIndex(2) +6 >Emitted(34, 52) Source(5, 32) + SourceIndex(2) +7 >Emitted(34, 54) Source(5, 34) + SourceIndex(2) +8 >Emitted(34, 56) Source(5, 36) + SourceIndex(2) +9 >Emitted(34, 58) Source(5, 38) + SourceIndex(2) +10>Emitted(34, 59) Source(5, 39) + SourceIndex(2) +11>Emitted(34, 62) Source(5, 41) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 678, + "end": 1040, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 272, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +text: (678-1040) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-272) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare function firstfirst_part3Spread(...b: number[]): void; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { } + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACHnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACNrD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +>>>declare function firstfirst_part3Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(10, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(10, 18) Source(4, 10) + SourceIndex(1) +3 >Emitted(10, 40) Source(4, 32) + SourceIndex(1) +4 >Emitted(10, 41) Source(4, 33) + SourceIndex(1) +5 >Emitted(10, 44) Source(4, 36) + SourceIndex(1) +6 >Emitted(10, 47) Source(4, 39) + SourceIndex(1) +7 >Emitted(10, 53) Source(4, 45) + SourceIndex(1) +8 >Emitted(10, 55) Source(4, 47) + SourceIndex(1) +9 >Emitted(10, 63) Source(4, 52) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(11, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(12, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(13, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(13, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(13, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(13, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(14, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(15, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(15, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(15, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(15, 52) Source(14, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(16, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(16, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(17, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) +--- +>>>declare function secondsecond_part2Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part2Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(19, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(19, 18) Source(7, 10) + SourceIndex(3) +3 >Emitted(19, 42) Source(7, 34) + SourceIndex(3) +4 >Emitted(19, 43) Source(7, 35) + SourceIndex(3) +5 >Emitted(19, 46) Source(7, 38) + SourceIndex(3) +6 >Emitted(19, 49) Source(7, 41) + SourceIndex(3) +7 >Emitted(19, 55) Source(7, 47) + SourceIndex(3) +8 >Emitted(19, 57) Source(7, 49) + SourceIndex(3) +9 >Emitted(19, 65) Source(7, 54) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1 > +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1 >Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>declare function forthirdthird_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> +1-> + >c.doSomething(); + > +2 >function +3 > forthirdthird_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(21, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(21, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(21, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(21, 50) Source(5, 2) + SourceIndex(4) +--- +>>>declare function thirdthird_part1Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > thirdthird_part1Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(22, 1) Source(6, 1) + SourceIndex(4) +2 >Emitted(22, 18) Source(6, 10) + SourceIndex(4) +3 >Emitted(22, 40) Source(6, 32) + SourceIndex(4) +4 >Emitted(22, 41) Source(6, 33) + SourceIndex(4) +5 >Emitted(22, 44) Source(6, 36) + SourceIndex(4) +6 >Emitted(22, 47) Source(6, 39) + SourceIndex(4) +7 >Emitted(22, 53) Source(6, 45) + SourceIndex(4) +8 >Emitted(22, 55) Source(6, 47) + SourceIndex(4) +9 >Emitted(22, 63) Source(6, 52) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +function secondsecond_part2Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +function thirdthird_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACP1C,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(34, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(34, 39) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(35, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(35, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(35, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(35, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(35, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(35, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(35, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(35, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(35, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(36, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(36, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(36, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(37, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(37, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(37, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(37, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(38, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(38, 2) Source(3, 2) + SourceIndex(2) +--- +>>>function firstfirst_part3Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +1->Emitted(39, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(39, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(39, 32) Source(4, 32) + SourceIndex(2) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(40, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(40, 16) Source(4, 47) + SourceIndex(2) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(41, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(41, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(41, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(41, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(41, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(41, 49) Source(4, 47) + SourceIndex(2) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(42, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(42, 31) Source(4, 47) + SourceIndex(2) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(44, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(44, 2) Source(4, 52) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >firstfirst_part3Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(45, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(45, 23) Source(5, 23) + SourceIndex(2) +3 >Emitted(45, 47) Source(5, 27) + SourceIndex(2) +4 >Emitted(45, 48) Source(5, 28) + SourceIndex(2) +5 >Emitted(45, 50) Source(5, 30) + SourceIndex(2) +6 >Emitted(45, 52) Source(5, 32) + SourceIndex(2) +7 >Emitted(45, 54) Source(5, 34) + SourceIndex(2) +8 >Emitted(45, 56) Source(5, 36) + SourceIndex(2) +9 >Emitted(45, 58) Source(5, 38) + SourceIndex(2) +10>Emitted(45, 59) Source(5, 39) + SourceIndex(2) +11>Emitted(45, 62) Source(5, 41) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(46, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(46, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(46, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(46, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(47, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(47, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(47, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(48, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(48, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(48, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(49, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(49, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(49, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(49, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(49, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(49, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(49, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(49, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(50, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(50, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(51, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(51, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(51, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(51, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(52, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(52, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(52, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(52, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(52, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(52, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(52, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(53, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(53, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(53, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(54, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(54, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(54, 38) Source(13, 48) + SourceIndex(3) +4 >Emitted(54, 40) Source(13, 9) + SourceIndex(3) +5 >Emitted(54, 48) Source(13, 10) + SourceIndex(3) +6 >Emitted(54, 50) Source(13, 12) + SourceIndex(3) +7 >Emitted(54, 74) Source(13, 48) + SourceIndex(3) +8 >Emitted(54, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(55, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(55, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(56, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(57, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(58, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(58, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(59, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(59, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(59, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(60, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(60, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(60, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(60, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(60, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(60, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(60, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(60, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(61, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(61, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(62, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(62, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(63, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(63, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(63, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(63, 6) Source(5, 2) + SourceIndex(4) +--- +>>>function secondsecond_part2Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part2Spread +1->Emitted(64, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(64, 10) Source(7, 10) + SourceIndex(4) +3 >Emitted(64, 34) Source(7, 34) + SourceIndex(4) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(65, 5) Source(7, 35) + SourceIndex(4) +2 >Emitted(65, 16) Source(7, 49) + SourceIndex(4) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(66, 10) Source(7, 35) + SourceIndex(4) +2 >Emitted(66, 20) Source(7, 49) + SourceIndex(4) +3 >Emitted(66, 22) Source(7, 35) + SourceIndex(4) +4 >Emitted(66, 43) Source(7, 49) + SourceIndex(4) +5 >Emitted(66, 45) Source(7, 35) + SourceIndex(4) +6 >Emitted(66, 49) Source(7, 49) + SourceIndex(4) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(67, 9) Source(7, 35) + SourceIndex(4) +2 >Emitted(67, 31) Source(7, 49) + SourceIndex(4) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(69, 1) Source(7, 53) + SourceIndex(4) +2 >Emitted(69, 2) Source(7, 54) + SourceIndex(4) +--- +>>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >secondsecond_part2Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(70, 1) Source(8, 1) + SourceIndex(4) +2 >Emitted(70, 25) Source(8, 25) + SourceIndex(4) +3 >Emitted(70, 49) Source(8, 29) + SourceIndex(4) +4 >Emitted(70, 50) Source(8, 30) + SourceIndex(4) +5 >Emitted(70, 52) Source(8, 32) + SourceIndex(4) +6 >Emitted(70, 54) Source(8, 34) + SourceIndex(4) +7 >Emitted(70, 56) Source(8, 36) + SourceIndex(4) +8 >Emitted(70, 58) Source(8, 38) + SourceIndex(4) +9 >Emitted(70, 60) Source(8, 40) + SourceIndex(4) +10>Emitted(70, 61) Source(8, 41) + SourceIndex(4) +11>Emitted(70, 64) Source(8, 43) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1 > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(71, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(71, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(71, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(71, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(71, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(71, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(71, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(71, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(72, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(72, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(72, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(72, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(72, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(72, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(73, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(73, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(73, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(74, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(74, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(74, 38) Source(4, 48) + SourceIndex(5) +4 >Emitted(74, 40) Source(4, 9) + SourceIndex(5) +5 >Emitted(74, 48) Source(4, 10) + SourceIndex(5) +6 >Emitted(74, 50) Source(4, 12) + SourceIndex(5) +7 >Emitted(74, 74) Source(4, 48) + SourceIndex(5) +8 >Emitted(74, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(75, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(75, 2) Source(5, 2) + SourceIndex(5) +--- +>>>function thirdthird_part1Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > thirdthird_part1Spread +1->Emitted(76, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(76, 10) Source(6, 10) + SourceIndex(5) +3 >Emitted(76, 32) Source(6, 32) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(77, 5) Source(6, 33) + SourceIndex(5) +2 >Emitted(77, 16) Source(6, 47) + SourceIndex(5) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(78, 10) Source(6, 33) + SourceIndex(5) +2 >Emitted(78, 20) Source(6, 47) + SourceIndex(5) +3 >Emitted(78, 22) Source(6, 33) + SourceIndex(5) +4 >Emitted(78, 43) Source(6, 47) + SourceIndex(5) +5 >Emitted(78, 45) Source(6, 33) + SourceIndex(5) +6 >Emitted(78, 49) Source(6, 47) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(79, 9) Source(6, 33) + SourceIndex(5) +2 >Emitted(79, 31) Source(6, 47) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(81, 1) Source(6, 51) + SourceIndex(5) +2 >Emitted(81, 2) Source(6, 52) + SourceIndex(5) +--- +>>>thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >thirdthird_part1Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(82, 1) Source(7, 1) + SourceIndex(5) +2 >Emitted(82, 23) Source(7, 23) + SourceIndex(5) +3 >Emitted(82, 47) Source(7, 27) + SourceIndex(5) +4 >Emitted(82, 48) Source(7, 28) + SourceIndex(5) +5 >Emitted(82, 50) Source(7, 30) + SourceIndex(5) +6 >Emitted(82, 52) Source(7, 32) + SourceIndex(5) +7 >Emitted(82, 54) Source(7, 34) + SourceIndex(5) +8 >Emitted(82, 56) Source(7, 36) + SourceIndex(5) +9 >Emitted(82, 58) Source(7, 38) + SourceIndex(5) +10>Emitted(82, 59) Source(7, 39) + SourceIndex(5) +11>Emitted(82, 62) Source(7, 41) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 678, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1180, + "end": 1542, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 1180, + "end": 1542, + "kind": "text" + } + ] + }, + { + "pos": 1542, + "end": 2162, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 1542, + "end": 2162, + "kind": "text" + } + ] + }, + { + "pos": 2162, + "end": 2527, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 272, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 272, + "kind": "text" + } + ] + }, + { + "pos": 272, + "end": 491, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 272, + "end": 491, + "kind": "text" + } + ] + }, + { + "pos": 491, + "end": 625, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (678-1178):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (1180-1542):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1180-1542) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); + +---------------------------------------------------------------------- +prepend: (1542-2162):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1542-2162) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +function secondsecond_part2Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); + +---------------------------------------------------------------------- +text: (2162-2527) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +function thirdthird_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-272):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-272) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare function firstfirst_part3Spread(...b: number[]): void; + +---------------------------------------------------------------------- +prepend: (272-491):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (272-491) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +declare function secondsecond_part2Spread(...b: number[]): void; + +---------------------------------------------------------------------- +text: (491-625) +declare var c: C; +declare function forthirdthird_part1Rest(): void; +declare function thirdthird_part1Spread(...b: number[]): void; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js new file mode 100644 index 00000000000..007758d42c4 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js @@ -0,0 +1,1670 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 150, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-150) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { } + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACZrD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function secondsecond_part1Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part1Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(14, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(14, 18) Source(13, 10) + SourceIndex(2) +3 >Emitted(14, 42) Source(13, 34) + SourceIndex(2) +4 >Emitted(14, 43) Source(13, 35) + SourceIndex(2) +5 >Emitted(14, 46) Source(13, 38) + SourceIndex(2) +6 >Emitted(14, 49) Source(13, 41) + SourceIndex(2) +7 >Emitted(14, 55) Source(13, 47) + SourceIndex(2) +8 >Emitted(14, 57) Source(13, 49) + SourceIndex(2) +9 >Emitted(14, 65) Source(13, 54) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) +--- +>>>declare function forthirdthird_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + >c.doSomething(); + > +2 >function +3 > forthirdthird_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function secondsecond_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(34, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(34, 39) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(35, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(35, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(35, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(35, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(35, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(35, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(35, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(35, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(35, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(36, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(36, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(36, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(37, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(37, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(37, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(37, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(38, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(38, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(39, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(39, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(39, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(39, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(40, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(40, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(40, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(41, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(41, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(41, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(42, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(42, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(42, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(42, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(42, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(42, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(42, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(42, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(43, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(43, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(44, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(44, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(44, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(44, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(45, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(45, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(45, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(45, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(45, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(45, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(45, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function secondsecond_part1Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part1Spread +1->Emitted(46, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(46, 10) Source(13, 10) + SourceIndex(3) +3 >Emitted(46, 34) Source(13, 34) + SourceIndex(3) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(47, 5) Source(13, 35) + SourceIndex(3) +2 >Emitted(47, 16) Source(13, 49) + SourceIndex(3) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(48, 10) Source(13, 35) + SourceIndex(3) +2 >Emitted(48, 20) Source(13, 49) + SourceIndex(3) +3 >Emitted(48, 22) Source(13, 35) + SourceIndex(3) +4 >Emitted(48, 43) Source(13, 49) + SourceIndex(3) +5 >Emitted(48, 45) Source(13, 35) + SourceIndex(3) +6 >Emitted(48, 49) Source(13, 49) + SourceIndex(3) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(49, 9) Source(13, 35) + SourceIndex(3) +2 >Emitted(49, 31) Source(13, 49) + SourceIndex(3) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(51, 1) Source(13, 53) + SourceIndex(3) +2 >Emitted(51, 2) Source(13, 54) + SourceIndex(3) +--- +>>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >secondsecond_part1Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(52, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(52, 25) Source(14, 25) + SourceIndex(3) +3 >Emitted(52, 49) Source(14, 29) + SourceIndex(3) +4 >Emitted(52, 50) Source(14, 30) + SourceIndex(3) +5 >Emitted(52, 52) Source(14, 32) + SourceIndex(3) +6 >Emitted(52, 54) Source(14, 34) + SourceIndex(3) +7 >Emitted(52, 56) Source(14, 36) + SourceIndex(3) +8 >Emitted(52, 58) Source(14, 38) + SourceIndex(3) +9 >Emitted(52, 60) Source(14, 40) + SourceIndex(3) +10>Emitted(52, 61) Source(14, 41) + SourceIndex(3) +11>Emitted(52, 64) Source(14, 43) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(53, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(54, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(55, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(55, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(56, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(56, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(56, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(57, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(57, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(57, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(57, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(57, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(57, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(57, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(57, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(58, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(58, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(59, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(59, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(60, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(60, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(60, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(60, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(61, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(61, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(61, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(61, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(61, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(61, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(61, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(61, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(62, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(62, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(62, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(62, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(62, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(62, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(63, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(63, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(63, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(64, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(64, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(64, 38) Source(4, 48) + SourceIndex(5) +4 >Emitted(64, 40) Source(4, 9) + SourceIndex(5) +5 >Emitted(64, 48) Source(4, 10) + SourceIndex(5) +6 >Emitted(64, 50) Source(4, 12) + SourceIndex(5) +7 >Emitted(64, 74) Source(4, 48) + SourceIndex(5) +8 >Emitted(64, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(65, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(65, 2) Source(5, 2) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 678, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1180, + "end": 1330, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 1180, + "end": 1330, + "kind": "text" + } + ] + }, + { + "pos": 1330, + "end": 1831, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 1330, + "end": 1831, + "kind": "text" + } + ] + }, + { + "pos": 1831, + "end": 1984, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 374, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 374, + "kind": "text" + } + ] + }, + { + "pos": 374, + "end": 444, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (678-1178):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (1180-1330):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1180-1330) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (1330-1831):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1330-1831) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function secondsecond_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1831-1984) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-374):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-374) +declare namespace N { +} +declare namespace N { +} +declare function secondsecond_part1Spread(...b: number[]): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (374-444) +declare var c: C; +declare function forthirdthird_part1Rest(): void; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js new file mode 100644 index 00000000000..0ba862758a7 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js @@ -0,0 +1,1534 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:12:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:12:00 PM - Building project '/src/first/tsconfig.json'... + +4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue5" + >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(3, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(3, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(4, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(4, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(4, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(4, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(7, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(7, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(7, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(7, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(7, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(9, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(10, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(10, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(10, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +"myPrologue5"; +"myPrologue"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue5"; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +1 > +2 >"myPrologue5" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) +--- +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^-> +1 > + > +2 >"myPrologue" +3 > +1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) +3 >Emitted(3, 14) Source(2, 13) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(7, 7) + SourceIndex(0) +3 >Emitted(4, 6) Source(7, 8) + SourceIndex(0) +4 >Emitted(4, 9) Source(7, 11) + SourceIndex(0) +5 >Emitted(4, 23) Source(7, 25) + SourceIndex(0) +6 >Emitted(4, 24) Source(7, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(9, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 29, + "kind": "prologue", + "data": "myPrologue5" + }, + { + "pos": 31, + "end": 44, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 46, + "end": 156, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue5\"\n\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 13, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue5" + } + }, + { + "pos": 13, + "end": 26, + "expression": { + "pos": 13, + "end": 26, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-29):: myPrologue5 +"myPrologue5"; +---------------------------------------------------------------------- +prologue: (31-44):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +text: (46-156) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +"myPrologue5" +"myPrologue" +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACVD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue5" + >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(3, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(3, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(4, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(4, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(4, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(4, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(7, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(7, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(7, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(7, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(7, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(9, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(10, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(10, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(10, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >"myPrologue" + > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1->"myPrologue2"; + > +2 >class +3 > C +1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue3"; + >"myPrologue"; + > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(3, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(3, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(3, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(3, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(3, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue5"; +"myPrologue"; +"myPrologue2"; +"myPrologue3"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;ACDZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFMd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue5"; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +1 > +2 >"myPrologue5" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) +--- +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > + > +2 >"myPrologue" +3 > +1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) +3 >Emitted(3, 14) Source(2, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(4, 15) Source(1, 15) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >"myPrologue3" +3 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 14) Source(1, 14) + SourceIndex(2) +3 >Emitted(5, 15) Source(1, 15) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1->"myPrologue5" + >"myPrologue" + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(6, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(6, 5) Source(7, 7) + SourceIndex(0) +3 >Emitted(6, 6) Source(7, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(7, 11) + SourceIndex(0) +5 >Emitted(6, 23) Source(7, 25) + SourceIndex(0) +6 >Emitted(6, 24) Source(7, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(7, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(7, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(7, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(7, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(7, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(7, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(7, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(7, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 8) Source(1, 8) + SourceIndex(3) +3 >Emitted(8, 9) Source(1, 9) + SourceIndex(3) +4 >Emitted(8, 12) Source(1, 12) + SourceIndex(3) +5 >Emitted(8, 13) Source(1, 13) + SourceIndex(3) +6 >Emitted(8, 14) Source(1, 14) + SourceIndex(3) +7 >Emitted(8, 16) Source(1, 16) + SourceIndex(3) +8 >Emitted(8, 17) Source(1, 17) + SourceIndex(3) +9 >Emitted(8, 18) Source(1, 18) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(9, 10) Source(1, 10) + SourceIndex(4) +3 >Emitted(9, 11) Source(1, 11) + SourceIndex(4) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(10, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(10, 12) Source(2, 12) + SourceIndex(4) +3 >Emitted(10, 28) Source(2, 28) + SourceIndex(4) +4 >Emitted(10, 29) Source(2, 29) + SourceIndex(4) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(11, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(11, 2) Source(3, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(12, 5) Source(6, 11) + SourceIndex(5) +3 >Emitted(12, 6) Source(6, 12) + SourceIndex(5) +4 >Emitted(12, 7) Source(12, 2) + SourceIndex(5) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(13, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(13, 12) Source(6, 11) + SourceIndex(5) +3 >Emitted(13, 13) Source(6, 12) + SourceIndex(5) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(14, 5) Source(7, 5) + SourceIndex(5) +2 >Emitted(14, 14) Source(7, 14) + SourceIndex(5) +3 >Emitted(14, 15) Source(7, 15) + SourceIndex(5) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(15, 9) Source(8, 9) + SourceIndex(5) +2 >Emitted(15, 16) Source(8, 16) + SourceIndex(5) +3 >Emitted(15, 17) Source(8, 17) + SourceIndex(5) +4 >Emitted(15, 20) Source(8, 20) + SourceIndex(5) +5 >Emitted(15, 21) Source(8, 21) + SourceIndex(5) +6 >Emitted(15, 30) Source(8, 30) + SourceIndex(5) +7 >Emitted(15, 31) Source(8, 31) + SourceIndex(5) +8 >Emitted(15, 32) Source(8, 32) + SourceIndex(5) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(16, 5) Source(9, 5) + SourceIndex(5) +2 >Emitted(16, 6) Source(9, 6) + SourceIndex(5) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(17, 5) Source(11, 5) + SourceIndex(5) +2 >Emitted(17, 6) Source(11, 6) + SourceIndex(5) +3 >Emitted(17, 8) Source(11, 8) + SourceIndex(5) +4 >Emitted(17, 9) Source(11, 9) + SourceIndex(5) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(18, 1) Source(12, 1) + SourceIndex(5) +2 >Emitted(18, 2) Source(12, 2) + SourceIndex(5) +3 >Emitted(18, 4) Source(6, 11) + SourceIndex(5) +4 >Emitted(18, 5) Source(6, 12) + SourceIndex(5) +5 >Emitted(18, 10) Source(6, 11) + SourceIndex(5) +6 >Emitted(18, 11) Source(6, 12) + SourceIndex(5) +7 >Emitted(18, 19) Source(12, 2) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(19, 1) Source(2, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(20, 5) Source(2, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(21, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(21, 6) Source(6, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(22, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(22, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(22, 31) Source(3, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(23, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(23, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(23, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(23, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(23, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(23, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(23, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(23, 43) Source(4, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(24, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(24, 6) Source(5, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(25, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(25, 13) Source(6, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(26, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(26, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(26, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(26, 6) Source(6, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1->"myPrologue3"; + >"myPrologue"; + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(27, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(27, 5) Source(3, 5) + SourceIndex(2) +3 >Emitted(27, 6) Source(3, 6) + SourceIndex(2) +4 >Emitted(27, 9) Source(3, 9) + SourceIndex(2) +5 >Emitted(27, 13) Source(3, 13) + SourceIndex(2) +6 >Emitted(27, 14) Source(3, 14) + SourceIndex(2) +7 >Emitted(27, 16) Source(3, 16) + SourceIndex(2) +8 >Emitted(27, 17) Source(3, 17) + SourceIndex(2) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(28, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(4, 2) + SourceIndex(2) +3 >Emitted(28, 3) Source(4, 3) + SourceIndex(2) +4 >Emitted(28, 14) Source(4, 14) + SourceIndex(2) +5 >Emitted(28, 16) Source(4, 16) + SourceIndex(2) +6 >Emitted(28, 17) Source(4, 17) + SourceIndex(2) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 29, + "kind": "prologue", + "data": "myPrologue5" + }, + { + "pos": 31, + "end": 44, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 62, + "end": 76, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 78, + "end": 188, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 78, + "end": 188, + "kind": "text" + } + ] + }, + { + "pos": 188, + "end": 473, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 188, + "end": 473, + "kind": "text" + } + ] + }, + { + "pos": 473, + "end": 509, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue3\";\n\"myPrologue\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue3" + } + }, + { + "pos": 14, + "end": 28, + "expression": { + "pos": 14, + "end": 27, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-29):: myPrologue5 +"myPrologue5"; +---------------------------------------------------------------------- +prologue: (31-44):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prologue: (62-76):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +prepend: (78-188):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (78-188) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (188-473):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (188-473) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (473-509) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js new file mode 100644 index 00000000000..63d64eb0a11 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js @@ -0,0 +1,1432 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue5" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +"myPrologue5"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;AAKb,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue5"; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >"myPrologue5" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 29, + "kind": "prologue", + "data": "myPrologue5" + }, + { + "pos": 31, + "end": 141, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue5\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 13, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue5" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-29):: myPrologue5 +"myPrologue5"; +---------------------------------------------------------------------- +text: (31-141) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +"myPrologue5" +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue5" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >"myPrologue" + > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1->"myPrologue2"; + > +2 >class +3 > C +1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue5"; +"myPrologue"; +"myPrologue2"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;ACAb,YAAY,CAAA;ACAZ,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AHGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AGLD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue5"; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +1 > +2 >"myPrologue5" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +3 >Emitted(3, 14) Source(1, 13) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) +3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1->"myPrologue5" + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(5, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) +3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) +4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) +5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) +6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) +7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) +8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) +9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) +3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) +3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) +4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(11, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(11, 5) Source(6, 11) + SourceIndex(1) +3 >Emitted(11, 6) Source(6, 12) + SourceIndex(1) +4 >Emitted(11, 7) Source(12, 2) + SourceIndex(1) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(12, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(12, 12) Source(6, 11) + SourceIndex(1) +3 >Emitted(12, 13) Source(6, 12) + SourceIndex(1) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(13, 5) Source(7, 5) + SourceIndex(1) +2 >Emitted(13, 14) Source(7, 14) + SourceIndex(1) +3 >Emitted(13, 15) Source(7, 15) + SourceIndex(1) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(14, 9) Source(8, 9) + SourceIndex(1) +2 >Emitted(14, 16) Source(8, 16) + SourceIndex(1) +3 >Emitted(14, 17) Source(8, 17) + SourceIndex(1) +4 >Emitted(14, 20) Source(8, 20) + SourceIndex(1) +5 >Emitted(14, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(14, 30) Source(8, 30) + SourceIndex(1) +7 >Emitted(14, 31) Source(8, 31) + SourceIndex(1) +8 >Emitted(14, 32) Source(8, 32) + SourceIndex(1) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(15, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(15, 6) Source(9, 6) + SourceIndex(1) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(16, 5) Source(11, 5) + SourceIndex(1) +2 >Emitted(16, 6) Source(11, 6) + SourceIndex(1) +3 >Emitted(16, 8) Source(11, 8) + SourceIndex(1) +4 >Emitted(16, 9) Source(11, 9) + SourceIndex(1) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(17, 1) Source(12, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(12, 2) + SourceIndex(1) +3 >Emitted(17, 4) Source(6, 11) + SourceIndex(1) +4 >Emitted(17, 5) Source(6, 12) + SourceIndex(1) +5 >Emitted(17, 10) Source(6, 11) + SourceIndex(1) +6 >Emitted(17, 11) Source(6, 12) + SourceIndex(1) +7 >Emitted(17, 19) Source(12, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(18, 1) Source(2, 1) + SourceIndex(2) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(19, 5) Source(2, 1) + SourceIndex(2) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(20, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(20, 6) Source(6, 2) + SourceIndex(2) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(21, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(21, 28) Source(3, 16) + SourceIndex(2) +3 >Emitted(21, 31) Source(3, 5) + SourceIndex(2) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(22, 9) Source(4, 9) + SourceIndex(2) +2 >Emitted(22, 16) Source(4, 16) + SourceIndex(2) +3 >Emitted(22, 17) Source(4, 17) + SourceIndex(2) +4 >Emitted(22, 20) Source(4, 20) + SourceIndex(2) +5 >Emitted(22, 21) Source(4, 21) + SourceIndex(2) +6 >Emitted(22, 41) Source(4, 41) + SourceIndex(2) +7 >Emitted(22, 42) Source(4, 42) + SourceIndex(2) +8 >Emitted(22, 43) Source(4, 43) + SourceIndex(2) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(23, 5) Source(5, 5) + SourceIndex(2) +2 >Emitted(23, 6) Source(5, 6) + SourceIndex(2) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(24, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(24, 13) Source(6, 2) + SourceIndex(2) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(25, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(25, 2) Source(6, 2) + SourceIndex(2) +3 >Emitted(25, 2) Source(2, 1) + SourceIndex(2) +4 >Emitted(25, 6) Source(6, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(26, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(26, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(26, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(26, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(26, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(26, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(26, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(26, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(27, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(27, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(27, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(27, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(27, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(27, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 29, + "kind": "prologue", + "data": "myPrologue5" + }, + { + "pos": 31, + "end": 44, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 62, + "end": 172, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 62, + "end": 172, + "kind": "text" + } + ] + }, + { + "pos": 172, + "end": 457, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 172, + "end": 457, + "kind": "text" + } + ] + }, + { + "pos": 457, + "end": 493, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-29):: myPrologue5 +"myPrologue5"; +---------------------------------------------------------------------- +prologue: (31-44):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (62-172):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (62-172) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (172-457):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (172-457) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (457-493) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js new file mode 100644 index 00000000000..76ac6adeb78 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js @@ -0,0 +1,1395 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:12:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:12:00 PM - Building project '/src/first/tsconfig.json'... + +4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +"myPrologue"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 140, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +text: (30-140) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +"myPrologue" +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 140, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 30, + "end": 140, + "kind": "text" + } + ] + }, + { + "pos": 140, + "end": 425, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 140, + "end": 425, + "kind": "text" + } + ] + }, + { + "pos": 425, + "end": 461, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prepend: (30-140):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (30-140) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (140-425):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (140-425) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (425-461) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js new file mode 100644 index 00000000000..41468039ec8 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js @@ -0,0 +1,1334 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"myPrologue"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 15, + "end": 125, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +text: (15-125) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +"myPrologue" +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"myPrologue"; +"use strict"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) +--- +>>>"use strict"; +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 30, + "end": 140, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 30, + "end": 140, + "kind": "text" + } + ] + }, + { + "pos": 140, + "end": 425, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 140, + "end": 425, + "kind": "text" + } + ] + }, + { + "pos": 425, + "end": 461, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (15-28):: use strict +"use strict"; +---------------------------------------------------------------------- +prepend: (30-140):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (30-140) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (140-425):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (140-425) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (425-461) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js new file mode 100644 index 00000000000..0c29565e910 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,1985 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/second/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(15, 5) Source(15, 20) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 24) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 26) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 32) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 33) + SourceIndex(2) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^-> +1-> + > /**@internal*/ +2 > method +1->Emitted(16, 5) Source(16, 20) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 26) + SourceIndex(2) +--- +>>> c: number; +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /**@internal*/ get +2 > c +3 > () { return 10; } + > /**@internal*/ set c(val: +4 > number +1->Emitted(17, 5) Source(17, 24) + SourceIndex(2) +2 >Emitted(17, 6) Source(17, 25) + SourceIndex(2) +3 >Emitted(17, 8) Source(18, 31) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 37) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /**@internal*/ +2 > export class +3 > C +1 >Emitted(20, 5) Source(21, 20) + SourceIndex(2) +2 >Emitted(20, 11) Source(21, 33) + SourceIndex(2) +3 >Emitted(20, 12) Source(21, 34) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(21, 6) Source(21, 38) + SourceIndex(2) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(22, 5) Source(22, 20) + SourceIndex(2) +2 >Emitted(22, 14) Source(22, 36) + SourceIndex(2) +3 >Emitted(22, 17) Source(22, 39) + SourceIndex(2) +4 >Emitted(22, 26) Source(22, 44) + SourceIndex(2) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(23, 5) Source(23, 20) + SourceIndex(2) +2 >Emitted(23, 15) Source(23, 37) + SourceIndex(2) +3 >Emitted(23, 28) Source(23, 50) + SourceIndex(2) +4 >Emitted(23, 29) Source(23, 51) + SourceIndex(2) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(24, 9) Source(23, 53) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 66) + SourceIndex(2) +3 >Emitted(24, 16) Source(23, 67) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(25, 10) Source(23, 70) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(26, 6) Source(23, 72) + SourceIndex(2) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /**@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(27, 5) Source(24, 20) + SourceIndex(2) +2 >Emitted(27, 15) Source(24, 37) + SourceIndex(2) +3 >Emitted(27, 24) Source(24, 46) + SourceIndex(2) +4 >Emitted(27, 25) Source(24, 47) + SourceIndex(2) +5 >Emitted(27, 34) Source(24, 56) + SourceIndex(2) +6 >Emitted(27, 35) Source(24, 57) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(28, 9) Source(24, 59) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 72) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 81) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(29, 10) Source(24, 84) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(30, 6) Source(24, 86) + SourceIndex(2) +--- +>>> export import someImport = someNamespace.C; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /**@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(31, 5) Source(25, 20) + SourceIndex(2) +2 >Emitted(31, 11) Source(25, 26) + SourceIndex(2) +3 >Emitted(31, 19) Source(25, 34) + SourceIndex(2) +4 >Emitted(31, 29) Source(25, 44) + SourceIndex(2) +5 >Emitted(31, 32) Source(25, 47) + SourceIndex(2) +6 >Emitted(31, 45) Source(25, 60) + SourceIndex(2) +7 >Emitted(31, 46) Source(25, 61) + SourceIndex(2) +8 >Emitted(31, 47) Source(25, 62) + SourceIndex(2) +9 >Emitted(31, 48) Source(25, 63) + SourceIndex(2) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /**@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(32, 5) Source(26, 20) + SourceIndex(2) +2 >Emitted(32, 10) Source(26, 32) + SourceIndex(2) +3 >Emitted(32, 22) Source(26, 44) + SourceIndex(2) +4 >Emitted(32, 25) Source(26, 47) + SourceIndex(2) +5 >Emitted(32, 34) Source(26, 56) + SourceIndex(2) +6 >Emitted(32, 35) Source(26, 57) + SourceIndex(2) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /**@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(33, 5) Source(27, 27) + SourceIndex(2) +2 >Emitted(33, 11) Source(27, 33) + SourceIndex(2) +3 >Emitted(33, 24) Source(27, 46) + SourceIndex(2) +4 >Emitted(33, 29) Source(27, 51) + SourceIndex(2) +5 >Emitted(33, 30) Source(27, 52) + SourceIndex(2) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(34, 5) Source(28, 20) + SourceIndex(2) +2 >Emitted(34, 10) Source(28, 32) + SourceIndex(2) +3 >Emitted(34, 22) Source(28, 44) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(35, 9) Source(28, 47) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 48) + SourceIndex(2) +3 >Emitted(35, 14) Source(28, 48) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(36, 9) Source(28, 50) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 51) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 51) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(37, 9) Source(28, 53) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 54) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 54) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(38, 6) Source(28, 56) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/**@internal*/ +2 >class +3 > internalC +1->Emitted(40, 1) Source(30, 16) + SourceIndex(2) +2 >Emitted(40, 15) Source(30, 22) + SourceIndex(2) +3 >Emitted(40, 24) Source(30, 31) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(41, 2) Source(30, 34) + SourceIndex(2) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(42, 1) Source(31, 16) + SourceIndex(2) +2 >Emitted(42, 18) Source(31, 25) + SourceIndex(2) +3 >Emitted(42, 29) Source(31, 36) + SourceIndex(2) +4 >Emitted(42, 38) Source(31, 41) + SourceIndex(2) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(43, 1) Source(32, 16) + SourceIndex(2) +2 >Emitted(43, 19) Source(32, 26) + SourceIndex(2) +3 >Emitted(43, 36) Source(32, 43) + SourceIndex(2) +4 >Emitted(43, 37) Source(32, 44) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(44, 5) Source(32, 46) + SourceIndex(2) +2 >Emitted(44, 11) Source(32, 59) + SourceIndex(2) +3 >Emitted(44, 20) Source(32, 68) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(45, 6) Source(32, 71) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(46, 2) Source(32, 73) + SourceIndex(2) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/**@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(47, 1) Source(33, 16) + SourceIndex(2) +2 >Emitted(47, 19) Source(33, 26) + SourceIndex(2) +3 >Emitted(47, 32) Source(33, 39) + SourceIndex(2) +4 >Emitted(47, 33) Source(33, 40) + SourceIndex(2) +5 >Emitted(47, 42) Source(33, 49) + SourceIndex(2) +6 >Emitted(47, 43) Source(33, 50) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(48, 5) Source(33, 52) + SourceIndex(2) +2 >Emitted(48, 11) Source(33, 65) + SourceIndex(2) +3 >Emitted(48, 20) Source(33, 74) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(49, 6) Source(33, 77) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(50, 2) Source(33, 79) + SourceIndex(2) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(51, 1) Source(34, 16) + SourceIndex(2) +2 >Emitted(51, 8) Source(34, 23) + SourceIndex(2) +3 >Emitted(51, 22) Source(34, 37) + SourceIndex(2) +4 >Emitted(51, 25) Source(34, 40) + SourceIndex(2) +5 >Emitted(51, 42) Source(34, 57) + SourceIndex(2) +6 >Emitted(51, 43) Source(34, 58) + SourceIndex(2) +7 >Emitted(51, 52) Source(34, 67) + SourceIndex(2) +8 >Emitted(51, 53) Source(34, 68) + SourceIndex(2) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/**@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(52, 1) Source(35, 16) + SourceIndex(2) +2 >Emitted(52, 14) Source(35, 21) + SourceIndex(2) +3 >Emitted(52, 26) Source(35, 33) + SourceIndex(2) +4 >Emitted(52, 29) Source(35, 36) + SourceIndex(2) +5 >Emitted(52, 38) Source(35, 45) + SourceIndex(2) +6 >Emitted(52, 39) Source(35, 46) + SourceIndex(2) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/**@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(53, 1) Source(36, 16) + SourceIndex(2) +2 >Emitted(53, 9) Source(36, 16) + SourceIndex(2) +3 >Emitted(53, 15) Source(36, 22) + SourceIndex(2) +4 >Emitted(53, 28) Source(36, 35) + SourceIndex(2) +5 >Emitted(53, 33) Source(36, 40) + SourceIndex(2) +6 >Emitted(53, 34) Source(36, 41) + SourceIndex(2) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/**@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(54, 1) Source(37, 16) + SourceIndex(2) +2 >Emitted(54, 14) Source(37, 21) + SourceIndex(2) +3 >Emitted(54, 26) Source(37, 33) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(55, 5) Source(37, 36) + SourceIndex(2) +2 >Emitted(55, 6) Source(37, 37) + SourceIndex(2) +3 >Emitted(55, 10) Source(37, 37) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 5) Source(37, 39) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 40) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 40) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(57, 5) Source(37, 42) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 43) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 43) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(58, 2) Source(37, 45) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3162, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 308, + "kind": "internal" + }, + { + "pos": 310, + "end": 342, + "kind": "text" + }, + { + "pos": 342, + "end": 734, + "kind": "internal" + }, + { + "pos": 736, + "end": 739, + "kind": "text" + }, + { + "pos": 739, + "end": 1152, + "kind": "internal" + }, + { + "pos": 1154, + "end": 1202, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (110-3162) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-308) + constructor(); + prop: string; + method(): void; + c: number; +---------------------------------------------------------------------- +text: (310-342) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (342-734) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (736-739) +} + +---------------------------------------------------------------------- +internal: (739-1152) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1154-1202) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + >} +1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(16, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3162, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3162, + "kind": "text" + } + ] + }, + { + "pos": 3162, + "end": 3198, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 317, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 317, + "kind": "text" + } + ] + }, + { + "pos": 317, + "end": 336, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3162):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3162) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3162-3198) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-317):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-317) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (317-336) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js new file mode 100644 index 00000000000..6062b244d25 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js @@ -0,0 +1,943 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + >} +1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(16, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3162, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 3162, + "kind": "text" + } + ] + }, + { + "pos": 3162, + "end": 3198, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 317, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 317, + "kind": "text" + } + ] + }, + { + "pos": 317, + "end": 336, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-3162):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-3162) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3162-3198) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-317):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-317) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (317-336) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js new file mode 100644 index 00000000000..ce3ce9947b2 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,2007 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:12:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:12:00 PM - Building project '/src/first/tsconfig.json'... + +4:12:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:12:00 PM - Updating output of project '/src/second/tsconfig.json'... + +4:12:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 2, + "/src/2/second-output.js": 2, + "/src/2/second-output.js.map": 2, + "/src/2/second-output.d.ts": 2, + "/src/2/second-output.d.ts.map": 2, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1 +} + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +--- +>>> c: number; +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /*@internal*/ get +2 > c +3 > () { return 10; } + > /*@internal*/ set c(val: +4 > number +1->Emitted(17, 5) Source(17, 23) + SourceIndex(2) +2 >Emitted(17, 6) Source(17, 24) + SourceIndex(2) +3 >Emitted(17, 8) Source(18, 30) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 36) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(20, 5) Source(21, 19) + SourceIndex(2) +2 >Emitted(20, 11) Source(21, 32) + SourceIndex(2) +3 >Emitted(20, 12) Source(21, 33) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(21, 6) Source(21, 37) + SourceIndex(2) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(22, 5) Source(22, 19) + SourceIndex(2) +2 >Emitted(22, 14) Source(22, 35) + SourceIndex(2) +3 >Emitted(22, 17) Source(22, 38) + SourceIndex(2) +4 >Emitted(22, 26) Source(22, 43) + SourceIndex(2) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(23, 5) Source(23, 19) + SourceIndex(2) +2 >Emitted(23, 15) Source(23, 36) + SourceIndex(2) +3 >Emitted(23, 28) Source(23, 49) + SourceIndex(2) +4 >Emitted(23, 29) Source(23, 50) + SourceIndex(2) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(24, 9) Source(23, 52) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 65) + SourceIndex(2) +3 >Emitted(24, 16) Source(23, 66) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(25, 10) Source(23, 69) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(26, 6) Source(23, 71) + SourceIndex(2) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(27, 5) Source(24, 19) + SourceIndex(2) +2 >Emitted(27, 15) Source(24, 36) + SourceIndex(2) +3 >Emitted(27, 24) Source(24, 45) + SourceIndex(2) +4 >Emitted(27, 25) Source(24, 46) + SourceIndex(2) +5 >Emitted(27, 34) Source(24, 55) + SourceIndex(2) +6 >Emitted(27, 35) Source(24, 56) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(28, 9) Source(24, 58) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 71) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 80) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(29, 10) Source(24, 83) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(30, 6) Source(24, 85) + SourceIndex(2) +--- +>>> export import someImport = someNamespace.C; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /*@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(31, 5) Source(25, 19) + SourceIndex(2) +2 >Emitted(31, 11) Source(25, 25) + SourceIndex(2) +3 >Emitted(31, 19) Source(25, 33) + SourceIndex(2) +4 >Emitted(31, 29) Source(25, 43) + SourceIndex(2) +5 >Emitted(31, 32) Source(25, 46) + SourceIndex(2) +6 >Emitted(31, 45) Source(25, 59) + SourceIndex(2) +7 >Emitted(31, 46) Source(25, 60) + SourceIndex(2) +8 >Emitted(31, 47) Source(25, 61) + SourceIndex(2) +9 >Emitted(31, 48) Source(25, 62) + SourceIndex(2) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(32, 5) Source(26, 19) + SourceIndex(2) +2 >Emitted(32, 10) Source(26, 31) + SourceIndex(2) +3 >Emitted(32, 22) Source(26, 43) + SourceIndex(2) +4 >Emitted(32, 25) Source(26, 46) + SourceIndex(2) +5 >Emitted(32, 34) Source(26, 55) + SourceIndex(2) +6 >Emitted(32, 35) Source(26, 56) + SourceIndex(2) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(33, 5) Source(27, 26) + SourceIndex(2) +2 >Emitted(33, 11) Source(27, 32) + SourceIndex(2) +3 >Emitted(33, 24) Source(27, 45) + SourceIndex(2) +4 >Emitted(33, 29) Source(27, 50) + SourceIndex(2) +5 >Emitted(33, 30) Source(27, 51) + SourceIndex(2) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(34, 5) Source(28, 19) + SourceIndex(2) +2 >Emitted(34, 10) Source(28, 31) + SourceIndex(2) +3 >Emitted(34, 22) Source(28, 43) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(35, 9) Source(28, 46) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 47) + SourceIndex(2) +3 >Emitted(35, 14) Source(28, 47) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(36, 9) Source(28, 49) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 50) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 50) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(37, 9) Source(28, 52) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 53) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 53) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(38, 6) Source(28, 55) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 >class +3 > internalC +1->Emitted(40, 1) Source(30, 15) + SourceIndex(2) +2 >Emitted(40, 15) Source(30, 21) + SourceIndex(2) +3 >Emitted(40, 24) Source(30, 30) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(41, 2) Source(30, 33) + SourceIndex(2) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(42, 1) Source(31, 15) + SourceIndex(2) +2 >Emitted(42, 18) Source(31, 24) + SourceIndex(2) +3 >Emitted(42, 29) Source(31, 35) + SourceIndex(2) +4 >Emitted(42, 38) Source(31, 40) + SourceIndex(2) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(43, 1) Source(32, 15) + SourceIndex(2) +2 >Emitted(43, 19) Source(32, 25) + SourceIndex(2) +3 >Emitted(43, 36) Source(32, 42) + SourceIndex(2) +4 >Emitted(43, 37) Source(32, 43) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(44, 5) Source(32, 45) + SourceIndex(2) +2 >Emitted(44, 11) Source(32, 58) + SourceIndex(2) +3 >Emitted(44, 20) Source(32, 67) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(45, 6) Source(32, 70) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(46, 2) Source(32, 72) + SourceIndex(2) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(47, 1) Source(33, 15) + SourceIndex(2) +2 >Emitted(47, 19) Source(33, 25) + SourceIndex(2) +3 >Emitted(47, 32) Source(33, 38) + SourceIndex(2) +4 >Emitted(47, 33) Source(33, 39) + SourceIndex(2) +5 >Emitted(47, 42) Source(33, 48) + SourceIndex(2) +6 >Emitted(47, 43) Source(33, 49) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(48, 5) Source(33, 51) + SourceIndex(2) +2 >Emitted(48, 11) Source(33, 64) + SourceIndex(2) +3 >Emitted(48, 20) Source(33, 73) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(49, 6) Source(33, 76) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(50, 2) Source(33, 78) + SourceIndex(2) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(51, 1) Source(34, 15) + SourceIndex(2) +2 >Emitted(51, 8) Source(34, 22) + SourceIndex(2) +3 >Emitted(51, 22) Source(34, 36) + SourceIndex(2) +4 >Emitted(51, 25) Source(34, 39) + SourceIndex(2) +5 >Emitted(51, 42) Source(34, 56) + SourceIndex(2) +6 >Emitted(51, 43) Source(34, 57) + SourceIndex(2) +7 >Emitted(51, 52) Source(34, 66) + SourceIndex(2) +8 >Emitted(51, 53) Source(34, 67) + SourceIndex(2) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(52, 1) Source(35, 15) + SourceIndex(2) +2 >Emitted(52, 14) Source(35, 20) + SourceIndex(2) +3 >Emitted(52, 26) Source(35, 32) + SourceIndex(2) +4 >Emitted(52, 29) Source(35, 35) + SourceIndex(2) +5 >Emitted(52, 38) Source(35, 44) + SourceIndex(2) +6 >Emitted(52, 39) Source(35, 45) + SourceIndex(2) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(53, 1) Source(36, 15) + SourceIndex(2) +2 >Emitted(53, 9) Source(36, 15) + SourceIndex(2) +3 >Emitted(53, 15) Source(36, 21) + SourceIndex(2) +4 >Emitted(53, 28) Source(36, 34) + SourceIndex(2) +5 >Emitted(53, 33) Source(36, 39) + SourceIndex(2) +6 >Emitted(53, 34) Source(36, 40) + SourceIndex(2) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(54, 1) Source(37, 15) + SourceIndex(2) +2 >Emitted(54, 14) Source(37, 20) + SourceIndex(2) +3 >Emitted(54, 26) Source(37, 32) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(55, 5) Source(37, 35) + SourceIndex(2) +2 >Emitted(55, 6) Source(37, 36) + SourceIndex(2) +3 >Emitted(55, 10) Source(37, 36) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 5) Source(37, 38) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 39) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 39) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(57, 5) Source(37, 41) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 42) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 42) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(58, 2) Source(37, 44) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3162, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 308, + "kind": "internal" + }, + { + "pos": 310, + "end": 342, + "kind": "text" + }, + { + "pos": 342, + "end": 734, + "kind": "internal" + }, + { + "pos": 736, + "end": 739, + "kind": "text" + }, + { + "pos": 739, + "end": 1152, + "kind": "internal" + }, + { + "pos": 1154, + "end": 1202, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (110-3162) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-308) + constructor(); + prop: string; + method(): void; + c: number; +---------------------------------------------------------------------- +text: (310-342) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (342-734) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (736-739) +} + +---------------------------------------------------------------------- +internal: (739-1152) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1154-1202) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(16, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3162, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3162, + "kind": "text" + } + ] + }, + { + "pos": 3162, + "end": 3198, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 317, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 317, + "kind": "text" + } + ] + }, + { + "pos": 317, + "end": 336, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3162):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3162) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3162-3198) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-317):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-317) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (317-336) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js new file mode 100644 index 00000000000..7abd0fd5f78 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,1985 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/second/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;kBACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +--- +>>> /*@internal*/ c: number; +1->^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /*@internal*/ get +2 > c +3 > () { return 10; } + > /*@internal*/ set c(val: +4 > number +1->Emitted(17, 19) Source(17, 23) + SourceIndex(2) +2 >Emitted(17, 20) Source(17, 24) + SourceIndex(2) +3 >Emitted(17, 22) Source(18, 30) + SourceIndex(2) +4 >Emitted(17, 28) Source(18, 36) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(20, 5) Source(21, 19) + SourceIndex(2) +2 >Emitted(20, 11) Source(21, 32) + SourceIndex(2) +3 >Emitted(20, 12) Source(21, 33) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(21, 6) Source(21, 37) + SourceIndex(2) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(22, 5) Source(22, 19) + SourceIndex(2) +2 >Emitted(22, 14) Source(22, 35) + SourceIndex(2) +3 >Emitted(22, 17) Source(22, 38) + SourceIndex(2) +4 >Emitted(22, 26) Source(22, 43) + SourceIndex(2) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(23, 5) Source(23, 19) + SourceIndex(2) +2 >Emitted(23, 15) Source(23, 36) + SourceIndex(2) +3 >Emitted(23, 28) Source(23, 49) + SourceIndex(2) +4 >Emitted(23, 29) Source(23, 50) + SourceIndex(2) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(24, 9) Source(23, 52) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 65) + SourceIndex(2) +3 >Emitted(24, 16) Source(23, 66) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(25, 10) Source(23, 69) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(26, 6) Source(23, 71) + SourceIndex(2) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(27, 5) Source(24, 19) + SourceIndex(2) +2 >Emitted(27, 15) Source(24, 36) + SourceIndex(2) +3 >Emitted(27, 24) Source(24, 45) + SourceIndex(2) +4 >Emitted(27, 25) Source(24, 46) + SourceIndex(2) +5 >Emitted(27, 34) Source(24, 55) + SourceIndex(2) +6 >Emitted(27, 35) Source(24, 56) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(28, 9) Source(24, 58) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 71) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 80) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(29, 10) Source(24, 83) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(30, 6) Source(24, 85) + SourceIndex(2) +--- +>>> export import someImport = someNamespace.C; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /*@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(31, 5) Source(25, 19) + SourceIndex(2) +2 >Emitted(31, 11) Source(25, 25) + SourceIndex(2) +3 >Emitted(31, 19) Source(25, 33) + SourceIndex(2) +4 >Emitted(31, 29) Source(25, 43) + SourceIndex(2) +5 >Emitted(31, 32) Source(25, 46) + SourceIndex(2) +6 >Emitted(31, 45) Source(25, 59) + SourceIndex(2) +7 >Emitted(31, 46) Source(25, 60) + SourceIndex(2) +8 >Emitted(31, 47) Source(25, 61) + SourceIndex(2) +9 >Emitted(31, 48) Source(25, 62) + SourceIndex(2) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(32, 5) Source(26, 19) + SourceIndex(2) +2 >Emitted(32, 10) Source(26, 31) + SourceIndex(2) +3 >Emitted(32, 22) Source(26, 43) + SourceIndex(2) +4 >Emitted(32, 25) Source(26, 46) + SourceIndex(2) +5 >Emitted(32, 34) Source(26, 55) + SourceIndex(2) +6 >Emitted(32, 35) Source(26, 56) + SourceIndex(2) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(33, 5) Source(27, 26) + SourceIndex(2) +2 >Emitted(33, 11) Source(27, 32) + SourceIndex(2) +3 >Emitted(33, 24) Source(27, 45) + SourceIndex(2) +4 >Emitted(33, 29) Source(27, 50) + SourceIndex(2) +5 >Emitted(33, 30) Source(27, 51) + SourceIndex(2) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(34, 5) Source(28, 19) + SourceIndex(2) +2 >Emitted(34, 10) Source(28, 31) + SourceIndex(2) +3 >Emitted(34, 22) Source(28, 43) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(35, 9) Source(28, 46) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 47) + SourceIndex(2) +3 >Emitted(35, 14) Source(28, 47) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(36, 9) Source(28, 49) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 50) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 50) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(37, 9) Source(28, 52) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 53) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 53) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(38, 6) Source(28, 55) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 >class +3 > internalC +1->Emitted(40, 1) Source(30, 15) + SourceIndex(2) +2 >Emitted(40, 15) Source(30, 21) + SourceIndex(2) +3 >Emitted(40, 24) Source(30, 30) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(41, 2) Source(30, 33) + SourceIndex(2) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(42, 1) Source(31, 15) + SourceIndex(2) +2 >Emitted(42, 18) Source(31, 24) + SourceIndex(2) +3 >Emitted(42, 29) Source(31, 35) + SourceIndex(2) +4 >Emitted(42, 38) Source(31, 40) + SourceIndex(2) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(43, 1) Source(32, 15) + SourceIndex(2) +2 >Emitted(43, 19) Source(32, 25) + SourceIndex(2) +3 >Emitted(43, 36) Source(32, 42) + SourceIndex(2) +4 >Emitted(43, 37) Source(32, 43) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(44, 5) Source(32, 45) + SourceIndex(2) +2 >Emitted(44, 11) Source(32, 58) + SourceIndex(2) +3 >Emitted(44, 20) Source(32, 67) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(45, 6) Source(32, 70) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(46, 2) Source(32, 72) + SourceIndex(2) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(47, 1) Source(33, 15) + SourceIndex(2) +2 >Emitted(47, 19) Source(33, 25) + SourceIndex(2) +3 >Emitted(47, 32) Source(33, 38) + SourceIndex(2) +4 >Emitted(47, 33) Source(33, 39) + SourceIndex(2) +5 >Emitted(47, 42) Source(33, 48) + SourceIndex(2) +6 >Emitted(47, 43) Source(33, 49) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(48, 5) Source(33, 51) + SourceIndex(2) +2 >Emitted(48, 11) Source(33, 64) + SourceIndex(2) +3 >Emitted(48, 20) Source(33, 73) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(49, 6) Source(33, 76) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(50, 2) Source(33, 78) + SourceIndex(2) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(51, 1) Source(34, 15) + SourceIndex(2) +2 >Emitted(51, 8) Source(34, 22) + SourceIndex(2) +3 >Emitted(51, 22) Source(34, 36) + SourceIndex(2) +4 >Emitted(51, 25) Source(34, 39) + SourceIndex(2) +5 >Emitted(51, 42) Source(34, 56) + SourceIndex(2) +6 >Emitted(51, 43) Source(34, 57) + SourceIndex(2) +7 >Emitted(51, 52) Source(34, 66) + SourceIndex(2) +8 >Emitted(51, 53) Source(34, 67) + SourceIndex(2) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(52, 1) Source(35, 15) + SourceIndex(2) +2 >Emitted(52, 14) Source(35, 20) + SourceIndex(2) +3 >Emitted(52, 26) Source(35, 32) + SourceIndex(2) +4 >Emitted(52, 29) Source(35, 35) + SourceIndex(2) +5 >Emitted(52, 38) Source(35, 44) + SourceIndex(2) +6 >Emitted(52, 39) Source(35, 45) + SourceIndex(2) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(53, 1) Source(36, 15) + SourceIndex(2) +2 >Emitted(53, 9) Source(36, 15) + SourceIndex(2) +3 >Emitted(53, 15) Source(36, 21) + SourceIndex(2) +4 >Emitted(53, 28) Source(36, 34) + SourceIndex(2) +5 >Emitted(53, 33) Source(36, 39) + SourceIndex(2) +6 >Emitted(53, 34) Source(36, 40) + SourceIndex(2) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(54, 1) Source(37, 15) + SourceIndex(2) +2 >Emitted(54, 14) Source(37, 20) + SourceIndex(2) +3 >Emitted(54, 26) Source(37, 32) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(55, 5) Source(37, 35) + SourceIndex(2) +2 >Emitted(55, 6) Source(37, 36) + SourceIndex(2) +3 >Emitted(55, 10) Source(37, 36) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 5) Source(37, 38) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 39) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 39) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(57, 5) Source(37, 41) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 42) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 42) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(58, 2) Source(37, 44) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3526, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 322, + "kind": "internal" + }, + { + "pos": 324, + "end": 356, + "kind": "text" + }, + { + "pos": 356, + "end": 748, + "kind": "internal" + }, + { + "pos": 750, + "end": 753, + "kind": "text" + }, + { + "pos": 753, + "end": 1166, + "kind": "internal" + }, + { + "pos": 1168, + "end": 1216, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (110-3526) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-322) + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (324-356) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (356-748) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (750-753) +} + +---------------------------------------------------------------------- +internal: (753-1166) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1168-1216) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(16, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3526, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3526, + "kind": "text" + } + ] + }, + { + "pos": 3526, + "end": 3562, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 317, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 317, + "kind": "text" + } + ] + }, + { + "pos": 317, + "end": 336, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3526):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3526) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3526-3562) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-317):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-317) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (317-336) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js new file mode 100644 index 00000000000..634fb0a5b02 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js @@ -0,0 +1,943 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:08:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:08:00 PM - Building project '/src/first/tsconfig.json'... + +4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(16, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3526, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 3526, + "kind": "text" + } + ] + }, + { + "pos": 3526, + "end": 3562, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 317, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 317, + "kind": "text" + } + ] + }, + { + "pos": 317, + "end": 336, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-3526):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-3526) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3526-3562) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-317):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-317) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (317-336) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js new file mode 100644 index 00000000000..3d1c7b448b6 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js @@ -0,0 +1,965 @@ +//// [/lib/incremental-headers-change-without-dts-changesOutput.txt] +/lib/tsc --b /src/third --verbose +4:12:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +4:12:00 PM - Building project '/src/first/tsconfig.json'... + +4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... + +4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(16, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3162, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 3162, + "kind": "text" + } + ] + }, + { + "pos": 3162, + "end": 3198, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 317, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 317, + "kind": "text" + } + ] + }, + { + "pos": 317, + "end": 336, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-3162):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-3162) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3162-3198) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-317):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-317) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (317-336) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js new file mode 100644 index 00000000000..2f7ba873ad3 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js @@ -0,0 +1,1741 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 285, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-285) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 395, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 395, + "kind": "text" + } + ] + }, + { + "pos": 395, + "end": 431, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-395):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-395) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (395-431) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/declarationMap-and-sourceMap-disabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/declarationMap-and-sourceMap-disabled.js new file mode 100644 index 00000000000..675fda54149 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/declarationMap-and-sourceMap-disabled.js @@ -0,0 +1,900 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:00:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:00:00 PM - Building project '/src/first/tsconfig.json'... + +4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:00:00 PM - Building project '/src/second/tsconfig.json'... + +4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:00:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 285, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-285) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + + +//// [/src/third/third_part1.ts] + + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + + "removeComments": true, + "strict": false, + + + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..3130e072f76 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js @@ -0,0 +1,2298 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(5, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(5, 43) Source(12, 35) + SourceIndex(0) +4 >Emitted(5, 52) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(12, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(13, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(13, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(13, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(14, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(14, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(14, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(15, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(15, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(15, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(15, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(15, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(15, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(15, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(15, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(16, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(16, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(17, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(17, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(17, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(17, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(18, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(18, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(18, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(18, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(18, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(18, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(18, 19) Source(11, 2) + SourceIndex(0) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(19, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(19, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(19, 35) Source(12, 35) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(20, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(20, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(20, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(20, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(20, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(20, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(20, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(20, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(21, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(21, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(22, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(23, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(24, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(24, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(25, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(25, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(25, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(26, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(26, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(26, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(26, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(26, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(26, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(26, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(26, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(27, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(27, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(28, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(28, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(29, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(29, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(29, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(29, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 906, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 153, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (502-906) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-153) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 729, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (502-729) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} +function forsecondsecond_part1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +declare var c: C; +declare function forthirdthird_part1Rest(): void; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) +--- +>>>declare function forthirdthird_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + >c.doSomething(); + > +2 >function +3 > forthirdthird_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(23, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(24, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(26, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(28, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(28, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(28, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(29, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(29, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(29, 38) Source(13, 48) + SourceIndex(3) +4 >Emitted(29, 40) Source(13, 9) + SourceIndex(3) +5 >Emitted(29, 48) Source(13, 10) + SourceIndex(3) +6 >Emitted(29, 50) Source(13, 12) + SourceIndex(3) +7 >Emitted(29, 74) Source(13, 48) + SourceIndex(3) +8 >Emitted(29, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(30, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(30, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(31, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(32, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(33, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(34, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(34, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(34, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(35, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(35, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(35, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(35, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(35, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(35, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(35, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(35, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(36, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(37, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(38, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(39, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(39, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(39, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(39, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(39, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(39, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(39, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(39, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(40, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(40, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(40, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(40, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(40, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(40, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(41, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(41, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(41, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(42, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(42, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(42, 38) Source(4, 48) + SourceIndex(5) +4 >Emitted(42, 40) Source(4, 9) + SourceIndex(5) +5 >Emitted(42, 48) Source(4, 10) + SourceIndex(5) +6 >Emitted(42, 50) Source(4, 12) + SourceIndex(5) +7 >Emitted(42, 74) Source(4, 48) + SourceIndex(5) +8 >Emitted(42, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(43, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(43, 2) Source(5, 2) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 729, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 502, + "end": 729, + "kind": "text" + } + ] + }, + { + "pos": 729, + "end": 1133, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 729, + "end": 1133, + "kind": "text" + } + ] + }, + { + "pos": 1133, + "end": 1286, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 361, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 361, + "kind": "text" + } + ] + }, + { + "pos": 361, + "end": 431, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (502-729):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (502-729) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (729-1133):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (729-1133) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1133-1286) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-361) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (361-431) +declare var c: C; +declare function forthirdthird_part1Rest(): void; + +====================================================================== + +//// [/src/third/third_part1.ts] +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js new file mode 100644 index 00000000000..5e2363bdbe3 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js @@ -0,0 +1,2066 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(5, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(5, 43) Source(12, 35) + SourceIndex(0) +4 >Emitted(5, 52) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(12, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(13, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(13, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(13, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(14, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(14, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(14, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(15, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(15, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(15, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(15, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(15, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(15, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(15, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(15, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(16, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(16, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(17, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(17, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(17, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(17, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(18, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(18, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(18, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(18, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(18, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(18, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(18, 19) Source(11, 2) + SourceIndex(0) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(19, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(19, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(19, 35) Source(12, 35) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(20, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(20, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(20, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(20, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(20, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(20, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(20, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(20, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(21, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(21, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(22, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(23, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(24, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(24, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(25, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(25, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(25, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(26, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(26, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(26, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(26, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(26, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(26, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(26, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(26, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(27, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(27, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(28, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(28, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(29, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(29, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(29, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(29, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 906, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 153, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (502-906) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-153) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 150, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-150) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { } + +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} +function forsecondsecond_part1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(15, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(15, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(15, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(15, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(15, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(15, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(15, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(15, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(16, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(16, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(16, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(17, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(17, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(17, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(17, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(19, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(19, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(19, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(19, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(20, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(20, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(21, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(21, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(21, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(22, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(22, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(22, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(22, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(22, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(22, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(22, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(22, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(23, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(23, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(24, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(24, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(24, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(24, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(25, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(25, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(25, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(25, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(25, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(25, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(26, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(26, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(26, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(27, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(27, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(27, 38) Source(13, 48) + SourceIndex(3) +4 >Emitted(27, 40) Source(13, 9) + SourceIndex(3) +5 >Emitted(27, 48) Source(13, 10) + SourceIndex(3) +6 >Emitted(27, 50) Source(13, 12) + SourceIndex(3) +7 >Emitted(27, 74) Source(13, 48) + SourceIndex(3) +8 >Emitted(27, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(28, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(28, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(29, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(30, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(31, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(31, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(32, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(32, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(32, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(33, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(33, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(33, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(33, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(33, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(33, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(33, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(33, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(34, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(34, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(35, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(35, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(36, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(36, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(36, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(36, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(37, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(37, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(37, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(37, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(37, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(37, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(37, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(37, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(38, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(38, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(38, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(38, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(38, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(38, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 652, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 502, + "end": 652, + "kind": "text" + } + ] + }, + { + "pos": 652, + "end": 1056, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 652, + "end": 1056, + "kind": "text" + } + ] + }, + { + "pos": 1056, + "end": 1092, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 361, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 361, + "kind": "text" + } + ] + }, + { + "pos": 361, + "end": 380, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (502-652):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (502-652) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (652-1056):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (652-1056) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1056-1092) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-361) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (361-380) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..da32ae34a23 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js @@ -0,0 +1,3308 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +declare function secondsecond_part2Spread(...b: number[]): void; +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(5, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(5, 43) Source(12, 35) + SourceIndex(0) +4 >Emitted(5, 52) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) +--- +>>>declare function secondsecond_part2Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part2Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(9, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(7, 10) + SourceIndex(1) +3 >Emitted(9, 42) Source(7, 34) + SourceIndex(1) +4 >Emitted(9, 43) Source(7, 35) + SourceIndex(1) +5 >Emitted(9, 46) Source(7, 38) + SourceIndex(1) +6 >Emitted(9, 49) Source(7, 41) + SourceIndex(1) +7 >Emitted(9, 55) Source(7, 47) + SourceIndex(1) +8 >Emitted(9, 57) Source(7, 49) + SourceIndex(1) +9 >Emitted(9, 65) Source(7, 54) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +function secondsecond_part2Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(32, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(32, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(33, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(33, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(33, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(34, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(34, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(34, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(35, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(35, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(35, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(35, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(35, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(35, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(35, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(35, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(36, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(36, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(37, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(37, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(37, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(37, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(38, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(38, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(38, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(38, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(38, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(38, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(38, 19) Source(11, 2) + SourceIndex(0) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(39, 35) Source(12, 35) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(40, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(40, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(40, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(40, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(40, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(40, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(40, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(40, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(41, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(41, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(42, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(43, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(44, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(44, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(45, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(45, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(45, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(46, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(46, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(46, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(46, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(46, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(46, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(46, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(46, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(47, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(47, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(48, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(48, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(49, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(49, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(49, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(49, 6) Source(5, 2) + SourceIndex(1) +--- +>>>function secondsecond_part2Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part2Spread +1->Emitted(50, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(50, 10) Source(7, 10) + SourceIndex(1) +3 >Emitted(50, 34) Source(7, 34) + SourceIndex(1) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(51, 5) Source(7, 35) + SourceIndex(1) +2 >Emitted(51, 16) Source(7, 49) + SourceIndex(1) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(52, 10) Source(7, 35) + SourceIndex(1) +2 >Emitted(52, 20) Source(7, 49) + SourceIndex(1) +3 >Emitted(52, 22) Source(7, 35) + SourceIndex(1) +4 >Emitted(52, 43) Source(7, 49) + SourceIndex(1) +5 >Emitted(52, 45) Source(7, 35) + SourceIndex(1) +6 >Emitted(52, 49) Source(7, 49) + SourceIndex(1) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(53, 9) Source(7, 35) + SourceIndex(1) +2 >Emitted(53, 31) Source(7, 49) + SourceIndex(1) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(55, 1) Source(7, 53) + SourceIndex(1) +2 >Emitted(55, 2) Source(7, 54) + SourceIndex(1) +--- +>>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >secondsecond_part2Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(56, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(56, 25) Source(8, 25) + SourceIndex(1) +3 >Emitted(56, 49) Source(8, 29) + SourceIndex(1) +4 >Emitted(56, 50) Source(8, 30) + SourceIndex(1) +5 >Emitted(56, 52) Source(8, 32) + SourceIndex(1) +6 >Emitted(56, 54) Source(8, 34) + SourceIndex(1) +7 >Emitted(56, 56) Source(8, 36) + SourceIndex(1) +8 >Emitted(56, 58) Source(8, 38) + SourceIndex(1) +9 >Emitted(56, 60) Source(8, 40) + SourceIndex(1) +10>Emitted(56, 61) Source(8, 41) + SourceIndex(1) +11>Emitted(56, 64) Source(8, 43) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 1180, + "end": 1800, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 219, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1178):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +text: (1180-1800) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +function secondsecond_part2Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-219) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +declare function secondsecond_part2Spread(...b: number[]): void; + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare function firstfirst_part3Spread(...b: number[]): void; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>declare function firstfirst_part3Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(10, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(10, 18) Source(4, 10) + SourceIndex(2) +3 >Emitted(10, 40) Source(4, 32) + SourceIndex(2) +4 >Emitted(10, 41) Source(4, 33) + SourceIndex(2) +5 >Emitted(10, 44) Source(4, 36) + SourceIndex(2) +6 >Emitted(10, 47) Source(4, 39) + SourceIndex(2) +7 >Emitted(10, 53) Source(4, 45) + SourceIndex(2) +8 >Emitted(10, 55) Source(4, 47) + SourceIndex(2) +9 >Emitted(10, 63) Source(4, 52) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(37, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(37, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(37, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(37, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(37, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(37, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(37, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(37, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(37, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(38, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(38, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(38, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(39, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(39, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(39, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(39, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(40, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(40, 2) Source(3, 2) + SourceIndex(2) +--- +>>>function firstfirst_part3Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +1->Emitted(41, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(41, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(41, 32) Source(4, 32) + SourceIndex(2) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(42, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(42, 16) Source(4, 47) + SourceIndex(2) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(43, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(43, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(43, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(43, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(43, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(43, 49) Source(4, 47) + SourceIndex(2) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(44, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(44, 31) Source(4, 47) + SourceIndex(2) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(46, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(46, 2) Source(4, 52) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >firstfirst_part3Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(47, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(47, 23) Source(5, 23) + SourceIndex(2) +3 >Emitted(47, 47) Source(5, 27) + SourceIndex(2) +4 >Emitted(47, 48) Source(5, 28) + SourceIndex(2) +5 >Emitted(47, 50) Source(5, 30) + SourceIndex(2) +6 >Emitted(47, 52) Source(5, 32) + SourceIndex(2) +7 >Emitted(47, 54) Source(5, 34) + SourceIndex(2) +8 >Emitted(47, 56) Source(5, 36) + SourceIndex(2) +9 >Emitted(47, 58) Source(5, 38) + SourceIndex(2) +10>Emitted(47, 59) Source(5, 39) + SourceIndex(2) +11>Emitted(47, 62) Source(5, 41) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 1180, + "end": 1619, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 272, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1178):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +text: (1180-1619) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-272) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare function firstfirst_part3Spread(...b: number[]): void; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + +//// [/src/first/first_part3.ts] +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread(...b: number[]) { } +firstfirst_part3Spread(...[10, 20, 30]); + +//// [/src/first/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [ + ] +} + + +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} +function forsecondsecond_part1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + +//// [/src/second/second_part2.ts] +class C { + doSomething() { + console.log("something got done"); + } +} + +function secondsecond_part2Spread(...b: number[]) { } +secondsecond_part2Spread(...[10, 20, 30]); + +//// [/src/second/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [ + ] +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare function firstfirst_part3Spread(...b: number[]): void; +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +declare function secondsecond_part2Spread(...b: number[]): void; +declare var c: C; +declare function forthirdthird_part1Rest(): void; +declare function thirdthird_part1Spread(...b: number[]): void; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACHnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACNrD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +>>>declare function firstfirst_part3Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(10, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(10, 18) Source(4, 10) + SourceIndex(1) +3 >Emitted(10, 40) Source(4, 32) + SourceIndex(1) +4 >Emitted(10, 41) Source(4, 33) + SourceIndex(1) +5 >Emitted(10, 44) Source(4, 36) + SourceIndex(1) +6 >Emitted(10, 47) Source(4, 39) + SourceIndex(1) +7 >Emitted(10, 53) Source(4, 45) + SourceIndex(1) +8 >Emitted(10, 55) Source(4, 47) + SourceIndex(1) +9 >Emitted(10, 63) Source(4, 52) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(11, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(12, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(13, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(13, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(13, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(13, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(14, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(15, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(15, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(15, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(15, 52) Source(14, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(16, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(16, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(17, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) +--- +>>>declare function secondsecond_part2Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part2Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(19, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(19, 18) Source(7, 10) + SourceIndex(3) +3 >Emitted(19, 42) Source(7, 34) + SourceIndex(3) +4 >Emitted(19, 43) Source(7, 35) + SourceIndex(3) +5 >Emitted(19, 46) Source(7, 38) + SourceIndex(3) +6 >Emitted(19, 49) Source(7, 41) + SourceIndex(3) +7 >Emitted(19, 55) Source(7, 47) + SourceIndex(3) +8 >Emitted(19, 57) Source(7, 49) + SourceIndex(3) +9 >Emitted(19, 65) Source(7, 54) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1 > +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1 >Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>declare function forthirdthird_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> +1-> + >c.doSomething(); + > +2 >function +3 > forthirdthird_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(21, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(21, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(21, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(21, 50) Source(5, 2) + SourceIndex(4) +--- +>>>declare function thirdthird_part1Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > thirdthird_part1Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(22, 1) Source(6, 1) + SourceIndex(4) +2 >Emitted(22, 18) Source(6, 10) + SourceIndex(4) +3 >Emitted(22, 40) Source(6, 32) + SourceIndex(4) +4 >Emitted(22, 41) Source(6, 33) + SourceIndex(4) +5 >Emitted(22, 44) Source(6, 36) + SourceIndex(4) +6 >Emitted(22, 47) Source(6, 39) + SourceIndex(4) +7 >Emitted(22, 53) Source(6, 45) + SourceIndex(4) +8 >Emitted(22, 55) Source(6, 47) + SourceIndex(4) +9 >Emitted(22, 63) Source(6, 52) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +function secondsecond_part2Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +function thirdthird_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACP1C,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(37, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(37, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(37, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(37, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(37, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(37, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(37, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(37, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(37, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(38, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(38, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(38, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(39, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(39, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(39, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(39, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(40, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(40, 2) Source(3, 2) + SourceIndex(2) +--- +>>>function firstfirst_part3Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +1->Emitted(41, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(41, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(41, 32) Source(4, 32) + SourceIndex(2) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(42, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(42, 16) Source(4, 47) + SourceIndex(2) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(43, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(43, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(43, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(43, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(43, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(43, 49) Source(4, 47) + SourceIndex(2) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(44, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(44, 31) Source(4, 47) + SourceIndex(2) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(46, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(46, 2) Source(4, 52) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >firstfirst_part3Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(47, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(47, 23) Source(5, 23) + SourceIndex(2) +3 >Emitted(47, 47) Source(5, 27) + SourceIndex(2) +4 >Emitted(47, 48) Source(5, 28) + SourceIndex(2) +5 >Emitted(47, 50) Source(5, 30) + SourceIndex(2) +6 >Emitted(47, 52) Source(5, 32) + SourceIndex(2) +7 >Emitted(47, 54) Source(5, 34) + SourceIndex(2) +8 >Emitted(47, 56) Source(5, 36) + SourceIndex(2) +9 >Emitted(47, 58) Source(5, 38) + SourceIndex(2) +10>Emitted(47, 59) Source(5, 39) + SourceIndex(2) +11>Emitted(47, 62) Source(5, 41) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(48, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(48, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(48, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(48, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(49, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(49, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(49, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(50, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(50, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(50, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(51, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(51, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(51, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(51, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(51, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(51, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(51, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(51, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(52, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(52, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(53, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(53, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(53, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(53, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(54, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(54, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(54, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(54, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(54, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(54, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(54, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(55, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(55, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(55, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(56, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(56, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(56, 38) Source(13, 48) + SourceIndex(3) +4 >Emitted(56, 40) Source(13, 9) + SourceIndex(3) +5 >Emitted(56, 48) Source(13, 10) + SourceIndex(3) +6 >Emitted(56, 50) Source(13, 12) + SourceIndex(3) +7 >Emitted(56, 74) Source(13, 48) + SourceIndex(3) +8 >Emitted(56, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(57, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(57, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(58, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(59, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(60, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(60, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(61, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(61, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(61, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(62, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(62, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(62, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(62, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(62, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(62, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(62, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(62, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(63, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(63, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(64, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(64, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(65, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(65, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(65, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(65, 6) Source(5, 2) + SourceIndex(4) +--- +>>>function secondsecond_part2Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part2Spread +1->Emitted(66, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(66, 10) Source(7, 10) + SourceIndex(4) +3 >Emitted(66, 34) Source(7, 34) + SourceIndex(4) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(67, 5) Source(7, 35) + SourceIndex(4) +2 >Emitted(67, 16) Source(7, 49) + SourceIndex(4) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(68, 10) Source(7, 35) + SourceIndex(4) +2 >Emitted(68, 20) Source(7, 49) + SourceIndex(4) +3 >Emitted(68, 22) Source(7, 35) + SourceIndex(4) +4 >Emitted(68, 43) Source(7, 49) + SourceIndex(4) +5 >Emitted(68, 45) Source(7, 35) + SourceIndex(4) +6 >Emitted(68, 49) Source(7, 49) + SourceIndex(4) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(69, 9) Source(7, 35) + SourceIndex(4) +2 >Emitted(69, 31) Source(7, 49) + SourceIndex(4) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(71, 1) Source(7, 53) + SourceIndex(4) +2 >Emitted(71, 2) Source(7, 54) + SourceIndex(4) +--- +>>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >secondsecond_part2Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(72, 1) Source(8, 1) + SourceIndex(4) +2 >Emitted(72, 25) Source(8, 25) + SourceIndex(4) +3 >Emitted(72, 49) Source(8, 29) + SourceIndex(4) +4 >Emitted(72, 50) Source(8, 30) + SourceIndex(4) +5 >Emitted(72, 52) Source(8, 32) + SourceIndex(4) +6 >Emitted(72, 54) Source(8, 34) + SourceIndex(4) +7 >Emitted(72, 56) Source(8, 36) + SourceIndex(4) +8 >Emitted(72, 58) Source(8, 38) + SourceIndex(4) +9 >Emitted(72, 60) Source(8, 40) + SourceIndex(4) +10>Emitted(72, 61) Source(8, 41) + SourceIndex(4) +11>Emitted(72, 64) Source(8, 43) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1 > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(73, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(73, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(73, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(73, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(73, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(73, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(73, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(73, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(74, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(74, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(74, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(74, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(74, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(74, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(75, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(75, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(75, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(76, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(76, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(76, 38) Source(4, 48) + SourceIndex(5) +4 >Emitted(76, 40) Source(4, 9) + SourceIndex(5) +5 >Emitted(76, 48) Source(4, 10) + SourceIndex(5) +6 >Emitted(76, 50) Source(4, 12) + SourceIndex(5) +7 >Emitted(76, 74) Source(4, 48) + SourceIndex(5) +8 >Emitted(76, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(77, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(77, 2) Source(5, 2) + SourceIndex(5) +--- +>>>function thirdthird_part1Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > thirdthird_part1Spread +1->Emitted(78, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(78, 10) Source(6, 10) + SourceIndex(5) +3 >Emitted(78, 32) Source(6, 32) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(79, 5) Source(6, 33) + SourceIndex(5) +2 >Emitted(79, 16) Source(6, 47) + SourceIndex(5) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(80, 10) Source(6, 33) + SourceIndex(5) +2 >Emitted(80, 20) Source(6, 47) + SourceIndex(5) +3 >Emitted(80, 22) Source(6, 33) + SourceIndex(5) +4 >Emitted(80, 43) Source(6, 47) + SourceIndex(5) +5 >Emitted(80, 45) Source(6, 33) + SourceIndex(5) +6 >Emitted(80, 49) Source(6, 47) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(81, 9) Source(6, 33) + SourceIndex(5) +2 >Emitted(81, 31) Source(6, 47) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(83, 1) Source(6, 51) + SourceIndex(5) +2 >Emitted(83, 2) Source(6, 52) + SourceIndex(5) +--- +>>>thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >thirdthird_part1Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(84, 1) Source(7, 1) + SourceIndex(5) +2 >Emitted(84, 23) Source(7, 23) + SourceIndex(5) +3 >Emitted(84, 47) Source(7, 27) + SourceIndex(5) +4 >Emitted(84, 48) Source(7, 28) + SourceIndex(5) +5 >Emitted(84, 50) Source(7, 30) + SourceIndex(5) +6 >Emitted(84, 52) Source(7, 32) + SourceIndex(5) +7 >Emitted(84, 54) Source(7, 34) + SourceIndex(5) +8 >Emitted(84, 56) Source(7, 36) + SourceIndex(5) +9 >Emitted(84, 58) Source(7, 38) + SourceIndex(5) +10>Emitted(84, 59) Source(7, 39) + SourceIndex(5) +11>Emitted(84, 62) Source(7, 41) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 1180, + "end": 1619, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 1180, + "end": 1619, + "kind": "text" + } + ] + }, + { + "pos": 1619, + "end": 2239, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 1619, + "end": 2239, + "kind": "text" + } + ] + }, + { + "pos": 2239, + "end": 2604, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 272, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 272, + "kind": "text" + } + ] + }, + { + "pos": 272, + "end": 491, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 272, + "end": 491, + "kind": "text" + } + ] + }, + { + "pos": 491, + "end": 625, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1178):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +prepend: (1180-1619):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1180-1619) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); + +---------------------------------------------------------------------- +prepend: (1619-2239):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1619-2239) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +function secondsecond_part2Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); + +---------------------------------------------------------------------- +text: (2239-2604) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +function thirdthird_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-272):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-272) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare function firstfirst_part3Spread(...b: number[]): void; + +---------------------------------------------------------------------- +prepend: (272-491):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (272-491) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +declare function secondsecond_part2Spread(...b: number[]): void; + +---------------------------------------------------------------------- +text: (491-625) +declare var c: C; +declare function forthirdthird_part1Rest(): void; +declare function thirdthird_part1Spread(...b: number[]): void; + +====================================================================== + +//// [/src/third/third_part1.ts] +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} +function thirdthird_part1Spread(...b: number[]) { } +thirdthird_part1Spread(...[10, 20, 30]); + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js new file mode 100644 index 00000000000..cda562a0911 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js @@ -0,0 +1,2545 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare function secondsecond_part1Spread(...b: number[]): void; +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACZrD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +>>>declare function secondsecond_part1Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part1Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 18) Source(13, 10) + SourceIndex(0) +3 >Emitted(5, 42) Source(13, 34) + SourceIndex(0) +4 >Emitted(5, 43) Source(13, 35) + SourceIndex(0) +5 >Emitted(5, 46) Source(13, 38) + SourceIndex(0) +6 >Emitted(5, 49) Source(13, 41) + SourceIndex(0) +7 >Emitted(5, 55) Source(13, 47) + SourceIndex(0) +8 >Emitted(5, 57) Source(13, 49) + SourceIndex(0) +9 >Emitted(5, 65) Source(13, 54) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function secondsecond_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(21, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(21, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(21, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(21, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(22, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(22, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(22, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(23, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(23, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(23, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(24, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(24, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(24, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(24, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(24, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(24, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(24, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(24, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(25, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(25, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(26, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(26, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(26, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(26, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(27, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(27, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(27, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(27, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(27, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(27, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(27, 19) Source(11, 2) + SourceIndex(0) +--- +>>>function secondsecond_part1Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part1Spread +1->Emitted(28, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(28, 10) Source(13, 10) + SourceIndex(0) +3 >Emitted(28, 34) Source(13, 34) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(29, 5) Source(13, 35) + SourceIndex(0) +2 >Emitted(29, 16) Source(13, 49) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(30, 10) Source(13, 35) + SourceIndex(0) +2 >Emitted(30, 20) Source(13, 49) + SourceIndex(0) +3 >Emitted(30, 22) Source(13, 35) + SourceIndex(0) +4 >Emitted(30, 43) Source(13, 49) + SourceIndex(0) +5 >Emitted(30, 45) Source(13, 35) + SourceIndex(0) +6 >Emitted(30, 49) Source(13, 49) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(31, 9) Source(13, 35) + SourceIndex(0) +2 >Emitted(31, 31) Source(13, 49) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(33, 1) Source(13, 53) + SourceIndex(0) +2 >Emitted(33, 2) Source(13, 54) + SourceIndex(0) +--- +>>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >secondsecond_part1Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(34, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(34, 25) Source(14, 25) + SourceIndex(0) +3 >Emitted(34, 49) Source(14, 29) + SourceIndex(0) +4 >Emitted(34, 50) Source(14, 30) + SourceIndex(0) +5 >Emitted(34, 52) Source(14, 32) + SourceIndex(0) +6 >Emitted(34, 54) Source(14, 34) + SourceIndex(0) +7 >Emitted(34, 56) Source(14, 36) + SourceIndex(0) +8 >Emitted(34, 58) Source(14, 38) + SourceIndex(0) +9 >Emitted(34, 60) Source(14, 40) + SourceIndex(0) +10>Emitted(34, 61) Source(14, 41) + SourceIndex(0) +11>Emitted(34, 64) Source(14, 43) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(35, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(36, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(37, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(37, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(38, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(38, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(38, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(39, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(39, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(39, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(39, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(39, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(39, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(39, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(39, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(40, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(40, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(41, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(41, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(42, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(42, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(42, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(42, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 678, + "end": 1179, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 166, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +text: (678-1179) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function secondsecond_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-166) +declare namespace N { +} +declare namespace N { +} +declare function secondsecond_part1Spread(...b: number[]): void; +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 729, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (502-729) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + +function secondsecond_part1Spread(...b: number[]) { } +secondsecond_part1Spread(...[10, 20, 30]); + +//// [/src/second/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [ + ] +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare function secondsecond_part1Spread(...b: number[]): void; +declare class C { + doSomething(): void; +} +declare var c: C; +declare function forthirdthird_part1Rest(): void; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACZrD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function secondsecond_part1Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part1Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(14, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(14, 18) Source(13, 10) + SourceIndex(2) +3 >Emitted(14, 42) Source(13, 34) + SourceIndex(2) +4 >Emitted(14, 43) Source(13, 35) + SourceIndex(2) +5 >Emitted(14, 46) Source(13, 38) + SourceIndex(2) +6 >Emitted(14, 49) Source(13, 41) + SourceIndex(2) +7 >Emitted(14, 55) Source(13, 47) + SourceIndex(2) +8 >Emitted(14, 57) Source(13, 49) + SourceIndex(2) +9 >Emitted(14, 65) Source(13, 54) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) +--- +>>>declare function forthirdthird_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + >c.doSomething(); + > +2 >function +3 > forthirdthird_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function secondsecond_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0) +4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0) +5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0) +6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0) +7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0) +8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(37, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(37, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(37, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(37, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(37, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(37, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(37, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(37, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(37, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(38, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(38, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(38, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(39, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(39, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(39, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(39, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(40, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(40, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(41, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(41, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(41, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(41, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(42, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(42, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(42, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(43, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(43, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(43, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(44, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(44, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(44, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(44, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(44, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(44, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(44, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(44, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(45, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(45, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(46, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(46, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(46, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(46, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(47, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(47, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(47, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(47, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(47, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(47, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(47, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function secondsecond_part1Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part1Spread +1->Emitted(48, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(48, 10) Source(13, 10) + SourceIndex(3) +3 >Emitted(48, 34) Source(13, 34) + SourceIndex(3) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(49, 5) Source(13, 35) + SourceIndex(3) +2 >Emitted(49, 16) Source(13, 49) + SourceIndex(3) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(50, 10) Source(13, 35) + SourceIndex(3) +2 >Emitted(50, 20) Source(13, 49) + SourceIndex(3) +3 >Emitted(50, 22) Source(13, 35) + SourceIndex(3) +4 >Emitted(50, 43) Source(13, 49) + SourceIndex(3) +5 >Emitted(50, 45) Source(13, 35) + SourceIndex(3) +6 >Emitted(50, 49) Source(13, 49) + SourceIndex(3) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(51, 9) Source(13, 35) + SourceIndex(3) +2 >Emitted(51, 31) Source(13, 49) + SourceIndex(3) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(53, 1) Source(13, 53) + SourceIndex(3) +2 >Emitted(53, 2) Source(13, 54) + SourceIndex(3) +--- +>>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >secondsecond_part1Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(54, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(54, 25) Source(14, 25) + SourceIndex(3) +3 >Emitted(54, 49) Source(14, 29) + SourceIndex(3) +4 >Emitted(54, 50) Source(14, 30) + SourceIndex(3) +5 >Emitted(54, 52) Source(14, 32) + SourceIndex(3) +6 >Emitted(54, 54) Source(14, 34) + SourceIndex(3) +7 >Emitted(54, 56) Source(14, 36) + SourceIndex(3) +8 >Emitted(54, 58) Source(14, 38) + SourceIndex(3) +9 >Emitted(54, 60) Source(14, 40) + SourceIndex(3) +10>Emitted(54, 61) Source(14, 41) + SourceIndex(3) +11>Emitted(54, 64) Source(14, 43) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(55, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(56, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(57, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(57, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(58, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(58, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(58, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(59, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(59, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(59, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(59, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(59, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(59, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(59, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(59, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(60, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(60, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(61, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(61, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(62, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(62, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(62, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(62, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(63, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(63, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(63, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(63, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(63, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(63, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(63, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(63, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(64, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(64, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(64, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(64, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(64, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(64, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(65, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(65, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(65, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(66, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(66, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(66, 38) Source(4, 48) + SourceIndex(5) +4 >Emitted(66, 40) Source(4, 9) + SourceIndex(5) +5 >Emitted(66, 48) Source(4, 10) + SourceIndex(5) +6 >Emitted(66, 50) Source(4, 12) + SourceIndex(5) +7 >Emitted(66, 74) Source(4, 48) + SourceIndex(5) +8 >Emitted(66, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(67, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(67, 2) Source(5, 2) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1178, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 1180, + "end": 1407, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 1180, + "end": 1407, + "kind": "text" + } + ] + }, + { + "pos": 1407, + "end": 1908, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 1407, + "end": 1908, + "kind": "text" + } + ] + }, + { + "pos": 1908, + "end": 2061, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 374, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 374, + "kind": "text" + } + ] + }, + { + "pos": 374, + "end": 444, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1178):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +prepend: (1180-1407):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1180-1407) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (1407-1908):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1407-1908) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function secondsecond_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1908-2061) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-374):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-374) +declare namespace N { +} +declare namespace N { +} +declare function secondsecond_part1Spread(...b: number[]): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (374-444) +declare var c: C; +declare function forthirdthird_part1Rest(): void; + +====================================================================== + +//// [/src/third/third_part1.ts] +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js new file mode 100644 index 00000000000..b77ccd7276f --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js @@ -0,0 +1,2158 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >"myPrologue" + > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(2, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(6, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(6, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(6, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(12, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1->"myPrologue2"; + > +2 >class +3 > C +1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(2, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(2, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(3, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(6, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +"use strict"; +"myPrologue"; +"myPrologue2"; +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(6, 11) + SourceIndex(0) +3 >Emitted(4, 6) Source(6, 12) + SourceIndex(0) +4 >Emitted(4, 7) Source(12, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 12) Source(6, 11) + SourceIndex(0) +3 >Emitted(5, 13) Source(6, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(6, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(6, 14) Source(7, 14) + SourceIndex(0) +3 >Emitted(6, 15) Source(7, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(7, 9) Source(8, 9) + SourceIndex(0) +2 >Emitted(7, 16) Source(8, 16) + SourceIndex(0) +3 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) +4 >Emitted(7, 20) Source(8, 20) + SourceIndex(0) +5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(7, 30) Source(8, 30) + SourceIndex(0) +7 >Emitted(7, 31) Source(8, 31) + SourceIndex(0) +8 >Emitted(7, 32) Source(8, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(8, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(8, 6) Source(9, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(9, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(9, 6) Source(11, 6) + SourceIndex(0) +3 >Emitted(9, 8) Source(11, 8) + SourceIndex(0) +4 >Emitted(9, 9) Source(11, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(10, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(10, 2) Source(12, 2) + SourceIndex(0) +3 >Emitted(10, 4) Source(6, 11) + SourceIndex(0) +4 >Emitted(10, 5) Source(6, 12) + SourceIndex(0) +5 >Emitted(10, 10) Source(6, 11) + SourceIndex(0) +6 >Emitted(10, 11) Source(6, 12) + SourceIndex(0) +7 >Emitted(10, 19) Source(12, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(12, 5) Source(2, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(13, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(13, 6) Source(6, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(14, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(14, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(14, 31) Source(3, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(15, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(15, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(15, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(15, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(15, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(15, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(15, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(15, 43) Source(4, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(16, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(16, 6) Source(5, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(17, 13) Source(6, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(18, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(18, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(18, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 46, + "end": 331, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + }, + { + "file": 1, + "text": "\"myPrologue2\";", + "directives": [ + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue2" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +text: (46-331) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +"myPrologue"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 140, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +text: (30-140) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +"myPrologue" +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/first/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [ + ] +} + + +//// [/src/second/second_part1.ts] +"myPrologue" +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + + +//// [/src/second/second_part2.ts] +"myPrologue2"; +class C { + doSomething() { + console.log("something got done"); + } +} + + +//// [/src/second/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [ + ] +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >"myPrologue" + > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1->"myPrologue2"; + > +2 >class +3 > C +1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue3"; + >"myPrologue"; + > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(3, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(3, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(3, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(3, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(3, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue"; +"myPrologue2"; +"myPrologue3"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >"myPrologue3" +3 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) +3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1->"myPrologue" + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(5, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) +3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) +4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) +5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) +6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) +7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) +8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) +9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) +3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) +3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) +4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(11, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(11, 5) Source(6, 11) + SourceIndex(5) +3 >Emitted(11, 6) Source(6, 12) + SourceIndex(5) +4 >Emitted(11, 7) Source(12, 2) + SourceIndex(5) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(12, 12) Source(6, 11) + SourceIndex(5) +3 >Emitted(12, 13) Source(6, 12) + SourceIndex(5) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(13, 5) Source(7, 5) + SourceIndex(5) +2 >Emitted(13, 14) Source(7, 14) + SourceIndex(5) +3 >Emitted(13, 15) Source(7, 15) + SourceIndex(5) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(14, 9) Source(8, 9) + SourceIndex(5) +2 >Emitted(14, 16) Source(8, 16) + SourceIndex(5) +3 >Emitted(14, 17) Source(8, 17) + SourceIndex(5) +4 >Emitted(14, 20) Source(8, 20) + SourceIndex(5) +5 >Emitted(14, 21) Source(8, 21) + SourceIndex(5) +6 >Emitted(14, 30) Source(8, 30) + SourceIndex(5) +7 >Emitted(14, 31) Source(8, 31) + SourceIndex(5) +8 >Emitted(14, 32) Source(8, 32) + SourceIndex(5) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(15, 5) Source(9, 5) + SourceIndex(5) +2 >Emitted(15, 6) Source(9, 6) + SourceIndex(5) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(16, 5) Source(11, 5) + SourceIndex(5) +2 >Emitted(16, 6) Source(11, 6) + SourceIndex(5) +3 >Emitted(16, 8) Source(11, 8) + SourceIndex(5) +4 >Emitted(16, 9) Source(11, 9) + SourceIndex(5) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(17, 1) Source(12, 1) + SourceIndex(5) +2 >Emitted(17, 2) Source(12, 2) + SourceIndex(5) +3 >Emitted(17, 4) Source(6, 11) + SourceIndex(5) +4 >Emitted(17, 5) Source(6, 12) + SourceIndex(5) +5 >Emitted(17, 10) Source(6, 11) + SourceIndex(5) +6 >Emitted(17, 11) Source(6, 12) + SourceIndex(5) +7 >Emitted(17, 19) Source(12, 2) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(18, 1) Source(2, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(19, 5) Source(2, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(20, 6) Source(6, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(21, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(21, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(21, 31) Source(3, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(22, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(22, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(22, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(22, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(22, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(22, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(22, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(22, 43) Source(4, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(24, 13) Source(6, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(25, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(25, 6) Source(6, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1->"myPrologue3"; + >"myPrologue"; + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(26, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(26, 5) Source(3, 5) + SourceIndex(2) +3 >Emitted(26, 6) Source(3, 6) + SourceIndex(2) +4 >Emitted(26, 9) Source(3, 9) + SourceIndex(2) +5 >Emitted(26, 13) Source(3, 13) + SourceIndex(2) +6 >Emitted(26, 14) Source(3, 14) + SourceIndex(2) +7 >Emitted(26, 16) Source(3, 16) + SourceIndex(2) +8 >Emitted(26, 17) Source(3, 17) + SourceIndex(2) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(27, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(27, 2) Source(4, 2) + SourceIndex(2) +3 >Emitted(27, 3) Source(4, 3) + SourceIndex(2) +4 >Emitted(27, 14) Source(4, 14) + SourceIndex(2) +5 >Emitted(27, 16) Source(4, 16) + SourceIndex(2) +6 >Emitted(27, 17) Source(4, 17) + SourceIndex(2) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 62, + "end": 172, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 62, + "end": 172, + "kind": "text" + } + ] + }, + { + "pos": 172, + "end": 457, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 172, + "end": 457, + "kind": "text" + } + ] + }, + { + "pos": 457, + "end": 493, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue3\";\n\"myPrologue\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue3" + } + }, + { + "pos": 14, + "end": 28, + "expression": { + "pos": 14, + "end": 27, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +prepend: (62-172):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (62-172) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (172-457):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (172-457) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (457-493) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + +//// [/src/third/third_part1.ts] +"myPrologue3"; +"myPrologue"; +var c = new C(); +c.doSomething(); + + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js new file mode 100644 index 00000000000..476c1c92004 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js @@ -0,0 +1,1995 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >"myPrologue" + > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(2, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(6, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(6, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(6, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(12, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1->"myPrologue2"; + > +2 >class +3 > C +1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(2, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(2, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(3, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(6, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +"myPrologue"; +"myPrologue2"; +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ADKd,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(2, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(2, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(2, 15) Source(1, 15) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 11) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 12) + SourceIndex(0) +4 >Emitted(3, 7) Source(12, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 12) Source(6, 11) + SourceIndex(0) +3 >Emitted(4, 13) Source(6, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(5, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(5, 14) Source(7, 14) + SourceIndex(0) +3 >Emitted(5, 15) Source(7, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(6, 9) Source(8, 9) + SourceIndex(0) +2 >Emitted(6, 16) Source(8, 16) + SourceIndex(0) +3 >Emitted(6, 17) Source(8, 17) + SourceIndex(0) +4 >Emitted(6, 20) Source(8, 20) + SourceIndex(0) +5 >Emitted(6, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(6, 30) Source(8, 30) + SourceIndex(0) +7 >Emitted(6, 31) Source(8, 31) + SourceIndex(0) +8 >Emitted(6, 32) Source(8, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(9, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(8, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(8, 6) Source(11, 6) + SourceIndex(0) +3 >Emitted(8, 8) Source(11, 8) + SourceIndex(0) +4 >Emitted(8, 9) Source(11, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(9, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(9, 2) Source(12, 2) + SourceIndex(0) +3 >Emitted(9, 4) Source(6, 11) + SourceIndex(0) +4 >Emitted(9, 5) Source(6, 12) + SourceIndex(0) +5 >Emitted(9, 10) Source(6, 11) + SourceIndex(0) +6 >Emitted(9, 11) Source(6, 12) + SourceIndex(0) +7 >Emitted(9, 19) Source(12, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(10, 1) Source(2, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(11, 5) Source(2, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(12, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(12, 6) Source(6, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(13, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(13, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(13, 31) Source(3, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(14, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(14, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(14, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(14, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(14, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(14, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(14, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(14, 43) Source(4, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(15, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(15, 6) Source(5, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(16, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(16, 13) Source(6, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(17, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(17, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(17, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(17, 6) Source(6, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 15, + "end": 29, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 31, + "end": 316, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + }, + { + "file": 1, + "text": "\"myPrologue2\";", + "directives": [ + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue2" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prologue: (0-13):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (15-29):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +text: (31-316) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 125, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +text: (15-125) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [ + ] +} + + +//// [/src/second/second_part1.ts] +"myPrologue" +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + + +//// [/src/second/second_part2.ts] +"myPrologue2"; +class C { + doSomething() { + console.log("something got done"); + } +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >"myPrologue" + > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1->"myPrologue2"; + > +2 >class +3 > C +1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue"; +"myPrologue2"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../second/second_part1.ts","../../../second/second_part2.ts","../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../second/second_part1.ts,../../../second/second_part2.ts,../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1->interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(4, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(4, 6) Source(5, 8) + SourceIndex(2) +4 >Emitted(4, 9) Source(5, 11) + SourceIndex(2) +5 >Emitted(4, 23) Source(5, 25) + SourceIndex(2) +6 >Emitted(4, 24) Source(5, 26) + SourceIndex(2) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(5, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(5, 8) Source(11, 8) + SourceIndex(2) +3 >Emitted(5, 9) Source(11, 9) + SourceIndex(2) +4 >Emitted(5, 12) Source(11, 12) + SourceIndex(2) +5 >Emitted(5, 13) Source(11, 13) + SourceIndex(2) +6 >Emitted(5, 14) Source(11, 14) + SourceIndex(2) +7 >Emitted(5, 15) Source(11, 15) + SourceIndex(2) +8 >Emitted(5, 16) Source(11, 16) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(6, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(6, 8) Source(1, 8) + SourceIndex(3) +3 >Emitted(6, 9) Source(1, 9) + SourceIndex(3) +4 >Emitted(6, 12) Source(1, 12) + SourceIndex(3) +5 >Emitted(6, 13) Source(1, 13) + SourceIndex(3) +6 >Emitted(6, 14) Source(1, 14) + SourceIndex(3) +7 >Emitted(6, 16) Source(1, 16) + SourceIndex(3) +8 >Emitted(6, 17) Source(1, 17) + SourceIndex(3) +9 >Emitted(6, 18) Source(1, 18) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(7, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(7, 10) Source(1, 10) + SourceIndex(4) +3 >Emitted(7, 11) Source(1, 11) + SourceIndex(4) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(8, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(8, 12) Source(2, 12) + SourceIndex(4) +3 >Emitted(8, 28) Source(2, 28) + SourceIndex(4) +4 >Emitted(8, 29) Source(2, 29) + SourceIndex(4) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(9, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(9, 2) Source(3, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(10, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(10, 5) Source(6, 11) + SourceIndex(0) +3 >Emitted(10, 6) Source(6, 12) + SourceIndex(0) +4 >Emitted(10, 7) Source(12, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(11, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(11, 12) Source(6, 11) + SourceIndex(0) +3 >Emitted(11, 13) Source(6, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(12, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(12, 14) Source(7, 14) + SourceIndex(0) +3 >Emitted(12, 15) Source(7, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(13, 9) Source(8, 9) + SourceIndex(0) +2 >Emitted(13, 16) Source(8, 16) + SourceIndex(0) +3 >Emitted(13, 17) Source(8, 17) + SourceIndex(0) +4 >Emitted(13, 20) Source(8, 20) + SourceIndex(0) +5 >Emitted(13, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(13, 30) Source(8, 30) + SourceIndex(0) +7 >Emitted(13, 31) Source(8, 31) + SourceIndex(0) +8 >Emitted(13, 32) Source(8, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(14, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(14, 6) Source(9, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(15, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(15, 6) Source(11, 6) + SourceIndex(0) +3 >Emitted(15, 8) Source(11, 8) + SourceIndex(0) +4 >Emitted(15, 9) Source(11, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(16, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(12, 2) + SourceIndex(0) +3 >Emitted(16, 4) Source(6, 11) + SourceIndex(0) +4 >Emitted(16, 5) Source(6, 12) + SourceIndex(0) +5 >Emitted(16, 10) Source(6, 11) + SourceIndex(0) +6 >Emitted(16, 11) Source(6, 12) + SourceIndex(0) +7 >Emitted(16, 19) Source(12, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(17, 1) Source(2, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(18, 5) Source(2, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(19, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(19, 6) Source(6, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(20, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(20, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(20, 31) Source(3, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(21, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(21, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(21, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(21, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(21, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(21, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(21, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(21, 43) Source(4, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(22, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(22, 6) Source(5, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(23, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(23, 13) Source(6, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(24, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(24, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(24, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(24, 6) Source(6, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(25, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(25, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(25, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(25, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(25, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(25, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(25, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(26, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(26, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(26, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(26, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(26, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(26, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 46, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 46, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 441, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 156, + "end": 441, + "kind": "text" + } + ] + }, + { + "pos": 441, + "end": 477, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (46-156):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (46-156) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (156-441):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (156-441) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (441-477) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js new file mode 100644 index 00000000000..a7dbc818b70 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js @@ -0,0 +1,1806 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/2/second-output.d.ts] +#!someshebang second second_part1 +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>#!someshebang second second_part1 +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >#!someshebang second second_part1 + > +2 >namespace +3 > N +4 > +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 19) Source(2, 11) + SourceIndex(0) +3 >Emitted(2, 20) Source(2, 12) + SourceIndex(0) +4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 19) Source(6, 11) + SourceIndex(0) +3 >Emitted(4, 20) Source(6, 12) + SourceIndex(0) +4 >Emitted(4, 21) Source(6, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(5, 2) Source(12, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +#!someshebang second second_part1 +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>#!someshebang second second_part1 +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >#!someshebang second second_part1 + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 11) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 12) + SourceIndex(0) +4 >Emitted(2, 7) Source(12, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 12) Source(6, 11) + SourceIndex(0) +3 >Emitted(3, 13) Source(6, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(4, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(4, 14) Source(7, 14) + SourceIndex(0) +3 >Emitted(4, 15) Source(7, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(5, 9) Source(8, 9) + SourceIndex(0) +2 >Emitted(5, 16) Source(8, 16) + SourceIndex(0) +3 >Emitted(5, 17) Source(8, 17) + SourceIndex(0) +4 >Emitted(5, 20) Source(8, 20) + SourceIndex(0) +5 >Emitted(5, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(5, 30) Source(8, 30) + SourceIndex(0) +7 >Emitted(5, 31) Source(8, 31) + SourceIndex(0) +8 >Emitted(5, 32) Source(8, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(9, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(7, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(11, 6) + SourceIndex(0) +3 >Emitted(7, 8) Source(11, 8) + SourceIndex(0) +4 >Emitted(7, 9) Source(11, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(12, 2) + SourceIndex(0) +3 >Emitted(8, 4) Source(6, 11) + SourceIndex(0) +4 >Emitted(8, 5) Source(6, 12) + SourceIndex(0) +5 >Emitted(8, 10) Source(6, 11) + SourceIndex(0) +6 >Emitted(8, 11) Source(6, 12) + SourceIndex(0) +7 >Emitted(8, 19) Source(12, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 35, + "end": 320, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 35, + "end": 135, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (35-320) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (35-135) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +#!someshebang first first_PART1 +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >#!someshebang first first_PART1 + > +2 >interface +3 > TheFirst +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(5, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +#!someshebang first first_PART1 +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >#!someshebang first first_PART1 + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1->#!someshebang first first_part2 + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 33, + "end": 143, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 33, + "end": 190, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (33-143) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (33-190) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +#!someshebang first first_PART1 +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/first/first_part2.ts] +#!someshebang first first_part2 +console.log(f()); + + +//// [/src/second/second_part1.ts] +#!someshebang second second_part1 +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +#!someshebang first first_PART1 +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >#!someshebang first first_PART1 + > +2 >interface +3 > TheFirst +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(5, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >#!someshebang second second_part1 + > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(2, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(6, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1->#!someshebang third third_part1 + > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(2, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(2, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(2, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(2, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(2, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(2, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +#!someshebang first first_PART1 +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >#!someshebang first first_PART1 + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1->#!someshebang first first_part2 + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->#!someshebang second second_part1 + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(6, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(12, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(6, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(6, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(7, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(7, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(7, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(8, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(8, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(8, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(8, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(8, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(8, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(8, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(8, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(9, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(11, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(11, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(11, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(11, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(6, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(6, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(6, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(6, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(12, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1->#!someshebang third third_part1 + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(2, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(2, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(2, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(2, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(3, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(3, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(3, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(3, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(3, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 33, + "end": 143, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 33, + "end": 143, + "kind": "text" + } + ] + }, + { + "pos": 143, + "end": 428, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 143, + "end": 428, + "kind": "text" + } + ] + }, + { + "pos": 428, + "end": 464, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 33, + "end": 190, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 33, + "end": 190, + "kind": "text" + } + ] + }, + { + "pos": 190, + "end": 290, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 190, + "end": 290, + "kind": "text" + } + ] + }, + { + "pos": 290, + "end": 309, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (33-143):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (33-143) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (143-428):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (143-428) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (428-464) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (33-190):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (33-190) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (190-290):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (190-290) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (290-309) +declare var c: C; + +====================================================================== + +//// [/src/third/third_part1.ts] +#!someshebang third third_part1 +var c = new C(); +c.doSomething(); + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js new file mode 100644 index 00000000000..42351781f92 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js @@ -0,0 +1,1748 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +#!someshebang second second_part1 +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AACA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>#!someshebang second second_part1 +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >#!someshebang second second_part1 + > +2 >namespace +3 > N +4 > +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 19) Source(2, 11) + SourceIndex(0) +3 >Emitted(2, 20) Source(2, 12) + SourceIndex(0) +4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 19) Source(6, 11) + SourceIndex(0) +3 >Emitted(4, 20) Source(6, 12) + SourceIndex(0) +4 >Emitted(4, 21) Source(6, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(5, 2) Source(12, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +#!someshebang second second_part1 +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AAKA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>#!someshebang second second_part1 +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >#!someshebang second second_part1 + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 11) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 12) + SourceIndex(0) +4 >Emitted(2, 7) Source(12, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 12) Source(6, 11) + SourceIndex(0) +3 >Emitted(3, 13) Source(6, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(4, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(4, 14) Source(7, 14) + SourceIndex(0) +3 >Emitted(4, 15) Source(7, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(5, 9) Source(8, 9) + SourceIndex(0) +2 >Emitted(5, 16) Source(8, 16) + SourceIndex(0) +3 >Emitted(5, 17) Source(8, 17) + SourceIndex(0) +4 >Emitted(5, 20) Source(8, 20) + SourceIndex(0) +5 >Emitted(5, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(5, 30) Source(8, 30) + SourceIndex(0) +7 >Emitted(5, 31) Source(8, 31) + SourceIndex(0) +8 >Emitted(5, 32) Source(8, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(9, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(7, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(11, 6) + SourceIndex(0) +3 >Emitted(7, 8) Source(11, 8) + SourceIndex(0) +4 >Emitted(7, 9) Source(11, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(12, 2) + SourceIndex(0) +3 >Emitted(8, 4) Source(6, 11) + SourceIndex(0) +4 >Emitted(8, 5) Source(6, 12) + SourceIndex(0) +5 >Emitted(8, 10) Source(6, 11) + SourceIndex(0) +6 >Emitted(8, 11) Source(6, 12) + SourceIndex(0) +7 >Emitted(8, 19) Source(12, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 35, + "end": 320, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 35, + "end": 135, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (35-320) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (35-135) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/second/second_part1.ts] +#!someshebang second second_part1 +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +#!someshebang second second_part1 +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang second second_part1 +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(2, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(5, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(5, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(5, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(5, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(5, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(6, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(6, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(6, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(7, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(7, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(7, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >#!someshebang second second_part1 + > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(2, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(6, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +#!someshebang second second_part1 +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang second second_part1 +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->#!someshebang second second_part1 + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(6, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(12, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(6, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(6, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(7, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(7, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(7, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(8, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(8, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(8, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(8, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(8, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(8, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(8, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(8, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(9, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(11, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(11, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(11, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(11, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(6, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(6, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(6, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(6, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(12, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 35, + "end": 145, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 35, + "end": 145, + "kind": "text" + } + ] + }, + { + "pos": 145, + "end": 430, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 145, + "end": 430, + "kind": "text" + } + ] + }, + { + "pos": 430, + "end": 466, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 35, + "end": 192, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 35, + "end": 192, + "kind": "text" + } + ] + }, + { + "pos": 192, + "end": 292, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 192, + "end": 292, + "kind": "text" + } + ] + }, + { + "pos": 292, + "end": 311, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (35-145):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (35-145) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (145-430):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (145-430) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (430-466) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (35-192):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (35-192) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (192-292):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (192-292) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (292-311) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js new file mode 100644 index 00000000000..515d0e260d8 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js @@ -0,0 +1,1894 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +"use strict"; +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(2, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(4, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(4, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(5, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(5, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(5, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(5, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(5, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(5, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(5, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(5, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(7, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(7, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(8, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(8, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(8, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(8, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(8, 19) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 300, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +text: (15-300) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 125, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +text: (15-125) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [ + ] +} + + +//// [/src/second/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [ + ] +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 125, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 15, + "end": 125, + "kind": "text" + } + ] + }, + { + "pos": 125, + "end": 410, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 125, + "end": 410, + "kind": "text" + } + ] + }, + { + "pos": 410, + "end": 446, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prepend: (15-125):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (15-125) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (125-410):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (125-410) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (410-446) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js new file mode 100644 index 00000000000..4c801cc2b1e --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js @@ -0,0 +1,1780 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +"use strict"; +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(2, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(4, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(4, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(5, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(5, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(5, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(5, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(5, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(5, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(5, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(5, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(7, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(7, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(8, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(8, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(8, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(8, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(8, 19) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 300, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +text: (15-300) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/second/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [ + ] +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 125, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 15, + "end": 125, + "kind": "text" + } + ] + }, + { + "pos": 125, + "end": 410, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 125, + "end": 410, + "kind": "text" + } + ] + }, + { + "pos": 410, + "end": 446, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prepend: (15-125):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (15-125) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (125-410):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (125-410) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (410-446) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-baseline-when-internal-is-inside-another-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-baseline-when-internal-is-inside-another-internal.js new file mode 100644 index 00000000000..295d79ddce8 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-baseline-when-internal-is-inside-another-internal.js @@ -0,0 +1,2252 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:00:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:00:00 PM - Building project '/src/first/tsconfig.json'... + +4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:00:00 PM - Building project '/src/second/tsconfig.json'... + +4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:00:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 285, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-285) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +declare namespace ts { + interface SourceFileLike { + readonly text: string; + lineMap?: ReadonlyArray; + getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; + } + interface RedirectInfo { + readonly redirectTarget: SourceFile; + readonly unredirected: SourceFile; + } + interface SourceFile { + someProp: string; + } +} +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,kBAAU,EAAE,CAAC;IAKT,UAAiB,cAAc;QAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAEhC,6BAA6B,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;KAC9F;IAGD,UAAiB,YAAY;QAEzB,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC;QAKpC,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC;KACrC;IAGD,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEnCD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>declare namespace ts { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > +2 >namespace +3 > ts +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +4 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) +--- +>>> interface SourceFileLike { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^-> +1->{ + > /* @internal */ + > /** + > * Subset of properties from SourceFile that are used in multiple utility functions + > */ + > +2 > export interface +3 > SourceFileLike +1->Emitted(2, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(2, 15) Source(6, 22) + SourceIndex(0) +3 >Emitted(2, 29) Source(6, 36) + SourceIndex(0) +--- +>>> readonly text: string; +1->^^^^^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^ +6 > ^^^^^^ +7 > ^ +8 > ^^^^^^^^^^^-> +1-> { + > +2 > readonly +3 > +4 > text +5 > : +6 > string +7 > ; +1->Emitted(3, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(3, 17) Source(7, 17) + SourceIndex(0) +3 >Emitted(3, 18) Source(7, 18) + SourceIndex(0) +4 >Emitted(3, 22) Source(7, 22) + SourceIndex(0) +5 >Emitted(3, 24) Source(7, 24) + SourceIndex(0) +6 >Emitted(3, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(3, 31) Source(7, 31) + SourceIndex(0) +--- +>>> lineMap?: ReadonlyArray; +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^ +8 > ^ +9 > ^ +10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 > lineMap +3 > ? +4 > : +5 > ReadonlyArray +6 > < +7 > number +8 > > +9 > ; +1->Emitted(4, 9) Source(8, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(8, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(8, 17) + SourceIndex(0) +4 >Emitted(4, 19) Source(8, 19) + SourceIndex(0) +5 >Emitted(4, 32) Source(8, 32) + SourceIndex(0) +6 >Emitted(4, 33) Source(8, 33) + SourceIndex(0) +7 >Emitted(4, 39) Source(8, 39) + SourceIndex(0) +8 >Emitted(4, 40) Source(8, 40) + SourceIndex(0) +9 >Emitted(4, 41) Source(8, 41) + SourceIndex(0) +--- +>>> getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +5 > ^^^^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^^ +10> ^^ +11> ^^^^^^ +12> ^^ +13> ^^^^^^^^^^ +14> ^ +15> ^^ +16> ^^^^ +17> ^^^ +18> ^^^^^^ +19> ^ +1-> + > /* @internal */ + > +2 > getPositionOfLineAndCharacter +3 > ? +4 > ( +5 > line +6 > : +7 > number +8 > , +9 > character +10> : +11> number +12> , +13> allowEdits +14> ? +15> : +16> true +17> ): +18> number +19> ; +1->Emitted(5, 9) Source(10, 9) + SourceIndex(0) +2 >Emitted(5, 38) Source(10, 38) + SourceIndex(0) +3 >Emitted(5, 39) Source(10, 39) + SourceIndex(0) +4 >Emitted(5, 40) Source(10, 40) + SourceIndex(0) +5 >Emitted(5, 44) Source(10, 44) + SourceIndex(0) +6 >Emitted(5, 46) Source(10, 46) + SourceIndex(0) +7 >Emitted(5, 52) Source(10, 52) + SourceIndex(0) +8 >Emitted(5, 54) Source(10, 54) + SourceIndex(0) +9 >Emitted(5, 63) Source(10, 63) + SourceIndex(0) +10>Emitted(5, 65) Source(10, 65) + SourceIndex(0) +11>Emitted(5, 71) Source(10, 71) + SourceIndex(0) +12>Emitted(5, 73) Source(10, 73) + SourceIndex(0) +13>Emitted(5, 83) Source(10, 83) + SourceIndex(0) +14>Emitted(5, 84) Source(10, 84) + SourceIndex(0) +15>Emitted(5, 86) Source(10, 86) + SourceIndex(0) +16>Emitted(5, 90) Source(10, 90) + SourceIndex(0) +17>Emitted(5, 93) Source(10, 93) + SourceIndex(0) +18>Emitted(5, 99) Source(10, 99) + SourceIndex(0) +19>Emitted(5, 100) Source(10, 100) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > } +1 >Emitted(6, 6) Source(11, 6) + SourceIndex(0) +--- +>>> interface RedirectInfo { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1-> + > + > /* @internal */ + > +2 > export interface +3 > RedirectInfo +1->Emitted(7, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(7, 15) Source(14, 22) + SourceIndex(0) +3 >Emitted(7, 27) Source(14, 34) + SourceIndex(0) +--- +>>> readonly redirectTarget: SourceFile; +1->^^^^^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^ +7 > ^ +1-> { + > /** Source file this redirects to. */ + > +2 > readonly +3 > +4 > redirectTarget +5 > : +6 > SourceFile +7 > ; +1->Emitted(8, 9) Source(16, 9) + SourceIndex(0) +2 >Emitted(8, 17) Source(16, 17) + SourceIndex(0) +3 >Emitted(8, 18) Source(16, 18) + SourceIndex(0) +4 >Emitted(8, 32) Source(16, 32) + SourceIndex(0) +5 >Emitted(8, 34) Source(16, 34) + SourceIndex(0) +6 >Emitted(8, 44) Source(16, 44) + SourceIndex(0) +7 >Emitted(8, 45) Source(16, 45) + SourceIndex(0) +--- +>>> readonly unredirected: SourceFile; +1 >^^^^^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^^^^^ +7 > ^ +1 > + > /** + > * Source file for the duplicate package. This will not be used by the Program, + > * but we need to keep this around so we can watch for changes in underlying. + > */ + > +2 > readonly +3 > +4 > unredirected +5 > : +6 > SourceFile +7 > ; +1 >Emitted(9, 9) Source(21, 9) + SourceIndex(0) +2 >Emitted(9, 17) Source(21, 17) + SourceIndex(0) +3 >Emitted(9, 18) Source(21, 18) + SourceIndex(0) +4 >Emitted(9, 30) Source(21, 30) + SourceIndex(0) +5 >Emitted(9, 32) Source(21, 32) + SourceIndex(0) +6 >Emitted(9, 42) Source(21, 42) + SourceIndex(0) +7 >Emitted(9, 43) Source(21, 43) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > } +1 >Emitted(10, 6) Source(22, 6) + SourceIndex(0) +--- +>>> interface SourceFile { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^ +4 > ^^-> +1-> + > + > // Source files are declarations when they are external modules. + > +2 > export interface +3 > SourceFile +1->Emitted(11, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(11, 15) Source(25, 22) + SourceIndex(0) +3 >Emitted(11, 25) Source(25, 32) + SourceIndex(0) +--- +>>> someProp: string; +1->^^^^^^^^ +2 > ^^^^^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +1-> { + > +2 > someProp +3 > : +4 > string +5 > ; +1->Emitted(12, 9) Source(26, 9) + SourceIndex(0) +2 >Emitted(12, 17) Source(26, 17) + SourceIndex(0) +3 >Emitted(12, 19) Source(26, 19) + SourceIndex(0) +4 >Emitted(12, 25) Source(26, 25) + SourceIndex(0) +5 >Emitted(12, 26) Source(26, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + > } +1 >Emitted(13, 6) Source(27, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(14, 2) Source(28, 2) + SourceIndex(0) +--- +>>>interface TheFirst { +1-> +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1-> +2 >interface +3 > TheFirst +1->Emitted(15, 1) Source(28, 2) + SourceIndex(0) +2 >Emitted(15, 11) Source(28, 12) + SourceIndex(0) +3 >Emitted(15, 19) Source(28, 20) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(16, 5) Source(29, 5) + SourceIndex(0) +2 >Emitted(16, 9) Source(29, 9) + SourceIndex(0) +3 >Emitted(16, 11) Source(29, 11) + SourceIndex(0) +4 >Emitted(16, 14) Source(29, 14) + SourceIndex(0) +5 >Emitted(16, 15) Source(29, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(17, 2) Source(30, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(18, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(18, 9) Source(32, 1) + SourceIndex(0) +3 >Emitted(18, 15) Source(32, 7) + SourceIndex(0) +4 >Emitted(18, 16) Source(32, 8) + SourceIndex(0) +5 >Emitted(18, 33) Source(32, 25) + SourceIndex(0) +6 >Emitted(18, 34) Source(32, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(19, 1) Source(34, 1) + SourceIndex(0) +2 >Emitted(19, 11) Source(34, 11) + SourceIndex(0) +3 >Emitted(19, 28) Source(34, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(20, 5) Source(35, 5) + SourceIndex(0) +2 >Emitted(20, 9) Source(35, 9) + SourceIndex(0) +3 >Emitted(20, 11) Source(35, 11) + SourceIndex(0) +4 >Emitted(20, 14) Source(35, 14) + SourceIndex(0) +5 >Emitted(20, 15) Source(35, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(21, 2) Source(36, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(22, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(22, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(22, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(22, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >namespace ts { + > /* @internal */ + > /** + > * Subset of properties from SourceFile that are used in multiple utility functions + > */ + > export interface SourceFileLike { + > readonly text: string; + > lineMap?: ReadonlyArray; + > /* @internal */ + > getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; + > } + > + > /* @internal */ + > export interface RedirectInfo { + > /** Source file this redirects to. */ + > readonly redirectTarget: SourceFile; + > /** + > * Source file for the duplicate package. This will not be used by the Program, + > * but we need to keep this around so we can watch for changes in underlying. + > */ + > readonly unredirected: SourceFile; + > } + > + > // Source files are declarations when they are external modules. + > export interface SourceFile { + > someProp: string; + > } + >}interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(32, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(32, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(32, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(32, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(32, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(38, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(38, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(38, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(38, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(38, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(38, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(38, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(38, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 24, + "kind": "text" + }, + { + "pos": 24, + "end": 363, + "kind": "internal" + }, + { + "pos": 365, + "end": 587, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-24) +declare namespace ts { + +---------------------------------------------------------------------- +internal: (24-363) + interface SourceFileLike { + readonly text: string; + lineMap?: ReadonlyArray; + getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; + } + interface RedirectInfo { + readonly redirectTarget: SourceFile; + readonly unredirected: SourceFile; + } +---------------------------------------------------------------------- +text: (365-587) + interface SourceFile { + someProp: string; + } +} +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +namespace ts { + /* @internal */ + /** + * Subset of properties from SourceFile that are used in multiple utility functions + */ + export interface SourceFileLike { + readonly text: string; + lineMap?: ReadonlyArray; + /* @internal */ + getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; + } + + /* @internal */ + export interface RedirectInfo { + /** Source file this redirects to. */ + readonly redirectTarget: SourceFile; + /** + * Source file for the duplicate package. This will not be used by the Program, + * but we need to keep this around so we can watch for changes in underlying. + */ + readonly unredirected: SourceFile; + } + + // Source files are declarations when they are external modules. + export interface SourceFile { + someProp: string; + } +}interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare namespace ts { + interface SourceFile { + someProp: string; + } +} +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,kBAAU,EAAE,CAAC;IAwBT,UAAiB,UAAU;QACvB,QAAQ,EAAE,MAAM,CAAC;KACpB;CACJ;AAAA,UAAU,QAAQ;IACf,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACnCD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare namespace ts { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^ +4 > ^ +5 > ^^^^^^-> +1 > +2 >namespace +3 > ts +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +4 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) +--- +>>> interface SourceFile { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^ +4 > ^^-> +1->{ + > /* @internal */ + > /** + > * Subset of properties from SourceFile that are used in multiple utility functions + > */ + > export interface SourceFileLike { + > readonly text: string; + > lineMap?: ReadonlyArray; + > /* @internal */ + > getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; + > } + > + > /* @internal */ + > export interface RedirectInfo { + > /** Source file this redirects to. */ + > readonly redirectTarget: SourceFile; + > /** + > * Source file for the duplicate package. This will not be used by the Program, + > * but we need to keep this around so we can watch for changes in underlying. + > */ + > readonly unredirected: SourceFile; + > } + > + > // Source files are declarations when they are external modules. + > +2 > export interface +3 > SourceFile +1->Emitted(2, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(2, 15) Source(25, 22) + SourceIndex(0) +3 >Emitted(2, 25) Source(25, 32) + SourceIndex(0) +--- +>>> someProp: string; +1->^^^^^^^^ +2 > ^^^^^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +1-> { + > +2 > someProp +3 > : +4 > string +5 > ; +1->Emitted(3, 9) Source(26, 9) + SourceIndex(0) +2 >Emitted(3, 17) Source(26, 17) + SourceIndex(0) +3 >Emitted(3, 19) Source(26, 19) + SourceIndex(0) +4 >Emitted(3, 25) Source(26, 25) + SourceIndex(0) +5 >Emitted(3, 26) Source(26, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > + > } +1 >Emitted(4, 6) Source(27, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(5, 2) Source(28, 2) + SourceIndex(0) +--- +>>>interface TheFirst { +1-> +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1-> +2 >interface +3 > TheFirst +1->Emitted(6, 1) Source(28, 2) + SourceIndex(0) +2 >Emitted(6, 11) Source(28, 12) + SourceIndex(0) +3 >Emitted(6, 19) Source(28, 20) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(7, 5) Source(29, 5) + SourceIndex(0) +2 >Emitted(7, 9) Source(29, 9) + SourceIndex(0) +3 >Emitted(7, 11) Source(29, 11) + SourceIndex(0) +4 >Emitted(7, 14) Source(29, 14) + SourceIndex(0) +5 >Emitted(7, 15) Source(29, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(30, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(9, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(9, 9) Source(32, 1) + SourceIndex(0) +3 >Emitted(9, 15) Source(32, 7) + SourceIndex(0) +4 >Emitted(9, 16) Source(32, 8) + SourceIndex(0) +5 >Emitted(9, 33) Source(32, 25) + SourceIndex(0) +6 >Emitted(9, 34) Source(32, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(10, 1) Source(34, 1) + SourceIndex(0) +2 >Emitted(10, 11) Source(34, 11) + SourceIndex(0) +3 >Emitted(10, 28) Source(34, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(11, 5) Source(35, 5) + SourceIndex(0) +2 >Emitted(11, 9) Source(35, 9) + SourceIndex(0) +3 >Emitted(11, 11) Source(35, 11) + SourceIndex(0) +4 >Emitted(11, 14) Source(35, 14) + SourceIndex(0) +5 >Emitted(11, 15) Source(35, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(12, 2) Source(36, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(13, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(13, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(13, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(13, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(14, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(14, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(14, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(15, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(16, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(16, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(16, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(17, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(21, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(21, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(21, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(21, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(21, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(21, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AA+BA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACrCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >namespace ts { + > /* @internal */ + > /** + > * Subset of properties from SourceFile that are used in multiple utility functions + > */ + > export interface SourceFileLike { + > readonly text: string; + > lineMap?: ReadonlyArray; + > /* @internal */ + > getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; + > } + > + > /* @internal */ + > export interface RedirectInfo { + > /** Source file this redirects to. */ + > readonly redirectTarget: SourceFile; + > /** + > * Source file for the duplicate package. This will not be used by the Program, + > * but we need to keep this around so we can watch for changes in underlying. + > */ + > readonly unredirected: SourceFile; + > } + > + > // Source files are declarations when they are external modules. + > export interface SourceFile { + > someProp: string; + > } + >}interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(32, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(32, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(32, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(32, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(32, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(38, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(38, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(38, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(38, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(38, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(38, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(38, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(38, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 395, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 395, + "kind": "text" + } + ] + }, + { + "pos": 395, + "end": 431, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 246, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 246, + "kind": "text" + } + ] + }, + { + "pos": 246, + "end": 346, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 246, + "end": 346, + "kind": "text" + } + ] + }, + { + "pos": 346, + "end": 365, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-395):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-395) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (395-431) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-246):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-246) +declare namespace ts { + interface SourceFile { + someProp: string; + } +} +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (246-346):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (246-346) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (346-365) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, +"stripInternal": true + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js new file mode 100644 index 00000000000..5a785fe0232 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,5566 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { + constructor(); + prop: string; + method(): void; + c: number; +} +declare namespace normalN { + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +} +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/**@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 16) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 26) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 34) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(15, 5) Source(15, 20) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 24) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 26) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 32) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 33) + SourceIndex(2) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^-> +1-> + > /**@internal*/ +2 > method +1->Emitted(16, 5) Source(16, 20) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 26) + SourceIndex(2) +--- +>>> c: number; +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /**@internal*/ get +2 > c +3 > () { return 10; } + > /**@internal*/ set c(val: +4 > number +1->Emitted(17, 5) Source(17, 24) + SourceIndex(2) +2 >Emitted(17, 6) Source(17, 25) + SourceIndex(2) +3 >Emitted(17, 8) Source(18, 31) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 37) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /**@internal*/ +2 > export class +3 > C +1 >Emitted(20, 5) Source(21, 20) + SourceIndex(2) +2 >Emitted(20, 11) Source(21, 33) + SourceIndex(2) +3 >Emitted(20, 12) Source(21, 34) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(21, 6) Source(21, 38) + SourceIndex(2) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(22, 5) Source(22, 20) + SourceIndex(2) +2 >Emitted(22, 14) Source(22, 36) + SourceIndex(2) +3 >Emitted(22, 17) Source(22, 39) + SourceIndex(2) +4 >Emitted(22, 26) Source(22, 44) + SourceIndex(2) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(23, 5) Source(23, 20) + SourceIndex(2) +2 >Emitted(23, 15) Source(23, 37) + SourceIndex(2) +3 >Emitted(23, 28) Source(23, 50) + SourceIndex(2) +4 >Emitted(23, 29) Source(23, 51) + SourceIndex(2) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(24, 9) Source(23, 53) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 66) + SourceIndex(2) +3 >Emitted(24, 16) Source(23, 67) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(25, 10) Source(23, 70) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(26, 6) Source(23, 72) + SourceIndex(2) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /**@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(27, 5) Source(24, 20) + SourceIndex(2) +2 >Emitted(27, 15) Source(24, 37) + SourceIndex(2) +3 >Emitted(27, 24) Source(24, 46) + SourceIndex(2) +4 >Emitted(27, 25) Source(24, 47) + SourceIndex(2) +5 >Emitted(27, 34) Source(24, 56) + SourceIndex(2) +6 >Emitted(27, 35) Source(24, 57) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(28, 9) Source(24, 59) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 72) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 81) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(29, 10) Source(24, 84) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(30, 6) Source(24, 86) + SourceIndex(2) +--- +>>> export import someImport = someNamespace.C; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /**@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(31, 5) Source(25, 20) + SourceIndex(2) +2 >Emitted(31, 11) Source(25, 26) + SourceIndex(2) +3 >Emitted(31, 19) Source(25, 34) + SourceIndex(2) +4 >Emitted(31, 29) Source(25, 44) + SourceIndex(2) +5 >Emitted(31, 32) Source(25, 47) + SourceIndex(2) +6 >Emitted(31, 45) Source(25, 60) + SourceIndex(2) +7 >Emitted(31, 46) Source(25, 61) + SourceIndex(2) +8 >Emitted(31, 47) Source(25, 62) + SourceIndex(2) +9 >Emitted(31, 48) Source(25, 63) + SourceIndex(2) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /**@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(32, 5) Source(26, 20) + SourceIndex(2) +2 >Emitted(32, 10) Source(26, 32) + SourceIndex(2) +3 >Emitted(32, 22) Source(26, 44) + SourceIndex(2) +4 >Emitted(32, 25) Source(26, 47) + SourceIndex(2) +5 >Emitted(32, 34) Source(26, 56) + SourceIndex(2) +6 >Emitted(32, 35) Source(26, 57) + SourceIndex(2) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /**@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(33, 5) Source(27, 27) + SourceIndex(2) +2 >Emitted(33, 11) Source(27, 33) + SourceIndex(2) +3 >Emitted(33, 24) Source(27, 46) + SourceIndex(2) +4 >Emitted(33, 29) Source(27, 51) + SourceIndex(2) +5 >Emitted(33, 30) Source(27, 52) + SourceIndex(2) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(34, 5) Source(28, 20) + SourceIndex(2) +2 >Emitted(34, 10) Source(28, 32) + SourceIndex(2) +3 >Emitted(34, 22) Source(28, 44) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(35, 9) Source(28, 47) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 48) + SourceIndex(2) +3 >Emitted(35, 14) Source(28, 48) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(36, 9) Source(28, 50) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 51) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 51) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(37, 9) Source(28, 53) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 54) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 54) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(38, 6) Source(28, 56) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/**@internal*/ +2 >class +3 > internalC +1->Emitted(40, 1) Source(30, 16) + SourceIndex(2) +2 >Emitted(40, 15) Source(30, 22) + SourceIndex(2) +3 >Emitted(40, 24) Source(30, 31) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(41, 2) Source(30, 34) + SourceIndex(2) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(42, 1) Source(31, 16) + SourceIndex(2) +2 >Emitted(42, 18) Source(31, 25) + SourceIndex(2) +3 >Emitted(42, 29) Source(31, 36) + SourceIndex(2) +4 >Emitted(42, 38) Source(31, 41) + SourceIndex(2) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(43, 1) Source(32, 16) + SourceIndex(2) +2 >Emitted(43, 19) Source(32, 26) + SourceIndex(2) +3 >Emitted(43, 36) Source(32, 43) + SourceIndex(2) +4 >Emitted(43, 37) Source(32, 44) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(44, 5) Source(32, 46) + SourceIndex(2) +2 >Emitted(44, 11) Source(32, 59) + SourceIndex(2) +3 >Emitted(44, 20) Source(32, 68) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(45, 6) Source(32, 71) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(46, 2) Source(32, 73) + SourceIndex(2) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/**@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(47, 1) Source(33, 16) + SourceIndex(2) +2 >Emitted(47, 19) Source(33, 26) + SourceIndex(2) +3 >Emitted(47, 32) Source(33, 39) + SourceIndex(2) +4 >Emitted(47, 33) Source(33, 40) + SourceIndex(2) +5 >Emitted(47, 42) Source(33, 49) + SourceIndex(2) +6 >Emitted(47, 43) Source(33, 50) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(48, 5) Source(33, 52) + SourceIndex(2) +2 >Emitted(48, 11) Source(33, 65) + SourceIndex(2) +3 >Emitted(48, 20) Source(33, 74) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(49, 6) Source(33, 77) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(50, 2) Source(33, 79) + SourceIndex(2) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(51, 1) Source(34, 16) + SourceIndex(2) +2 >Emitted(51, 8) Source(34, 23) + SourceIndex(2) +3 >Emitted(51, 22) Source(34, 37) + SourceIndex(2) +4 >Emitted(51, 25) Source(34, 40) + SourceIndex(2) +5 >Emitted(51, 42) Source(34, 57) + SourceIndex(2) +6 >Emitted(51, 43) Source(34, 58) + SourceIndex(2) +7 >Emitted(51, 52) Source(34, 67) + SourceIndex(2) +8 >Emitted(51, 53) Source(34, 68) + SourceIndex(2) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/**@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(52, 1) Source(35, 16) + SourceIndex(2) +2 >Emitted(52, 14) Source(35, 21) + SourceIndex(2) +3 >Emitted(52, 26) Source(35, 33) + SourceIndex(2) +4 >Emitted(52, 29) Source(35, 36) + SourceIndex(2) +5 >Emitted(52, 38) Source(35, 45) + SourceIndex(2) +6 >Emitted(52, 39) Source(35, 46) + SourceIndex(2) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/**@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(53, 1) Source(36, 16) + SourceIndex(2) +2 >Emitted(53, 9) Source(36, 16) + SourceIndex(2) +3 >Emitted(53, 15) Source(36, 22) + SourceIndex(2) +4 >Emitted(53, 28) Source(36, 35) + SourceIndex(2) +5 >Emitted(53, 33) Source(36, 40) + SourceIndex(2) +6 >Emitted(53, 34) Source(36, 41) + SourceIndex(2) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/**@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(54, 1) Source(37, 16) + SourceIndex(2) +2 >Emitted(54, 14) Source(37, 21) + SourceIndex(2) +3 >Emitted(54, 26) Source(37, 33) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(55, 5) Source(37, 36) + SourceIndex(2) +2 >Emitted(55, 6) Source(37, 37) + SourceIndex(2) +3 >Emitted(55, 10) Source(37, 37) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 5) Source(37, 39) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 40) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 40) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(57, 5) Source(37, 42) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 43) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 43) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(58, 2) Source(37, 45) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /**@internal*/ +1->Emitted(15, 5) Source(14, 20) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(16, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /**@internal*/ prop: string; + > /**@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(17, 5) Source(16, 20) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 26) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 20) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 31) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /**@internal*/ +2 > get +3 > c +1->Emitted(18, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(19, 14) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 30) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 37) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 39) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 40) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 41) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 42) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /**@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(20, 14) Source(18, 20) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 26) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 37) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 41) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /**@internal*/ +1->Emitted(28, 5) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(34, 5) Source(22, 20) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 36) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 39) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 43) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(35, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(36, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 37) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 50) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 37) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 46) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(46, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /**@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(57, 5) Source(25, 34) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 44) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 47) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 60) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 61) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 62) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 63) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(58, 5) Source(27, 33) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 46) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 49) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 51) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 52) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 32) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(60, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/**@internal*/ +1->Emitted(66, 1) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(71, 1) Source(31, 16) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 25) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 36) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 40) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 41) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 26) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 43) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(73, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 26) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 39) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(82, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(93, 1) Source(34, 16) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 23) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 37) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 40) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 57) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 58) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 67) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 68) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/**@internal*/ type internalType = internalC; + >/**@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(94, 1) Source(36, 16) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 22) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 35) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 38) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 40) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 41) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 21) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(96, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3162, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 308, + "kind": "internal" + }, + { + "pos": 310, + "end": 342, + "kind": "text" + }, + { + "pos": 342, + "end": 734, + "kind": "internal" + }, + { + "pos": 736, + "end": 739, + "kind": "text" + }, + { + "pos": 739, + "end": 1152, + "kind": "internal" + }, + { + "pos": 1154, + "end": 1202, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (110-3162) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-308) + constructor(); + prop: string; + method(): void; + c: number; +---------------------------------------------------------------------- +text: (310-342) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (342-734) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (736-739) +} + +---------------------------------------------------------------------- +internal: (739-1152) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1154-1202) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/**@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 16) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 26) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 34) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + +class normalC { + /**@internal*/ constructor() { } + /**@internal*/ prop: string; + /**@internal*/ method() { } + /**@internal*/ get c() { return 10; } + /**@internal*/ set c(val: number) { } +} +namespace normalN { + /**@internal*/ export class C { } + /**@internal*/ export function foo() {} + /**@internal*/ export namespace someNamespace { export class C {} } + /**@internal*/ export namespace someOther.something { export class someClass {} } + /**@internal*/ export import someImport = someNamespace.C; + /**@internal*/ export type internalType = internalC; + /**@internal*/ export const internalConst = 10; + /**@internal*/ export enum internalEnum { a, b, c } +} +/**@internal*/ class internalC {} +/**@internal*/ function internalfoo() {} +/**@internal*/ namespace internalNamespace { export class someClass {} } +/**@internal*/ namespace internalOther.something { export class someClass {} } +/**@internal*/ import internalImport = internalNamespace.someClass; +/**@internal*/ type internalType = internalC; +/**@internal*/ const internalConst = 10; +/**@internal*/ enum internalEnum { a, b, c } + +//// [/src/second/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [ + { "path": "../first", "prepend": true } + ] +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare const s = "Hello, world"; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + >} +1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /**@internal*/ +1->Emitted(15, 5) Source(14, 20) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(16, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /**@internal*/ prop: string; + > /**@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(17, 5) Source(16, 20) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 26) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 20) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 31) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /**@internal*/ +2 > get +3 > c +1->Emitted(18, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(19, 14) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 30) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 37) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 39) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 40) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 41) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 42) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /**@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(20, 14) Source(18, 20) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 26) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 37) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 41) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /**@internal*/ +1->Emitted(28, 5) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(34, 5) Source(22, 20) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 36) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 39) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 43) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(35, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(36, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 37) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 50) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 37) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 46) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(46, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /**@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(57, 5) Source(25, 34) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 44) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 47) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 60) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 61) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 62) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 63) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(58, 5) Source(27, 33) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 46) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 49) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 51) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 52) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 32) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(60, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/**@internal*/ +1->Emitted(66, 1) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(71, 1) Source(31, 16) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 25) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 36) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 40) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 41) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 26) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 43) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(73, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 26) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 39) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(82, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(93, 1) Source(34, 16) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 23) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 37) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 40) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 57) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 58) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 67) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 68) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/**@internal*/ type internalType = internalC; + >/**@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(94, 1) Source(36, 16) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 22) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 35) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 38) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 40) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 41) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 21) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(96, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3162, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3162, + "kind": "text" + } + ] + }, + { + "pos": 3162, + "end": 3198, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3162):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3162) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3162-3198) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-276) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, +"stripInternal": true + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js new file mode 100644 index 00000000000..6e60def2dc2 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js @@ -0,0 +1,5257 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class normalC { + constructor(); + prop: string; + method(): void; + c: number; +} +declare namespace normalN { + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +} +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 15) Source(13, 7) + SourceIndex(0) +3 >Emitted(5, 22) Source(13, 14) + SourceIndex(0) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(7, 5) Source(15, 20) + SourceIndex(0) +2 >Emitted(7, 9) Source(15, 24) + SourceIndex(0) +3 >Emitted(7, 11) Source(15, 26) + SourceIndex(0) +4 >Emitted(7, 17) Source(15, 32) + SourceIndex(0) +5 >Emitted(7, 18) Source(15, 33) + SourceIndex(0) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^-> +1-> + > /**@internal*/ +2 > method +1->Emitted(8, 5) Source(16, 20) + SourceIndex(0) +2 >Emitted(8, 11) Source(16, 26) + SourceIndex(0) +--- +>>> c: number; +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /**@internal*/ get +2 > c +3 > () { return 10; } + > /**@internal*/ set c(val: +4 > number +1->Emitted(9, 5) Source(17, 24) + SourceIndex(0) +2 >Emitted(9, 6) Source(17, 25) + SourceIndex(0) +3 >Emitted(9, 8) Source(18, 31) + SourceIndex(0) +4 >Emitted(9, 14) Source(18, 37) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(10, 2) Source(19, 2) + SourceIndex(0) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(11, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(11, 19) Source(20, 11) + SourceIndex(0) +3 >Emitted(11, 26) Source(20, 18) + SourceIndex(0) +4 >Emitted(11, 27) Source(20, 19) + SourceIndex(0) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /**@internal*/ +2 > export class +3 > C +1 >Emitted(12, 5) Source(21, 20) + SourceIndex(0) +2 >Emitted(12, 11) Source(21, 33) + SourceIndex(0) +3 >Emitted(12, 12) Source(21, 34) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(13, 6) Source(21, 38) + SourceIndex(0) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(14, 5) Source(22, 20) + SourceIndex(0) +2 >Emitted(14, 14) Source(22, 36) + SourceIndex(0) +3 >Emitted(14, 17) Source(22, 39) + SourceIndex(0) +4 >Emitted(14, 26) Source(22, 44) + SourceIndex(0) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(15, 5) Source(23, 20) + SourceIndex(0) +2 >Emitted(15, 15) Source(23, 37) + SourceIndex(0) +3 >Emitted(15, 28) Source(23, 50) + SourceIndex(0) +4 >Emitted(15, 29) Source(23, 51) + SourceIndex(0) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(16, 9) Source(23, 53) + SourceIndex(0) +2 >Emitted(16, 15) Source(23, 66) + SourceIndex(0) +3 >Emitted(16, 16) Source(23, 67) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(17, 10) Source(23, 70) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(18, 6) Source(23, 72) + SourceIndex(0) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /**@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(19, 5) Source(24, 20) + SourceIndex(0) +2 >Emitted(19, 15) Source(24, 37) + SourceIndex(0) +3 >Emitted(19, 24) Source(24, 46) + SourceIndex(0) +4 >Emitted(19, 25) Source(24, 47) + SourceIndex(0) +5 >Emitted(19, 34) Source(24, 56) + SourceIndex(0) +6 >Emitted(19, 35) Source(24, 57) + SourceIndex(0) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(20, 9) Source(24, 59) + SourceIndex(0) +2 >Emitted(20, 15) Source(24, 72) + SourceIndex(0) +3 >Emitted(20, 24) Source(24, 81) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(21, 10) Source(24, 84) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(22, 6) Source(24, 86) + SourceIndex(0) +--- +>>> export import someImport = someNamespace.C; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /**@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(23, 5) Source(25, 20) + SourceIndex(0) +2 >Emitted(23, 11) Source(25, 26) + SourceIndex(0) +3 >Emitted(23, 19) Source(25, 34) + SourceIndex(0) +4 >Emitted(23, 29) Source(25, 44) + SourceIndex(0) +5 >Emitted(23, 32) Source(25, 47) + SourceIndex(0) +6 >Emitted(23, 45) Source(25, 60) + SourceIndex(0) +7 >Emitted(23, 46) Source(25, 61) + SourceIndex(0) +8 >Emitted(23, 47) Source(25, 62) + SourceIndex(0) +9 >Emitted(23, 48) Source(25, 63) + SourceIndex(0) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /**@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(24, 5) Source(26, 20) + SourceIndex(0) +2 >Emitted(24, 10) Source(26, 32) + SourceIndex(0) +3 >Emitted(24, 22) Source(26, 44) + SourceIndex(0) +4 >Emitted(24, 25) Source(26, 47) + SourceIndex(0) +5 >Emitted(24, 34) Source(26, 56) + SourceIndex(0) +6 >Emitted(24, 35) Source(26, 57) + SourceIndex(0) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /**@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(25, 5) Source(27, 27) + SourceIndex(0) +2 >Emitted(25, 11) Source(27, 33) + SourceIndex(0) +3 >Emitted(25, 24) Source(27, 46) + SourceIndex(0) +4 >Emitted(25, 29) Source(27, 51) + SourceIndex(0) +5 >Emitted(25, 30) Source(27, 52) + SourceIndex(0) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(26, 5) Source(28, 20) + SourceIndex(0) +2 >Emitted(26, 10) Source(28, 32) + SourceIndex(0) +3 >Emitted(26, 22) Source(28, 44) + SourceIndex(0) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(27, 9) Source(28, 47) + SourceIndex(0) +2 >Emitted(27, 10) Source(28, 48) + SourceIndex(0) +3 >Emitted(27, 14) Source(28, 48) + SourceIndex(0) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(28, 9) Source(28, 50) + SourceIndex(0) +2 >Emitted(28, 10) Source(28, 51) + SourceIndex(0) +3 >Emitted(28, 14) Source(28, 51) + SourceIndex(0) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(29, 9) Source(28, 53) + SourceIndex(0) +2 >Emitted(29, 10) Source(28, 54) + SourceIndex(0) +3 >Emitted(29, 14) Source(28, 54) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(30, 6) Source(28, 56) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(31, 2) Source(29, 2) + SourceIndex(0) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/**@internal*/ +2 >class +3 > internalC +1->Emitted(32, 1) Source(30, 16) + SourceIndex(0) +2 >Emitted(32, 15) Source(30, 22) + SourceIndex(0) +3 >Emitted(32, 24) Source(30, 31) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(33, 2) Source(30, 34) + SourceIndex(0) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(34, 1) Source(31, 16) + SourceIndex(0) +2 >Emitted(34, 18) Source(31, 25) + SourceIndex(0) +3 >Emitted(34, 29) Source(31, 36) + SourceIndex(0) +4 >Emitted(34, 38) Source(31, 41) + SourceIndex(0) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(35, 1) Source(32, 16) + SourceIndex(0) +2 >Emitted(35, 19) Source(32, 26) + SourceIndex(0) +3 >Emitted(35, 36) Source(32, 43) + SourceIndex(0) +4 >Emitted(35, 37) Source(32, 44) + SourceIndex(0) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(36, 5) Source(32, 46) + SourceIndex(0) +2 >Emitted(36, 11) Source(32, 59) + SourceIndex(0) +3 >Emitted(36, 20) Source(32, 68) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(37, 6) Source(32, 71) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(38, 2) Source(32, 73) + SourceIndex(0) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/**@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(39, 1) Source(33, 16) + SourceIndex(0) +2 >Emitted(39, 19) Source(33, 26) + SourceIndex(0) +3 >Emitted(39, 32) Source(33, 39) + SourceIndex(0) +4 >Emitted(39, 33) Source(33, 40) + SourceIndex(0) +5 >Emitted(39, 42) Source(33, 49) + SourceIndex(0) +6 >Emitted(39, 43) Source(33, 50) + SourceIndex(0) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(40, 5) Source(33, 52) + SourceIndex(0) +2 >Emitted(40, 11) Source(33, 65) + SourceIndex(0) +3 >Emitted(40, 20) Source(33, 74) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(41, 6) Source(33, 77) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(42, 2) Source(33, 79) + SourceIndex(0) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(43, 1) Source(34, 16) + SourceIndex(0) +2 >Emitted(43, 8) Source(34, 23) + SourceIndex(0) +3 >Emitted(43, 22) Source(34, 37) + SourceIndex(0) +4 >Emitted(43, 25) Source(34, 40) + SourceIndex(0) +5 >Emitted(43, 42) Source(34, 57) + SourceIndex(0) +6 >Emitted(43, 43) Source(34, 58) + SourceIndex(0) +7 >Emitted(43, 52) Source(34, 67) + SourceIndex(0) +8 >Emitted(43, 53) Source(34, 68) + SourceIndex(0) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/**@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(44, 1) Source(35, 16) + SourceIndex(0) +2 >Emitted(44, 14) Source(35, 21) + SourceIndex(0) +3 >Emitted(44, 26) Source(35, 33) + SourceIndex(0) +4 >Emitted(44, 29) Source(35, 36) + SourceIndex(0) +5 >Emitted(44, 38) Source(35, 45) + SourceIndex(0) +6 >Emitted(44, 39) Source(35, 46) + SourceIndex(0) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/**@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(45, 1) Source(36, 16) + SourceIndex(0) +2 >Emitted(45, 9) Source(36, 16) + SourceIndex(0) +3 >Emitted(45, 15) Source(36, 22) + SourceIndex(0) +4 >Emitted(45, 28) Source(36, 35) + SourceIndex(0) +5 >Emitted(45, 33) Source(36, 40) + SourceIndex(0) +6 >Emitted(45, 34) Source(36, 41) + SourceIndex(0) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/**@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(46, 1) Source(37, 16) + SourceIndex(0) +2 >Emitted(46, 14) Source(37, 21) + SourceIndex(0) +3 >Emitted(46, 26) Source(37, 33) + SourceIndex(0) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(47, 5) Source(37, 36) + SourceIndex(0) +2 >Emitted(47, 6) Source(37, 37) + SourceIndex(0) +3 >Emitted(47, 10) Source(37, 37) + SourceIndex(0) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(48, 5) Source(37, 39) + SourceIndex(0) +2 >Emitted(48, 6) Source(37, 40) + SourceIndex(0) +3 >Emitted(48, 10) Source(37, 40) + SourceIndex(0) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(49, 5) Source(37, 42) + SourceIndex(0) +2 >Emitted(49, 6) Source(37, 43) + SourceIndex(0) +3 >Emitted(49, 10) Source(37, 43) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(50, 2) Source(37, 45) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(51, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(51, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(51, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(52, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(52, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(53, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /**@internal*/ +1->Emitted(9, 5) Source(14, 20) + SourceIndex(0) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(10, 5) Source(14, 36) + SourceIndex(0) +2 >Emitted(10, 6) Source(14, 37) + SourceIndex(0) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /**@internal*/ prop: string; + > /**@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(11, 5) Source(16, 20) + SourceIndex(0) +2 >Emitted(11, 29) Source(16, 26) + SourceIndex(0) +3 >Emitted(11, 32) Source(16, 20) + SourceIndex(0) +4 >Emitted(11, 46) Source(16, 31) + SourceIndex(0) +5 >Emitted(11, 47) Source(16, 32) + SourceIndex(0) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /**@internal*/ +2 > get +3 > c +1->Emitted(12, 5) Source(17, 20) + SourceIndex(0) +2 >Emitted(12, 27) Source(17, 24) + SourceIndex(0) +3 >Emitted(12, 49) Source(17, 25) + SourceIndex(0) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(13, 14) Source(17, 20) + SourceIndex(0) +2 >Emitted(13, 28) Source(17, 30) + SourceIndex(0) +3 >Emitted(13, 35) Source(17, 37) + SourceIndex(0) +4 >Emitted(13, 37) Source(17, 39) + SourceIndex(0) +5 >Emitted(13, 38) Source(17, 40) + SourceIndex(0) +6 >Emitted(13, 39) Source(17, 41) + SourceIndex(0) +7 >Emitted(13, 40) Source(17, 42) + SourceIndex(0) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /**@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(14, 14) Source(18, 20) + SourceIndex(0) +2 >Emitted(14, 24) Source(18, 26) + SourceIndex(0) +3 >Emitted(14, 27) Source(18, 37) + SourceIndex(0) +4 >Emitted(14, 31) Source(18, 41) + SourceIndex(0) +5 >Emitted(14, 32) Source(18, 42) + SourceIndex(0) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(17, 8) Source(17, 42) + SourceIndex(0) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(18, 5) Source(19, 1) + SourceIndex(0) +2 >Emitted(18, 19) Source(19, 2) + SourceIndex(0) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) +3 >Emitted(19, 2) Source(13, 1) + SourceIndex(0) +4 >Emitted(19, 6) Source(19, 2) + SourceIndex(0) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(20, 5) Source(20, 11) + SourceIndex(0) +3 >Emitted(20, 12) Source(20, 18) + SourceIndex(0) +4 >Emitted(20, 13) Source(29, 2) + SourceIndex(0) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(21, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(21, 12) Source(20, 11) + SourceIndex(0) +3 >Emitted(21, 19) Source(20, 18) + SourceIndex(0) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /**@internal*/ +1->Emitted(22, 5) Source(21, 20) + SourceIndex(0) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(23, 9) Source(21, 20) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(24, 9) Source(21, 37) + SourceIndex(0) +2 >Emitted(24, 10) Source(21, 38) + SourceIndex(0) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(25, 9) Source(21, 37) + SourceIndex(0) +2 >Emitted(25, 17) Source(21, 38) + SourceIndex(0) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(26, 5) Source(21, 37) + SourceIndex(0) +2 >Emitted(26, 6) Source(21, 38) + SourceIndex(0) +3 >Emitted(26, 6) Source(21, 20) + SourceIndex(0) +4 >Emitted(26, 10) Source(21, 38) + SourceIndex(0) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(27, 5) Source(21, 33) + SourceIndex(0) +2 >Emitted(27, 14) Source(21, 34) + SourceIndex(0) +3 >Emitted(27, 18) Source(21, 38) + SourceIndex(0) +4 >Emitted(27, 19) Source(21, 38) + SourceIndex(0) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(28, 5) Source(22, 20) + SourceIndex(0) +2 >Emitted(28, 14) Source(22, 36) + SourceIndex(0) +3 >Emitted(28, 17) Source(22, 39) + SourceIndex(0) +4 >Emitted(28, 22) Source(22, 43) + SourceIndex(0) +5 >Emitted(28, 23) Source(22, 44) + SourceIndex(0) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(29, 5) Source(22, 36) + SourceIndex(0) +2 >Emitted(29, 16) Source(22, 39) + SourceIndex(0) +3 >Emitted(29, 22) Source(22, 44) + SourceIndex(0) +4 >Emitted(29, 23) Source(22, 44) + SourceIndex(0) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(30, 5) Source(23, 20) + SourceIndex(0) +2 >Emitted(30, 9) Source(23, 37) + SourceIndex(0) +3 >Emitted(30, 22) Source(23, 50) + SourceIndex(0) +4 >Emitted(30, 23) Source(23, 72) + SourceIndex(0) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(31, 5) Source(23, 20) + SourceIndex(0) +2 >Emitted(31, 16) Source(23, 37) + SourceIndex(0) +3 >Emitted(31, 29) Source(23, 50) + SourceIndex(0) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(32, 9) Source(23, 53) + SourceIndex(0) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(33, 13) Source(23, 53) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(34, 13) Source(23, 69) + SourceIndex(0) +2 >Emitted(34, 14) Source(23, 70) + SourceIndex(0) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(35, 13) Source(23, 69) + SourceIndex(0) +2 >Emitted(35, 21) Source(23, 70) + SourceIndex(0) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(36, 9) Source(23, 69) + SourceIndex(0) +2 >Emitted(36, 10) Source(23, 70) + SourceIndex(0) +3 >Emitted(36, 10) Source(23, 53) + SourceIndex(0) +4 >Emitted(36, 14) Source(23, 70) + SourceIndex(0) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(37, 9) Source(23, 66) + SourceIndex(0) +2 >Emitted(37, 24) Source(23, 67) + SourceIndex(0) +3 >Emitted(37, 28) Source(23, 70) + SourceIndex(0) +4 >Emitted(37, 29) Source(23, 70) + SourceIndex(0) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(38, 5) Source(23, 71) + SourceIndex(0) +2 >Emitted(38, 6) Source(23, 72) + SourceIndex(0) +3 >Emitted(38, 8) Source(23, 37) + SourceIndex(0) +4 >Emitted(38, 21) Source(23, 50) + SourceIndex(0) +5 >Emitted(38, 24) Source(23, 37) + SourceIndex(0) +6 >Emitted(38, 45) Source(23, 50) + SourceIndex(0) +7 >Emitted(38, 50) Source(23, 37) + SourceIndex(0) +8 >Emitted(38, 71) Source(23, 50) + SourceIndex(0) +9 >Emitted(38, 79) Source(23, 72) + SourceIndex(0) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(39, 5) Source(24, 20) + SourceIndex(0) +2 >Emitted(39, 9) Source(24, 37) + SourceIndex(0) +3 >Emitted(39, 18) Source(24, 46) + SourceIndex(0) +4 >Emitted(39, 19) Source(24, 86) + SourceIndex(0) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(40, 5) Source(24, 20) + SourceIndex(0) +2 >Emitted(40, 16) Source(24, 37) + SourceIndex(0) +3 >Emitted(40, 25) Source(24, 46) + SourceIndex(0) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(41, 9) Source(24, 47) + SourceIndex(0) +2 >Emitted(41, 13) Source(24, 47) + SourceIndex(0) +3 >Emitted(41, 22) Source(24, 56) + SourceIndex(0) +4 >Emitted(41, 23) Source(24, 86) + SourceIndex(0) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(42, 9) Source(24, 47) + SourceIndex(0) +2 >Emitted(42, 20) Source(24, 47) + SourceIndex(0) +3 >Emitted(42, 29) Source(24, 56) + SourceIndex(0) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(43, 13) Source(24, 59) + SourceIndex(0) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(44, 17) Source(24, 59) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(45, 17) Source(24, 83) + SourceIndex(0) +2 >Emitted(45, 18) Source(24, 84) + SourceIndex(0) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(46, 17) Source(24, 83) + SourceIndex(0) +2 >Emitted(46, 33) Source(24, 84) + SourceIndex(0) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(47, 13) Source(24, 83) + SourceIndex(0) +2 >Emitted(47, 14) Source(24, 84) + SourceIndex(0) +3 >Emitted(47, 14) Source(24, 59) + SourceIndex(0) +4 >Emitted(47, 18) Source(24, 84) + SourceIndex(0) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(48, 13) Source(24, 72) + SourceIndex(0) +2 >Emitted(48, 32) Source(24, 81) + SourceIndex(0) +3 >Emitted(48, 44) Source(24, 84) + SourceIndex(0) +4 >Emitted(48, 45) Source(24, 84) + SourceIndex(0) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(49, 9) Source(24, 85) + SourceIndex(0) +2 >Emitted(49, 10) Source(24, 86) + SourceIndex(0) +3 >Emitted(49, 12) Source(24, 47) + SourceIndex(0) +4 >Emitted(49, 21) Source(24, 56) + SourceIndex(0) +5 >Emitted(49, 24) Source(24, 47) + SourceIndex(0) +6 >Emitted(49, 43) Source(24, 56) + SourceIndex(0) +7 >Emitted(49, 48) Source(24, 47) + SourceIndex(0) +8 >Emitted(49, 67) Source(24, 56) + SourceIndex(0) +9 >Emitted(49, 75) Source(24, 86) + SourceIndex(0) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(50, 5) Source(24, 85) + SourceIndex(0) +2 >Emitted(50, 6) Source(24, 86) + SourceIndex(0) +3 >Emitted(50, 8) Source(24, 37) + SourceIndex(0) +4 >Emitted(50, 17) Source(24, 46) + SourceIndex(0) +5 >Emitted(50, 20) Source(24, 37) + SourceIndex(0) +6 >Emitted(50, 37) Source(24, 46) + SourceIndex(0) +7 >Emitted(50, 42) Source(24, 37) + SourceIndex(0) +8 >Emitted(50, 59) Source(24, 46) + SourceIndex(0) +9 >Emitted(50, 67) Source(24, 86) + SourceIndex(0) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /**@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(51, 5) Source(25, 34) + SourceIndex(0) +2 >Emitted(51, 23) Source(25, 44) + SourceIndex(0) +3 >Emitted(51, 26) Source(25, 47) + SourceIndex(0) +4 >Emitted(51, 39) Source(25, 60) + SourceIndex(0) +5 >Emitted(51, 40) Source(25, 61) + SourceIndex(0) +6 >Emitted(51, 41) Source(25, 62) + SourceIndex(0) +7 >Emitted(51, 42) Source(25, 63) + SourceIndex(0) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(52, 5) Source(27, 33) + SourceIndex(0) +2 >Emitted(52, 26) Source(27, 46) + SourceIndex(0) +3 >Emitted(52, 29) Source(27, 49) + SourceIndex(0) +4 >Emitted(52, 31) Source(27, 51) + SourceIndex(0) +5 >Emitted(52, 32) Source(27, 52) + SourceIndex(0) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(53, 5) Source(28, 20) + SourceIndex(0) +2 >Emitted(53, 9) Source(28, 32) + SourceIndex(0) +3 >Emitted(53, 21) Source(28, 56) + SourceIndex(0) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(54, 5) Source(28, 20) + SourceIndex(0) +2 >Emitted(54, 16) Source(28, 32) + SourceIndex(0) +3 >Emitted(54, 28) Source(28, 44) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(55, 9) Source(28, 47) + SourceIndex(0) +2 >Emitted(55, 50) Source(28, 48) + SourceIndex(0) +3 >Emitted(55, 51) Source(28, 48) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 9) Source(28, 50) + SourceIndex(0) +2 >Emitted(56, 50) Source(28, 51) + SourceIndex(0) +3 >Emitted(56, 51) Source(28, 51) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(57, 9) Source(28, 53) + SourceIndex(0) +2 >Emitted(57, 50) Source(28, 54) + SourceIndex(0) +3 >Emitted(57, 51) Source(28, 54) + SourceIndex(0) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(58, 5) Source(28, 55) + SourceIndex(0) +2 >Emitted(58, 6) Source(28, 56) + SourceIndex(0) +3 >Emitted(58, 8) Source(28, 32) + SourceIndex(0) +4 >Emitted(58, 20) Source(28, 44) + SourceIndex(0) +5 >Emitted(58, 23) Source(28, 32) + SourceIndex(0) +6 >Emitted(58, 43) Source(28, 44) + SourceIndex(0) +7 >Emitted(58, 48) Source(28, 32) + SourceIndex(0) +8 >Emitted(58, 68) Source(28, 44) + SourceIndex(0) +9 >Emitted(58, 76) Source(28, 56) + SourceIndex(0) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(59, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(59, 2) Source(29, 2) + SourceIndex(0) +3 >Emitted(59, 4) Source(20, 11) + SourceIndex(0) +4 >Emitted(59, 11) Source(20, 18) + SourceIndex(0) +5 >Emitted(59, 16) Source(20, 11) + SourceIndex(0) +6 >Emitted(59, 23) Source(20, 18) + SourceIndex(0) +7 >Emitted(59, 31) Source(29, 2) + SourceIndex(0) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/**@internal*/ +1->Emitted(60, 1) Source(30, 16) + SourceIndex(0) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(61, 5) Source(30, 16) + SourceIndex(0) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(62, 5) Source(30, 33) + SourceIndex(0) +2 >Emitted(62, 6) Source(30, 34) + SourceIndex(0) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(63, 5) Source(30, 33) + SourceIndex(0) +2 >Emitted(63, 21) Source(30, 34) + SourceIndex(0) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(64, 1) Source(30, 33) + SourceIndex(0) +2 >Emitted(64, 2) Source(30, 34) + SourceIndex(0) +3 >Emitted(64, 2) Source(30, 16) + SourceIndex(0) +4 >Emitted(64, 6) Source(30, 34) + SourceIndex(0) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(65, 1) Source(31, 16) + SourceIndex(0) +2 >Emitted(65, 10) Source(31, 25) + SourceIndex(0) +3 >Emitted(65, 21) Source(31, 36) + SourceIndex(0) +4 >Emitted(65, 26) Source(31, 40) + SourceIndex(0) +5 >Emitted(65, 27) Source(31, 41) + SourceIndex(0) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(66, 1) Source(32, 16) + SourceIndex(0) +2 >Emitted(66, 5) Source(32, 26) + SourceIndex(0) +3 >Emitted(66, 22) Source(32, 43) + SourceIndex(0) +4 >Emitted(66, 23) Source(32, 73) + SourceIndex(0) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(67, 1) Source(32, 16) + SourceIndex(0) +2 >Emitted(67, 12) Source(32, 26) + SourceIndex(0) +3 >Emitted(67, 29) Source(32, 43) + SourceIndex(0) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(68, 5) Source(32, 46) + SourceIndex(0) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(69, 9) Source(32, 46) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(70, 9) Source(32, 70) + SourceIndex(0) +2 >Emitted(70, 10) Source(32, 71) + SourceIndex(0) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(71, 9) Source(32, 70) + SourceIndex(0) +2 >Emitted(71, 25) Source(32, 71) + SourceIndex(0) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(72, 5) Source(32, 70) + SourceIndex(0) +2 >Emitted(72, 6) Source(32, 71) + SourceIndex(0) +3 >Emitted(72, 6) Source(32, 46) + SourceIndex(0) +4 >Emitted(72, 10) Source(32, 71) + SourceIndex(0) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(73, 5) Source(32, 59) + SourceIndex(0) +2 >Emitted(73, 32) Source(32, 68) + SourceIndex(0) +3 >Emitted(73, 44) Source(32, 71) + SourceIndex(0) +4 >Emitted(73, 45) Source(32, 71) + SourceIndex(0) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(74, 1) Source(32, 72) + SourceIndex(0) +2 >Emitted(74, 2) Source(32, 73) + SourceIndex(0) +3 >Emitted(74, 4) Source(32, 26) + SourceIndex(0) +4 >Emitted(74, 21) Source(32, 43) + SourceIndex(0) +5 >Emitted(74, 26) Source(32, 26) + SourceIndex(0) +6 >Emitted(74, 43) Source(32, 43) + SourceIndex(0) +7 >Emitted(74, 51) Source(32, 73) + SourceIndex(0) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(75, 1) Source(33, 16) + SourceIndex(0) +2 >Emitted(75, 5) Source(33, 26) + SourceIndex(0) +3 >Emitted(75, 18) Source(33, 39) + SourceIndex(0) +4 >Emitted(75, 19) Source(33, 79) + SourceIndex(0) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(76, 1) Source(33, 16) + SourceIndex(0) +2 >Emitted(76, 12) Source(33, 26) + SourceIndex(0) +3 >Emitted(76, 25) Source(33, 39) + SourceIndex(0) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(77, 5) Source(33, 40) + SourceIndex(0) +2 >Emitted(77, 9) Source(33, 40) + SourceIndex(0) +3 >Emitted(77, 18) Source(33, 49) + SourceIndex(0) +4 >Emitted(77, 19) Source(33, 79) + SourceIndex(0) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(78, 5) Source(33, 40) + SourceIndex(0) +2 >Emitted(78, 16) Source(33, 40) + SourceIndex(0) +3 >Emitted(78, 25) Source(33, 49) + SourceIndex(0) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(79, 9) Source(33, 52) + SourceIndex(0) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(80, 13) Source(33, 52) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(81, 13) Source(33, 76) + SourceIndex(0) +2 >Emitted(81, 14) Source(33, 77) + SourceIndex(0) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(82, 13) Source(33, 76) + SourceIndex(0) +2 >Emitted(82, 29) Source(33, 77) + SourceIndex(0) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(83, 9) Source(33, 76) + SourceIndex(0) +2 >Emitted(83, 10) Source(33, 77) + SourceIndex(0) +3 >Emitted(83, 10) Source(33, 52) + SourceIndex(0) +4 >Emitted(83, 14) Source(33, 77) + SourceIndex(0) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(84, 9) Source(33, 65) + SourceIndex(0) +2 >Emitted(84, 28) Source(33, 74) + SourceIndex(0) +3 >Emitted(84, 40) Source(33, 77) + SourceIndex(0) +4 >Emitted(84, 41) Source(33, 77) + SourceIndex(0) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(85, 5) Source(33, 78) + SourceIndex(0) +2 >Emitted(85, 6) Source(33, 79) + SourceIndex(0) +3 >Emitted(85, 8) Source(33, 40) + SourceIndex(0) +4 >Emitted(85, 17) Source(33, 49) + SourceIndex(0) +5 >Emitted(85, 20) Source(33, 40) + SourceIndex(0) +6 >Emitted(85, 43) Source(33, 49) + SourceIndex(0) +7 >Emitted(85, 48) Source(33, 40) + SourceIndex(0) +8 >Emitted(85, 71) Source(33, 49) + SourceIndex(0) +9 >Emitted(85, 79) Source(33, 79) + SourceIndex(0) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(86, 1) Source(33, 78) + SourceIndex(0) +2 >Emitted(86, 2) Source(33, 79) + SourceIndex(0) +3 >Emitted(86, 4) Source(33, 26) + SourceIndex(0) +4 >Emitted(86, 17) Source(33, 39) + SourceIndex(0) +5 >Emitted(86, 22) Source(33, 26) + SourceIndex(0) +6 >Emitted(86, 35) Source(33, 39) + SourceIndex(0) +7 >Emitted(86, 43) Source(33, 79) + SourceIndex(0) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(87, 1) Source(34, 16) + SourceIndex(0) +2 >Emitted(87, 5) Source(34, 23) + SourceIndex(0) +3 >Emitted(87, 19) Source(34, 37) + SourceIndex(0) +4 >Emitted(87, 22) Source(34, 40) + SourceIndex(0) +5 >Emitted(87, 39) Source(34, 57) + SourceIndex(0) +6 >Emitted(87, 40) Source(34, 58) + SourceIndex(0) +7 >Emitted(87, 49) Source(34, 67) + SourceIndex(0) +8 >Emitted(87, 50) Source(34, 68) + SourceIndex(0) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/**@internal*/ type internalType = internalC; + >/**@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(88, 1) Source(36, 16) + SourceIndex(0) +2 >Emitted(88, 5) Source(36, 22) + SourceIndex(0) +3 >Emitted(88, 18) Source(36, 35) + SourceIndex(0) +4 >Emitted(88, 21) Source(36, 38) + SourceIndex(0) +5 >Emitted(88, 23) Source(36, 40) + SourceIndex(0) +6 >Emitted(88, 24) Source(36, 41) + SourceIndex(0) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(89, 1) Source(37, 16) + SourceIndex(0) +2 >Emitted(89, 5) Source(37, 21) + SourceIndex(0) +3 >Emitted(89, 17) Source(37, 45) + SourceIndex(0) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(90, 1) Source(37, 16) + SourceIndex(0) +2 >Emitted(90, 12) Source(37, 21) + SourceIndex(0) +3 >Emitted(90, 24) Source(37, 33) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(91, 5) Source(37, 36) + SourceIndex(0) +2 >Emitted(91, 46) Source(37, 37) + SourceIndex(0) +3 >Emitted(91, 47) Source(37, 37) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(92, 5) Source(37, 39) + SourceIndex(0) +2 >Emitted(92, 46) Source(37, 40) + SourceIndex(0) +3 >Emitted(92, 47) Source(37, 40) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(93, 5) Source(37, 42) + SourceIndex(0) +2 >Emitted(93, 46) Source(37, 43) + SourceIndex(0) +3 >Emitted(93, 47) Source(37, 43) + SourceIndex(0) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(94, 1) Source(37, 44) + SourceIndex(0) +2 >Emitted(94, 2) Source(37, 45) + SourceIndex(0) +3 >Emitted(94, 4) Source(37, 21) + SourceIndex(0) +4 >Emitted(94, 16) Source(37, 33) + SourceIndex(0) +5 >Emitted(94, 21) Source(37, 21) + SourceIndex(0) +6 >Emitted(94, 33) Source(37, 33) + SourceIndex(0) +7 >Emitted(94, 41) Source(37, 45) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(95, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(96, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(97, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(98, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(98, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(98, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(99, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(99, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(99, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(99, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(99, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(99, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(99, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(99, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(100, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(101, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(102, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(102, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3052, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 77, + "kind": "text" + }, + { + "pos": 77, + "end": 151, + "kind": "internal" + }, + { + "pos": 153, + "end": 185, + "kind": "text" + }, + { + "pos": 185, + "end": 577, + "kind": "internal" + }, + { + "pos": 579, + "end": 582, + "kind": "text" + }, + { + "pos": 582, + "end": 995, + "kind": "internal" + }, + { + "pos": 997, + "end": 1045, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-3052) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-77) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (77-151) + constructor(); + prop: string; + method(): void; + c: number; +---------------------------------------------------------------------- +text: (153-185) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (185-577) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (579-582) +} + +---------------------------------------------------------------------- +internal: (582-995) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (997-1045) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAe,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/**@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 16) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 26) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 34) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + +class normalC { + /**@internal*/ constructor() { } + /**@internal*/ prop: string; + /**@internal*/ method() { } + /**@internal*/ get c() { return 10; } + /**@internal*/ set c(val: number) { } +} +namespace normalN { + /**@internal*/ export class C { } + /**@internal*/ export function foo() {} + /**@internal*/ export namespace someNamespace { export class C {} } + /**@internal*/ export namespace someOther.something { export class someClass {} } + /**@internal*/ export import someImport = someNamespace.C; + /**@internal*/ export type internalType = internalC; + /**@internal*/ export const internalConst = 10; + /**@internal*/ export enum internalEnum { a, b, c } +} +/**@internal*/ class internalC {} +/**@internal*/ function internalfoo() {} +/**@internal*/ namespace internalNamespace { export class someClass {} } +/**@internal*/ namespace internalOther.something { export class someClass {} } +/**@internal*/ import internalImport = internalNamespace.someClass; +/**@internal*/ type internalType = internalC; +/**@internal*/ const internalConst = 10; +/**@internal*/ enum internalEnum { a, b, c } + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare const s = "Hello, world"; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + >} +1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /**@internal*/ +1->Emitted(15, 5) Source(14, 20) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(16, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /**@internal*/ prop: string; + > /**@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(17, 5) Source(16, 20) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 26) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 20) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 31) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /**@internal*/ +2 > get +3 > c +1->Emitted(18, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(19, 14) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 30) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 37) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 39) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 40) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 41) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 42) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /**@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(20, 14) Source(18, 20) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 26) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 37) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 41) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /**@internal*/ +1->Emitted(28, 5) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(34, 5) Source(22, 20) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 36) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 39) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 43) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(35, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(36, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 37) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 50) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 37) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 46) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(46, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /**@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(57, 5) Source(25, 34) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 44) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 47) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 60) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 61) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 62) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 63) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(58, 5) Source(27, 33) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 46) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 49) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 51) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 52) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 32) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(60, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/**@internal*/ +1->Emitted(66, 1) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(71, 1) Source(31, 16) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 25) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 36) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 40) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 41) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 26) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 43) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(73, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 26) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 39) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(82, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(93, 1) Source(34, 16) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 23) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 37) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 40) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 57) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 58) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 67) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 68) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/**@internal*/ type internalType = internalC; + >/**@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(94, 1) Source(36, 16) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 22) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 35) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 38) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 40) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 41) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 21) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(96, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3162, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 3162, + "kind": "text" + } + ] + }, + { + "pos": 3162, + "end": 3198, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 116, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 116, + "kind": "text" + } + ] + }, + { + "pos": 116, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 116, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-3162):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-3162) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3162-3198) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-116) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (116-276) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, +"stripInternal": true + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js new file mode 100644 index 00000000000..2fbfbc496bf --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,5924 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +/**@internal*/ interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { + /**@internal*/ constructor(); + /**@internal*/ prop: string; + /**@internal*/ method(): void; + /**@internal*/ /**@internal*/ c: number; +} +declare namespace normalN { + /**@internal*/ class C { + } + /**@internal*/ function foo(): void; + /**@internal*/ namespace someNamespace { + class C { + } + } + /**@internal*/ namespace someOther.something { + class someClass { + } + } + /**@internal*/ export import someImport = someNamespace.C; + /**@internal*/ type internalType = internalC; + /**@internal*/ const internalConst = 10; + /**@internal*/ enum internalEnum { + a = 0, + b = 1, + c = 2 + } +} +/**@internal*/ declare class internalC { +} +/**@internal*/ declare function internalfoo(): void; +/**@internal*/ declare namespace internalNamespace { + class someClass { + } +} +/**@internal*/ declare namespace internalOther.something { + class someClass { + } +} +/**@internal*/ import internalImport = internalNamespace.someClass; +/**@internal*/ declare type internalType = internalC; +/**@internal*/ declare const internalConst = 10; +/**@internal*/ declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,gBAAK,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>/**@internal*/ interface TheFirst { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^ +1 > +2 >/**@internal*/ +3 > +4 > interface +5 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +3 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +4 >Emitted(1, 26) Source(1, 26) + SourceIndex(0) +5 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^-> +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>> /**@internal*/ constructor(); +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^-> +1-> { + > +2 > /**@internal*/ +1->Emitted(14, 5) Source(14, 5) + SourceIndex(2) +2 >Emitted(14, 19) Source(14, 19) + SourceIndex(2) +--- +>>> /**@internal*/ prop: string; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^ +6 > ^^^^^^ +7 > ^ +8 > ^^^-> +1-> constructor() { } + > +2 > /**@internal*/ +3 > +4 > prop +5 > : +6 > string +7 > ; +1->Emitted(15, 5) Source(15, 5) + SourceIndex(2) +2 >Emitted(15, 19) Source(15, 19) + SourceIndex(2) +3 >Emitted(15, 20) Source(15, 20) + SourceIndex(2) +4 >Emitted(15, 24) Source(15, 24) + SourceIndex(2) +5 >Emitted(15, 26) Source(15, 26) + SourceIndex(2) +6 >Emitted(15, 32) Source(15, 32) + SourceIndex(2) +7 >Emitted(15, 33) Source(15, 33) + SourceIndex(2) +--- +>>> /**@internal*/ method(): void; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 > /**@internal*/ +3 > +4 > method +1->Emitted(16, 5) Source(16, 5) + SourceIndex(2) +2 >Emitted(16, 19) Source(16, 19) + SourceIndex(2) +3 >Emitted(16, 20) Source(16, 20) + SourceIndex(2) +4 >Emitted(16, 26) Source(16, 26) + SourceIndex(2) +--- +>>> /**@internal*/ /**@internal*/ c: number; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^^^^^ +1->() { } + > +2 > /**@internal*/ +3 > get +4 > c +5 > () { return 10; } + > /**@internal*/ set c(val: +6 > number +1->Emitted(17, 5) Source(17, 5) + SourceIndex(2) +2 >Emitted(17, 19) Source(17, 19) + SourceIndex(2) +3 >Emitted(17, 35) Source(17, 24) + SourceIndex(2) +4 >Emitted(17, 36) Source(17, 25) + SourceIndex(2) +5 >Emitted(17, 38) Source(18, 31) + SourceIndex(2) +6 >Emitted(17, 44) Source(18, 37) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^-> +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) +--- +>>> /**@internal*/ class C { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +1->{ + > +2 > /**@internal*/ +3 > +4 > export class +5 > C +1->Emitted(20, 5) Source(21, 5) + SourceIndex(2) +2 >Emitted(20, 19) Source(21, 19) + SourceIndex(2) +3 >Emitted(20, 20) Source(21, 20) + SourceIndex(2) +4 >Emitted(20, 26) Source(21, 33) + SourceIndex(2) +5 >Emitted(20, 27) Source(21, 34) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(21, 6) Source(21, 38) + SourceIndex(2) +--- +>>> /**@internal*/ function foo(): void; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^ +7 > ^^^^^-> +1-> + > +2 > /**@internal*/ +3 > +4 > export function +5 > foo +6 > () {} +1->Emitted(22, 5) Source(22, 5) + SourceIndex(2) +2 >Emitted(22, 19) Source(22, 19) + SourceIndex(2) +3 >Emitted(22, 20) Source(22, 20) + SourceIndex(2) +4 >Emitted(22, 29) Source(22, 36) + SourceIndex(2) +5 >Emitted(22, 32) Source(22, 39) + SourceIndex(2) +6 >Emitted(22, 41) Source(22, 44) + SourceIndex(2) +--- +>>> /**@internal*/ namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > +1->Emitted(23, 5) Source(23, 5) + SourceIndex(2) +2 >Emitted(23, 19) Source(23, 19) + SourceIndex(2) +3 >Emitted(23, 20) Source(23, 20) + SourceIndex(2) +4 >Emitted(23, 30) Source(23, 37) + SourceIndex(2) +5 >Emitted(23, 43) Source(23, 50) + SourceIndex(2) +6 >Emitted(23, 44) Source(23, 51) + SourceIndex(2) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(24, 9) Source(23, 53) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 66) + SourceIndex(2) +3 >Emitted(24, 16) Source(23, 67) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(25, 10) Source(23, 70) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(26, 6) Source(23, 72) + SourceIndex(2) +--- +>>> /**@internal*/ namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someOther +6 > . +7 > something +8 > +1->Emitted(27, 5) Source(24, 5) + SourceIndex(2) +2 >Emitted(27, 19) Source(24, 19) + SourceIndex(2) +3 >Emitted(27, 20) Source(24, 20) + SourceIndex(2) +4 >Emitted(27, 30) Source(24, 37) + SourceIndex(2) +5 >Emitted(27, 39) Source(24, 46) + SourceIndex(2) +6 >Emitted(27, 40) Source(24, 47) + SourceIndex(2) +7 >Emitted(27, 49) Source(24, 56) + SourceIndex(2) +8 >Emitted(27, 50) Source(24, 57) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(28, 9) Source(24, 59) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 72) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 81) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(29, 10) Source(24, 84) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(30, 6) Source(24, 86) + SourceIndex(2) +--- +>>> /**@internal*/ export import someImport = someNamespace.C; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^^^^^^ +6 > ^^^^^^^^^^ +7 > ^^^ +8 > ^^^^^^^^^^^^^ +9 > ^ +10> ^ +11> ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export +5 > import +6 > someImport +7 > = +8 > someNamespace +9 > . +10> C +11> ; +1->Emitted(31, 5) Source(25, 5) + SourceIndex(2) +2 >Emitted(31, 19) Source(25, 19) + SourceIndex(2) +3 >Emitted(31, 20) Source(25, 20) + SourceIndex(2) +4 >Emitted(31, 26) Source(25, 26) + SourceIndex(2) +5 >Emitted(31, 34) Source(25, 34) + SourceIndex(2) +6 >Emitted(31, 44) Source(25, 44) + SourceIndex(2) +7 >Emitted(31, 47) Source(25, 47) + SourceIndex(2) +8 >Emitted(31, 60) Source(25, 60) + SourceIndex(2) +9 >Emitted(31, 61) Source(25, 61) + SourceIndex(2) +10>Emitted(31, 62) Source(25, 62) + SourceIndex(2) +11>Emitted(31, 63) Source(25, 63) + SourceIndex(2) +--- +>>> /**@internal*/ type internalType = internalC; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^ +5 > ^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^ +8 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > export type +5 > internalType +6 > = +7 > internalC +8 > ; +1 >Emitted(32, 5) Source(26, 5) + SourceIndex(2) +2 >Emitted(32, 19) Source(26, 19) + SourceIndex(2) +3 >Emitted(32, 20) Source(26, 20) + SourceIndex(2) +4 >Emitted(32, 25) Source(26, 32) + SourceIndex(2) +5 >Emitted(32, 37) Source(26, 44) + SourceIndex(2) +6 >Emitted(32, 40) Source(26, 47) + SourceIndex(2) +7 >Emitted(32, 49) Source(26, 56) + SourceIndex(2) +8 >Emitted(32, 50) Source(26, 57) + SourceIndex(2) +--- +>>> /**@internal*/ const internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1 > + > +2 > /**@internal*/ +3 > export +4 > const +5 > internalConst +6 > = 10 +7 > ; +1 >Emitted(33, 5) Source(27, 5) + SourceIndex(2) +2 >Emitted(33, 19) Source(27, 19) + SourceIndex(2) +3 >Emitted(33, 20) Source(27, 27) + SourceIndex(2) +4 >Emitted(33, 26) Source(27, 33) + SourceIndex(2) +5 >Emitted(33, 39) Source(27, 46) + SourceIndex(2) +6 >Emitted(33, 44) Source(27, 51) + SourceIndex(2) +7 >Emitted(33, 45) Source(27, 52) + SourceIndex(2) +--- +>>> /**@internal*/ enum internalEnum { +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /**@internal*/ +3 > +4 > export enum +5 > internalEnum +1 >Emitted(34, 5) Source(28, 5) + SourceIndex(2) +2 >Emitted(34, 19) Source(28, 19) + SourceIndex(2) +3 >Emitted(34, 20) Source(28, 20) + SourceIndex(2) +4 >Emitted(34, 25) Source(28, 32) + SourceIndex(2) +5 >Emitted(34, 37) Source(28, 44) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(35, 9) Source(28, 47) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 48) + SourceIndex(2) +3 >Emitted(35, 14) Source(28, 48) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(36, 9) Source(28, 50) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 51) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 51) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(37, 9) Source(28, 53) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 54) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 54) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(38, 6) Source(28, 56) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) +--- +>>>/**@internal*/ declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^^^ +1-> + > +2 >/**@internal*/ +3 > +4 > class +5 > internalC +1->Emitted(40, 1) Source(30, 1) + SourceIndex(2) +2 >Emitted(40, 15) Source(30, 15) + SourceIndex(2) +3 >Emitted(40, 16) Source(30, 16) + SourceIndex(2) +4 >Emitted(40, 30) Source(30, 22) + SourceIndex(2) +5 >Emitted(40, 39) Source(30, 31) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(41, 2) Source(30, 34) + SourceIndex(2) +--- +>>>/**@internal*/ declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^^^^^ +7 > ^-> +1-> + > +2 >/**@internal*/ +3 > +4 > function +5 > internalfoo +6 > () {} +1->Emitted(42, 1) Source(31, 1) + SourceIndex(2) +2 >Emitted(42, 15) Source(31, 15) + SourceIndex(2) +3 >Emitted(42, 16) Source(31, 16) + SourceIndex(2) +4 >Emitted(42, 33) Source(31, 25) + SourceIndex(2) +5 >Emitted(42, 44) Source(31, 36) + SourceIndex(2) +6 >Emitted(42, 53) Source(31, 41) + SourceIndex(2) +--- +>>>/**@internal*/ declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > +1->Emitted(43, 1) Source(32, 1) + SourceIndex(2) +2 >Emitted(43, 15) Source(32, 15) + SourceIndex(2) +3 >Emitted(43, 16) Source(32, 16) + SourceIndex(2) +4 >Emitted(43, 34) Source(32, 26) + SourceIndex(2) +5 >Emitted(43, 51) Source(32, 43) + SourceIndex(2) +6 >Emitted(43, 52) Source(32, 44) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(44, 5) Source(32, 46) + SourceIndex(2) +2 >Emitted(44, 11) Source(32, 59) + SourceIndex(2) +3 >Emitted(44, 20) Source(32, 68) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(45, 6) Source(32, 71) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(46, 2) Source(32, 73) + SourceIndex(2) +--- +>>>/**@internal*/ declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalOther +6 > . +7 > something +8 > +1->Emitted(47, 1) Source(33, 1) + SourceIndex(2) +2 >Emitted(47, 15) Source(33, 15) + SourceIndex(2) +3 >Emitted(47, 16) Source(33, 16) + SourceIndex(2) +4 >Emitted(47, 34) Source(33, 26) + SourceIndex(2) +5 >Emitted(47, 47) Source(33, 39) + SourceIndex(2) +6 >Emitted(47, 48) Source(33, 40) + SourceIndex(2) +7 >Emitted(47, 57) Source(33, 49) + SourceIndex(2) +8 >Emitted(47, 58) Source(33, 50) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(48, 5) Source(33, 52) + SourceIndex(2) +2 >Emitted(48, 11) Source(33, 65) + SourceIndex(2) +3 >Emitted(48, 20) Source(33, 74) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(49, 6) Source(33, 77) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(50, 2) Source(33, 79) + SourceIndex(2) +--- +>>>/**@internal*/ import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/**@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(51, 1) Source(34, 1) + SourceIndex(2) +2 >Emitted(51, 15) Source(34, 15) + SourceIndex(2) +3 >Emitted(51, 16) Source(34, 16) + SourceIndex(2) +4 >Emitted(51, 23) Source(34, 23) + SourceIndex(2) +5 >Emitted(51, 37) Source(34, 37) + SourceIndex(2) +6 >Emitted(51, 40) Source(34, 40) + SourceIndex(2) +7 >Emitted(51, 57) Source(34, 57) + SourceIndex(2) +8 >Emitted(51, 58) Source(34, 58) + SourceIndex(2) +9 >Emitted(51, 67) Source(34, 67) + SourceIndex(2) +10>Emitted(51, 68) Source(34, 68) + SourceIndex(2) +--- +>>>/**@internal*/ declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^ +8 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > type +5 > internalType +6 > = +7 > internalC +8 > ; +1 >Emitted(52, 1) Source(35, 1) + SourceIndex(2) +2 >Emitted(52, 15) Source(35, 15) + SourceIndex(2) +3 >Emitted(52, 16) Source(35, 16) + SourceIndex(2) +4 >Emitted(52, 29) Source(35, 21) + SourceIndex(2) +5 >Emitted(52, 41) Source(35, 33) + SourceIndex(2) +6 >Emitted(52, 44) Source(35, 36) + SourceIndex(2) +7 >Emitted(52, 53) Source(35, 45) + SourceIndex(2) +8 >Emitted(52, 54) Source(35, 46) + SourceIndex(2) +--- +>>>/**@internal*/ declare const internalConst = 10; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > +5 > const +6 > internalConst +7 > = 10 +8 > ; +1 >Emitted(53, 1) Source(36, 1) + SourceIndex(2) +2 >Emitted(53, 15) Source(36, 15) + SourceIndex(2) +3 >Emitted(53, 16) Source(36, 16) + SourceIndex(2) +4 >Emitted(53, 24) Source(36, 16) + SourceIndex(2) +5 >Emitted(53, 30) Source(36, 22) + SourceIndex(2) +6 >Emitted(53, 43) Source(36, 35) + SourceIndex(2) +7 >Emitted(53, 48) Source(36, 40) + SourceIndex(2) +8 >Emitted(53, 49) Source(36, 41) + SourceIndex(2) +--- +>>>/**@internal*/ declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/**@internal*/ +3 > +4 > enum +5 > internalEnum +1 >Emitted(54, 1) Source(37, 1) + SourceIndex(2) +2 >Emitted(54, 15) Source(37, 15) + SourceIndex(2) +3 >Emitted(54, 16) Source(37, 16) + SourceIndex(2) +4 >Emitted(54, 29) Source(37, 21) + SourceIndex(2) +5 >Emitted(54, 41) Source(37, 33) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(55, 5) Source(37, 36) + SourceIndex(2) +2 >Emitted(55, 6) Source(37, 37) + SourceIndex(2) +3 >Emitted(55, 10) Source(37, 37) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 5) Source(37, 39) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 40) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 40) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(57, 5) Source(37, 42) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 43) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 43) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(58, 2) Source(37, 45) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /**@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /**@internal*/ +3 > +1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) +3 >Emitted(15, 20) Source(14, 20) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(16, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) +--- +>>> /**@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /**@internal*/ prop: string; + > +2 > /**@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) +3 >Emitted(17, 20) Source(16, 20) + SourceIndex(3) +4 >Emitted(17, 44) Source(16, 26) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 20) + SourceIndex(3) +6 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) +7 >Emitted(17, 62) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^-> +1 > + > /**@internal*/ +2 > get +3 > c +1 >Emitted(18, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) +--- +>>> /**@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /**@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(19, 23) Source(17, 19) + SourceIndex(3) +3 >Emitted(19, 29) Source(17, 20) + SourceIndex(3) +4 >Emitted(19, 43) Source(17, 30) + SourceIndex(3) +5 >Emitted(19, 50) Source(17, 37) + SourceIndex(3) +6 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) +7 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) +8 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) +9 >Emitted(19, 55) Source(17, 42) + SourceIndex(3) +--- +>>> /**@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(20, 23) Source(18, 19) + SourceIndex(3) +3 >Emitted(20, 29) Source(18, 20) + SourceIndex(3) +4 >Emitted(20, 39) Source(18, 26) + SourceIndex(3) +5 >Emitted(20, 42) Source(18, 37) + SourceIndex(3) +6 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) +7 >Emitted(20, 47) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /**@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1-> { + > +2 > /**@internal*/ +3 > +1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) +3 >Emitted(28, 20) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) +--- +>>> /**@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) +3 >Emitted(34, 20) Source(22, 20) + SourceIndex(3) +4 >Emitted(34, 29) Source(22, 36) + SourceIndex(3) +5 >Emitted(34, 32) Source(22, 39) + SourceIndex(3) +6 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) +7 >Emitted(34, 38) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(35, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) +--- +>>> /**@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) +3 >Emitted(36, 20) Source(23, 20) + SourceIndex(3) +4 >Emitted(36, 24) Source(23, 37) + SourceIndex(3) +5 >Emitted(36, 37) Source(23, 50) + SourceIndex(3) +6 >Emitted(36, 38) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(37, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) +--- +>>> /**@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) +3 >Emitted(45, 20) Source(24, 20) + SourceIndex(3) +4 >Emitted(45, 24) Source(24, 37) + SourceIndex(3) +5 >Emitted(45, 33) Source(24, 46) + SourceIndex(3) +6 >Emitted(45, 34) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) +--- +>>> /**@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /**@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(57, 19) Source(25, 19) + SourceIndex(3) +3 >Emitted(57, 20) Source(25, 34) + SourceIndex(3) +4 >Emitted(57, 38) Source(25, 44) + SourceIndex(3) +5 >Emitted(57, 41) Source(25, 47) + SourceIndex(3) +6 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) +7 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) +8 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) +9 >Emitted(57, 57) Source(25, 63) + SourceIndex(3) +--- +>>> /**@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > +2 > /**@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(58, 19) Source(27, 19) + SourceIndex(3) +3 >Emitted(58, 20) Source(27, 33) + SourceIndex(3) +4 >Emitted(58, 41) Source(27, 46) + SourceIndex(3) +5 >Emitted(58, 44) Source(27, 49) + SourceIndex(3) +6 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) +7 >Emitted(58, 47) Source(27, 52) + SourceIndex(3) +--- +>>> /**@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /**@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) +3 >Emitted(59, 20) Source(28, 20) + SourceIndex(3) +4 >Emitted(59, 24) Source(28, 32) + SourceIndex(3) +5 >Emitted(59, 36) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/**@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^-> +1-> + > +2 >/**@internal*/ +3 > +1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) +3 >Emitted(66, 16) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) +--- +>>>/**@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) +3 >Emitted(71, 16) Source(31, 16) + SourceIndex(3) +4 >Emitted(71, 25) Source(31, 25) + SourceIndex(3) +5 >Emitted(71, 36) Source(31, 36) + SourceIndex(3) +6 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) +7 >Emitted(71, 42) Source(31, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) +3 >Emitted(72, 16) Source(32, 16) + SourceIndex(3) +4 >Emitted(72, 20) Source(32, 26) + SourceIndex(3) +5 >Emitted(72, 37) Source(32, 43) + SourceIndex(3) +6 >Emitted(72, 38) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) +--- +>>>/**@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) +3 >Emitted(81, 16) Source(33, 16) + SourceIndex(3) +4 >Emitted(81, 20) Source(33, 26) + SourceIndex(3) +5 >Emitted(81, 33) Source(33, 39) + SourceIndex(3) +6 >Emitted(81, 34) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) +--- +>>>/**@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/**@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) +3 >Emitted(93, 16) Source(34, 16) + SourceIndex(3) +4 >Emitted(93, 20) Source(34, 23) + SourceIndex(3) +5 >Emitted(93, 34) Source(34, 37) + SourceIndex(3) +6 >Emitted(93, 37) Source(34, 40) + SourceIndex(3) +7 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) +8 >Emitted(93, 55) Source(34, 58) + SourceIndex(3) +9 >Emitted(93, 64) Source(34, 67) + SourceIndex(3) +10>Emitted(93, 65) Source(34, 68) + SourceIndex(3) +--- +>>>/**@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/**@internal*/ type internalType = internalC; + > +2 >/**@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) +3 >Emitted(94, 16) Source(36, 16) + SourceIndex(3) +4 >Emitted(94, 20) Source(36, 22) + SourceIndex(3) +5 >Emitted(94, 33) Source(36, 35) + SourceIndex(3) +6 >Emitted(94, 36) Source(36, 38) + SourceIndex(3) +7 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) +8 >Emitted(94, 39) Source(36, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/**@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) +3 >Emitted(95, 16) Source(37, 16) + SourceIndex(3) +4 >Emitted(95, 20) Source(37, 21) + SourceIndex(3) +5 >Emitted(95, 32) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3544, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 172, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, + "end": 172, + "kind": "text" + } + ] + }, + { + "pos": 172, + "end": 249, + "kind": "text" + }, + { + "pos": 249, + "end": 398, + "kind": "internal" + }, + { + "pos": 400, + "end": 432, + "kind": "text" + }, + { + "pos": 432, + "end": 944, + "kind": "internal" + }, + { + "pos": 946, + "end": 949, + "kind": "text" + }, + { + "pos": 949, + "end": 1482, + "kind": "internal" + }, + { + "pos": 1484, + "end": 1532, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (110-3544) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-172):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-54) +/**@internal*/ interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (56-172) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (172-249) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (249-398) + /**@internal*/ constructor(); + /**@internal*/ prop: string; + /**@internal*/ method(): void; + /**@internal*/ /**@internal*/ c: number; +---------------------------------------------------------------------- +text: (400-432) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (432-944) + /**@internal*/ class C { + } + /**@internal*/ function foo(): void; + /**@internal*/ namespace someNamespace { + class C { + } + } + /**@internal*/ namespace someOther.something { + class someClass { + } + } + /**@internal*/ export import someImport = someNamespace.C; + /**@internal*/ type internalType = internalC; + /**@internal*/ const internalConst = 10; + /**@internal*/ enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (946-949) +} + +---------------------------------------------------------------------- +internal: (949-1482) +/**@internal*/ declare class internalC { +} +/**@internal*/ declare function internalfoo(): void; +/**@internal*/ declare namespace internalNamespace { + class someClass { + } +} +/**@internal*/ declare namespace internalOther.something { + class someClass { + } +} +/**@internal*/ import internalImport = internalNamespace.someClass; +/**@internal*/ declare type internalType = internalC; +/**@internal*/ declare const internalConst = 10; +/**@internal*/ declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1484-1532) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +/**@internal*/ interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>/**@internal*/ interface TheFirst { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^ +1 > +2 >/**@internal*/ +3 > +4 > interface +5 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +3 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +4 >Emitted(1, 26) Source(1, 26) + SourceIndex(0) +5 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, + "end": 172, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-54) +/**@internal*/ interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (56-172) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/first/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [ + ] +} + + +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + +class normalC { + /**@internal*/ constructor() { } + /**@internal*/ prop: string; + /**@internal*/ method() { } + /**@internal*/ get c() { return 10; } + /**@internal*/ set c(val: number) { } +} +namespace normalN { + /**@internal*/ export class C { } + /**@internal*/ export function foo() {} + /**@internal*/ export namespace someNamespace { export class C {} } + /**@internal*/ export namespace someOther.something { export class someClass {} } + /**@internal*/ export import someImport = someNamespace.C; + /**@internal*/ export type internalType = internalC; + /**@internal*/ export const internalConst = 10; + /**@internal*/ export enum internalEnum { a, b, c } +} +/**@internal*/ class internalC {} +/**@internal*/ function internalfoo() {} +/**@internal*/ namespace internalNamespace { export class someClass {} } +/**@internal*/ namespace internalOther.something { export class someClass {} } +/**@internal*/ import internalImport = internalNamespace.someClass; +/**@internal*/ type internalType = internalC; +/**@internal*/ const internalConst = 10; +/**@internal*/ enum internalEnum { a, b, c } + +//// [/src/second/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [ + { "path": "../first", "prepend": true } + ] +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare const s = "Hello, world"; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + >} +1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /**@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /**@internal*/ +3 > +1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) +3 >Emitted(15, 20) Source(14, 20) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(16, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) +--- +>>> /**@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /**@internal*/ prop: string; + > +2 > /**@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) +3 >Emitted(17, 20) Source(16, 20) + SourceIndex(3) +4 >Emitted(17, 44) Source(16, 26) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 20) + SourceIndex(3) +6 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) +7 >Emitted(17, 62) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^-> +1 > + > /**@internal*/ +2 > get +3 > c +1 >Emitted(18, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) +--- +>>> /**@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /**@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(19, 23) Source(17, 19) + SourceIndex(3) +3 >Emitted(19, 29) Source(17, 20) + SourceIndex(3) +4 >Emitted(19, 43) Source(17, 30) + SourceIndex(3) +5 >Emitted(19, 50) Source(17, 37) + SourceIndex(3) +6 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) +7 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) +8 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) +9 >Emitted(19, 55) Source(17, 42) + SourceIndex(3) +--- +>>> /**@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(20, 23) Source(18, 19) + SourceIndex(3) +3 >Emitted(20, 29) Source(18, 20) + SourceIndex(3) +4 >Emitted(20, 39) Source(18, 26) + SourceIndex(3) +5 >Emitted(20, 42) Source(18, 37) + SourceIndex(3) +6 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) +7 >Emitted(20, 47) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /**@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1-> { + > +2 > /**@internal*/ +3 > +1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) +3 >Emitted(28, 20) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) +--- +>>> /**@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) +3 >Emitted(34, 20) Source(22, 20) + SourceIndex(3) +4 >Emitted(34, 29) Source(22, 36) + SourceIndex(3) +5 >Emitted(34, 32) Source(22, 39) + SourceIndex(3) +6 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) +7 >Emitted(34, 38) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(35, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) +--- +>>> /**@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) +3 >Emitted(36, 20) Source(23, 20) + SourceIndex(3) +4 >Emitted(36, 24) Source(23, 37) + SourceIndex(3) +5 >Emitted(36, 37) Source(23, 50) + SourceIndex(3) +6 >Emitted(36, 38) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(37, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) +--- +>>> /**@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) +3 >Emitted(45, 20) Source(24, 20) + SourceIndex(3) +4 >Emitted(45, 24) Source(24, 37) + SourceIndex(3) +5 >Emitted(45, 33) Source(24, 46) + SourceIndex(3) +6 >Emitted(45, 34) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) +--- +>>> /**@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /**@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(57, 19) Source(25, 19) + SourceIndex(3) +3 >Emitted(57, 20) Source(25, 34) + SourceIndex(3) +4 >Emitted(57, 38) Source(25, 44) + SourceIndex(3) +5 >Emitted(57, 41) Source(25, 47) + SourceIndex(3) +6 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) +7 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) +8 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) +9 >Emitted(57, 57) Source(25, 63) + SourceIndex(3) +--- +>>> /**@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > +2 > /**@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(58, 19) Source(27, 19) + SourceIndex(3) +3 >Emitted(58, 20) Source(27, 33) + SourceIndex(3) +4 >Emitted(58, 41) Source(27, 46) + SourceIndex(3) +5 >Emitted(58, 44) Source(27, 49) + SourceIndex(3) +6 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) +7 >Emitted(58, 47) Source(27, 52) + SourceIndex(3) +--- +>>> /**@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /**@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) +3 >Emitted(59, 20) Source(28, 20) + SourceIndex(3) +4 >Emitted(59, 24) Source(28, 32) + SourceIndex(3) +5 >Emitted(59, 36) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/**@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^-> +1-> + > +2 >/**@internal*/ +3 > +1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) +3 >Emitted(66, 16) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) +--- +>>>/**@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) +3 >Emitted(71, 16) Source(31, 16) + SourceIndex(3) +4 >Emitted(71, 25) Source(31, 25) + SourceIndex(3) +5 >Emitted(71, 36) Source(31, 36) + SourceIndex(3) +6 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) +7 >Emitted(71, 42) Source(31, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) +3 >Emitted(72, 16) Source(32, 16) + SourceIndex(3) +4 >Emitted(72, 20) Source(32, 26) + SourceIndex(3) +5 >Emitted(72, 37) Source(32, 43) + SourceIndex(3) +6 >Emitted(72, 38) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) +--- +>>>/**@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) +3 >Emitted(81, 16) Source(33, 16) + SourceIndex(3) +4 >Emitted(81, 20) Source(33, 26) + SourceIndex(3) +5 >Emitted(81, 33) Source(33, 39) + SourceIndex(3) +6 >Emitted(81, 34) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) +--- +>>>/**@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/**@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) +3 >Emitted(93, 16) Source(34, 16) + SourceIndex(3) +4 >Emitted(93, 20) Source(34, 23) + SourceIndex(3) +5 >Emitted(93, 34) Source(34, 37) + SourceIndex(3) +6 >Emitted(93, 37) Source(34, 40) + SourceIndex(3) +7 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) +8 >Emitted(93, 55) Source(34, 58) + SourceIndex(3) +9 >Emitted(93, 64) Source(34, 67) + SourceIndex(3) +10>Emitted(93, 65) Source(34, 68) + SourceIndex(3) +--- +>>>/**@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/**@internal*/ type internalType = internalC; + > +2 >/**@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) +3 >Emitted(94, 16) Source(36, 16) + SourceIndex(3) +4 >Emitted(94, 20) Source(36, 22) + SourceIndex(3) +5 >Emitted(94, 33) Source(36, 35) + SourceIndex(3) +6 >Emitted(94, 36) Source(36, 38) + SourceIndex(3) +7 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) +8 >Emitted(94, 39) Source(36, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/**@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) +3 >Emitted(95, 16) Source(37, 16) + SourceIndex(3) +4 >Emitted(95, 20) Source(37, 21) + SourceIndex(3) +5 >Emitted(95, 32) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3544, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3544, + "kind": "text" + } + ] + }, + { + "pos": 3544, + "end": 3580, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3544):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3544) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3544-3580) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-276) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, +"stripInternal": true + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js new file mode 100644 index 00000000000..6832eef63fc --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -0,0 +1,5627 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class normalC { + /**@internal*/ constructor(); + /**@internal*/ prop: string; + /**@internal*/ method(): void; + /**@internal*/ /**@internal*/ c: number; +} +declare namespace normalN { + /**@internal*/ class C { + } + /**@internal*/ function foo(): void; + /**@internal*/ namespace someNamespace { + class C { + } + } + /**@internal*/ namespace someOther.something { + class someClass { + } + } + /**@internal*/ export import someImport = someNamespace.C; + /**@internal*/ type internalType = internalC; + /**@internal*/ const internalConst = 10; + /**@internal*/ enum internalEnum { + a = 0, + b = 1, + c = 2 + } +} +/**@internal*/ declare class internalC { +} +/**@internal*/ declare function internalfoo(): void; +/**@internal*/ declare namespace internalNamespace { + class someClass { + } +} +/**@internal*/ declare namespace internalOther.something { + class someClass { + } +} +/**@internal*/ import internalImport = internalNamespace.someClass; +/**@internal*/ declare type internalType = internalC; +/**@internal*/ declare const internalConst = 10; +/**@internal*/ declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,gBAAK,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^-> +1-> + > + > +2 >class +3 > normalC +1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 15) Source(13, 7) + SourceIndex(0) +3 >Emitted(5, 22) Source(13, 14) + SourceIndex(0) +--- +>>> /**@internal*/ constructor(); +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^-> +1-> { + > +2 > /**@internal*/ +1->Emitted(6, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(6, 19) Source(14, 19) + SourceIndex(0) +--- +>>> /**@internal*/ prop: string; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^ +6 > ^^^^^^ +7 > ^ +8 > ^^^-> +1-> constructor() { } + > +2 > /**@internal*/ +3 > +4 > prop +5 > : +6 > string +7 > ; +1->Emitted(7, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(7, 19) Source(15, 19) + SourceIndex(0) +3 >Emitted(7, 20) Source(15, 20) + SourceIndex(0) +4 >Emitted(7, 24) Source(15, 24) + SourceIndex(0) +5 >Emitted(7, 26) Source(15, 26) + SourceIndex(0) +6 >Emitted(7, 32) Source(15, 32) + SourceIndex(0) +7 >Emitted(7, 33) Source(15, 33) + SourceIndex(0) +--- +>>> /**@internal*/ method(): void; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 > /**@internal*/ +3 > +4 > method +1->Emitted(8, 5) Source(16, 5) + SourceIndex(0) +2 >Emitted(8, 19) Source(16, 19) + SourceIndex(0) +3 >Emitted(8, 20) Source(16, 20) + SourceIndex(0) +4 >Emitted(8, 26) Source(16, 26) + SourceIndex(0) +--- +>>> /**@internal*/ /**@internal*/ c: number; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^^^^^ +1->() { } + > +2 > /**@internal*/ +3 > get +4 > c +5 > () { return 10; } + > /**@internal*/ set c(val: +6 > number +1->Emitted(9, 5) Source(17, 5) + SourceIndex(0) +2 >Emitted(9, 19) Source(17, 19) + SourceIndex(0) +3 >Emitted(9, 35) Source(17, 24) + SourceIndex(0) +4 >Emitted(9, 36) Source(17, 25) + SourceIndex(0) +5 >Emitted(9, 38) Source(18, 31) + SourceIndex(0) +6 >Emitted(9, 44) Source(18, 37) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(10, 2) Source(19, 2) + SourceIndex(0) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^-> +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(11, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(11, 19) Source(20, 11) + SourceIndex(0) +3 >Emitted(11, 26) Source(20, 18) + SourceIndex(0) +4 >Emitted(11, 27) Source(20, 19) + SourceIndex(0) +--- +>>> /**@internal*/ class C { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +1->{ + > +2 > /**@internal*/ +3 > +4 > export class +5 > C +1->Emitted(12, 5) Source(21, 5) + SourceIndex(0) +2 >Emitted(12, 19) Source(21, 19) + SourceIndex(0) +3 >Emitted(12, 20) Source(21, 20) + SourceIndex(0) +4 >Emitted(12, 26) Source(21, 33) + SourceIndex(0) +5 >Emitted(12, 27) Source(21, 34) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(13, 6) Source(21, 38) + SourceIndex(0) +--- +>>> /**@internal*/ function foo(): void; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^ +7 > ^^^^^-> +1-> + > +2 > /**@internal*/ +3 > +4 > export function +5 > foo +6 > () {} +1->Emitted(14, 5) Source(22, 5) + SourceIndex(0) +2 >Emitted(14, 19) Source(22, 19) + SourceIndex(0) +3 >Emitted(14, 20) Source(22, 20) + SourceIndex(0) +4 >Emitted(14, 29) Source(22, 36) + SourceIndex(0) +5 >Emitted(14, 32) Source(22, 39) + SourceIndex(0) +6 >Emitted(14, 41) Source(22, 44) + SourceIndex(0) +--- +>>> /**@internal*/ namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > +1->Emitted(15, 5) Source(23, 5) + SourceIndex(0) +2 >Emitted(15, 19) Source(23, 19) + SourceIndex(0) +3 >Emitted(15, 20) Source(23, 20) + SourceIndex(0) +4 >Emitted(15, 30) Source(23, 37) + SourceIndex(0) +5 >Emitted(15, 43) Source(23, 50) + SourceIndex(0) +6 >Emitted(15, 44) Source(23, 51) + SourceIndex(0) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(16, 9) Source(23, 53) + SourceIndex(0) +2 >Emitted(16, 15) Source(23, 66) + SourceIndex(0) +3 >Emitted(16, 16) Source(23, 67) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(17, 10) Source(23, 70) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(18, 6) Source(23, 72) + SourceIndex(0) +--- +>>> /**@internal*/ namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someOther +6 > . +7 > something +8 > +1->Emitted(19, 5) Source(24, 5) + SourceIndex(0) +2 >Emitted(19, 19) Source(24, 19) + SourceIndex(0) +3 >Emitted(19, 20) Source(24, 20) + SourceIndex(0) +4 >Emitted(19, 30) Source(24, 37) + SourceIndex(0) +5 >Emitted(19, 39) Source(24, 46) + SourceIndex(0) +6 >Emitted(19, 40) Source(24, 47) + SourceIndex(0) +7 >Emitted(19, 49) Source(24, 56) + SourceIndex(0) +8 >Emitted(19, 50) Source(24, 57) + SourceIndex(0) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(20, 9) Source(24, 59) + SourceIndex(0) +2 >Emitted(20, 15) Source(24, 72) + SourceIndex(0) +3 >Emitted(20, 24) Source(24, 81) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(21, 10) Source(24, 84) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(22, 6) Source(24, 86) + SourceIndex(0) +--- +>>> /**@internal*/ export import someImport = someNamespace.C; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^^^^^^ +6 > ^^^^^^^^^^ +7 > ^^^ +8 > ^^^^^^^^^^^^^ +9 > ^ +10> ^ +11> ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export +5 > import +6 > someImport +7 > = +8 > someNamespace +9 > . +10> C +11> ; +1->Emitted(23, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(23, 19) Source(25, 19) + SourceIndex(0) +3 >Emitted(23, 20) Source(25, 20) + SourceIndex(0) +4 >Emitted(23, 26) Source(25, 26) + SourceIndex(0) +5 >Emitted(23, 34) Source(25, 34) + SourceIndex(0) +6 >Emitted(23, 44) Source(25, 44) + SourceIndex(0) +7 >Emitted(23, 47) Source(25, 47) + SourceIndex(0) +8 >Emitted(23, 60) Source(25, 60) + SourceIndex(0) +9 >Emitted(23, 61) Source(25, 61) + SourceIndex(0) +10>Emitted(23, 62) Source(25, 62) + SourceIndex(0) +11>Emitted(23, 63) Source(25, 63) + SourceIndex(0) +--- +>>> /**@internal*/ type internalType = internalC; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^ +5 > ^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^ +8 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > export type +5 > internalType +6 > = +7 > internalC +8 > ; +1 >Emitted(24, 5) Source(26, 5) + SourceIndex(0) +2 >Emitted(24, 19) Source(26, 19) + SourceIndex(0) +3 >Emitted(24, 20) Source(26, 20) + SourceIndex(0) +4 >Emitted(24, 25) Source(26, 32) + SourceIndex(0) +5 >Emitted(24, 37) Source(26, 44) + SourceIndex(0) +6 >Emitted(24, 40) Source(26, 47) + SourceIndex(0) +7 >Emitted(24, 49) Source(26, 56) + SourceIndex(0) +8 >Emitted(24, 50) Source(26, 57) + SourceIndex(0) +--- +>>> /**@internal*/ const internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1 > + > +2 > /**@internal*/ +3 > export +4 > const +5 > internalConst +6 > = 10 +7 > ; +1 >Emitted(25, 5) Source(27, 5) + SourceIndex(0) +2 >Emitted(25, 19) Source(27, 19) + SourceIndex(0) +3 >Emitted(25, 20) Source(27, 27) + SourceIndex(0) +4 >Emitted(25, 26) Source(27, 33) + SourceIndex(0) +5 >Emitted(25, 39) Source(27, 46) + SourceIndex(0) +6 >Emitted(25, 44) Source(27, 51) + SourceIndex(0) +7 >Emitted(25, 45) Source(27, 52) + SourceIndex(0) +--- +>>> /**@internal*/ enum internalEnum { +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /**@internal*/ +3 > +4 > export enum +5 > internalEnum +1 >Emitted(26, 5) Source(28, 5) + SourceIndex(0) +2 >Emitted(26, 19) Source(28, 19) + SourceIndex(0) +3 >Emitted(26, 20) Source(28, 20) + SourceIndex(0) +4 >Emitted(26, 25) Source(28, 32) + SourceIndex(0) +5 >Emitted(26, 37) Source(28, 44) + SourceIndex(0) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(27, 9) Source(28, 47) + SourceIndex(0) +2 >Emitted(27, 10) Source(28, 48) + SourceIndex(0) +3 >Emitted(27, 14) Source(28, 48) + SourceIndex(0) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(28, 9) Source(28, 50) + SourceIndex(0) +2 >Emitted(28, 10) Source(28, 51) + SourceIndex(0) +3 >Emitted(28, 14) Source(28, 51) + SourceIndex(0) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(29, 9) Source(28, 53) + SourceIndex(0) +2 >Emitted(29, 10) Source(28, 54) + SourceIndex(0) +3 >Emitted(29, 14) Source(28, 54) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(30, 6) Source(28, 56) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(31, 2) Source(29, 2) + SourceIndex(0) +--- +>>>/**@internal*/ declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^^^ +1-> + > +2 >/**@internal*/ +3 > +4 > class +5 > internalC +1->Emitted(32, 1) Source(30, 1) + SourceIndex(0) +2 >Emitted(32, 15) Source(30, 15) + SourceIndex(0) +3 >Emitted(32, 16) Source(30, 16) + SourceIndex(0) +4 >Emitted(32, 30) Source(30, 22) + SourceIndex(0) +5 >Emitted(32, 39) Source(30, 31) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(33, 2) Source(30, 34) + SourceIndex(0) +--- +>>>/**@internal*/ declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^^^^^ +7 > ^-> +1-> + > +2 >/**@internal*/ +3 > +4 > function +5 > internalfoo +6 > () {} +1->Emitted(34, 1) Source(31, 1) + SourceIndex(0) +2 >Emitted(34, 15) Source(31, 15) + SourceIndex(0) +3 >Emitted(34, 16) Source(31, 16) + SourceIndex(0) +4 >Emitted(34, 33) Source(31, 25) + SourceIndex(0) +5 >Emitted(34, 44) Source(31, 36) + SourceIndex(0) +6 >Emitted(34, 53) Source(31, 41) + SourceIndex(0) +--- +>>>/**@internal*/ declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > +1->Emitted(35, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(35, 15) Source(32, 15) + SourceIndex(0) +3 >Emitted(35, 16) Source(32, 16) + SourceIndex(0) +4 >Emitted(35, 34) Source(32, 26) + SourceIndex(0) +5 >Emitted(35, 51) Source(32, 43) + SourceIndex(0) +6 >Emitted(35, 52) Source(32, 44) + SourceIndex(0) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(36, 5) Source(32, 46) + SourceIndex(0) +2 >Emitted(36, 11) Source(32, 59) + SourceIndex(0) +3 >Emitted(36, 20) Source(32, 68) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(37, 6) Source(32, 71) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(38, 2) Source(32, 73) + SourceIndex(0) +--- +>>>/**@internal*/ declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalOther +6 > . +7 > something +8 > +1->Emitted(39, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(39, 15) Source(33, 15) + SourceIndex(0) +3 >Emitted(39, 16) Source(33, 16) + SourceIndex(0) +4 >Emitted(39, 34) Source(33, 26) + SourceIndex(0) +5 >Emitted(39, 47) Source(33, 39) + SourceIndex(0) +6 >Emitted(39, 48) Source(33, 40) + SourceIndex(0) +7 >Emitted(39, 57) Source(33, 49) + SourceIndex(0) +8 >Emitted(39, 58) Source(33, 50) + SourceIndex(0) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(40, 5) Source(33, 52) + SourceIndex(0) +2 >Emitted(40, 11) Source(33, 65) + SourceIndex(0) +3 >Emitted(40, 20) Source(33, 74) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(41, 6) Source(33, 77) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(42, 2) Source(33, 79) + SourceIndex(0) +--- +>>>/**@internal*/ import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/**@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(43, 1) Source(34, 1) + SourceIndex(0) +2 >Emitted(43, 15) Source(34, 15) + SourceIndex(0) +3 >Emitted(43, 16) Source(34, 16) + SourceIndex(0) +4 >Emitted(43, 23) Source(34, 23) + SourceIndex(0) +5 >Emitted(43, 37) Source(34, 37) + SourceIndex(0) +6 >Emitted(43, 40) Source(34, 40) + SourceIndex(0) +7 >Emitted(43, 57) Source(34, 57) + SourceIndex(0) +8 >Emitted(43, 58) Source(34, 58) + SourceIndex(0) +9 >Emitted(43, 67) Source(34, 67) + SourceIndex(0) +10>Emitted(43, 68) Source(34, 68) + SourceIndex(0) +--- +>>>/**@internal*/ declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^ +8 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > type +5 > internalType +6 > = +7 > internalC +8 > ; +1 >Emitted(44, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(44, 15) Source(35, 15) + SourceIndex(0) +3 >Emitted(44, 16) Source(35, 16) + SourceIndex(0) +4 >Emitted(44, 29) Source(35, 21) + SourceIndex(0) +5 >Emitted(44, 41) Source(35, 33) + SourceIndex(0) +6 >Emitted(44, 44) Source(35, 36) + SourceIndex(0) +7 >Emitted(44, 53) Source(35, 45) + SourceIndex(0) +8 >Emitted(44, 54) Source(35, 46) + SourceIndex(0) +--- +>>>/**@internal*/ declare const internalConst = 10; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > +5 > const +6 > internalConst +7 > = 10 +8 > ; +1 >Emitted(45, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(45, 15) Source(36, 15) + SourceIndex(0) +3 >Emitted(45, 16) Source(36, 16) + SourceIndex(0) +4 >Emitted(45, 24) Source(36, 16) + SourceIndex(0) +5 >Emitted(45, 30) Source(36, 22) + SourceIndex(0) +6 >Emitted(45, 43) Source(36, 35) + SourceIndex(0) +7 >Emitted(45, 48) Source(36, 40) + SourceIndex(0) +8 >Emitted(45, 49) Source(36, 41) + SourceIndex(0) +--- +>>>/**@internal*/ declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/**@internal*/ +3 > +4 > enum +5 > internalEnum +1 >Emitted(46, 1) Source(37, 1) + SourceIndex(0) +2 >Emitted(46, 15) Source(37, 15) + SourceIndex(0) +3 >Emitted(46, 16) Source(37, 16) + SourceIndex(0) +4 >Emitted(46, 29) Source(37, 21) + SourceIndex(0) +5 >Emitted(46, 41) Source(37, 33) + SourceIndex(0) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(47, 5) Source(37, 36) + SourceIndex(0) +2 >Emitted(47, 6) Source(37, 37) + SourceIndex(0) +3 >Emitted(47, 10) Source(37, 37) + SourceIndex(0) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(48, 5) Source(37, 39) + SourceIndex(0) +2 >Emitted(48, 6) Source(37, 40) + SourceIndex(0) +3 >Emitted(48, 10) Source(37, 40) + SourceIndex(0) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(49, 5) Source(37, 42) + SourceIndex(0) +2 >Emitted(49, 6) Source(37, 43) + SourceIndex(0) +3 >Emitted(49, 10) Source(37, 43) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(50, 2) Source(37, 45) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(51, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(51, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(51, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(52, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(52, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(53, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) +--- +>>> /**@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /**@internal*/ +3 > +1->Emitted(9, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(9, 19) Source(14, 19) + SourceIndex(0) +3 >Emitted(9, 20) Source(14, 20) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(10, 5) Source(14, 36) + SourceIndex(0) +2 >Emitted(10, 6) Source(14, 37) + SourceIndex(0) +--- +>>> /**@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /**@internal*/ prop: string; + > +2 > /**@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(11, 5) Source(16, 5) + SourceIndex(0) +2 >Emitted(11, 19) Source(16, 19) + SourceIndex(0) +3 >Emitted(11, 20) Source(16, 20) + SourceIndex(0) +4 >Emitted(11, 44) Source(16, 26) + SourceIndex(0) +5 >Emitted(11, 47) Source(16, 20) + SourceIndex(0) +6 >Emitted(11, 61) Source(16, 31) + SourceIndex(0) +7 >Emitted(11, 62) Source(16, 32) + SourceIndex(0) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^-> +1 > + > /**@internal*/ +2 > get +3 > c +1 >Emitted(12, 5) Source(17, 20) + SourceIndex(0) +2 >Emitted(12, 27) Source(17, 24) + SourceIndex(0) +3 >Emitted(12, 49) Source(17, 25) + SourceIndex(0) +--- +>>> /**@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /**@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(13, 9) Source(17, 5) + SourceIndex(0) +2 >Emitted(13, 23) Source(17, 19) + SourceIndex(0) +3 >Emitted(13, 29) Source(17, 20) + SourceIndex(0) +4 >Emitted(13, 43) Source(17, 30) + SourceIndex(0) +5 >Emitted(13, 50) Source(17, 37) + SourceIndex(0) +6 >Emitted(13, 52) Source(17, 39) + SourceIndex(0) +7 >Emitted(13, 53) Source(17, 40) + SourceIndex(0) +8 >Emitted(13, 54) Source(17, 41) + SourceIndex(0) +9 >Emitted(13, 55) Source(17, 42) + SourceIndex(0) +--- +>>> /**@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(14, 9) Source(18, 5) + SourceIndex(0) +2 >Emitted(14, 23) Source(18, 19) + SourceIndex(0) +3 >Emitted(14, 29) Source(18, 20) + SourceIndex(0) +4 >Emitted(14, 39) Source(18, 26) + SourceIndex(0) +5 >Emitted(14, 42) Source(18, 37) + SourceIndex(0) +6 >Emitted(14, 46) Source(18, 41) + SourceIndex(0) +7 >Emitted(14, 47) Source(18, 42) + SourceIndex(0) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(17, 8) Source(17, 42) + SourceIndex(0) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(18, 5) Source(19, 1) + SourceIndex(0) +2 >Emitted(18, 19) Source(19, 2) + SourceIndex(0) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) +3 >Emitted(19, 2) Source(13, 1) + SourceIndex(0) +4 >Emitted(19, 6) Source(19, 2) + SourceIndex(0) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(20, 5) Source(20, 11) + SourceIndex(0) +3 >Emitted(20, 12) Source(20, 18) + SourceIndex(0) +4 >Emitted(20, 13) Source(29, 2) + SourceIndex(0) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(21, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(21, 12) Source(20, 11) + SourceIndex(0) +3 >Emitted(21, 19) Source(20, 18) + SourceIndex(0) +--- +>>> /**@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1-> { + > +2 > /**@internal*/ +3 > +1->Emitted(22, 5) Source(21, 5) + SourceIndex(0) +2 >Emitted(22, 19) Source(21, 19) + SourceIndex(0) +3 >Emitted(22, 20) Source(21, 20) + SourceIndex(0) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(23, 9) Source(21, 20) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(24, 9) Source(21, 37) + SourceIndex(0) +2 >Emitted(24, 10) Source(21, 38) + SourceIndex(0) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(25, 9) Source(21, 37) + SourceIndex(0) +2 >Emitted(25, 17) Source(21, 38) + SourceIndex(0) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(26, 5) Source(21, 37) + SourceIndex(0) +2 >Emitted(26, 6) Source(21, 38) + SourceIndex(0) +3 >Emitted(26, 6) Source(21, 20) + SourceIndex(0) +4 >Emitted(26, 10) Source(21, 38) + SourceIndex(0) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(27, 5) Source(21, 33) + SourceIndex(0) +2 >Emitted(27, 14) Source(21, 34) + SourceIndex(0) +3 >Emitted(27, 18) Source(21, 38) + SourceIndex(0) +4 >Emitted(27, 19) Source(21, 38) + SourceIndex(0) +--- +>>> /**@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(28, 5) Source(22, 5) + SourceIndex(0) +2 >Emitted(28, 19) Source(22, 19) + SourceIndex(0) +3 >Emitted(28, 20) Source(22, 20) + SourceIndex(0) +4 >Emitted(28, 29) Source(22, 36) + SourceIndex(0) +5 >Emitted(28, 32) Source(22, 39) + SourceIndex(0) +6 >Emitted(28, 37) Source(22, 43) + SourceIndex(0) +7 >Emitted(28, 38) Source(22, 44) + SourceIndex(0) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(29, 5) Source(22, 36) + SourceIndex(0) +2 >Emitted(29, 16) Source(22, 39) + SourceIndex(0) +3 >Emitted(29, 22) Source(22, 44) + SourceIndex(0) +4 >Emitted(29, 23) Source(22, 44) + SourceIndex(0) +--- +>>> /**@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(30, 5) Source(23, 5) + SourceIndex(0) +2 >Emitted(30, 19) Source(23, 19) + SourceIndex(0) +3 >Emitted(30, 20) Source(23, 20) + SourceIndex(0) +4 >Emitted(30, 24) Source(23, 37) + SourceIndex(0) +5 >Emitted(30, 37) Source(23, 50) + SourceIndex(0) +6 >Emitted(30, 38) Source(23, 72) + SourceIndex(0) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(31, 5) Source(23, 20) + SourceIndex(0) +2 >Emitted(31, 16) Source(23, 37) + SourceIndex(0) +3 >Emitted(31, 29) Source(23, 50) + SourceIndex(0) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(32, 9) Source(23, 53) + SourceIndex(0) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(33, 13) Source(23, 53) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(34, 13) Source(23, 69) + SourceIndex(0) +2 >Emitted(34, 14) Source(23, 70) + SourceIndex(0) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(35, 13) Source(23, 69) + SourceIndex(0) +2 >Emitted(35, 21) Source(23, 70) + SourceIndex(0) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(36, 9) Source(23, 69) + SourceIndex(0) +2 >Emitted(36, 10) Source(23, 70) + SourceIndex(0) +3 >Emitted(36, 10) Source(23, 53) + SourceIndex(0) +4 >Emitted(36, 14) Source(23, 70) + SourceIndex(0) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(37, 9) Source(23, 66) + SourceIndex(0) +2 >Emitted(37, 24) Source(23, 67) + SourceIndex(0) +3 >Emitted(37, 28) Source(23, 70) + SourceIndex(0) +4 >Emitted(37, 29) Source(23, 70) + SourceIndex(0) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(38, 5) Source(23, 71) + SourceIndex(0) +2 >Emitted(38, 6) Source(23, 72) + SourceIndex(0) +3 >Emitted(38, 8) Source(23, 37) + SourceIndex(0) +4 >Emitted(38, 21) Source(23, 50) + SourceIndex(0) +5 >Emitted(38, 24) Source(23, 37) + SourceIndex(0) +6 >Emitted(38, 45) Source(23, 50) + SourceIndex(0) +7 >Emitted(38, 50) Source(23, 37) + SourceIndex(0) +8 >Emitted(38, 71) Source(23, 50) + SourceIndex(0) +9 >Emitted(38, 79) Source(23, 72) + SourceIndex(0) +--- +>>> /**@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(39, 5) Source(24, 5) + SourceIndex(0) +2 >Emitted(39, 19) Source(24, 19) + SourceIndex(0) +3 >Emitted(39, 20) Source(24, 20) + SourceIndex(0) +4 >Emitted(39, 24) Source(24, 37) + SourceIndex(0) +5 >Emitted(39, 33) Source(24, 46) + SourceIndex(0) +6 >Emitted(39, 34) Source(24, 86) + SourceIndex(0) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(40, 5) Source(24, 20) + SourceIndex(0) +2 >Emitted(40, 16) Source(24, 37) + SourceIndex(0) +3 >Emitted(40, 25) Source(24, 46) + SourceIndex(0) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(41, 9) Source(24, 47) + SourceIndex(0) +2 >Emitted(41, 13) Source(24, 47) + SourceIndex(0) +3 >Emitted(41, 22) Source(24, 56) + SourceIndex(0) +4 >Emitted(41, 23) Source(24, 86) + SourceIndex(0) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(42, 9) Source(24, 47) + SourceIndex(0) +2 >Emitted(42, 20) Source(24, 47) + SourceIndex(0) +3 >Emitted(42, 29) Source(24, 56) + SourceIndex(0) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(43, 13) Source(24, 59) + SourceIndex(0) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(44, 17) Source(24, 59) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(45, 17) Source(24, 83) + SourceIndex(0) +2 >Emitted(45, 18) Source(24, 84) + SourceIndex(0) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(46, 17) Source(24, 83) + SourceIndex(0) +2 >Emitted(46, 33) Source(24, 84) + SourceIndex(0) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(47, 13) Source(24, 83) + SourceIndex(0) +2 >Emitted(47, 14) Source(24, 84) + SourceIndex(0) +3 >Emitted(47, 14) Source(24, 59) + SourceIndex(0) +4 >Emitted(47, 18) Source(24, 84) + SourceIndex(0) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(48, 13) Source(24, 72) + SourceIndex(0) +2 >Emitted(48, 32) Source(24, 81) + SourceIndex(0) +3 >Emitted(48, 44) Source(24, 84) + SourceIndex(0) +4 >Emitted(48, 45) Source(24, 84) + SourceIndex(0) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(49, 9) Source(24, 85) + SourceIndex(0) +2 >Emitted(49, 10) Source(24, 86) + SourceIndex(0) +3 >Emitted(49, 12) Source(24, 47) + SourceIndex(0) +4 >Emitted(49, 21) Source(24, 56) + SourceIndex(0) +5 >Emitted(49, 24) Source(24, 47) + SourceIndex(0) +6 >Emitted(49, 43) Source(24, 56) + SourceIndex(0) +7 >Emitted(49, 48) Source(24, 47) + SourceIndex(0) +8 >Emitted(49, 67) Source(24, 56) + SourceIndex(0) +9 >Emitted(49, 75) Source(24, 86) + SourceIndex(0) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(50, 5) Source(24, 85) + SourceIndex(0) +2 >Emitted(50, 6) Source(24, 86) + SourceIndex(0) +3 >Emitted(50, 8) Source(24, 37) + SourceIndex(0) +4 >Emitted(50, 17) Source(24, 46) + SourceIndex(0) +5 >Emitted(50, 20) Source(24, 37) + SourceIndex(0) +6 >Emitted(50, 37) Source(24, 46) + SourceIndex(0) +7 >Emitted(50, 42) Source(24, 37) + SourceIndex(0) +8 >Emitted(50, 59) Source(24, 46) + SourceIndex(0) +9 >Emitted(50, 67) Source(24, 86) + SourceIndex(0) +--- +>>> /**@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /**@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(51, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(51, 19) Source(25, 19) + SourceIndex(0) +3 >Emitted(51, 20) Source(25, 34) + SourceIndex(0) +4 >Emitted(51, 38) Source(25, 44) + SourceIndex(0) +5 >Emitted(51, 41) Source(25, 47) + SourceIndex(0) +6 >Emitted(51, 54) Source(25, 60) + SourceIndex(0) +7 >Emitted(51, 55) Source(25, 61) + SourceIndex(0) +8 >Emitted(51, 56) Source(25, 62) + SourceIndex(0) +9 >Emitted(51, 57) Source(25, 63) + SourceIndex(0) +--- +>>> /**@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > +2 > /**@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(52, 5) Source(27, 5) + SourceIndex(0) +2 >Emitted(52, 19) Source(27, 19) + SourceIndex(0) +3 >Emitted(52, 20) Source(27, 33) + SourceIndex(0) +4 >Emitted(52, 41) Source(27, 46) + SourceIndex(0) +5 >Emitted(52, 44) Source(27, 49) + SourceIndex(0) +6 >Emitted(52, 46) Source(27, 51) + SourceIndex(0) +7 >Emitted(52, 47) Source(27, 52) + SourceIndex(0) +--- +>>> /**@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /**@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(53, 5) Source(28, 5) + SourceIndex(0) +2 >Emitted(53, 19) Source(28, 19) + SourceIndex(0) +3 >Emitted(53, 20) Source(28, 20) + SourceIndex(0) +4 >Emitted(53, 24) Source(28, 32) + SourceIndex(0) +5 >Emitted(53, 36) Source(28, 56) + SourceIndex(0) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(54, 5) Source(28, 20) + SourceIndex(0) +2 >Emitted(54, 16) Source(28, 32) + SourceIndex(0) +3 >Emitted(54, 28) Source(28, 44) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(55, 9) Source(28, 47) + SourceIndex(0) +2 >Emitted(55, 50) Source(28, 48) + SourceIndex(0) +3 >Emitted(55, 51) Source(28, 48) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 9) Source(28, 50) + SourceIndex(0) +2 >Emitted(56, 50) Source(28, 51) + SourceIndex(0) +3 >Emitted(56, 51) Source(28, 51) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(57, 9) Source(28, 53) + SourceIndex(0) +2 >Emitted(57, 50) Source(28, 54) + SourceIndex(0) +3 >Emitted(57, 51) Source(28, 54) + SourceIndex(0) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(58, 5) Source(28, 55) + SourceIndex(0) +2 >Emitted(58, 6) Source(28, 56) + SourceIndex(0) +3 >Emitted(58, 8) Source(28, 32) + SourceIndex(0) +4 >Emitted(58, 20) Source(28, 44) + SourceIndex(0) +5 >Emitted(58, 23) Source(28, 32) + SourceIndex(0) +6 >Emitted(58, 43) Source(28, 44) + SourceIndex(0) +7 >Emitted(58, 48) Source(28, 32) + SourceIndex(0) +8 >Emitted(58, 68) Source(28, 44) + SourceIndex(0) +9 >Emitted(58, 76) Source(28, 56) + SourceIndex(0) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(59, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(59, 2) Source(29, 2) + SourceIndex(0) +3 >Emitted(59, 4) Source(20, 11) + SourceIndex(0) +4 >Emitted(59, 11) Source(20, 18) + SourceIndex(0) +5 >Emitted(59, 16) Source(20, 11) + SourceIndex(0) +6 >Emitted(59, 23) Source(20, 18) + SourceIndex(0) +7 >Emitted(59, 31) Source(29, 2) + SourceIndex(0) +--- +>>>/**@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^-> +1-> + > +2 >/**@internal*/ +3 > +1->Emitted(60, 1) Source(30, 1) + SourceIndex(0) +2 >Emitted(60, 15) Source(30, 15) + SourceIndex(0) +3 >Emitted(60, 16) Source(30, 16) + SourceIndex(0) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(61, 5) Source(30, 16) + SourceIndex(0) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(62, 5) Source(30, 33) + SourceIndex(0) +2 >Emitted(62, 6) Source(30, 34) + SourceIndex(0) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(63, 5) Source(30, 33) + SourceIndex(0) +2 >Emitted(63, 21) Source(30, 34) + SourceIndex(0) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(64, 1) Source(30, 33) + SourceIndex(0) +2 >Emitted(64, 2) Source(30, 34) + SourceIndex(0) +3 >Emitted(64, 2) Source(30, 16) + SourceIndex(0) +4 >Emitted(64, 6) Source(30, 34) + SourceIndex(0) +--- +>>>/**@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(65, 1) Source(31, 1) + SourceIndex(0) +2 >Emitted(65, 15) Source(31, 15) + SourceIndex(0) +3 >Emitted(65, 16) Source(31, 16) + SourceIndex(0) +4 >Emitted(65, 25) Source(31, 25) + SourceIndex(0) +5 >Emitted(65, 36) Source(31, 36) + SourceIndex(0) +6 >Emitted(65, 41) Source(31, 40) + SourceIndex(0) +7 >Emitted(65, 42) Source(31, 41) + SourceIndex(0) +--- +>>>/**@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(66, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(66, 15) Source(32, 15) + SourceIndex(0) +3 >Emitted(66, 16) Source(32, 16) + SourceIndex(0) +4 >Emitted(66, 20) Source(32, 26) + SourceIndex(0) +5 >Emitted(66, 37) Source(32, 43) + SourceIndex(0) +6 >Emitted(66, 38) Source(32, 73) + SourceIndex(0) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(67, 1) Source(32, 16) + SourceIndex(0) +2 >Emitted(67, 12) Source(32, 26) + SourceIndex(0) +3 >Emitted(67, 29) Source(32, 43) + SourceIndex(0) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(68, 5) Source(32, 46) + SourceIndex(0) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(69, 9) Source(32, 46) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(70, 9) Source(32, 70) + SourceIndex(0) +2 >Emitted(70, 10) Source(32, 71) + SourceIndex(0) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(71, 9) Source(32, 70) + SourceIndex(0) +2 >Emitted(71, 25) Source(32, 71) + SourceIndex(0) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(72, 5) Source(32, 70) + SourceIndex(0) +2 >Emitted(72, 6) Source(32, 71) + SourceIndex(0) +3 >Emitted(72, 6) Source(32, 46) + SourceIndex(0) +4 >Emitted(72, 10) Source(32, 71) + SourceIndex(0) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(73, 5) Source(32, 59) + SourceIndex(0) +2 >Emitted(73, 32) Source(32, 68) + SourceIndex(0) +3 >Emitted(73, 44) Source(32, 71) + SourceIndex(0) +4 >Emitted(73, 45) Source(32, 71) + SourceIndex(0) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(74, 1) Source(32, 72) + SourceIndex(0) +2 >Emitted(74, 2) Source(32, 73) + SourceIndex(0) +3 >Emitted(74, 4) Source(32, 26) + SourceIndex(0) +4 >Emitted(74, 21) Source(32, 43) + SourceIndex(0) +5 >Emitted(74, 26) Source(32, 26) + SourceIndex(0) +6 >Emitted(74, 43) Source(32, 43) + SourceIndex(0) +7 >Emitted(74, 51) Source(32, 73) + SourceIndex(0) +--- +>>>/**@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(75, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(75, 15) Source(33, 15) + SourceIndex(0) +3 >Emitted(75, 16) Source(33, 16) + SourceIndex(0) +4 >Emitted(75, 20) Source(33, 26) + SourceIndex(0) +5 >Emitted(75, 33) Source(33, 39) + SourceIndex(0) +6 >Emitted(75, 34) Source(33, 79) + SourceIndex(0) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(76, 1) Source(33, 16) + SourceIndex(0) +2 >Emitted(76, 12) Source(33, 26) + SourceIndex(0) +3 >Emitted(76, 25) Source(33, 39) + SourceIndex(0) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(77, 5) Source(33, 40) + SourceIndex(0) +2 >Emitted(77, 9) Source(33, 40) + SourceIndex(0) +3 >Emitted(77, 18) Source(33, 49) + SourceIndex(0) +4 >Emitted(77, 19) Source(33, 79) + SourceIndex(0) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(78, 5) Source(33, 40) + SourceIndex(0) +2 >Emitted(78, 16) Source(33, 40) + SourceIndex(0) +3 >Emitted(78, 25) Source(33, 49) + SourceIndex(0) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(79, 9) Source(33, 52) + SourceIndex(0) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(80, 13) Source(33, 52) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(81, 13) Source(33, 76) + SourceIndex(0) +2 >Emitted(81, 14) Source(33, 77) + SourceIndex(0) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(82, 13) Source(33, 76) + SourceIndex(0) +2 >Emitted(82, 29) Source(33, 77) + SourceIndex(0) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(83, 9) Source(33, 76) + SourceIndex(0) +2 >Emitted(83, 10) Source(33, 77) + SourceIndex(0) +3 >Emitted(83, 10) Source(33, 52) + SourceIndex(0) +4 >Emitted(83, 14) Source(33, 77) + SourceIndex(0) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(84, 9) Source(33, 65) + SourceIndex(0) +2 >Emitted(84, 28) Source(33, 74) + SourceIndex(0) +3 >Emitted(84, 40) Source(33, 77) + SourceIndex(0) +4 >Emitted(84, 41) Source(33, 77) + SourceIndex(0) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(85, 5) Source(33, 78) + SourceIndex(0) +2 >Emitted(85, 6) Source(33, 79) + SourceIndex(0) +3 >Emitted(85, 8) Source(33, 40) + SourceIndex(0) +4 >Emitted(85, 17) Source(33, 49) + SourceIndex(0) +5 >Emitted(85, 20) Source(33, 40) + SourceIndex(0) +6 >Emitted(85, 43) Source(33, 49) + SourceIndex(0) +7 >Emitted(85, 48) Source(33, 40) + SourceIndex(0) +8 >Emitted(85, 71) Source(33, 49) + SourceIndex(0) +9 >Emitted(85, 79) Source(33, 79) + SourceIndex(0) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(86, 1) Source(33, 78) + SourceIndex(0) +2 >Emitted(86, 2) Source(33, 79) + SourceIndex(0) +3 >Emitted(86, 4) Source(33, 26) + SourceIndex(0) +4 >Emitted(86, 17) Source(33, 39) + SourceIndex(0) +5 >Emitted(86, 22) Source(33, 26) + SourceIndex(0) +6 >Emitted(86, 35) Source(33, 39) + SourceIndex(0) +7 >Emitted(86, 43) Source(33, 79) + SourceIndex(0) +--- +>>>/**@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/**@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(87, 1) Source(34, 1) + SourceIndex(0) +2 >Emitted(87, 15) Source(34, 15) + SourceIndex(0) +3 >Emitted(87, 16) Source(34, 16) + SourceIndex(0) +4 >Emitted(87, 20) Source(34, 23) + SourceIndex(0) +5 >Emitted(87, 34) Source(34, 37) + SourceIndex(0) +6 >Emitted(87, 37) Source(34, 40) + SourceIndex(0) +7 >Emitted(87, 54) Source(34, 57) + SourceIndex(0) +8 >Emitted(87, 55) Source(34, 58) + SourceIndex(0) +9 >Emitted(87, 64) Source(34, 67) + SourceIndex(0) +10>Emitted(87, 65) Source(34, 68) + SourceIndex(0) +--- +>>>/**@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/**@internal*/ type internalType = internalC; + > +2 >/**@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(88, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(88, 15) Source(36, 15) + SourceIndex(0) +3 >Emitted(88, 16) Source(36, 16) + SourceIndex(0) +4 >Emitted(88, 20) Source(36, 22) + SourceIndex(0) +5 >Emitted(88, 33) Source(36, 35) + SourceIndex(0) +6 >Emitted(88, 36) Source(36, 38) + SourceIndex(0) +7 >Emitted(88, 38) Source(36, 40) + SourceIndex(0) +8 >Emitted(88, 39) Source(36, 41) + SourceIndex(0) +--- +>>>/**@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/**@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(89, 1) Source(37, 1) + SourceIndex(0) +2 >Emitted(89, 15) Source(37, 15) + SourceIndex(0) +3 >Emitted(89, 16) Source(37, 16) + SourceIndex(0) +4 >Emitted(89, 20) Source(37, 21) + SourceIndex(0) +5 >Emitted(89, 32) Source(37, 45) + SourceIndex(0) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(90, 1) Source(37, 16) + SourceIndex(0) +2 >Emitted(90, 12) Source(37, 21) + SourceIndex(0) +3 >Emitted(90, 24) Source(37, 33) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(91, 5) Source(37, 36) + SourceIndex(0) +2 >Emitted(91, 46) Source(37, 37) + SourceIndex(0) +3 >Emitted(91, 47) Source(37, 37) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(92, 5) Source(37, 39) + SourceIndex(0) +2 >Emitted(92, 46) Source(37, 40) + SourceIndex(0) +3 >Emitted(92, 47) Source(37, 40) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(93, 5) Source(37, 42) + SourceIndex(0) +2 >Emitted(93, 46) Source(37, 43) + SourceIndex(0) +3 >Emitted(93, 47) Source(37, 43) + SourceIndex(0) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(94, 1) Source(37, 44) + SourceIndex(0) +2 >Emitted(94, 2) Source(37, 45) + SourceIndex(0) +3 >Emitted(94, 4) Source(37, 21) + SourceIndex(0) +4 >Emitted(94, 16) Source(37, 33) + SourceIndex(0) +5 >Emitted(94, 21) Source(37, 21) + SourceIndex(0) +6 >Emitted(94, 33) Source(37, 33) + SourceIndex(0) +7 >Emitted(94, 41) Source(37, 45) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(95, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(96, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(97, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(98, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(98, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(98, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(99, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(99, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(99, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(99, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(99, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(99, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(99, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(99, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(100, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(101, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(102, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(102, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3434, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 77, + "kind": "text" + }, + { + "pos": 77, + "end": 226, + "kind": "internal" + }, + { + "pos": 228, + "end": 260, + "kind": "text" + }, + { + "pos": 260, + "end": 772, + "kind": "internal" + }, + { + "pos": 774, + "end": 777, + "kind": "text" + }, + { + "pos": 777, + "end": 1310, + "kind": "internal" + }, + { + "pos": 1312, + "end": 1360, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-3434) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-77) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (77-226) + /**@internal*/ constructor(); + /**@internal*/ prop: string; + /**@internal*/ method(): void; + /**@internal*/ /**@internal*/ c: number; +---------------------------------------------------------------------- +text: (228-260) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (260-772) + /**@internal*/ class C { + } + /**@internal*/ function foo(): void; + /**@internal*/ namespace someNamespace { + class C { + } + } + /**@internal*/ namespace someOther.something { + class someClass { + } + } + /**@internal*/ export import someImport = someNamespace.C; + /**@internal*/ type internalType = internalC; + /**@internal*/ const internalConst = 10; + /**@internal*/ enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (774-777) +} + +---------------------------------------------------------------------- +internal: (777-1310) +/**@internal*/ declare class internalC { +} +/**@internal*/ declare function internalfoo(): void; +/**@internal*/ declare namespace internalNamespace { + class someClass { + } +} +/**@internal*/ declare namespace internalOther.something { + class someClass { + } +} +/**@internal*/ import internalImport = internalNamespace.someClass; +/**@internal*/ declare type internalType = internalC; +/**@internal*/ declare const internalConst = 10; +/**@internal*/ declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1312-1360) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +/**@internal*/ interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,cAAc,CAAC,UAAU,QAAQ;IAC7B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>/**@internal*/ interface TheFirst { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^ +1 > +2 >/**@internal*/ +3 > +4 > interface +5 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +3 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +4 >Emitted(1, 26) Source(1, 26) + SourceIndex(0) +5 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, + "end": 172, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-54) +/**@internal*/ interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (56-172) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/first/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [ + ] +} + + +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + +class normalC { + /**@internal*/ constructor() { } + /**@internal*/ prop: string; + /**@internal*/ method() { } + /**@internal*/ get c() { return 10; } + /**@internal*/ set c(val: number) { } +} +namespace normalN { + /**@internal*/ export class C { } + /**@internal*/ export function foo() {} + /**@internal*/ export namespace someNamespace { export class C {} } + /**@internal*/ export namespace someOther.something { export class someClass {} } + /**@internal*/ export import someImport = someNamespace.C; + /**@internal*/ export type internalType = internalC; + /**@internal*/ export const internalConst = 10; + /**@internal*/ export enum internalEnum { a, b, c } +} +/**@internal*/ class internalC {} +/**@internal*/ function internalfoo() {} +/**@internal*/ namespace internalNamespace { export class someClass {} } +/**@internal*/ namespace internalOther.something { export class someClass {} } +/**@internal*/ import internalImport = internalNamespace.someClass; +/**@internal*/ type internalType = internalC; +/**@internal*/ const internalConst = 10; +/**@internal*/ enum internalEnum { a, b, c } + +//// [/src/second/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [ + ] +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare const s = "Hello, world"; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + >} +1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /**@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /**@internal*/ +3 > +1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) +3 >Emitted(15, 20) Source(14, 20) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(16, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 37) + SourceIndex(3) +--- +>>> /**@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /**@internal*/ prop: string; + > +2 > /**@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) +3 >Emitted(17, 20) Source(16, 20) + SourceIndex(3) +4 >Emitted(17, 44) Source(16, 26) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 20) + SourceIndex(3) +6 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) +7 >Emitted(17, 62) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^-> +1 > + > /**@internal*/ +2 > get +3 > c +1 >Emitted(18, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 25) + SourceIndex(3) +--- +>>> /**@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /**@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(19, 23) Source(17, 19) + SourceIndex(3) +3 >Emitted(19, 29) Source(17, 20) + SourceIndex(3) +4 >Emitted(19, 43) Source(17, 30) + SourceIndex(3) +5 >Emitted(19, 50) Source(17, 37) + SourceIndex(3) +6 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) +7 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) +8 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) +9 >Emitted(19, 55) Source(17, 42) + SourceIndex(3) +--- +>>> /**@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(20, 23) Source(18, 19) + SourceIndex(3) +3 >Emitted(20, 29) Source(18, 20) + SourceIndex(3) +4 >Emitted(20, 39) Source(18, 26) + SourceIndex(3) +5 >Emitted(20, 42) Source(18, 37) + SourceIndex(3) +6 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) +7 >Emitted(20, 47) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /**@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1-> { + > +2 > /**@internal*/ +3 > +1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) +3 >Emitted(28, 20) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 38) + SourceIndex(3) +--- +>>> /**@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) +3 >Emitted(34, 20) Source(22, 20) + SourceIndex(3) +4 >Emitted(34, 29) Source(22, 36) + SourceIndex(3) +5 >Emitted(34, 32) Source(22, 39) + SourceIndex(3) +6 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) +7 >Emitted(34, 38) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(35, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) +--- +>>> /**@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) +3 >Emitted(36, 20) Source(23, 20) + SourceIndex(3) +4 >Emitted(36, 24) Source(23, 37) + SourceIndex(3) +5 >Emitted(36, 37) Source(23, 50) + SourceIndex(3) +6 >Emitted(36, 38) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(37, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 72) + SourceIndex(3) +--- +>>> /**@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) +3 >Emitted(45, 20) Source(24, 20) + SourceIndex(3) +4 >Emitted(45, 24) Source(24, 37) + SourceIndex(3) +5 >Emitted(45, 33) Source(24, 46) + SourceIndex(3) +6 >Emitted(45, 34) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 86) + SourceIndex(3) +--- +>>> /**@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /**@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(57, 19) Source(25, 19) + SourceIndex(3) +3 >Emitted(57, 20) Source(25, 34) + SourceIndex(3) +4 >Emitted(57, 38) Source(25, 44) + SourceIndex(3) +5 >Emitted(57, 41) Source(25, 47) + SourceIndex(3) +6 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) +7 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) +8 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) +9 >Emitted(57, 57) Source(25, 63) + SourceIndex(3) +--- +>>> /**@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > +2 > /**@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(58, 19) Source(27, 19) + SourceIndex(3) +3 >Emitted(58, 20) Source(27, 33) + SourceIndex(3) +4 >Emitted(58, 41) Source(27, 46) + SourceIndex(3) +5 >Emitted(58, 44) Source(27, 49) + SourceIndex(3) +6 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) +7 >Emitted(58, 47) Source(27, 52) + SourceIndex(3) +--- +>>> /**@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /**@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) +3 >Emitted(59, 20) Source(28, 20) + SourceIndex(3) +4 >Emitted(59, 24) Source(28, 32) + SourceIndex(3) +5 >Emitted(59, 36) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@internal*/ export class C { } + > /**@internal*/ export function foo() {} + > /**@internal*/ export namespace someNamespace { export class C {} } + > /**@internal*/ export namespace someOther.something { export class someClass {} } + > /**@internal*/ export import someImport = someNamespace.C; + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const internalConst = 10; + > /**@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/**@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^-> +1-> + > +2 >/**@internal*/ +3 > +1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) +3 >Emitted(66, 16) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 34) + SourceIndex(3) +--- +>>>/**@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) +3 >Emitted(71, 16) Source(31, 16) + SourceIndex(3) +4 >Emitted(71, 25) Source(31, 25) + SourceIndex(3) +5 >Emitted(71, 36) Source(31, 36) + SourceIndex(3) +6 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) +7 >Emitted(71, 42) Source(31, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) +3 >Emitted(72, 16) Source(32, 16) + SourceIndex(3) +4 >Emitted(72, 20) Source(32, 26) + SourceIndex(3) +5 >Emitted(72, 37) Source(32, 43) + SourceIndex(3) +6 >Emitted(72, 38) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 73) + SourceIndex(3) +--- +>>>/**@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) +3 >Emitted(81, 16) Source(33, 16) + SourceIndex(3) +4 >Emitted(81, 20) Source(33, 26) + SourceIndex(3) +5 >Emitted(81, 33) Source(33, 39) + SourceIndex(3) +6 >Emitted(81, 34) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 79) + SourceIndex(3) +--- +>>>/**@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/**@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) +3 >Emitted(93, 16) Source(34, 16) + SourceIndex(3) +4 >Emitted(93, 20) Source(34, 23) + SourceIndex(3) +5 >Emitted(93, 34) Source(34, 37) + SourceIndex(3) +6 >Emitted(93, 37) Source(34, 40) + SourceIndex(3) +7 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) +8 >Emitted(93, 55) Source(34, 58) + SourceIndex(3) +9 >Emitted(93, 64) Source(34, 67) + SourceIndex(3) +10>Emitted(93, 65) Source(34, 68) + SourceIndex(3) +--- +>>>/**@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/**@internal*/ type internalType = internalC; + > +2 >/**@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) +3 >Emitted(94, 16) Source(36, 16) + SourceIndex(3) +4 >Emitted(94, 20) Source(36, 22) + SourceIndex(3) +5 >Emitted(94, 33) Source(36, 35) + SourceIndex(3) +6 >Emitted(94, 36) Source(36, 38) + SourceIndex(3) +7 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) +8 >Emitted(94, 39) Source(36, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/**@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) +3 >Emitted(95, 16) Source(37, 16) + SourceIndex(3) +4 >Emitted(95, 20) Source(37, 21) + SourceIndex(3) +5 >Emitted(95, 32) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3544, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 3544, + "kind": "text" + } + ] + }, + { + "pos": 3544, + "end": 3580, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 116, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 116, + "kind": "text" + } + ] + }, + { + "pos": 116, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 116, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-3544):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-3544) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /**@internal*/ function normalC() { + } + /**@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /**@internal*/ get: function () { return 10; }, + /**@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /**@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /**@internal*/ function foo() { } + normalN.foo = foo; + /**@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /**@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /**@internal*/ normalN.someImport = someNamespace.C; + /**@internal*/ normalN.internalConst = 10; + /**@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/**@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3544-3580) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-116) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (116-276) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, +"stripInternal": true + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-few-members-of-enum-are-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-few-members-of-enum-are-internal.js new file mode 100644 index 00000000000..37b97a2e325 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-few-members-of-enum-are-internal.js @@ -0,0 +1,2742 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:00:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:00:00 PM - Building project '/src/first/tsconfig.json'... + +4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:00:00 PM - Building project '/src/second/tsconfig.json'... + +4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:00:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 285, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-285) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +declare enum TokenFlags { + None = 0, + PrecedingLineBreak = 1, + PrecedingJSDocComment = 2, + Unterminated = 4, + ExtendedUnicodeEscape = 8, + Scientific = 16, + Octal = 32, + HexSpecifier = 64, + BinarySpecifier = 128, + OctalSpecifier = 256, + ContainsSeparator = 512, + BinaryOrOctalSpecifier = 384, + NumericLiteralFlags = 1008 +} +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IAER,kBAAkB,IAAS;IAE3B,qBAAqB,IAAS;IAE9B,YAAY,IAAS;IAErB,qBAAqB,IAAS;IAC9B,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;IAEvB,iBAAiB,MAAS;IAE1B,sBAAsB,MAAmC;IAEzD,mBAAmB,OAAiF;CACvG;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AE9BD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>declare enum TokenFlags { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^ +1 > +2 >enum +3 > TokenFlags +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 24) Source(1, 16) + SourceIndex(0) +--- +>>> None = 0, +1 >^^^^ +2 > ^^^^ +3 > ^^^^ +4 > ^^^^^^^^^^^^^^^^-> +1 > { + > +2 > None +3 > = 0 +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +--- +>>> PrecedingLineBreak = 1, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^^^^^-> +1->, + > /* @internal */ + > +2 > PrecedingLineBreak +3 > = 1 << 0 +1->Emitted(3, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(3, 23) Source(4, 23) + SourceIndex(0) +3 >Emitted(3, 27) Source(4, 32) + SourceIndex(0) +--- +>>> PrecedingJSDocComment = 2, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^ +1->, + > /* @internal */ + > +2 > PrecedingJSDocComment +3 > = 1 << 1 +1->Emitted(4, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(4, 26) Source(6, 26) + SourceIndex(0) +3 >Emitted(4, 30) Source(6, 35) + SourceIndex(0) +--- +>>> Unterminated = 4, +1 >^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^^^ +4 > ^^^^^^^^^^^-> +1 >, + > /* @internal */ + > +2 > Unterminated +3 > = 1 << 2 +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 17) Source(8, 17) + SourceIndex(0) +3 >Emitted(5, 21) Source(8, 26) + SourceIndex(0) +--- +>>> ExtendedUnicodeEscape = 8, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^ +1->, + > /* @internal */ + > +2 > ExtendedUnicodeEscape +3 > = 1 << 3 +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 26) Source(10, 26) + SourceIndex(0) +3 >Emitted(6, 30) Source(10, 35) + SourceIndex(0) +--- +>>> Scientific = 16, +1 >^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^ +1 >, + > +2 > Scientific +3 > = 1 << 4 +1 >Emitted(7, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(7, 15) Source(11, 15) + SourceIndex(0) +3 >Emitted(7, 20) Source(11, 24) + SourceIndex(0) +--- +>>> Octal = 32, +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^ +4 > ^^^^^^^^^-> +1 >, + > +2 > Octal +3 > = 1 << 5 +1 >Emitted(8, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(8, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 15) Source(12, 19) + SourceIndex(0) +--- +>>> HexSpecifier = 64, +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^^^^ +4 > ^^^^^^-> +1->, + > +2 > HexSpecifier +3 > = 1 << 6 +1->Emitted(9, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(9, 17) Source(13, 17) + SourceIndex(0) +3 >Emitted(9, 22) Source(13, 26) + SourceIndex(0) +--- +>>> BinarySpecifier = 128, +1->^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^-> +1->, + > +2 > BinarySpecifier +3 > = 1 << 7 +1->Emitted(10, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(10, 20) Source(14, 20) + SourceIndex(0) +3 >Emitted(10, 26) Source(14, 29) + SourceIndex(0) +--- +>>> OctalSpecifier = 256, +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^-> +1->, + > +2 > OctalSpecifier +3 > = 1 << 8 +1->Emitted(11, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(11, 19) Source(15, 19) + SourceIndex(0) +3 >Emitted(11, 25) Source(15, 28) + SourceIndex(0) +--- +>>> ContainsSeparator = 512, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^-> +1->, + > /* @internal */ + > +2 > ContainsSeparator +3 > = 1 << 9 +1->Emitted(12, 5) Source(17, 5) + SourceIndex(0) +2 >Emitted(12, 22) Source(17, 22) + SourceIndex(0) +3 >Emitted(12, 28) Source(17, 31) + SourceIndex(0) +--- +>>> BinaryOrOctalSpecifier = 384, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^ +1->, + > /* @internal */ + > +2 > BinaryOrOctalSpecifier +3 > = BinarySpecifier | OctalSpecifier +1->Emitted(13, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(13, 27) Source(19, 27) + SourceIndex(0) +3 >Emitted(13, 33) Source(19, 62) + SourceIndex(0) +--- +>>> NumericLiteralFlags = 1008 +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1 >, + > /* @internal */ + > +2 > NumericLiteralFlags +3 > = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator +1 >Emitted(14, 5) Source(21, 5) + SourceIndex(0) +2 >Emitted(14, 24) Source(21, 24) + SourceIndex(0) +3 >Emitted(14, 31) Source(21, 105) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(15, 2) Source(22, 2) + SourceIndex(0) +--- +>>>interface TheFirst { +1-> +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1-> + > +2 >interface +3 > TheFirst +1->Emitted(16, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(16, 11) Source(23, 11) + SourceIndex(0) +3 >Emitted(16, 19) Source(23, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(17, 5) Source(24, 5) + SourceIndex(0) +2 >Emitted(17, 9) Source(24, 9) + SourceIndex(0) +3 >Emitted(17, 11) Source(24, 11) + SourceIndex(0) +4 >Emitted(17, 14) Source(24, 14) + SourceIndex(0) +5 >Emitted(17, 15) Source(24, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(18, 2) Source(25, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(19, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(19, 9) Source(27, 1) + SourceIndex(0) +3 >Emitted(19, 15) Source(27, 7) + SourceIndex(0) +4 >Emitted(19, 16) Source(27, 8) + SourceIndex(0) +5 >Emitted(19, 33) Source(27, 25) + SourceIndex(0) +6 >Emitted(19, 34) Source(27, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(20, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(20, 11) Source(29, 11) + SourceIndex(0) +3 >Emitted(20, 28) Source(29, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(21, 5) Source(30, 5) + SourceIndex(0) +2 >Emitted(21, 9) Source(30, 9) + SourceIndex(0) +3 >Emitted(21, 11) Source(30, 11) + SourceIndex(0) +4 >Emitted(21, 14) Source(30, 14) + SourceIndex(0) +5 >Emitted(21, 15) Source(30, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(22, 2) Source(31, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(23, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(23, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(23, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(23, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var TokenFlags; +(function (TokenFlags) { + TokenFlags[TokenFlags["None"] = 0] = "None"; + TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; + TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; + TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; + TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; + TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; + TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; + TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; + TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; + TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; + TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; + TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; + TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; +})(TokenFlags || (TokenFlags = {})); +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var TokenFlags; +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > +2 >enum +3 > TokenFlags { + > None = 0, + > /* @internal */ + > PrecedingLineBreak = 1 << 0, + > /* @internal */ + > PrecedingJSDocComment = 1 << 1, + > /* @internal */ + > Unterminated = 1 << 2, + > /* @internal */ + > ExtendedUnicodeEscape = 1 << 3, + > Scientific = 1 << 4, + > Octal = 1 << 5, + > HexSpecifier = 1 << 6, + > BinarySpecifier = 1 << 7, + > OctalSpecifier = 1 << 8, + > /* @internal */ + > ContainsSeparator = 1 << 9, + > /* @internal */ + > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + > /* @internal */ + > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator + > } +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 15) Source(22, 2) + SourceIndex(0) +--- +>>>(function (TokenFlags) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > TokenFlags +1->Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(1, 6) + SourceIndex(0) +3 >Emitted(2, 22) Source(1, 16) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["None"] = 0] = "None"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > None = 0 +3 > +1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(3, 48) Source(2, 13) + SourceIndex(0) +3 >Emitted(3, 49) Source(2, 13) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1->, + > /* @internal */ + > +2 > PrecedingLineBreak = 1 << 0 +3 > +1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(4, 76) Source(4, 32) + SourceIndex(0) +3 >Emitted(4, 77) Source(4, 32) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > /* @internal */ + > +2 > PrecedingJSDocComment = 1 << 1 +3 > +1->Emitted(5, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(5, 82) Source(6, 35) + SourceIndex(0) +3 >Emitted(5, 83) Source(6, 35) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 >, + > /* @internal */ + > +2 > Unterminated = 1 << 2 +3 > +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 64) Source(8, 26) + SourceIndex(0) +3 >Emitted(6, 65) Source(8, 26) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > /* @internal */ + > +2 > ExtendedUnicodeEscape = 1 << 3 +3 > +1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(7, 82) Source(10, 35) + SourceIndex(0) +3 >Emitted(7, 83) Source(10, 35) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1 >, + > +2 > Scientific = 1 << 4 +3 > +1 >Emitted(8, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(8, 61) Source(11, 24) + SourceIndex(0) +3 >Emitted(8, 62) Source(11, 24) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^-> +1 >, + > +2 > Octal = 1 << 5 +3 > +1 >Emitted(9, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(9, 51) Source(12, 19) + SourceIndex(0) +3 >Emitted(9, 52) Source(12, 19) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^-> +1->, + > +2 > HexSpecifier = 1 << 6 +3 > +1->Emitted(10, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(10, 65) Source(13, 26) + SourceIndex(0) +3 >Emitted(10, 66) Source(13, 26) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > +2 > BinarySpecifier = 1 << 7 +3 > +1->Emitted(11, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(11, 72) Source(14, 29) + SourceIndex(0) +3 >Emitted(11, 73) Source(14, 29) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1 >, + > +2 > OctalSpecifier = 1 << 8 +3 > +1 >Emitted(12, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(12, 70) Source(15, 28) + SourceIndex(0) +3 >Emitted(12, 71) Source(15, 28) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^-> +1->, + > /* @internal */ + > +2 > ContainsSeparator = 1 << 9 +3 > +1->Emitted(13, 5) Source(17, 5) + SourceIndex(0) +2 >Emitted(13, 76) Source(17, 31) + SourceIndex(0) +3 >Emitted(13, 77) Source(17, 31) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > /* @internal */ + > +2 > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier +3 > +1->Emitted(14, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(14, 86) Source(19, 62) + SourceIndex(0) +3 >Emitted(14, 87) Source(19, 62) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1 >, + > /* @internal */ + > +2 > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator +3 > +1 >Emitted(15, 5) Source(21, 5) + SourceIndex(0) +2 >Emitted(15, 81) Source(21, 105) + SourceIndex(0) +3 >Emitted(15, 82) Source(21, 105) + SourceIndex(0) +--- +>>>})(TokenFlags || (TokenFlags = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^ +7 > ^^^^^^^^ +1 > + > +2 >} +3 > +4 > TokenFlags +5 > +6 > TokenFlags +7 > { + > None = 0, + > /* @internal */ + > PrecedingLineBreak = 1 << 0, + > /* @internal */ + > PrecedingJSDocComment = 1 << 1, + > /* @internal */ + > Unterminated = 1 << 2, + > /* @internal */ + > ExtendedUnicodeEscape = 1 << 3, + > Scientific = 1 << 4, + > Octal = 1 << 5, + > HexSpecifier = 1 << 6, + > BinarySpecifier = 1 << 7, + > OctalSpecifier = 1 << 8, + > /* @internal */ + > ContainsSeparator = 1 << 9, + > /* @internal */ + > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + > /* @internal */ + > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator + > } +1 >Emitted(16, 1) Source(22, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(22, 2) + SourceIndex(0) +3 >Emitted(16, 4) Source(1, 6) + SourceIndex(0) +4 >Emitted(16, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(16, 19) Source(1, 6) + SourceIndex(0) +6 >Emitted(16, 29) Source(1, 16) + SourceIndex(0) +7 >Emitted(16, 37) Source(22, 2) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 > + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(17, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(17, 5) Source(27, 7) + SourceIndex(0) +3 >Emitted(17, 6) Source(27, 8) + SourceIndex(0) +4 >Emitted(17, 9) Source(27, 11) + SourceIndex(0) +5 >Emitted(17, 23) Source(27, 25) + SourceIndex(0) +6 >Emitted(17, 24) Source(27, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(18, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(18, 8) Source(33, 8) + SourceIndex(0) +3 >Emitted(18, 9) Source(33, 9) + SourceIndex(0) +4 >Emitted(18, 12) Source(33, 12) + SourceIndex(0) +5 >Emitted(18, 13) Source(33, 13) + SourceIndex(0) +6 >Emitted(18, 14) Source(33, 14) + SourceIndex(0) +7 >Emitted(18, 15) Source(33, 15) + SourceIndex(0) +8 >Emitted(18, 16) Source(33, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(19, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(19, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(19, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(19, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(19, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(19, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(19, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(19, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(19, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(20, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(20, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(20, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(21, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(21, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(21, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(21, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(22, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1131, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 42, + "kind": "text" + }, + { + "pos": 42, + "end": 156, + "kind": "internal" + }, + { + "pos": 158, + "end": 276, + "kind": "text" + }, + { + "pos": 276, + "end": 371, + "kind": "internal" + }, + { + "pos": 373, + "end": 533, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-1131) +var TokenFlags; +(function (TokenFlags) { + TokenFlags[TokenFlags["None"] = 0] = "None"; + TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; + TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; + TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; + TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; + TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; + TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; + TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; + TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; + TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; + TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; + TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; + TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; +})(TokenFlags || (TokenFlags = {})); +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-42) +declare enum TokenFlags { + None = 0, + +---------------------------------------------------------------------- +internal: (42-156) + PrecedingLineBreak = 1, + PrecedingJSDocComment = 2, + Unterminated = 4, + ExtendedUnicodeEscape = 8, +---------------------------------------------------------------------- +text: (158-276) + Scientific = 16, + Octal = 32, + HexSpecifier = 64, + BinarySpecifier = 128, + OctalSpecifier = 256, + +---------------------------------------------------------------------- +internal: (276-371) + ContainsSeparator = 512, + BinaryOrOctalSpecifier = 384, + NumericLiteralFlags = 1008 +---------------------------------------------------------------------- +text: (373-533) +} +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +enum TokenFlags { + None = 0, + /* @internal */ + PrecedingLineBreak = 1 << 0, + /* @internal */ + PrecedingJSDocComment = 1 << 1, + /* @internal */ + Unterminated = 1 << 2, + /* @internal */ + ExtendedUnicodeEscape = 1 << 3, + Scientific = 1 << 4, + Octal = 1 << 5, + HexSpecifier = 1 << 6, + BinarySpecifier = 1 << 7, + OctalSpecifier = 1 << 8, + /* @internal */ + ContainsSeparator = 1 << 9, + /* @internal */ + BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + /* @internal */ + NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator +} +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare enum TokenFlags { + None = 0, + Scientific = 16, + Octal = 32, + HexSpecifier = 64, + BinarySpecifier = 128, + OctalSpecifier = 256, +} +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IASR,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;CAO1B;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AC9BD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare enum TokenFlags { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^ +1 > +2 >enum +3 > TokenFlags +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 24) Source(1, 16) + SourceIndex(0) +--- +>>> None = 0, +1 >^^^^ +2 > ^^^^ +3 > ^^^^ +4 > ^^^^^^^^^-> +1 > { + > +2 > None +3 > = 0 +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +--- +>>> Scientific = 16, +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^ +1->, + > /* @internal */ + > PrecedingLineBreak = 1 << 0, + > /* @internal */ + > PrecedingJSDocComment = 1 << 1, + > /* @internal */ + > Unterminated = 1 << 2, + > /* @internal */ + > ExtendedUnicodeEscape = 1 << 3, + > +2 > Scientific +3 > = 1 << 4 +1->Emitted(3, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +3 >Emitted(3, 20) Source(11, 24) + SourceIndex(0) +--- +>>> Octal = 32, +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^ +4 > ^^^^^^^^^-> +1 >, + > +2 > Octal +3 > = 1 << 5 +1 >Emitted(4, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(4, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(4, 15) Source(12, 19) + SourceIndex(0) +--- +>>> HexSpecifier = 64, +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^^^^ +4 > ^^^^^^-> +1->, + > +2 > HexSpecifier +3 > = 1 << 6 +1->Emitted(5, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(5, 17) Source(13, 17) + SourceIndex(0) +3 >Emitted(5, 22) Source(13, 26) + SourceIndex(0) +--- +>>> BinarySpecifier = 128, +1->^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^-> +1->, + > +2 > BinarySpecifier +3 > = 1 << 7 +1->Emitted(6, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(6, 20) Source(14, 20) + SourceIndex(0) +3 >Emitted(6, 26) Source(14, 29) + SourceIndex(0) +--- +>>> OctalSpecifier = 256, +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +1->, + > +2 > OctalSpecifier +3 > = 1 << 8 +1->Emitted(7, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(7, 19) Source(15, 19) + SourceIndex(0) +3 >Emitted(7, 25) Source(15, 28) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^-> +1 >, + > /* @internal */ + > ContainsSeparator = 1 << 9, + > /* @internal */ + > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + > /* @internal */ + > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator + >} +1 >Emitted(8, 2) Source(22, 2) + SourceIndex(0) +--- +>>>interface TheFirst { +1-> +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1-> + > +2 >interface +3 > TheFirst +1->Emitted(9, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(9, 11) Source(23, 11) + SourceIndex(0) +3 >Emitted(9, 19) Source(23, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(10, 5) Source(24, 5) + SourceIndex(0) +2 >Emitted(10, 9) Source(24, 9) + SourceIndex(0) +3 >Emitted(10, 11) Source(24, 11) + SourceIndex(0) +4 >Emitted(10, 14) Source(24, 14) + SourceIndex(0) +5 >Emitted(10, 15) Source(24, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(11, 2) Source(25, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(12, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(12, 9) Source(27, 1) + SourceIndex(0) +3 >Emitted(12, 15) Source(27, 7) + SourceIndex(0) +4 >Emitted(12, 16) Source(27, 8) + SourceIndex(0) +5 >Emitted(12, 33) Source(27, 25) + SourceIndex(0) +6 >Emitted(12, 34) Source(27, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(13, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(13, 11) Source(29, 11) + SourceIndex(0) +3 >Emitted(13, 28) Source(29, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(14, 5) Source(30, 5) + SourceIndex(0) +2 >Emitted(14, 9) Source(30, 9) + SourceIndex(0) +3 >Emitted(14, 11) Source(30, 11) + SourceIndex(0) +4 >Emitted(14, 14) Source(30, 14) + SourceIndex(0) +5 >Emitted(14, 15) Source(30, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(15, 2) Source(31, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(16, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(16, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(16, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(16, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(17, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(17, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(17, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(17, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(19, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(19, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(19, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(19, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(20, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(21, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(21, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(21, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(22, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(22, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(23, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(24, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(24, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(24, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(24, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(24, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(24, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var TokenFlags; +(function (TokenFlags) { + TokenFlags[TokenFlags["None"] = 0] = "None"; + TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; + TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; + TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; + TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; + TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; + TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; + TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; + TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; + TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; + TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; + TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; + TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; +})(TokenFlags || (TokenFlags = {})); +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var TokenFlags; +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > +2 >enum +3 > TokenFlags { + > None = 0, + > /* @internal */ + > PrecedingLineBreak = 1 << 0, + > /* @internal */ + > PrecedingJSDocComment = 1 << 1, + > /* @internal */ + > Unterminated = 1 << 2, + > /* @internal */ + > ExtendedUnicodeEscape = 1 << 3, + > Scientific = 1 << 4, + > Octal = 1 << 5, + > HexSpecifier = 1 << 6, + > BinarySpecifier = 1 << 7, + > OctalSpecifier = 1 << 8, + > /* @internal */ + > ContainsSeparator = 1 << 9, + > /* @internal */ + > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + > /* @internal */ + > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator + > } +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 15) Source(22, 2) + SourceIndex(0) +--- +>>>(function (TokenFlags) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > TokenFlags +1->Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(1, 6) + SourceIndex(0) +3 >Emitted(2, 22) Source(1, 16) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["None"] = 0] = "None"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > None = 0 +3 > +1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(3, 48) Source(2, 13) + SourceIndex(0) +3 >Emitted(3, 49) Source(2, 13) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1->, + > /* @internal */ + > +2 > PrecedingLineBreak = 1 << 0 +3 > +1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(4, 76) Source(4, 32) + SourceIndex(0) +3 >Emitted(4, 77) Source(4, 32) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > /* @internal */ + > +2 > PrecedingJSDocComment = 1 << 1 +3 > +1->Emitted(5, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(5, 82) Source(6, 35) + SourceIndex(0) +3 >Emitted(5, 83) Source(6, 35) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 >, + > /* @internal */ + > +2 > Unterminated = 1 << 2 +3 > +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 64) Source(8, 26) + SourceIndex(0) +3 >Emitted(6, 65) Source(8, 26) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > /* @internal */ + > +2 > ExtendedUnicodeEscape = 1 << 3 +3 > +1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(7, 82) Source(10, 35) + SourceIndex(0) +3 >Emitted(7, 83) Source(10, 35) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1 >, + > +2 > Scientific = 1 << 4 +3 > +1 >Emitted(8, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(8, 61) Source(11, 24) + SourceIndex(0) +3 >Emitted(8, 62) Source(11, 24) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^-> +1 >, + > +2 > Octal = 1 << 5 +3 > +1 >Emitted(9, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(9, 51) Source(12, 19) + SourceIndex(0) +3 >Emitted(9, 52) Source(12, 19) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^-> +1->, + > +2 > HexSpecifier = 1 << 6 +3 > +1->Emitted(10, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(10, 65) Source(13, 26) + SourceIndex(0) +3 >Emitted(10, 66) Source(13, 26) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > +2 > BinarySpecifier = 1 << 7 +3 > +1->Emitted(11, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(11, 72) Source(14, 29) + SourceIndex(0) +3 >Emitted(11, 73) Source(14, 29) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1 >, + > +2 > OctalSpecifier = 1 << 8 +3 > +1 >Emitted(12, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(12, 70) Source(15, 28) + SourceIndex(0) +3 >Emitted(12, 71) Source(15, 28) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^-> +1->, + > /* @internal */ + > +2 > ContainsSeparator = 1 << 9 +3 > +1->Emitted(13, 5) Source(17, 5) + SourceIndex(0) +2 >Emitted(13, 76) Source(17, 31) + SourceIndex(0) +3 >Emitted(13, 77) Source(17, 31) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > /* @internal */ + > +2 > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier +3 > +1->Emitted(14, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(14, 86) Source(19, 62) + SourceIndex(0) +3 >Emitted(14, 87) Source(19, 62) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1 >, + > /* @internal */ + > +2 > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator +3 > +1 >Emitted(15, 5) Source(21, 5) + SourceIndex(0) +2 >Emitted(15, 81) Source(21, 105) + SourceIndex(0) +3 >Emitted(15, 82) Source(21, 105) + SourceIndex(0) +--- +>>>})(TokenFlags || (TokenFlags = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^ +7 > ^^^^^^^^ +1 > + > +2 >} +3 > +4 > TokenFlags +5 > +6 > TokenFlags +7 > { + > None = 0, + > /* @internal */ + > PrecedingLineBreak = 1 << 0, + > /* @internal */ + > PrecedingJSDocComment = 1 << 1, + > /* @internal */ + > Unterminated = 1 << 2, + > /* @internal */ + > ExtendedUnicodeEscape = 1 << 3, + > Scientific = 1 << 4, + > Octal = 1 << 5, + > HexSpecifier = 1 << 6, + > BinarySpecifier = 1 << 7, + > OctalSpecifier = 1 << 8, + > /* @internal */ + > ContainsSeparator = 1 << 9, + > /* @internal */ + > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + > /* @internal */ + > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator + > } +1 >Emitted(16, 1) Source(22, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(22, 2) + SourceIndex(0) +3 >Emitted(16, 4) Source(1, 6) + SourceIndex(0) +4 >Emitted(16, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(16, 19) Source(1, 6) + SourceIndex(0) +6 >Emitted(16, 29) Source(1, 16) + SourceIndex(0) +7 >Emitted(16, 37) Source(22, 2) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 > + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(17, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(17, 5) Source(27, 7) + SourceIndex(0) +3 >Emitted(17, 6) Source(27, 8) + SourceIndex(0) +4 >Emitted(17, 9) Source(27, 11) + SourceIndex(0) +5 >Emitted(17, 23) Source(27, 25) + SourceIndex(0) +6 >Emitted(17, 24) Source(27, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(18, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(18, 8) Source(33, 8) + SourceIndex(0) +3 >Emitted(18, 9) Source(33, 9) + SourceIndex(0) +4 >Emitted(18, 12) Source(33, 12) + SourceIndex(0) +5 >Emitted(18, 13) Source(33, 13) + SourceIndex(0) +6 >Emitted(18, 14) Source(33, 14) + SourceIndex(0) +7 >Emitted(18, 15) Source(33, 15) + SourceIndex(0) +8 >Emitted(18, 16) Source(33, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(19, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(19, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(19, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(19, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(19, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(19, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(19, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(19, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(19, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(20, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(20, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(20, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(21, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(21, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(21, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(21, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(22, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(23, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(23, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(23, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(23, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(24, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(24, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(24, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(25, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(25, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(25, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(26, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(26, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(26, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(26, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(26, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(26, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(26, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(26, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(27, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(27, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(28, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(28, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(28, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(28, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(29, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(29, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(29, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(29, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(29, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(29, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(29, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(30, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(31, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(32, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(33, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(33, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(33, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(34, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(34, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(34, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(34, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(34, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(34, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(34, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(34, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(35, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(36, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(37, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(37, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(38, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(38, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(38, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(38, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(38, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(38, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(38, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(38, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(39, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(39, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(39, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(39, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(39, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(39, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1131, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 1131, + "kind": "text" + } + ] + }, + { + "pos": 1131, + "end": 1416, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 1131, + "end": 1416, + "kind": "text" + } + ] + }, + { + "pos": 1416, + "end": 1452, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 320, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 320, + "kind": "text" + } + ] + }, + { + "pos": 320, + "end": 420, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 320, + "end": 420, + "kind": "text" + } + ] + }, + { + "pos": 420, + "end": 439, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-1131):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-1131) +var TokenFlags; +(function (TokenFlags) { + TokenFlags[TokenFlags["None"] = 0] = "None"; + TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; + TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; + TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; + TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; + TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; + TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; + TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; + TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; + TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; + TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; + TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; + TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; +})(TokenFlags || (TokenFlags = {})); +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (1131-1416):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1131-1416) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1416-1452) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-320):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-320) +declare enum TokenFlags { + None = 0, + Scientific = 16, + Octal = 32, + HexSpecifier = 64, + BinarySpecifier = 128, + OctalSpecifier = 256, +} +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (320-420):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (320-420) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (420-439) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, +"stripInternal": true + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js new file mode 100644 index 00000000000..edd66e3d3f6 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,5586 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.js": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/2/second-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { + constructor(); + prop: string; + method(): void; + c: number; +} +declare namespace normalN { + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +} +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/*@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +--- +>>> c: number; +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /*@internal*/ get +2 > c +3 > () { return 10; } + > /*@internal*/ set c(val: +4 > number +1->Emitted(17, 5) Source(17, 23) + SourceIndex(2) +2 >Emitted(17, 6) Source(17, 24) + SourceIndex(2) +3 >Emitted(17, 8) Source(18, 30) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 36) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(20, 5) Source(21, 19) + SourceIndex(2) +2 >Emitted(20, 11) Source(21, 32) + SourceIndex(2) +3 >Emitted(20, 12) Source(21, 33) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(21, 6) Source(21, 37) + SourceIndex(2) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(22, 5) Source(22, 19) + SourceIndex(2) +2 >Emitted(22, 14) Source(22, 35) + SourceIndex(2) +3 >Emitted(22, 17) Source(22, 38) + SourceIndex(2) +4 >Emitted(22, 26) Source(22, 43) + SourceIndex(2) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(23, 5) Source(23, 19) + SourceIndex(2) +2 >Emitted(23, 15) Source(23, 36) + SourceIndex(2) +3 >Emitted(23, 28) Source(23, 49) + SourceIndex(2) +4 >Emitted(23, 29) Source(23, 50) + SourceIndex(2) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(24, 9) Source(23, 52) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 65) + SourceIndex(2) +3 >Emitted(24, 16) Source(23, 66) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(25, 10) Source(23, 69) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(26, 6) Source(23, 71) + SourceIndex(2) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(27, 5) Source(24, 19) + SourceIndex(2) +2 >Emitted(27, 15) Source(24, 36) + SourceIndex(2) +3 >Emitted(27, 24) Source(24, 45) + SourceIndex(2) +4 >Emitted(27, 25) Source(24, 46) + SourceIndex(2) +5 >Emitted(27, 34) Source(24, 55) + SourceIndex(2) +6 >Emitted(27, 35) Source(24, 56) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(28, 9) Source(24, 58) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 71) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 80) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(29, 10) Source(24, 83) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(30, 6) Source(24, 85) + SourceIndex(2) +--- +>>> export import someImport = someNamespace.C; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /*@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(31, 5) Source(25, 19) + SourceIndex(2) +2 >Emitted(31, 11) Source(25, 25) + SourceIndex(2) +3 >Emitted(31, 19) Source(25, 33) + SourceIndex(2) +4 >Emitted(31, 29) Source(25, 43) + SourceIndex(2) +5 >Emitted(31, 32) Source(25, 46) + SourceIndex(2) +6 >Emitted(31, 45) Source(25, 59) + SourceIndex(2) +7 >Emitted(31, 46) Source(25, 60) + SourceIndex(2) +8 >Emitted(31, 47) Source(25, 61) + SourceIndex(2) +9 >Emitted(31, 48) Source(25, 62) + SourceIndex(2) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(32, 5) Source(26, 19) + SourceIndex(2) +2 >Emitted(32, 10) Source(26, 31) + SourceIndex(2) +3 >Emitted(32, 22) Source(26, 43) + SourceIndex(2) +4 >Emitted(32, 25) Source(26, 46) + SourceIndex(2) +5 >Emitted(32, 34) Source(26, 55) + SourceIndex(2) +6 >Emitted(32, 35) Source(26, 56) + SourceIndex(2) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(33, 5) Source(27, 26) + SourceIndex(2) +2 >Emitted(33, 11) Source(27, 32) + SourceIndex(2) +3 >Emitted(33, 24) Source(27, 45) + SourceIndex(2) +4 >Emitted(33, 29) Source(27, 50) + SourceIndex(2) +5 >Emitted(33, 30) Source(27, 51) + SourceIndex(2) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(34, 5) Source(28, 19) + SourceIndex(2) +2 >Emitted(34, 10) Source(28, 31) + SourceIndex(2) +3 >Emitted(34, 22) Source(28, 43) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(35, 9) Source(28, 46) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 47) + SourceIndex(2) +3 >Emitted(35, 14) Source(28, 47) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(36, 9) Source(28, 49) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 50) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 50) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(37, 9) Source(28, 52) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 53) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 53) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(38, 6) Source(28, 55) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 >class +3 > internalC +1->Emitted(40, 1) Source(30, 15) + SourceIndex(2) +2 >Emitted(40, 15) Source(30, 21) + SourceIndex(2) +3 >Emitted(40, 24) Source(30, 30) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(41, 2) Source(30, 33) + SourceIndex(2) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(42, 1) Source(31, 15) + SourceIndex(2) +2 >Emitted(42, 18) Source(31, 24) + SourceIndex(2) +3 >Emitted(42, 29) Source(31, 35) + SourceIndex(2) +4 >Emitted(42, 38) Source(31, 40) + SourceIndex(2) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(43, 1) Source(32, 15) + SourceIndex(2) +2 >Emitted(43, 19) Source(32, 25) + SourceIndex(2) +3 >Emitted(43, 36) Source(32, 42) + SourceIndex(2) +4 >Emitted(43, 37) Source(32, 43) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(44, 5) Source(32, 45) + SourceIndex(2) +2 >Emitted(44, 11) Source(32, 58) + SourceIndex(2) +3 >Emitted(44, 20) Source(32, 67) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(45, 6) Source(32, 70) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(46, 2) Source(32, 72) + SourceIndex(2) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(47, 1) Source(33, 15) + SourceIndex(2) +2 >Emitted(47, 19) Source(33, 25) + SourceIndex(2) +3 >Emitted(47, 32) Source(33, 38) + SourceIndex(2) +4 >Emitted(47, 33) Source(33, 39) + SourceIndex(2) +5 >Emitted(47, 42) Source(33, 48) + SourceIndex(2) +6 >Emitted(47, 43) Source(33, 49) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(48, 5) Source(33, 51) + SourceIndex(2) +2 >Emitted(48, 11) Source(33, 64) + SourceIndex(2) +3 >Emitted(48, 20) Source(33, 73) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(49, 6) Source(33, 76) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(50, 2) Source(33, 78) + SourceIndex(2) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(51, 1) Source(34, 15) + SourceIndex(2) +2 >Emitted(51, 8) Source(34, 22) + SourceIndex(2) +3 >Emitted(51, 22) Source(34, 36) + SourceIndex(2) +4 >Emitted(51, 25) Source(34, 39) + SourceIndex(2) +5 >Emitted(51, 42) Source(34, 56) + SourceIndex(2) +6 >Emitted(51, 43) Source(34, 57) + SourceIndex(2) +7 >Emitted(51, 52) Source(34, 66) + SourceIndex(2) +8 >Emitted(51, 53) Source(34, 67) + SourceIndex(2) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(52, 1) Source(35, 15) + SourceIndex(2) +2 >Emitted(52, 14) Source(35, 20) + SourceIndex(2) +3 >Emitted(52, 26) Source(35, 32) + SourceIndex(2) +4 >Emitted(52, 29) Source(35, 35) + SourceIndex(2) +5 >Emitted(52, 38) Source(35, 44) + SourceIndex(2) +6 >Emitted(52, 39) Source(35, 45) + SourceIndex(2) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(53, 1) Source(36, 15) + SourceIndex(2) +2 >Emitted(53, 9) Source(36, 15) + SourceIndex(2) +3 >Emitted(53, 15) Source(36, 21) + SourceIndex(2) +4 >Emitted(53, 28) Source(36, 34) + SourceIndex(2) +5 >Emitted(53, 33) Source(36, 39) + SourceIndex(2) +6 >Emitted(53, 34) Source(36, 40) + SourceIndex(2) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(54, 1) Source(37, 15) + SourceIndex(2) +2 >Emitted(54, 14) Source(37, 20) + SourceIndex(2) +3 >Emitted(54, 26) Source(37, 32) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(55, 5) Source(37, 35) + SourceIndex(2) +2 >Emitted(55, 6) Source(37, 36) + SourceIndex(2) +3 >Emitted(55, 10) Source(37, 36) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 5) Source(37, 38) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 39) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 39) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(57, 5) Source(37, 41) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 42) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 42) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(58, 2) Source(37, 44) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3162, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 308, + "kind": "internal" + }, + { + "pos": 310, + "end": 342, + "kind": "text" + }, + { + "pos": 342, + "end": 734, + "kind": "internal" + }, + { + "pos": 736, + "end": 739, + "kind": "text" + }, + { + "pos": 739, + "end": 1152, + "kind": "internal" + }, + { + "pos": 1154, + "end": 1202, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (110-3162) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-308) + constructor(); + prop: string; + method(): void; + c: number; +---------------------------------------------------------------------- +text: (310-342) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (342-734) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (736-739) +} + +---------------------------------------------------------------------- +internal: (739-1152) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1154-1202) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/*@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + +class normalC { + /*@internal*/ constructor() { } + /*@internal*/ prop: string; + /*@internal*/ method() { } + /*@internal*/ get c() { return 10; } + /*@internal*/ set c(val: number) { } +} +namespace normalN { + /*@internal*/ export class C { } + /*@internal*/ export function foo() {} + /*@internal*/ export namespace someNamespace { export class C {} } + /*@internal*/ export namespace someOther.something { export class someClass {} } + /*@internal*/ export import someImport = someNamespace.C; + /*@internal*/ export type internalType = internalC; + /*@internal*/ export const internalConst = 10; + /*@internal*/ export enum internalEnum { a, b, c } +} +/*@internal*/ class internalC {} +/*@internal*/ function internalfoo() {} +/*@internal*/ namespace internalNamespace { export class someClass {} } +/*@internal*/ namespace internalOther.something { export class someClass {} } +/*@internal*/ import internalImport = internalNamespace.someClass; +/*@internal*/ type internalType = internalC; +/*@internal*/ const internalConst = 10; +/*@internal*/ enum internalEnum { a, b, c } + +//// [/src/second/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [ + { "path": "../first", "prepend": true } + ] +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare const s = "Hello, world"; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3162, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3162, + "kind": "text" + } + ] + }, + { + "pos": 3162, + "end": 3198, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3162):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3162) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3162-3198) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-276) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, +"stripInternal": true + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js new file mode 100644 index 00000000000..9cce635b198 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -0,0 +1,5788 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; +} +declare namespace normalN { + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +} +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;kBACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/*@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +--- +>>> /*@internal*/ c: number; +1->^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /*@internal*/ get +2 > c +3 > () { return 10; } + > /*@internal*/ set c(val: +4 > number +1->Emitted(17, 19) Source(17, 23) + SourceIndex(2) +2 >Emitted(17, 20) Source(17, 24) + SourceIndex(2) +3 >Emitted(17, 22) Source(18, 30) + SourceIndex(2) +4 >Emitted(17, 28) Source(18, 36) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(18, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(19, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(19, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(19, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(19, 27) Source(20, 19) + SourceIndex(2) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(20, 5) Source(21, 19) + SourceIndex(2) +2 >Emitted(20, 11) Source(21, 32) + SourceIndex(2) +3 >Emitted(20, 12) Source(21, 33) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(21, 6) Source(21, 37) + SourceIndex(2) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(22, 5) Source(22, 19) + SourceIndex(2) +2 >Emitted(22, 14) Source(22, 35) + SourceIndex(2) +3 >Emitted(22, 17) Source(22, 38) + SourceIndex(2) +4 >Emitted(22, 26) Source(22, 43) + SourceIndex(2) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(23, 5) Source(23, 19) + SourceIndex(2) +2 >Emitted(23, 15) Source(23, 36) + SourceIndex(2) +3 >Emitted(23, 28) Source(23, 49) + SourceIndex(2) +4 >Emitted(23, 29) Source(23, 50) + SourceIndex(2) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(24, 9) Source(23, 52) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 65) + SourceIndex(2) +3 >Emitted(24, 16) Source(23, 66) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(25, 10) Source(23, 69) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(26, 6) Source(23, 71) + SourceIndex(2) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(27, 5) Source(24, 19) + SourceIndex(2) +2 >Emitted(27, 15) Source(24, 36) + SourceIndex(2) +3 >Emitted(27, 24) Source(24, 45) + SourceIndex(2) +4 >Emitted(27, 25) Source(24, 46) + SourceIndex(2) +5 >Emitted(27, 34) Source(24, 55) + SourceIndex(2) +6 >Emitted(27, 35) Source(24, 56) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(28, 9) Source(24, 58) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 71) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 80) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(29, 10) Source(24, 83) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(30, 6) Source(24, 85) + SourceIndex(2) +--- +>>> export import someImport = someNamespace.C; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /*@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(31, 5) Source(25, 19) + SourceIndex(2) +2 >Emitted(31, 11) Source(25, 25) + SourceIndex(2) +3 >Emitted(31, 19) Source(25, 33) + SourceIndex(2) +4 >Emitted(31, 29) Source(25, 43) + SourceIndex(2) +5 >Emitted(31, 32) Source(25, 46) + SourceIndex(2) +6 >Emitted(31, 45) Source(25, 59) + SourceIndex(2) +7 >Emitted(31, 46) Source(25, 60) + SourceIndex(2) +8 >Emitted(31, 47) Source(25, 61) + SourceIndex(2) +9 >Emitted(31, 48) Source(25, 62) + SourceIndex(2) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(32, 5) Source(26, 19) + SourceIndex(2) +2 >Emitted(32, 10) Source(26, 31) + SourceIndex(2) +3 >Emitted(32, 22) Source(26, 43) + SourceIndex(2) +4 >Emitted(32, 25) Source(26, 46) + SourceIndex(2) +5 >Emitted(32, 34) Source(26, 55) + SourceIndex(2) +6 >Emitted(32, 35) Source(26, 56) + SourceIndex(2) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(33, 5) Source(27, 26) + SourceIndex(2) +2 >Emitted(33, 11) Source(27, 32) + SourceIndex(2) +3 >Emitted(33, 24) Source(27, 45) + SourceIndex(2) +4 >Emitted(33, 29) Source(27, 50) + SourceIndex(2) +5 >Emitted(33, 30) Source(27, 51) + SourceIndex(2) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(34, 5) Source(28, 19) + SourceIndex(2) +2 >Emitted(34, 10) Source(28, 31) + SourceIndex(2) +3 >Emitted(34, 22) Source(28, 43) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(35, 9) Source(28, 46) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 47) + SourceIndex(2) +3 >Emitted(35, 14) Source(28, 47) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(36, 9) Source(28, 49) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 50) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 50) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(37, 9) Source(28, 52) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 53) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 53) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(38, 6) Source(28, 55) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(39, 2) Source(29, 2) + SourceIndex(2) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 >class +3 > internalC +1->Emitted(40, 1) Source(30, 15) + SourceIndex(2) +2 >Emitted(40, 15) Source(30, 21) + SourceIndex(2) +3 >Emitted(40, 24) Source(30, 30) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(41, 2) Source(30, 33) + SourceIndex(2) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(42, 1) Source(31, 15) + SourceIndex(2) +2 >Emitted(42, 18) Source(31, 24) + SourceIndex(2) +3 >Emitted(42, 29) Source(31, 35) + SourceIndex(2) +4 >Emitted(42, 38) Source(31, 40) + SourceIndex(2) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(43, 1) Source(32, 15) + SourceIndex(2) +2 >Emitted(43, 19) Source(32, 25) + SourceIndex(2) +3 >Emitted(43, 36) Source(32, 42) + SourceIndex(2) +4 >Emitted(43, 37) Source(32, 43) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(44, 5) Source(32, 45) + SourceIndex(2) +2 >Emitted(44, 11) Source(32, 58) + SourceIndex(2) +3 >Emitted(44, 20) Source(32, 67) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(45, 6) Source(32, 70) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(46, 2) Source(32, 72) + SourceIndex(2) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(47, 1) Source(33, 15) + SourceIndex(2) +2 >Emitted(47, 19) Source(33, 25) + SourceIndex(2) +3 >Emitted(47, 32) Source(33, 38) + SourceIndex(2) +4 >Emitted(47, 33) Source(33, 39) + SourceIndex(2) +5 >Emitted(47, 42) Source(33, 48) + SourceIndex(2) +6 >Emitted(47, 43) Source(33, 49) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(48, 5) Source(33, 51) + SourceIndex(2) +2 >Emitted(48, 11) Source(33, 64) + SourceIndex(2) +3 >Emitted(48, 20) Source(33, 73) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(49, 6) Source(33, 76) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(50, 2) Source(33, 78) + SourceIndex(2) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(51, 1) Source(34, 15) + SourceIndex(2) +2 >Emitted(51, 8) Source(34, 22) + SourceIndex(2) +3 >Emitted(51, 22) Source(34, 36) + SourceIndex(2) +4 >Emitted(51, 25) Source(34, 39) + SourceIndex(2) +5 >Emitted(51, 42) Source(34, 56) + SourceIndex(2) +6 >Emitted(51, 43) Source(34, 57) + SourceIndex(2) +7 >Emitted(51, 52) Source(34, 66) + SourceIndex(2) +8 >Emitted(51, 53) Source(34, 67) + SourceIndex(2) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(52, 1) Source(35, 15) + SourceIndex(2) +2 >Emitted(52, 14) Source(35, 20) + SourceIndex(2) +3 >Emitted(52, 26) Source(35, 32) + SourceIndex(2) +4 >Emitted(52, 29) Source(35, 35) + SourceIndex(2) +5 >Emitted(52, 38) Source(35, 44) + SourceIndex(2) +6 >Emitted(52, 39) Source(35, 45) + SourceIndex(2) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(53, 1) Source(36, 15) + SourceIndex(2) +2 >Emitted(53, 9) Source(36, 15) + SourceIndex(2) +3 >Emitted(53, 15) Source(36, 21) + SourceIndex(2) +4 >Emitted(53, 28) Source(36, 34) + SourceIndex(2) +5 >Emitted(53, 33) Source(36, 39) + SourceIndex(2) +6 >Emitted(53, 34) Source(36, 40) + SourceIndex(2) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(54, 1) Source(37, 15) + SourceIndex(2) +2 >Emitted(54, 14) Source(37, 20) + SourceIndex(2) +3 >Emitted(54, 26) Source(37, 32) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(55, 5) Source(37, 35) + SourceIndex(2) +2 >Emitted(55, 6) Source(37, 36) + SourceIndex(2) +3 >Emitted(55, 10) Source(37, 36) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 5) Source(37, 38) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 39) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 39) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(57, 5) Source(37, 41) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 42) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 42) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(58, 2) Source(37, 44) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(59, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(59, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(59, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(60, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(60, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(61, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /*@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(15, 18) Source(14, 18) + SourceIndex(3) +3 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(16, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(17, 18) Source(16, 18) + SourceIndex(3) +3 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) +4 >Emitted(17, 43) Source(16, 25) + SourceIndex(3) +5 >Emitted(17, 46) Source(16, 19) + SourceIndex(3) +6 >Emitted(17, 60) Source(16, 30) + SourceIndex(3) +7 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(18, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(19, 22) Source(17, 18) + SourceIndex(3) +3 >Emitted(19, 28) Source(17, 19) + SourceIndex(3) +4 >Emitted(19, 42) Source(17, 29) + SourceIndex(3) +5 >Emitted(19, 49) Source(17, 36) + SourceIndex(3) +6 >Emitted(19, 51) Source(17, 38) + SourceIndex(3) +7 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) +8 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) +9 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(20, 22) Source(18, 18) + SourceIndex(3) +3 >Emitted(20, 28) Source(18, 19) + SourceIndex(3) +4 >Emitted(20, 38) Source(18, 25) + SourceIndex(3) +5 >Emitted(20, 41) Source(18, 36) + SourceIndex(3) +6 >Emitted(20, 45) Source(18, 40) + SourceIndex(3) +7 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(28, 18) Source(21, 18) + SourceIndex(3) +3 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) +--- +>>> /*@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(34, 18) Source(22, 18) + SourceIndex(3) +3 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) +4 >Emitted(34, 28) Source(22, 35) + SourceIndex(3) +5 >Emitted(34, 31) Source(22, 38) + SourceIndex(3) +6 >Emitted(34, 36) Source(22, 42) + SourceIndex(3) +7 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(35, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(36, 18) Source(23, 18) + SourceIndex(3) +3 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 36) + SourceIndex(3) +5 >Emitted(36, 36) Source(23, 49) + SourceIndex(3) +6 >Emitted(36, 37) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) +--- +>>> /*@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(45, 18) Source(24, 18) + SourceIndex(3) +3 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) +4 >Emitted(45, 23) Source(24, 36) + SourceIndex(3) +5 >Emitted(45, 32) Source(24, 45) + SourceIndex(3) +6 >Emitted(45, 33) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(57, 18) Source(25, 18) + SourceIndex(3) +3 >Emitted(57, 19) Source(25, 33) + SourceIndex(3) +4 >Emitted(57, 37) Source(25, 43) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 46) + SourceIndex(3) +6 >Emitted(57, 53) Source(25, 59) + SourceIndex(3) +7 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) +8 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) +9 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(58, 18) Source(27, 18) + SourceIndex(3) +3 >Emitted(58, 19) Source(27, 32) + SourceIndex(3) +4 >Emitted(58, 40) Source(27, 45) + SourceIndex(3) +5 >Emitted(58, 43) Source(27, 48) + SourceIndex(3) +6 >Emitted(58, 45) Source(27, 50) + SourceIndex(3) +7 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(59, 18) Source(28, 18) + SourceIndex(3) +3 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) +4 >Emitted(59, 23) Source(28, 31) + SourceIndex(3) +5 >Emitted(59, 35) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/*@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 >/*@internal*/ +3 > +1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(66, 14) Source(30, 14) + SourceIndex(3) +3 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) +--- +>>>/*@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/*@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(71, 14) Source(31, 14) + SourceIndex(3) +3 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) +4 >Emitted(71, 24) Source(31, 24) + SourceIndex(3) +5 >Emitted(71, 35) Source(31, 35) + SourceIndex(3) +6 >Emitted(71, 40) Source(31, 39) + SourceIndex(3) +7 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(72, 14) Source(32, 14) + SourceIndex(3) +3 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) +4 >Emitted(72, 19) Source(32, 25) + SourceIndex(3) +5 >Emitted(72, 36) Source(32, 42) + SourceIndex(3) +6 >Emitted(72, 37) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) +--- +>>>/*@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(81, 14) Source(33, 14) + SourceIndex(3) +3 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 25) + SourceIndex(3) +5 >Emitted(81, 32) Source(33, 38) + SourceIndex(3) +6 >Emitted(81, 33) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) +--- +>>>/*@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/*@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(93, 14) Source(34, 14) + SourceIndex(3) +3 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) +4 >Emitted(93, 19) Source(34, 22) + SourceIndex(3) +5 >Emitted(93, 33) Source(34, 36) + SourceIndex(3) +6 >Emitted(93, 36) Source(34, 39) + SourceIndex(3) +7 >Emitted(93, 53) Source(34, 56) + SourceIndex(3) +8 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) +9 >Emitted(93, 63) Source(34, 66) + SourceIndex(3) +10>Emitted(93, 64) Source(34, 67) + SourceIndex(3) +--- +>>>/*@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ type internalType = internalC; + > +2 >/*@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(94, 14) Source(36, 14) + SourceIndex(3) +3 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) +4 >Emitted(94, 19) Source(36, 21) + SourceIndex(3) +5 >Emitted(94, 32) Source(36, 34) + SourceIndex(3) +6 >Emitted(94, 35) Source(36, 37) + SourceIndex(3) +7 >Emitted(94, 37) Source(36, 39) + SourceIndex(3) +8 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/*@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(95, 14) Source(37, 14) + SourceIndex(3) +3 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) +4 >Emitted(95, 19) Source(37, 20) + SourceIndex(3) +5 >Emitted(95, 31) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3526, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 322, + "kind": "internal" + }, + { + "pos": 324, + "end": 356, + "kind": "text" + }, + { + "pos": 356, + "end": 748, + "kind": "internal" + }, + { + "pos": 750, + "end": 753, + "kind": "text" + }, + { + "pos": 753, + "end": 1166, + "kind": "internal" + }, + { + "pos": 1168, + "end": 1216, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (110-3526) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-322) + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (324-356) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (356-748) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (750-753) +} + +---------------------------------------------------------------------- +internal: (753-1166) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1168-1216) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/*@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/first/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [ + ] +} + + +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + +class normalC { + /*@internal*/ constructor() { } + /*@internal*/ prop: string; + /*@internal*/ method() { } + /*@internal*/ get c() { return 10; } + /*@internal*/ set c(val: number) { } +} +namespace normalN { + /*@internal*/ export class C { } + /*@internal*/ export function foo() {} + /*@internal*/ export namespace someNamespace { export class C {} } + /*@internal*/ export namespace someOther.something { export class someClass {} } + /*@internal*/ export import someImport = someNamespace.C; + /*@internal*/ export type internalType = internalC; + /*@internal*/ export const internalConst = 10; + /*@internal*/ export enum internalEnum { a, b, c } +} +/*@internal*/ class internalC {} +/*@internal*/ function internalfoo() {} +/*@internal*/ namespace internalNamespace { export class someClass {} } +/*@internal*/ namespace internalOther.something { export class someClass {} } +/*@internal*/ import internalImport = internalNamespace.someClass; +/*@internal*/ type internalType = internalC; +/*@internal*/ const internalConst = 10; +/*@internal*/ enum internalEnum { a, b, c } + +//// [/src/second/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [ + { "path": "../first", "prepend": true } + ] +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare const s = "Hello, world"; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /*@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(15, 18) Source(14, 18) + SourceIndex(3) +3 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(16, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(17, 18) Source(16, 18) + SourceIndex(3) +3 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) +4 >Emitted(17, 43) Source(16, 25) + SourceIndex(3) +5 >Emitted(17, 46) Source(16, 19) + SourceIndex(3) +6 >Emitted(17, 60) Source(16, 30) + SourceIndex(3) +7 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(18, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(19, 22) Source(17, 18) + SourceIndex(3) +3 >Emitted(19, 28) Source(17, 19) + SourceIndex(3) +4 >Emitted(19, 42) Source(17, 29) + SourceIndex(3) +5 >Emitted(19, 49) Source(17, 36) + SourceIndex(3) +6 >Emitted(19, 51) Source(17, 38) + SourceIndex(3) +7 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) +8 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) +9 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(20, 22) Source(18, 18) + SourceIndex(3) +3 >Emitted(20, 28) Source(18, 19) + SourceIndex(3) +4 >Emitted(20, 38) Source(18, 25) + SourceIndex(3) +5 >Emitted(20, 41) Source(18, 36) + SourceIndex(3) +6 >Emitted(20, 45) Source(18, 40) + SourceIndex(3) +7 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(28, 18) Source(21, 18) + SourceIndex(3) +3 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) +--- +>>> /*@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(34, 18) Source(22, 18) + SourceIndex(3) +3 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) +4 >Emitted(34, 28) Source(22, 35) + SourceIndex(3) +5 >Emitted(34, 31) Source(22, 38) + SourceIndex(3) +6 >Emitted(34, 36) Source(22, 42) + SourceIndex(3) +7 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(35, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(36, 18) Source(23, 18) + SourceIndex(3) +3 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 36) + SourceIndex(3) +5 >Emitted(36, 36) Source(23, 49) + SourceIndex(3) +6 >Emitted(36, 37) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) +--- +>>> /*@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(45, 18) Source(24, 18) + SourceIndex(3) +3 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) +4 >Emitted(45, 23) Source(24, 36) + SourceIndex(3) +5 >Emitted(45, 32) Source(24, 45) + SourceIndex(3) +6 >Emitted(45, 33) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(57, 18) Source(25, 18) + SourceIndex(3) +3 >Emitted(57, 19) Source(25, 33) + SourceIndex(3) +4 >Emitted(57, 37) Source(25, 43) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 46) + SourceIndex(3) +6 >Emitted(57, 53) Source(25, 59) + SourceIndex(3) +7 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) +8 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) +9 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(58, 18) Source(27, 18) + SourceIndex(3) +3 >Emitted(58, 19) Source(27, 32) + SourceIndex(3) +4 >Emitted(58, 40) Source(27, 45) + SourceIndex(3) +5 >Emitted(58, 43) Source(27, 48) + SourceIndex(3) +6 >Emitted(58, 45) Source(27, 50) + SourceIndex(3) +7 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(59, 18) Source(28, 18) + SourceIndex(3) +3 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) +4 >Emitted(59, 23) Source(28, 31) + SourceIndex(3) +5 >Emitted(59, 35) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/*@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 >/*@internal*/ +3 > +1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(66, 14) Source(30, 14) + SourceIndex(3) +3 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) +--- +>>>/*@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/*@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(71, 14) Source(31, 14) + SourceIndex(3) +3 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) +4 >Emitted(71, 24) Source(31, 24) + SourceIndex(3) +5 >Emitted(71, 35) Source(31, 35) + SourceIndex(3) +6 >Emitted(71, 40) Source(31, 39) + SourceIndex(3) +7 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(72, 14) Source(32, 14) + SourceIndex(3) +3 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) +4 >Emitted(72, 19) Source(32, 25) + SourceIndex(3) +5 >Emitted(72, 36) Source(32, 42) + SourceIndex(3) +6 >Emitted(72, 37) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) +--- +>>>/*@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(81, 14) Source(33, 14) + SourceIndex(3) +3 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 25) + SourceIndex(3) +5 >Emitted(81, 32) Source(33, 38) + SourceIndex(3) +6 >Emitted(81, 33) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) +--- +>>>/*@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/*@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(93, 14) Source(34, 14) + SourceIndex(3) +3 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) +4 >Emitted(93, 19) Source(34, 22) + SourceIndex(3) +5 >Emitted(93, 33) Source(34, 36) + SourceIndex(3) +6 >Emitted(93, 36) Source(34, 39) + SourceIndex(3) +7 >Emitted(93, 53) Source(34, 56) + SourceIndex(3) +8 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) +9 >Emitted(93, 63) Source(34, 66) + SourceIndex(3) +10>Emitted(93, 64) Source(34, 67) + SourceIndex(3) +--- +>>>/*@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ type internalType = internalC; + > +2 >/*@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(94, 14) Source(36, 14) + SourceIndex(3) +3 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) +4 >Emitted(94, 19) Source(36, 21) + SourceIndex(3) +5 >Emitted(94, 32) Source(36, 34) + SourceIndex(3) +6 >Emitted(94, 35) Source(36, 37) + SourceIndex(3) +7 >Emitted(94, 37) Source(36, 39) + SourceIndex(3) +8 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/*@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(95, 14) Source(37, 14) + SourceIndex(3) +3 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) +4 >Emitted(95, 19) Source(37, 20) + SourceIndex(3) +5 >Emitted(95, 31) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3526, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3526, + "kind": "text" + } + ] + }, + { + "pos": 3526, + "end": 3562, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3526):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3526) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3526-3562) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-276) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, +"stripInternal": true + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js new file mode 100644 index 00000000000..836399723c6 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js @@ -0,0 +1,5497 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class normalC { + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; +} +declare namespace normalN { + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +} +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;kBACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 15) Source(13, 7) + SourceIndex(0) +3 >Emitted(5, 22) Source(13, 14) + SourceIndex(0) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(7, 5) Source(15, 19) + SourceIndex(0) +2 >Emitted(7, 9) Source(15, 23) + SourceIndex(0) +3 >Emitted(7, 11) Source(15, 25) + SourceIndex(0) +4 >Emitted(7, 17) Source(15, 31) + SourceIndex(0) +5 >Emitted(7, 18) Source(15, 32) + SourceIndex(0) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(8, 5) Source(16, 19) + SourceIndex(0) +2 >Emitted(8, 11) Source(16, 25) + SourceIndex(0) +--- +>>> /*@internal*/ c: number; +1->^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /*@internal*/ get +2 > c +3 > () { return 10; } + > /*@internal*/ set c(val: +4 > number +1->Emitted(9, 19) Source(17, 23) + SourceIndex(0) +2 >Emitted(9, 20) Source(17, 24) + SourceIndex(0) +3 >Emitted(9, 22) Source(18, 30) + SourceIndex(0) +4 >Emitted(9, 28) Source(18, 36) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(10, 2) Source(19, 2) + SourceIndex(0) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(11, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(11, 19) Source(20, 11) + SourceIndex(0) +3 >Emitted(11, 26) Source(20, 18) + SourceIndex(0) +4 >Emitted(11, 27) Source(20, 19) + SourceIndex(0) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(12, 5) Source(21, 19) + SourceIndex(0) +2 >Emitted(12, 11) Source(21, 32) + SourceIndex(0) +3 >Emitted(12, 12) Source(21, 33) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(13, 6) Source(21, 37) + SourceIndex(0) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(14, 5) Source(22, 19) + SourceIndex(0) +2 >Emitted(14, 14) Source(22, 35) + SourceIndex(0) +3 >Emitted(14, 17) Source(22, 38) + SourceIndex(0) +4 >Emitted(14, 26) Source(22, 43) + SourceIndex(0) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(15, 5) Source(23, 19) + SourceIndex(0) +2 >Emitted(15, 15) Source(23, 36) + SourceIndex(0) +3 >Emitted(15, 28) Source(23, 49) + SourceIndex(0) +4 >Emitted(15, 29) Source(23, 50) + SourceIndex(0) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(16, 9) Source(23, 52) + SourceIndex(0) +2 >Emitted(16, 15) Source(23, 65) + SourceIndex(0) +3 >Emitted(16, 16) Source(23, 66) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(17, 10) Source(23, 69) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(18, 6) Source(23, 71) + SourceIndex(0) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(19, 5) Source(24, 19) + SourceIndex(0) +2 >Emitted(19, 15) Source(24, 36) + SourceIndex(0) +3 >Emitted(19, 24) Source(24, 45) + SourceIndex(0) +4 >Emitted(19, 25) Source(24, 46) + SourceIndex(0) +5 >Emitted(19, 34) Source(24, 55) + SourceIndex(0) +6 >Emitted(19, 35) Source(24, 56) + SourceIndex(0) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(20, 9) Source(24, 58) + SourceIndex(0) +2 >Emitted(20, 15) Source(24, 71) + SourceIndex(0) +3 >Emitted(20, 24) Source(24, 80) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(21, 10) Source(24, 83) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(22, 6) Source(24, 85) + SourceIndex(0) +--- +>>> export import someImport = someNamespace.C; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /*@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(23, 5) Source(25, 19) + SourceIndex(0) +2 >Emitted(23, 11) Source(25, 25) + SourceIndex(0) +3 >Emitted(23, 19) Source(25, 33) + SourceIndex(0) +4 >Emitted(23, 29) Source(25, 43) + SourceIndex(0) +5 >Emitted(23, 32) Source(25, 46) + SourceIndex(0) +6 >Emitted(23, 45) Source(25, 59) + SourceIndex(0) +7 >Emitted(23, 46) Source(25, 60) + SourceIndex(0) +8 >Emitted(23, 47) Source(25, 61) + SourceIndex(0) +9 >Emitted(23, 48) Source(25, 62) + SourceIndex(0) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(24, 5) Source(26, 19) + SourceIndex(0) +2 >Emitted(24, 10) Source(26, 31) + SourceIndex(0) +3 >Emitted(24, 22) Source(26, 43) + SourceIndex(0) +4 >Emitted(24, 25) Source(26, 46) + SourceIndex(0) +5 >Emitted(24, 34) Source(26, 55) + SourceIndex(0) +6 >Emitted(24, 35) Source(26, 56) + SourceIndex(0) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(25, 5) Source(27, 26) + SourceIndex(0) +2 >Emitted(25, 11) Source(27, 32) + SourceIndex(0) +3 >Emitted(25, 24) Source(27, 45) + SourceIndex(0) +4 >Emitted(25, 29) Source(27, 50) + SourceIndex(0) +5 >Emitted(25, 30) Source(27, 51) + SourceIndex(0) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(26, 5) Source(28, 19) + SourceIndex(0) +2 >Emitted(26, 10) Source(28, 31) + SourceIndex(0) +3 >Emitted(26, 22) Source(28, 43) + SourceIndex(0) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(27, 9) Source(28, 46) + SourceIndex(0) +2 >Emitted(27, 10) Source(28, 47) + SourceIndex(0) +3 >Emitted(27, 14) Source(28, 47) + SourceIndex(0) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(28, 9) Source(28, 49) + SourceIndex(0) +2 >Emitted(28, 10) Source(28, 50) + SourceIndex(0) +3 >Emitted(28, 14) Source(28, 50) + SourceIndex(0) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(29, 9) Source(28, 52) + SourceIndex(0) +2 >Emitted(29, 10) Source(28, 53) + SourceIndex(0) +3 >Emitted(29, 14) Source(28, 53) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(30, 6) Source(28, 55) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(31, 2) Source(29, 2) + SourceIndex(0) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 >class +3 > internalC +1->Emitted(32, 1) Source(30, 15) + SourceIndex(0) +2 >Emitted(32, 15) Source(30, 21) + SourceIndex(0) +3 >Emitted(32, 24) Source(30, 30) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(33, 2) Source(30, 33) + SourceIndex(0) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(34, 1) Source(31, 15) + SourceIndex(0) +2 >Emitted(34, 18) Source(31, 24) + SourceIndex(0) +3 >Emitted(34, 29) Source(31, 35) + SourceIndex(0) +4 >Emitted(34, 38) Source(31, 40) + SourceIndex(0) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(35, 1) Source(32, 15) + SourceIndex(0) +2 >Emitted(35, 19) Source(32, 25) + SourceIndex(0) +3 >Emitted(35, 36) Source(32, 42) + SourceIndex(0) +4 >Emitted(35, 37) Source(32, 43) + SourceIndex(0) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(36, 5) Source(32, 45) + SourceIndex(0) +2 >Emitted(36, 11) Source(32, 58) + SourceIndex(0) +3 >Emitted(36, 20) Source(32, 67) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(37, 6) Source(32, 70) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(38, 2) Source(32, 72) + SourceIndex(0) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(39, 1) Source(33, 15) + SourceIndex(0) +2 >Emitted(39, 19) Source(33, 25) + SourceIndex(0) +3 >Emitted(39, 32) Source(33, 38) + SourceIndex(0) +4 >Emitted(39, 33) Source(33, 39) + SourceIndex(0) +5 >Emitted(39, 42) Source(33, 48) + SourceIndex(0) +6 >Emitted(39, 43) Source(33, 49) + SourceIndex(0) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(40, 5) Source(33, 51) + SourceIndex(0) +2 >Emitted(40, 11) Source(33, 64) + SourceIndex(0) +3 >Emitted(40, 20) Source(33, 73) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(41, 6) Source(33, 76) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(42, 2) Source(33, 78) + SourceIndex(0) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(43, 1) Source(34, 15) + SourceIndex(0) +2 >Emitted(43, 8) Source(34, 22) + SourceIndex(0) +3 >Emitted(43, 22) Source(34, 36) + SourceIndex(0) +4 >Emitted(43, 25) Source(34, 39) + SourceIndex(0) +5 >Emitted(43, 42) Source(34, 56) + SourceIndex(0) +6 >Emitted(43, 43) Source(34, 57) + SourceIndex(0) +7 >Emitted(43, 52) Source(34, 66) + SourceIndex(0) +8 >Emitted(43, 53) Source(34, 67) + SourceIndex(0) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(44, 1) Source(35, 15) + SourceIndex(0) +2 >Emitted(44, 14) Source(35, 20) + SourceIndex(0) +3 >Emitted(44, 26) Source(35, 32) + SourceIndex(0) +4 >Emitted(44, 29) Source(35, 35) + SourceIndex(0) +5 >Emitted(44, 38) Source(35, 44) + SourceIndex(0) +6 >Emitted(44, 39) Source(35, 45) + SourceIndex(0) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(45, 1) Source(36, 15) + SourceIndex(0) +2 >Emitted(45, 9) Source(36, 15) + SourceIndex(0) +3 >Emitted(45, 15) Source(36, 21) + SourceIndex(0) +4 >Emitted(45, 28) Source(36, 34) + SourceIndex(0) +5 >Emitted(45, 33) Source(36, 39) + SourceIndex(0) +6 >Emitted(45, 34) Source(36, 40) + SourceIndex(0) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(46, 1) Source(37, 15) + SourceIndex(0) +2 >Emitted(46, 14) Source(37, 20) + SourceIndex(0) +3 >Emitted(46, 26) Source(37, 32) + SourceIndex(0) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(47, 5) Source(37, 35) + SourceIndex(0) +2 >Emitted(47, 6) Source(37, 36) + SourceIndex(0) +3 >Emitted(47, 10) Source(37, 36) + SourceIndex(0) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(48, 5) Source(37, 38) + SourceIndex(0) +2 >Emitted(48, 6) Source(37, 39) + SourceIndex(0) +3 >Emitted(48, 10) Source(37, 39) + SourceIndex(0) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(49, 5) Source(37, 41) + SourceIndex(0) +2 >Emitted(49, 6) Source(37, 42) + SourceIndex(0) +3 >Emitted(49, 10) Source(37, 42) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(50, 2) Source(37, 44) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(51, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(51, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(51, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(52, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(52, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(53, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) +--- +>>> /*@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(9, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(9, 18) Source(14, 18) + SourceIndex(0) +3 >Emitted(9, 19) Source(14, 19) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(10, 5) Source(14, 35) + SourceIndex(0) +2 >Emitted(10, 6) Source(14, 36) + SourceIndex(0) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(11, 5) Source(16, 5) + SourceIndex(0) +2 >Emitted(11, 18) Source(16, 18) + SourceIndex(0) +3 >Emitted(11, 19) Source(16, 19) + SourceIndex(0) +4 >Emitted(11, 43) Source(16, 25) + SourceIndex(0) +5 >Emitted(11, 46) Source(16, 19) + SourceIndex(0) +6 >Emitted(11, 60) Source(16, 30) + SourceIndex(0) +7 >Emitted(11, 61) Source(16, 31) + SourceIndex(0) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(12, 5) Source(17, 19) + SourceIndex(0) +2 >Emitted(12, 27) Source(17, 23) + SourceIndex(0) +3 >Emitted(12, 49) Source(17, 24) + SourceIndex(0) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(13, 9) Source(17, 5) + SourceIndex(0) +2 >Emitted(13, 22) Source(17, 18) + SourceIndex(0) +3 >Emitted(13, 28) Source(17, 19) + SourceIndex(0) +4 >Emitted(13, 42) Source(17, 29) + SourceIndex(0) +5 >Emitted(13, 49) Source(17, 36) + SourceIndex(0) +6 >Emitted(13, 51) Source(17, 38) + SourceIndex(0) +7 >Emitted(13, 52) Source(17, 39) + SourceIndex(0) +8 >Emitted(13, 53) Source(17, 40) + SourceIndex(0) +9 >Emitted(13, 54) Source(17, 41) + SourceIndex(0) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(14, 9) Source(18, 5) + SourceIndex(0) +2 >Emitted(14, 22) Source(18, 18) + SourceIndex(0) +3 >Emitted(14, 28) Source(18, 19) + SourceIndex(0) +4 >Emitted(14, 38) Source(18, 25) + SourceIndex(0) +5 >Emitted(14, 41) Source(18, 36) + SourceIndex(0) +6 >Emitted(14, 45) Source(18, 40) + SourceIndex(0) +7 >Emitted(14, 46) Source(18, 41) + SourceIndex(0) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(17, 8) Source(17, 41) + SourceIndex(0) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(18, 5) Source(19, 1) + SourceIndex(0) +2 >Emitted(18, 19) Source(19, 2) + SourceIndex(0) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) +3 >Emitted(19, 2) Source(13, 1) + SourceIndex(0) +4 >Emitted(19, 6) Source(19, 2) + SourceIndex(0) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(20, 5) Source(20, 11) + SourceIndex(0) +3 >Emitted(20, 12) Source(20, 18) + SourceIndex(0) +4 >Emitted(20, 13) Source(29, 2) + SourceIndex(0) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(21, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(21, 12) Source(20, 11) + SourceIndex(0) +3 >Emitted(21, 19) Source(20, 18) + SourceIndex(0) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(22, 5) Source(21, 5) + SourceIndex(0) +2 >Emitted(22, 18) Source(21, 18) + SourceIndex(0) +3 >Emitted(22, 19) Source(21, 19) + SourceIndex(0) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(23, 9) Source(21, 19) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(24, 9) Source(21, 36) + SourceIndex(0) +2 >Emitted(24, 10) Source(21, 37) + SourceIndex(0) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(25, 9) Source(21, 36) + SourceIndex(0) +2 >Emitted(25, 17) Source(21, 37) + SourceIndex(0) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(26, 5) Source(21, 36) + SourceIndex(0) +2 >Emitted(26, 6) Source(21, 37) + SourceIndex(0) +3 >Emitted(26, 6) Source(21, 19) + SourceIndex(0) +4 >Emitted(26, 10) Source(21, 37) + SourceIndex(0) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(27, 5) Source(21, 32) + SourceIndex(0) +2 >Emitted(27, 14) Source(21, 33) + SourceIndex(0) +3 >Emitted(27, 18) Source(21, 37) + SourceIndex(0) +4 >Emitted(27, 19) Source(21, 37) + SourceIndex(0) +--- +>>> /*@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(28, 5) Source(22, 5) + SourceIndex(0) +2 >Emitted(28, 18) Source(22, 18) + SourceIndex(0) +3 >Emitted(28, 19) Source(22, 19) + SourceIndex(0) +4 >Emitted(28, 28) Source(22, 35) + SourceIndex(0) +5 >Emitted(28, 31) Source(22, 38) + SourceIndex(0) +6 >Emitted(28, 36) Source(22, 42) + SourceIndex(0) +7 >Emitted(28, 37) Source(22, 43) + SourceIndex(0) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(29, 5) Source(22, 35) + SourceIndex(0) +2 >Emitted(29, 16) Source(22, 38) + SourceIndex(0) +3 >Emitted(29, 22) Source(22, 43) + SourceIndex(0) +4 >Emitted(29, 23) Source(22, 43) + SourceIndex(0) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(30, 5) Source(23, 5) + SourceIndex(0) +2 >Emitted(30, 18) Source(23, 18) + SourceIndex(0) +3 >Emitted(30, 19) Source(23, 19) + SourceIndex(0) +4 >Emitted(30, 23) Source(23, 36) + SourceIndex(0) +5 >Emitted(30, 36) Source(23, 49) + SourceIndex(0) +6 >Emitted(30, 37) Source(23, 71) + SourceIndex(0) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(31, 5) Source(23, 19) + SourceIndex(0) +2 >Emitted(31, 16) Source(23, 36) + SourceIndex(0) +3 >Emitted(31, 29) Source(23, 49) + SourceIndex(0) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(32, 9) Source(23, 52) + SourceIndex(0) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(33, 13) Source(23, 52) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(34, 13) Source(23, 68) + SourceIndex(0) +2 >Emitted(34, 14) Source(23, 69) + SourceIndex(0) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(35, 13) Source(23, 68) + SourceIndex(0) +2 >Emitted(35, 21) Source(23, 69) + SourceIndex(0) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(36, 9) Source(23, 68) + SourceIndex(0) +2 >Emitted(36, 10) Source(23, 69) + SourceIndex(0) +3 >Emitted(36, 10) Source(23, 52) + SourceIndex(0) +4 >Emitted(36, 14) Source(23, 69) + SourceIndex(0) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(37, 9) Source(23, 65) + SourceIndex(0) +2 >Emitted(37, 24) Source(23, 66) + SourceIndex(0) +3 >Emitted(37, 28) Source(23, 69) + SourceIndex(0) +4 >Emitted(37, 29) Source(23, 69) + SourceIndex(0) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(38, 5) Source(23, 70) + SourceIndex(0) +2 >Emitted(38, 6) Source(23, 71) + SourceIndex(0) +3 >Emitted(38, 8) Source(23, 36) + SourceIndex(0) +4 >Emitted(38, 21) Source(23, 49) + SourceIndex(0) +5 >Emitted(38, 24) Source(23, 36) + SourceIndex(0) +6 >Emitted(38, 45) Source(23, 49) + SourceIndex(0) +7 >Emitted(38, 50) Source(23, 36) + SourceIndex(0) +8 >Emitted(38, 71) Source(23, 49) + SourceIndex(0) +9 >Emitted(38, 79) Source(23, 71) + SourceIndex(0) +--- +>>> /*@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(39, 5) Source(24, 5) + SourceIndex(0) +2 >Emitted(39, 18) Source(24, 18) + SourceIndex(0) +3 >Emitted(39, 19) Source(24, 19) + SourceIndex(0) +4 >Emitted(39, 23) Source(24, 36) + SourceIndex(0) +5 >Emitted(39, 32) Source(24, 45) + SourceIndex(0) +6 >Emitted(39, 33) Source(24, 85) + SourceIndex(0) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(40, 5) Source(24, 19) + SourceIndex(0) +2 >Emitted(40, 16) Source(24, 36) + SourceIndex(0) +3 >Emitted(40, 25) Source(24, 45) + SourceIndex(0) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(41, 9) Source(24, 46) + SourceIndex(0) +2 >Emitted(41, 13) Source(24, 46) + SourceIndex(0) +3 >Emitted(41, 22) Source(24, 55) + SourceIndex(0) +4 >Emitted(41, 23) Source(24, 85) + SourceIndex(0) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(42, 9) Source(24, 46) + SourceIndex(0) +2 >Emitted(42, 20) Source(24, 46) + SourceIndex(0) +3 >Emitted(42, 29) Source(24, 55) + SourceIndex(0) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(43, 13) Source(24, 58) + SourceIndex(0) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(44, 17) Source(24, 58) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(45, 17) Source(24, 82) + SourceIndex(0) +2 >Emitted(45, 18) Source(24, 83) + SourceIndex(0) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(46, 17) Source(24, 82) + SourceIndex(0) +2 >Emitted(46, 33) Source(24, 83) + SourceIndex(0) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(47, 13) Source(24, 82) + SourceIndex(0) +2 >Emitted(47, 14) Source(24, 83) + SourceIndex(0) +3 >Emitted(47, 14) Source(24, 58) + SourceIndex(0) +4 >Emitted(47, 18) Source(24, 83) + SourceIndex(0) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(48, 13) Source(24, 71) + SourceIndex(0) +2 >Emitted(48, 32) Source(24, 80) + SourceIndex(0) +3 >Emitted(48, 44) Source(24, 83) + SourceIndex(0) +4 >Emitted(48, 45) Source(24, 83) + SourceIndex(0) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(49, 9) Source(24, 84) + SourceIndex(0) +2 >Emitted(49, 10) Source(24, 85) + SourceIndex(0) +3 >Emitted(49, 12) Source(24, 46) + SourceIndex(0) +4 >Emitted(49, 21) Source(24, 55) + SourceIndex(0) +5 >Emitted(49, 24) Source(24, 46) + SourceIndex(0) +6 >Emitted(49, 43) Source(24, 55) + SourceIndex(0) +7 >Emitted(49, 48) Source(24, 46) + SourceIndex(0) +8 >Emitted(49, 67) Source(24, 55) + SourceIndex(0) +9 >Emitted(49, 75) Source(24, 85) + SourceIndex(0) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(50, 5) Source(24, 84) + SourceIndex(0) +2 >Emitted(50, 6) Source(24, 85) + SourceIndex(0) +3 >Emitted(50, 8) Source(24, 36) + SourceIndex(0) +4 >Emitted(50, 17) Source(24, 45) + SourceIndex(0) +5 >Emitted(50, 20) Source(24, 36) + SourceIndex(0) +6 >Emitted(50, 37) Source(24, 45) + SourceIndex(0) +7 >Emitted(50, 42) Source(24, 36) + SourceIndex(0) +8 >Emitted(50, 59) Source(24, 45) + SourceIndex(0) +9 >Emitted(50, 67) Source(24, 85) + SourceIndex(0) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(51, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(51, 18) Source(25, 18) + SourceIndex(0) +3 >Emitted(51, 19) Source(25, 33) + SourceIndex(0) +4 >Emitted(51, 37) Source(25, 43) + SourceIndex(0) +5 >Emitted(51, 40) Source(25, 46) + SourceIndex(0) +6 >Emitted(51, 53) Source(25, 59) + SourceIndex(0) +7 >Emitted(51, 54) Source(25, 60) + SourceIndex(0) +8 >Emitted(51, 55) Source(25, 61) + SourceIndex(0) +9 >Emitted(51, 56) Source(25, 62) + SourceIndex(0) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(52, 5) Source(27, 5) + SourceIndex(0) +2 >Emitted(52, 18) Source(27, 18) + SourceIndex(0) +3 >Emitted(52, 19) Source(27, 32) + SourceIndex(0) +4 >Emitted(52, 40) Source(27, 45) + SourceIndex(0) +5 >Emitted(52, 43) Source(27, 48) + SourceIndex(0) +6 >Emitted(52, 45) Source(27, 50) + SourceIndex(0) +7 >Emitted(52, 46) Source(27, 51) + SourceIndex(0) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(53, 5) Source(28, 5) + SourceIndex(0) +2 >Emitted(53, 18) Source(28, 18) + SourceIndex(0) +3 >Emitted(53, 19) Source(28, 19) + SourceIndex(0) +4 >Emitted(53, 23) Source(28, 31) + SourceIndex(0) +5 >Emitted(53, 35) Source(28, 55) + SourceIndex(0) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(54, 5) Source(28, 19) + SourceIndex(0) +2 >Emitted(54, 16) Source(28, 31) + SourceIndex(0) +3 >Emitted(54, 28) Source(28, 43) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(55, 9) Source(28, 46) + SourceIndex(0) +2 >Emitted(55, 50) Source(28, 47) + SourceIndex(0) +3 >Emitted(55, 51) Source(28, 47) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 9) Source(28, 49) + SourceIndex(0) +2 >Emitted(56, 50) Source(28, 50) + SourceIndex(0) +3 >Emitted(56, 51) Source(28, 50) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(57, 9) Source(28, 52) + SourceIndex(0) +2 >Emitted(57, 50) Source(28, 53) + SourceIndex(0) +3 >Emitted(57, 51) Source(28, 53) + SourceIndex(0) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(58, 5) Source(28, 54) + SourceIndex(0) +2 >Emitted(58, 6) Source(28, 55) + SourceIndex(0) +3 >Emitted(58, 8) Source(28, 31) + SourceIndex(0) +4 >Emitted(58, 20) Source(28, 43) + SourceIndex(0) +5 >Emitted(58, 23) Source(28, 31) + SourceIndex(0) +6 >Emitted(58, 43) Source(28, 43) + SourceIndex(0) +7 >Emitted(58, 48) Source(28, 31) + SourceIndex(0) +8 >Emitted(58, 68) Source(28, 43) + SourceIndex(0) +9 >Emitted(58, 76) Source(28, 55) + SourceIndex(0) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(59, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(59, 2) Source(29, 2) + SourceIndex(0) +3 >Emitted(59, 4) Source(20, 11) + SourceIndex(0) +4 >Emitted(59, 11) Source(20, 18) + SourceIndex(0) +5 >Emitted(59, 16) Source(20, 11) + SourceIndex(0) +6 >Emitted(59, 23) Source(20, 18) + SourceIndex(0) +7 >Emitted(59, 31) Source(29, 2) + SourceIndex(0) +--- +>>>/*@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 >/*@internal*/ +3 > +1->Emitted(60, 1) Source(30, 1) + SourceIndex(0) +2 >Emitted(60, 14) Source(30, 14) + SourceIndex(0) +3 >Emitted(60, 15) Source(30, 15) + SourceIndex(0) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(61, 5) Source(30, 15) + SourceIndex(0) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(62, 5) Source(30, 32) + SourceIndex(0) +2 >Emitted(62, 6) Source(30, 33) + SourceIndex(0) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(63, 5) Source(30, 32) + SourceIndex(0) +2 >Emitted(63, 21) Source(30, 33) + SourceIndex(0) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(64, 1) Source(30, 32) + SourceIndex(0) +2 >Emitted(64, 2) Source(30, 33) + SourceIndex(0) +3 >Emitted(64, 2) Source(30, 15) + SourceIndex(0) +4 >Emitted(64, 6) Source(30, 33) + SourceIndex(0) +--- +>>>/*@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/*@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(65, 1) Source(31, 1) + SourceIndex(0) +2 >Emitted(65, 14) Source(31, 14) + SourceIndex(0) +3 >Emitted(65, 15) Source(31, 15) + SourceIndex(0) +4 >Emitted(65, 24) Source(31, 24) + SourceIndex(0) +5 >Emitted(65, 35) Source(31, 35) + SourceIndex(0) +6 >Emitted(65, 40) Source(31, 39) + SourceIndex(0) +7 >Emitted(65, 41) Source(31, 40) + SourceIndex(0) +--- +>>>/*@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(66, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(66, 14) Source(32, 14) + SourceIndex(0) +3 >Emitted(66, 15) Source(32, 15) + SourceIndex(0) +4 >Emitted(66, 19) Source(32, 25) + SourceIndex(0) +5 >Emitted(66, 36) Source(32, 42) + SourceIndex(0) +6 >Emitted(66, 37) Source(32, 72) + SourceIndex(0) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(67, 1) Source(32, 15) + SourceIndex(0) +2 >Emitted(67, 12) Source(32, 25) + SourceIndex(0) +3 >Emitted(67, 29) Source(32, 42) + SourceIndex(0) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(68, 5) Source(32, 45) + SourceIndex(0) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(69, 9) Source(32, 45) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(70, 9) Source(32, 69) + SourceIndex(0) +2 >Emitted(70, 10) Source(32, 70) + SourceIndex(0) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(71, 9) Source(32, 69) + SourceIndex(0) +2 >Emitted(71, 25) Source(32, 70) + SourceIndex(0) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(72, 5) Source(32, 69) + SourceIndex(0) +2 >Emitted(72, 6) Source(32, 70) + SourceIndex(0) +3 >Emitted(72, 6) Source(32, 45) + SourceIndex(0) +4 >Emitted(72, 10) Source(32, 70) + SourceIndex(0) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(73, 5) Source(32, 58) + SourceIndex(0) +2 >Emitted(73, 32) Source(32, 67) + SourceIndex(0) +3 >Emitted(73, 44) Source(32, 70) + SourceIndex(0) +4 >Emitted(73, 45) Source(32, 70) + SourceIndex(0) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(74, 1) Source(32, 71) + SourceIndex(0) +2 >Emitted(74, 2) Source(32, 72) + SourceIndex(0) +3 >Emitted(74, 4) Source(32, 25) + SourceIndex(0) +4 >Emitted(74, 21) Source(32, 42) + SourceIndex(0) +5 >Emitted(74, 26) Source(32, 25) + SourceIndex(0) +6 >Emitted(74, 43) Source(32, 42) + SourceIndex(0) +7 >Emitted(74, 51) Source(32, 72) + SourceIndex(0) +--- +>>>/*@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(75, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(75, 14) Source(33, 14) + SourceIndex(0) +3 >Emitted(75, 15) Source(33, 15) + SourceIndex(0) +4 >Emitted(75, 19) Source(33, 25) + SourceIndex(0) +5 >Emitted(75, 32) Source(33, 38) + SourceIndex(0) +6 >Emitted(75, 33) Source(33, 78) + SourceIndex(0) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(76, 1) Source(33, 15) + SourceIndex(0) +2 >Emitted(76, 12) Source(33, 25) + SourceIndex(0) +3 >Emitted(76, 25) Source(33, 38) + SourceIndex(0) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(77, 5) Source(33, 39) + SourceIndex(0) +2 >Emitted(77, 9) Source(33, 39) + SourceIndex(0) +3 >Emitted(77, 18) Source(33, 48) + SourceIndex(0) +4 >Emitted(77, 19) Source(33, 78) + SourceIndex(0) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(78, 5) Source(33, 39) + SourceIndex(0) +2 >Emitted(78, 16) Source(33, 39) + SourceIndex(0) +3 >Emitted(78, 25) Source(33, 48) + SourceIndex(0) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(79, 9) Source(33, 51) + SourceIndex(0) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(80, 13) Source(33, 51) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(81, 13) Source(33, 75) + SourceIndex(0) +2 >Emitted(81, 14) Source(33, 76) + SourceIndex(0) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(82, 13) Source(33, 75) + SourceIndex(0) +2 >Emitted(82, 29) Source(33, 76) + SourceIndex(0) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(83, 9) Source(33, 75) + SourceIndex(0) +2 >Emitted(83, 10) Source(33, 76) + SourceIndex(0) +3 >Emitted(83, 10) Source(33, 51) + SourceIndex(0) +4 >Emitted(83, 14) Source(33, 76) + SourceIndex(0) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(84, 9) Source(33, 64) + SourceIndex(0) +2 >Emitted(84, 28) Source(33, 73) + SourceIndex(0) +3 >Emitted(84, 40) Source(33, 76) + SourceIndex(0) +4 >Emitted(84, 41) Source(33, 76) + SourceIndex(0) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(85, 5) Source(33, 77) + SourceIndex(0) +2 >Emitted(85, 6) Source(33, 78) + SourceIndex(0) +3 >Emitted(85, 8) Source(33, 39) + SourceIndex(0) +4 >Emitted(85, 17) Source(33, 48) + SourceIndex(0) +5 >Emitted(85, 20) Source(33, 39) + SourceIndex(0) +6 >Emitted(85, 43) Source(33, 48) + SourceIndex(0) +7 >Emitted(85, 48) Source(33, 39) + SourceIndex(0) +8 >Emitted(85, 71) Source(33, 48) + SourceIndex(0) +9 >Emitted(85, 79) Source(33, 78) + SourceIndex(0) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(86, 1) Source(33, 77) + SourceIndex(0) +2 >Emitted(86, 2) Source(33, 78) + SourceIndex(0) +3 >Emitted(86, 4) Source(33, 25) + SourceIndex(0) +4 >Emitted(86, 17) Source(33, 38) + SourceIndex(0) +5 >Emitted(86, 22) Source(33, 25) + SourceIndex(0) +6 >Emitted(86, 35) Source(33, 38) + SourceIndex(0) +7 >Emitted(86, 43) Source(33, 78) + SourceIndex(0) +--- +>>>/*@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/*@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(87, 1) Source(34, 1) + SourceIndex(0) +2 >Emitted(87, 14) Source(34, 14) + SourceIndex(0) +3 >Emitted(87, 15) Source(34, 15) + SourceIndex(0) +4 >Emitted(87, 19) Source(34, 22) + SourceIndex(0) +5 >Emitted(87, 33) Source(34, 36) + SourceIndex(0) +6 >Emitted(87, 36) Source(34, 39) + SourceIndex(0) +7 >Emitted(87, 53) Source(34, 56) + SourceIndex(0) +8 >Emitted(87, 54) Source(34, 57) + SourceIndex(0) +9 >Emitted(87, 63) Source(34, 66) + SourceIndex(0) +10>Emitted(87, 64) Source(34, 67) + SourceIndex(0) +--- +>>>/*@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ type internalType = internalC; + > +2 >/*@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(88, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(88, 14) Source(36, 14) + SourceIndex(0) +3 >Emitted(88, 15) Source(36, 15) + SourceIndex(0) +4 >Emitted(88, 19) Source(36, 21) + SourceIndex(0) +5 >Emitted(88, 32) Source(36, 34) + SourceIndex(0) +6 >Emitted(88, 35) Source(36, 37) + SourceIndex(0) +7 >Emitted(88, 37) Source(36, 39) + SourceIndex(0) +8 >Emitted(88, 38) Source(36, 40) + SourceIndex(0) +--- +>>>/*@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/*@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(89, 1) Source(37, 1) + SourceIndex(0) +2 >Emitted(89, 14) Source(37, 14) + SourceIndex(0) +3 >Emitted(89, 15) Source(37, 15) + SourceIndex(0) +4 >Emitted(89, 19) Source(37, 20) + SourceIndex(0) +5 >Emitted(89, 31) Source(37, 44) + SourceIndex(0) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(90, 1) Source(37, 15) + SourceIndex(0) +2 >Emitted(90, 12) Source(37, 20) + SourceIndex(0) +3 >Emitted(90, 24) Source(37, 32) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(91, 5) Source(37, 35) + SourceIndex(0) +2 >Emitted(91, 46) Source(37, 36) + SourceIndex(0) +3 >Emitted(91, 47) Source(37, 36) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(92, 5) Source(37, 38) + SourceIndex(0) +2 >Emitted(92, 46) Source(37, 39) + SourceIndex(0) +3 >Emitted(92, 47) Source(37, 39) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(93, 5) Source(37, 41) + SourceIndex(0) +2 >Emitted(93, 46) Source(37, 42) + SourceIndex(0) +3 >Emitted(93, 47) Source(37, 42) + SourceIndex(0) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(94, 1) Source(37, 43) + SourceIndex(0) +2 >Emitted(94, 2) Source(37, 44) + SourceIndex(0) +3 >Emitted(94, 4) Source(37, 20) + SourceIndex(0) +4 >Emitted(94, 16) Source(37, 32) + SourceIndex(0) +5 >Emitted(94, 21) Source(37, 20) + SourceIndex(0) +6 >Emitted(94, 33) Source(37, 32) + SourceIndex(0) +7 >Emitted(94, 41) Source(37, 44) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(95, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(96, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(97, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(98, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(98, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(98, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(99, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(99, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(99, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(99, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(99, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(99, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(99, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(99, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(100, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(101, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(102, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(102, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3416, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 77, + "kind": "text" + }, + { + "pos": 77, + "end": 165, + "kind": "internal" + }, + { + "pos": 167, + "end": 199, + "kind": "text" + }, + { + "pos": 199, + "end": 591, + "kind": "internal" + }, + { + "pos": 593, + "end": 596, + "kind": "text" + }, + { + "pos": 596, + "end": 1009, + "kind": "internal" + }, + { + "pos": 1011, + "end": 1059, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-3416) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-77) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (77-165) + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (167-199) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (199-591) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (593-596) +} + +---------------------------------------------------------------------- +internal: (596-1009) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1011-1059) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/*@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/first/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "./bin/first-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "first_PART1.ts", + "first_part2.ts", + "first_part3.ts" + ], + "references": [ + ] +} + + +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + +class normalC { + /*@internal*/ constructor() { } + /*@internal*/ prop: string; + /*@internal*/ method() { } + /*@internal*/ get c() { return 10; } + /*@internal*/ set c(val: number) { } +} +namespace normalN { + /*@internal*/ export class C { } + /*@internal*/ export function foo() {} + /*@internal*/ export namespace someNamespace { export class C {} } + /*@internal*/ export namespace someOther.something { export class someClass {} } + /*@internal*/ export import someImport = someNamespace.C; + /*@internal*/ export type internalType = internalC; + /*@internal*/ export const internalConst = 10; + /*@internal*/ export enum internalEnum { a, b, c } +} +/*@internal*/ class internalC {} +/*@internal*/ function internalfoo() {} +/*@internal*/ namespace internalNamespace { export class someClass {} } +/*@internal*/ namespace internalOther.something { export class someClass {} } +/*@internal*/ import internalImport = internalNamespace.someClass; +/*@internal*/ type internalType = internalC; +/*@internal*/ const internalConst = 10; +/*@internal*/ enum internalEnum { a, b, c } + +//// [/src/second/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "../2/second-output.js", + "skipDefaultLibCheck": true + }, + "references": [ + ] +} + + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare const s = "Hello, world"; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /*@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(15, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(15, 18) Source(14, 18) + SourceIndex(3) +3 >Emitted(15, 19) Source(14, 19) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(16, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(17, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(17, 18) Source(16, 18) + SourceIndex(3) +3 >Emitted(17, 19) Source(16, 19) + SourceIndex(3) +4 >Emitted(17, 43) Source(16, 25) + SourceIndex(3) +5 >Emitted(17, 46) Source(16, 19) + SourceIndex(3) +6 >Emitted(17, 60) Source(16, 30) + SourceIndex(3) +7 >Emitted(17, 61) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(18, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(19, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(19, 22) Source(17, 18) + SourceIndex(3) +3 >Emitted(19, 28) Source(17, 19) + SourceIndex(3) +4 >Emitted(19, 42) Source(17, 29) + SourceIndex(3) +5 >Emitted(19, 49) Source(17, 36) + SourceIndex(3) +6 >Emitted(19, 51) Source(17, 38) + SourceIndex(3) +7 >Emitted(19, 52) Source(17, 39) + SourceIndex(3) +8 >Emitted(19, 53) Source(17, 40) + SourceIndex(3) +9 >Emitted(19, 54) Source(17, 41) + SourceIndex(3) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(20, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(20, 22) Source(18, 18) + SourceIndex(3) +3 >Emitted(20, 28) Source(18, 19) + SourceIndex(3) +4 >Emitted(20, 38) Source(18, 25) + SourceIndex(3) +5 >Emitted(20, 41) Source(18, 36) + SourceIndex(3) +6 >Emitted(20, 45) Source(18, 40) + SourceIndex(3) +7 >Emitted(20, 46) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(28, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(28, 18) Source(21, 18) + SourceIndex(3) +3 >Emitted(28, 19) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) +--- +>>> /*@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(34, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(34, 18) Source(22, 18) + SourceIndex(3) +3 >Emitted(34, 19) Source(22, 19) + SourceIndex(3) +4 >Emitted(34, 28) Source(22, 35) + SourceIndex(3) +5 >Emitted(34, 31) Source(22, 38) + SourceIndex(3) +6 >Emitted(34, 36) Source(22, 42) + SourceIndex(3) +7 >Emitted(34, 37) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(35, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(36, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(36, 18) Source(23, 18) + SourceIndex(3) +3 >Emitted(36, 19) Source(23, 19) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 36) + SourceIndex(3) +5 >Emitted(36, 36) Source(23, 49) + SourceIndex(3) +6 >Emitted(36, 37) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) +--- +>>> /*@internal*/ var someOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(45, 18) Source(24, 18) + SourceIndex(3) +3 >Emitted(45, 19) Source(24, 19) + SourceIndex(3) +4 >Emitted(45, 23) Source(24, 36) + SourceIndex(3) +5 >Emitted(45, 32) Source(24, 45) + SourceIndex(3) +6 >Emitted(45, 33) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(57, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(57, 18) Source(25, 18) + SourceIndex(3) +3 >Emitted(57, 19) Source(25, 33) + SourceIndex(3) +4 >Emitted(57, 37) Source(25, 43) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 46) + SourceIndex(3) +6 >Emitted(57, 53) Source(25, 59) + SourceIndex(3) +7 >Emitted(57, 54) Source(25, 60) + SourceIndex(3) +8 >Emitted(57, 55) Source(25, 61) + SourceIndex(3) +9 >Emitted(57, 56) Source(25, 62) + SourceIndex(3) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(58, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(58, 18) Source(27, 18) + SourceIndex(3) +3 >Emitted(58, 19) Source(27, 32) + SourceIndex(3) +4 >Emitted(58, 40) Source(27, 45) + SourceIndex(3) +5 >Emitted(58, 43) Source(27, 48) + SourceIndex(3) +6 >Emitted(58, 45) Source(27, 50) + SourceIndex(3) +7 >Emitted(58, 46) Source(27, 51) + SourceIndex(3) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(59, 18) Source(28, 18) + SourceIndex(3) +3 >Emitted(59, 19) Source(28, 19) + SourceIndex(3) +4 >Emitted(59, 23) Source(28, 31) + SourceIndex(3) +5 >Emitted(59, 35) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/*@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 >/*@internal*/ +3 > +1->Emitted(66, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(66, 14) Source(30, 14) + SourceIndex(3) +3 >Emitted(66, 15) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) +--- +>>>/*@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/*@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(71, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(71, 14) Source(31, 14) + SourceIndex(3) +3 >Emitted(71, 15) Source(31, 15) + SourceIndex(3) +4 >Emitted(71, 24) Source(31, 24) + SourceIndex(3) +5 >Emitted(71, 35) Source(31, 35) + SourceIndex(3) +6 >Emitted(71, 40) Source(31, 39) + SourceIndex(3) +7 >Emitted(71, 41) Source(31, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(72, 14) Source(32, 14) + SourceIndex(3) +3 >Emitted(72, 15) Source(32, 15) + SourceIndex(3) +4 >Emitted(72, 19) Source(32, 25) + SourceIndex(3) +5 >Emitted(72, 36) Source(32, 42) + SourceIndex(3) +6 >Emitted(72, 37) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) +--- +>>>/*@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(81, 14) Source(33, 14) + SourceIndex(3) +3 >Emitted(81, 15) Source(33, 15) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 25) + SourceIndex(3) +5 >Emitted(81, 32) Source(33, 38) + SourceIndex(3) +6 >Emitted(81, 33) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) +--- +>>>/*@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/*@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(93, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(93, 14) Source(34, 14) + SourceIndex(3) +3 >Emitted(93, 15) Source(34, 15) + SourceIndex(3) +4 >Emitted(93, 19) Source(34, 22) + SourceIndex(3) +5 >Emitted(93, 33) Source(34, 36) + SourceIndex(3) +6 >Emitted(93, 36) Source(34, 39) + SourceIndex(3) +7 >Emitted(93, 53) Source(34, 56) + SourceIndex(3) +8 >Emitted(93, 54) Source(34, 57) + SourceIndex(3) +9 >Emitted(93, 63) Source(34, 66) + SourceIndex(3) +10>Emitted(93, 64) Source(34, 67) + SourceIndex(3) +--- +>>>/*@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ type internalType = internalC; + > +2 >/*@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(94, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(94, 14) Source(36, 14) + SourceIndex(3) +3 >Emitted(94, 15) Source(36, 15) + SourceIndex(3) +4 >Emitted(94, 19) Source(36, 21) + SourceIndex(3) +5 >Emitted(94, 32) Source(36, 34) + SourceIndex(3) +6 >Emitted(94, 35) Source(36, 37) + SourceIndex(3) +7 >Emitted(94, 37) Source(36, 39) + SourceIndex(3) +8 >Emitted(94, 38) Source(36, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/*@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(95, 14) Source(37, 14) + SourceIndex(3) +3 >Emitted(95, 15) Source(37, 15) + SourceIndex(3) +4 >Emitted(95, 19) Source(37, 20) + SourceIndex(3) +5 >Emitted(95, 31) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3526, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 3526, + "kind": "text" + } + ] + }, + { + "pos": 3526, + "end": 3562, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 116, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 116, + "kind": "text" + } + ] + }, + { + "pos": 116, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 116, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-3526):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-3526) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +/*@internal*/ var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3526-3562) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-116) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (116-276) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": false, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, +"stripInternal": true + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js new file mode 100644 index 00000000000..6c3036fe151 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js @@ -0,0 +1,5277 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class normalC { + constructor(); + prop: string; + method(): void; + c: number; +} +declare namespace normalN { + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +} +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CAClC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 15) Source(13, 7) + SourceIndex(0) +3 >Emitted(5, 22) Source(13, 14) + SourceIndex(0) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(7, 5) Source(15, 19) + SourceIndex(0) +2 >Emitted(7, 9) Source(15, 23) + SourceIndex(0) +3 >Emitted(7, 11) Source(15, 25) + SourceIndex(0) +4 >Emitted(7, 17) Source(15, 31) + SourceIndex(0) +5 >Emitted(7, 18) Source(15, 32) + SourceIndex(0) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(8, 5) Source(16, 19) + SourceIndex(0) +2 >Emitted(8, 11) Source(16, 25) + SourceIndex(0) +--- +>>> c: number; +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /*@internal*/ get +2 > c +3 > () { return 10; } + > /*@internal*/ set c(val: +4 > number +1->Emitted(9, 5) Source(17, 23) + SourceIndex(0) +2 >Emitted(9, 6) Source(17, 24) + SourceIndex(0) +3 >Emitted(9, 8) Source(18, 30) + SourceIndex(0) +4 >Emitted(9, 14) Source(18, 36) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(10, 2) Source(19, 2) + SourceIndex(0) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(11, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(11, 19) Source(20, 11) + SourceIndex(0) +3 >Emitted(11, 26) Source(20, 18) + SourceIndex(0) +4 >Emitted(11, 27) Source(20, 19) + SourceIndex(0) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(12, 5) Source(21, 19) + SourceIndex(0) +2 >Emitted(12, 11) Source(21, 32) + SourceIndex(0) +3 >Emitted(12, 12) Source(21, 33) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(13, 6) Source(21, 37) + SourceIndex(0) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(14, 5) Source(22, 19) + SourceIndex(0) +2 >Emitted(14, 14) Source(22, 35) + SourceIndex(0) +3 >Emitted(14, 17) Source(22, 38) + SourceIndex(0) +4 >Emitted(14, 26) Source(22, 43) + SourceIndex(0) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(15, 5) Source(23, 19) + SourceIndex(0) +2 >Emitted(15, 15) Source(23, 36) + SourceIndex(0) +3 >Emitted(15, 28) Source(23, 49) + SourceIndex(0) +4 >Emitted(15, 29) Source(23, 50) + SourceIndex(0) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(16, 9) Source(23, 52) + SourceIndex(0) +2 >Emitted(16, 15) Source(23, 65) + SourceIndex(0) +3 >Emitted(16, 16) Source(23, 66) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(17, 10) Source(23, 69) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(18, 6) Source(23, 71) + SourceIndex(0) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(19, 5) Source(24, 19) + SourceIndex(0) +2 >Emitted(19, 15) Source(24, 36) + SourceIndex(0) +3 >Emitted(19, 24) Source(24, 45) + SourceIndex(0) +4 >Emitted(19, 25) Source(24, 46) + SourceIndex(0) +5 >Emitted(19, 34) Source(24, 55) + SourceIndex(0) +6 >Emitted(19, 35) Source(24, 56) + SourceIndex(0) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(20, 9) Source(24, 58) + SourceIndex(0) +2 >Emitted(20, 15) Source(24, 71) + SourceIndex(0) +3 >Emitted(20, 24) Source(24, 80) + SourceIndex(0) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(21, 10) Source(24, 83) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(22, 6) Source(24, 85) + SourceIndex(0) +--- +>>> export import someImport = someNamespace.C; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /*@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(23, 5) Source(25, 19) + SourceIndex(0) +2 >Emitted(23, 11) Source(25, 25) + SourceIndex(0) +3 >Emitted(23, 19) Source(25, 33) + SourceIndex(0) +4 >Emitted(23, 29) Source(25, 43) + SourceIndex(0) +5 >Emitted(23, 32) Source(25, 46) + SourceIndex(0) +6 >Emitted(23, 45) Source(25, 59) + SourceIndex(0) +7 >Emitted(23, 46) Source(25, 60) + SourceIndex(0) +8 >Emitted(23, 47) Source(25, 61) + SourceIndex(0) +9 >Emitted(23, 48) Source(25, 62) + SourceIndex(0) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(24, 5) Source(26, 19) + SourceIndex(0) +2 >Emitted(24, 10) Source(26, 31) + SourceIndex(0) +3 >Emitted(24, 22) Source(26, 43) + SourceIndex(0) +4 >Emitted(24, 25) Source(26, 46) + SourceIndex(0) +5 >Emitted(24, 34) Source(26, 55) + SourceIndex(0) +6 >Emitted(24, 35) Source(26, 56) + SourceIndex(0) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(25, 5) Source(27, 26) + SourceIndex(0) +2 >Emitted(25, 11) Source(27, 32) + SourceIndex(0) +3 >Emitted(25, 24) Source(27, 45) + SourceIndex(0) +4 >Emitted(25, 29) Source(27, 50) + SourceIndex(0) +5 >Emitted(25, 30) Source(27, 51) + SourceIndex(0) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(26, 5) Source(28, 19) + SourceIndex(0) +2 >Emitted(26, 10) Source(28, 31) + SourceIndex(0) +3 >Emitted(26, 22) Source(28, 43) + SourceIndex(0) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(27, 9) Source(28, 46) + SourceIndex(0) +2 >Emitted(27, 10) Source(28, 47) + SourceIndex(0) +3 >Emitted(27, 14) Source(28, 47) + SourceIndex(0) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(28, 9) Source(28, 49) + SourceIndex(0) +2 >Emitted(28, 10) Source(28, 50) + SourceIndex(0) +3 >Emitted(28, 14) Source(28, 50) + SourceIndex(0) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(29, 9) Source(28, 52) + SourceIndex(0) +2 >Emitted(29, 10) Source(28, 53) + SourceIndex(0) +3 >Emitted(29, 14) Source(28, 53) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(30, 6) Source(28, 55) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(31, 2) Source(29, 2) + SourceIndex(0) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 >class +3 > internalC +1->Emitted(32, 1) Source(30, 15) + SourceIndex(0) +2 >Emitted(32, 15) Source(30, 21) + SourceIndex(0) +3 >Emitted(32, 24) Source(30, 30) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(33, 2) Source(30, 33) + SourceIndex(0) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(34, 1) Source(31, 15) + SourceIndex(0) +2 >Emitted(34, 18) Source(31, 24) + SourceIndex(0) +3 >Emitted(34, 29) Source(31, 35) + SourceIndex(0) +4 >Emitted(34, 38) Source(31, 40) + SourceIndex(0) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(35, 1) Source(32, 15) + SourceIndex(0) +2 >Emitted(35, 19) Source(32, 25) + SourceIndex(0) +3 >Emitted(35, 36) Source(32, 42) + SourceIndex(0) +4 >Emitted(35, 37) Source(32, 43) + SourceIndex(0) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(36, 5) Source(32, 45) + SourceIndex(0) +2 >Emitted(36, 11) Source(32, 58) + SourceIndex(0) +3 >Emitted(36, 20) Source(32, 67) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(37, 6) Source(32, 70) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(38, 2) Source(32, 72) + SourceIndex(0) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(39, 1) Source(33, 15) + SourceIndex(0) +2 >Emitted(39, 19) Source(33, 25) + SourceIndex(0) +3 >Emitted(39, 32) Source(33, 38) + SourceIndex(0) +4 >Emitted(39, 33) Source(33, 39) + SourceIndex(0) +5 >Emitted(39, 42) Source(33, 48) + SourceIndex(0) +6 >Emitted(39, 43) Source(33, 49) + SourceIndex(0) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(40, 5) Source(33, 51) + SourceIndex(0) +2 >Emitted(40, 11) Source(33, 64) + SourceIndex(0) +3 >Emitted(40, 20) Source(33, 73) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(41, 6) Source(33, 76) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(42, 2) Source(33, 78) + SourceIndex(0) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(43, 1) Source(34, 15) + SourceIndex(0) +2 >Emitted(43, 8) Source(34, 22) + SourceIndex(0) +3 >Emitted(43, 22) Source(34, 36) + SourceIndex(0) +4 >Emitted(43, 25) Source(34, 39) + SourceIndex(0) +5 >Emitted(43, 42) Source(34, 56) + SourceIndex(0) +6 >Emitted(43, 43) Source(34, 57) + SourceIndex(0) +7 >Emitted(43, 52) Source(34, 66) + SourceIndex(0) +8 >Emitted(43, 53) Source(34, 67) + SourceIndex(0) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(44, 1) Source(35, 15) + SourceIndex(0) +2 >Emitted(44, 14) Source(35, 20) + SourceIndex(0) +3 >Emitted(44, 26) Source(35, 32) + SourceIndex(0) +4 >Emitted(44, 29) Source(35, 35) + SourceIndex(0) +5 >Emitted(44, 38) Source(35, 44) + SourceIndex(0) +6 >Emitted(44, 39) Source(35, 45) + SourceIndex(0) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(45, 1) Source(36, 15) + SourceIndex(0) +2 >Emitted(45, 9) Source(36, 15) + SourceIndex(0) +3 >Emitted(45, 15) Source(36, 21) + SourceIndex(0) +4 >Emitted(45, 28) Source(36, 34) + SourceIndex(0) +5 >Emitted(45, 33) Source(36, 39) + SourceIndex(0) +6 >Emitted(45, 34) Source(36, 40) + SourceIndex(0) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(46, 1) Source(37, 15) + SourceIndex(0) +2 >Emitted(46, 14) Source(37, 20) + SourceIndex(0) +3 >Emitted(46, 26) Source(37, 32) + SourceIndex(0) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(47, 5) Source(37, 35) + SourceIndex(0) +2 >Emitted(47, 6) Source(37, 36) + SourceIndex(0) +3 >Emitted(47, 10) Source(37, 36) + SourceIndex(0) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(48, 5) Source(37, 38) + SourceIndex(0) +2 >Emitted(48, 6) Source(37, 39) + SourceIndex(0) +3 >Emitted(48, 10) Source(37, 39) + SourceIndex(0) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(49, 5) Source(37, 41) + SourceIndex(0) +2 >Emitted(49, 6) Source(37, 42) + SourceIndex(0) +3 >Emitted(49, 10) Source(37, 42) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(50, 2) Source(37, 44) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(51, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(51, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(51, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(52, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(52, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(53, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(9, 5) Source(14, 19) + SourceIndex(0) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(10, 5) Source(14, 35) + SourceIndex(0) +2 >Emitted(10, 6) Source(14, 36) + SourceIndex(0) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(11, 5) Source(16, 19) + SourceIndex(0) +2 >Emitted(11, 29) Source(16, 25) + SourceIndex(0) +3 >Emitted(11, 32) Source(16, 19) + SourceIndex(0) +4 >Emitted(11, 46) Source(16, 30) + SourceIndex(0) +5 >Emitted(11, 47) Source(16, 31) + SourceIndex(0) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(12, 5) Source(17, 19) + SourceIndex(0) +2 >Emitted(12, 27) Source(17, 23) + SourceIndex(0) +3 >Emitted(12, 49) Source(17, 24) + SourceIndex(0) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(13, 14) Source(17, 19) + SourceIndex(0) +2 >Emitted(13, 28) Source(17, 29) + SourceIndex(0) +3 >Emitted(13, 35) Source(17, 36) + SourceIndex(0) +4 >Emitted(13, 37) Source(17, 38) + SourceIndex(0) +5 >Emitted(13, 38) Source(17, 39) + SourceIndex(0) +6 >Emitted(13, 39) Source(17, 40) + SourceIndex(0) +7 >Emitted(13, 40) Source(17, 41) + SourceIndex(0) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(14, 14) Source(18, 19) + SourceIndex(0) +2 >Emitted(14, 24) Source(18, 25) + SourceIndex(0) +3 >Emitted(14, 27) Source(18, 36) + SourceIndex(0) +4 >Emitted(14, 31) Source(18, 40) + SourceIndex(0) +5 >Emitted(14, 32) Source(18, 41) + SourceIndex(0) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(17, 8) Source(17, 41) + SourceIndex(0) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(18, 5) Source(19, 1) + SourceIndex(0) +2 >Emitted(18, 19) Source(19, 2) + SourceIndex(0) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) +3 >Emitted(19, 2) Source(13, 1) + SourceIndex(0) +4 >Emitted(19, 6) Source(19, 2) + SourceIndex(0) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(20, 5) Source(20, 11) + SourceIndex(0) +3 >Emitted(20, 12) Source(20, 18) + SourceIndex(0) +4 >Emitted(20, 13) Source(29, 2) + SourceIndex(0) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(21, 1) Source(20, 1) + SourceIndex(0) +2 >Emitted(21, 12) Source(20, 11) + SourceIndex(0) +3 >Emitted(21, 19) Source(20, 18) + SourceIndex(0) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(22, 5) Source(21, 19) + SourceIndex(0) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(23, 9) Source(21, 19) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(24, 9) Source(21, 36) + SourceIndex(0) +2 >Emitted(24, 10) Source(21, 37) + SourceIndex(0) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(25, 9) Source(21, 36) + SourceIndex(0) +2 >Emitted(25, 17) Source(21, 37) + SourceIndex(0) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(26, 5) Source(21, 36) + SourceIndex(0) +2 >Emitted(26, 6) Source(21, 37) + SourceIndex(0) +3 >Emitted(26, 6) Source(21, 19) + SourceIndex(0) +4 >Emitted(26, 10) Source(21, 37) + SourceIndex(0) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(27, 5) Source(21, 32) + SourceIndex(0) +2 >Emitted(27, 14) Source(21, 33) + SourceIndex(0) +3 >Emitted(27, 18) Source(21, 37) + SourceIndex(0) +4 >Emitted(27, 19) Source(21, 37) + SourceIndex(0) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(28, 5) Source(22, 19) + SourceIndex(0) +2 >Emitted(28, 14) Source(22, 35) + SourceIndex(0) +3 >Emitted(28, 17) Source(22, 38) + SourceIndex(0) +4 >Emitted(28, 22) Source(22, 42) + SourceIndex(0) +5 >Emitted(28, 23) Source(22, 43) + SourceIndex(0) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(29, 5) Source(22, 35) + SourceIndex(0) +2 >Emitted(29, 16) Source(22, 38) + SourceIndex(0) +3 >Emitted(29, 22) Source(22, 43) + SourceIndex(0) +4 >Emitted(29, 23) Source(22, 43) + SourceIndex(0) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(30, 5) Source(23, 19) + SourceIndex(0) +2 >Emitted(30, 9) Source(23, 36) + SourceIndex(0) +3 >Emitted(30, 22) Source(23, 49) + SourceIndex(0) +4 >Emitted(30, 23) Source(23, 71) + SourceIndex(0) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(31, 5) Source(23, 19) + SourceIndex(0) +2 >Emitted(31, 16) Source(23, 36) + SourceIndex(0) +3 >Emitted(31, 29) Source(23, 49) + SourceIndex(0) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(32, 9) Source(23, 52) + SourceIndex(0) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(33, 13) Source(23, 52) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(34, 13) Source(23, 68) + SourceIndex(0) +2 >Emitted(34, 14) Source(23, 69) + SourceIndex(0) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(35, 13) Source(23, 68) + SourceIndex(0) +2 >Emitted(35, 21) Source(23, 69) + SourceIndex(0) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(36, 9) Source(23, 68) + SourceIndex(0) +2 >Emitted(36, 10) Source(23, 69) + SourceIndex(0) +3 >Emitted(36, 10) Source(23, 52) + SourceIndex(0) +4 >Emitted(36, 14) Source(23, 69) + SourceIndex(0) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(37, 9) Source(23, 65) + SourceIndex(0) +2 >Emitted(37, 24) Source(23, 66) + SourceIndex(0) +3 >Emitted(37, 28) Source(23, 69) + SourceIndex(0) +4 >Emitted(37, 29) Source(23, 69) + SourceIndex(0) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(38, 5) Source(23, 70) + SourceIndex(0) +2 >Emitted(38, 6) Source(23, 71) + SourceIndex(0) +3 >Emitted(38, 8) Source(23, 36) + SourceIndex(0) +4 >Emitted(38, 21) Source(23, 49) + SourceIndex(0) +5 >Emitted(38, 24) Source(23, 36) + SourceIndex(0) +6 >Emitted(38, 45) Source(23, 49) + SourceIndex(0) +7 >Emitted(38, 50) Source(23, 36) + SourceIndex(0) +8 >Emitted(38, 71) Source(23, 49) + SourceIndex(0) +9 >Emitted(38, 79) Source(23, 71) + SourceIndex(0) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(39, 5) Source(24, 19) + SourceIndex(0) +2 >Emitted(39, 9) Source(24, 36) + SourceIndex(0) +3 >Emitted(39, 18) Source(24, 45) + SourceIndex(0) +4 >Emitted(39, 19) Source(24, 85) + SourceIndex(0) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(40, 5) Source(24, 19) + SourceIndex(0) +2 >Emitted(40, 16) Source(24, 36) + SourceIndex(0) +3 >Emitted(40, 25) Source(24, 45) + SourceIndex(0) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(41, 9) Source(24, 46) + SourceIndex(0) +2 >Emitted(41, 13) Source(24, 46) + SourceIndex(0) +3 >Emitted(41, 22) Source(24, 55) + SourceIndex(0) +4 >Emitted(41, 23) Source(24, 85) + SourceIndex(0) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(42, 9) Source(24, 46) + SourceIndex(0) +2 >Emitted(42, 20) Source(24, 46) + SourceIndex(0) +3 >Emitted(42, 29) Source(24, 55) + SourceIndex(0) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(43, 13) Source(24, 58) + SourceIndex(0) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(44, 17) Source(24, 58) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(45, 17) Source(24, 82) + SourceIndex(0) +2 >Emitted(45, 18) Source(24, 83) + SourceIndex(0) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(46, 17) Source(24, 82) + SourceIndex(0) +2 >Emitted(46, 33) Source(24, 83) + SourceIndex(0) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(47, 13) Source(24, 82) + SourceIndex(0) +2 >Emitted(47, 14) Source(24, 83) + SourceIndex(0) +3 >Emitted(47, 14) Source(24, 58) + SourceIndex(0) +4 >Emitted(47, 18) Source(24, 83) + SourceIndex(0) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(48, 13) Source(24, 71) + SourceIndex(0) +2 >Emitted(48, 32) Source(24, 80) + SourceIndex(0) +3 >Emitted(48, 44) Source(24, 83) + SourceIndex(0) +4 >Emitted(48, 45) Source(24, 83) + SourceIndex(0) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(49, 9) Source(24, 84) + SourceIndex(0) +2 >Emitted(49, 10) Source(24, 85) + SourceIndex(0) +3 >Emitted(49, 12) Source(24, 46) + SourceIndex(0) +4 >Emitted(49, 21) Source(24, 55) + SourceIndex(0) +5 >Emitted(49, 24) Source(24, 46) + SourceIndex(0) +6 >Emitted(49, 43) Source(24, 55) + SourceIndex(0) +7 >Emitted(49, 48) Source(24, 46) + SourceIndex(0) +8 >Emitted(49, 67) Source(24, 55) + SourceIndex(0) +9 >Emitted(49, 75) Source(24, 85) + SourceIndex(0) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(50, 5) Source(24, 84) + SourceIndex(0) +2 >Emitted(50, 6) Source(24, 85) + SourceIndex(0) +3 >Emitted(50, 8) Source(24, 36) + SourceIndex(0) +4 >Emitted(50, 17) Source(24, 45) + SourceIndex(0) +5 >Emitted(50, 20) Source(24, 36) + SourceIndex(0) +6 >Emitted(50, 37) Source(24, 45) + SourceIndex(0) +7 >Emitted(50, 42) Source(24, 36) + SourceIndex(0) +8 >Emitted(50, 59) Source(24, 45) + SourceIndex(0) +9 >Emitted(50, 67) Source(24, 85) + SourceIndex(0) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(51, 5) Source(25, 33) + SourceIndex(0) +2 >Emitted(51, 23) Source(25, 43) + SourceIndex(0) +3 >Emitted(51, 26) Source(25, 46) + SourceIndex(0) +4 >Emitted(51, 39) Source(25, 59) + SourceIndex(0) +5 >Emitted(51, 40) Source(25, 60) + SourceIndex(0) +6 >Emitted(51, 41) Source(25, 61) + SourceIndex(0) +7 >Emitted(51, 42) Source(25, 62) + SourceIndex(0) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(52, 5) Source(27, 32) + SourceIndex(0) +2 >Emitted(52, 26) Source(27, 45) + SourceIndex(0) +3 >Emitted(52, 29) Source(27, 48) + SourceIndex(0) +4 >Emitted(52, 31) Source(27, 50) + SourceIndex(0) +5 >Emitted(52, 32) Source(27, 51) + SourceIndex(0) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(53, 5) Source(28, 19) + SourceIndex(0) +2 >Emitted(53, 9) Source(28, 31) + SourceIndex(0) +3 >Emitted(53, 21) Source(28, 55) + SourceIndex(0) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(54, 5) Source(28, 19) + SourceIndex(0) +2 >Emitted(54, 16) Source(28, 31) + SourceIndex(0) +3 >Emitted(54, 28) Source(28, 43) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(55, 9) Source(28, 46) + SourceIndex(0) +2 >Emitted(55, 50) Source(28, 47) + SourceIndex(0) +3 >Emitted(55, 51) Source(28, 47) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 9) Source(28, 49) + SourceIndex(0) +2 >Emitted(56, 50) Source(28, 50) + SourceIndex(0) +3 >Emitted(56, 51) Source(28, 50) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(57, 9) Source(28, 52) + SourceIndex(0) +2 >Emitted(57, 50) Source(28, 53) + SourceIndex(0) +3 >Emitted(57, 51) Source(28, 53) + SourceIndex(0) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(58, 5) Source(28, 54) + SourceIndex(0) +2 >Emitted(58, 6) Source(28, 55) + SourceIndex(0) +3 >Emitted(58, 8) Source(28, 31) + SourceIndex(0) +4 >Emitted(58, 20) Source(28, 43) + SourceIndex(0) +5 >Emitted(58, 23) Source(28, 31) + SourceIndex(0) +6 >Emitted(58, 43) Source(28, 43) + SourceIndex(0) +7 >Emitted(58, 48) Source(28, 31) + SourceIndex(0) +8 >Emitted(58, 68) Source(28, 43) + SourceIndex(0) +9 >Emitted(58, 76) Source(28, 55) + SourceIndex(0) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(59, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(59, 2) Source(29, 2) + SourceIndex(0) +3 >Emitted(59, 4) Source(20, 11) + SourceIndex(0) +4 >Emitted(59, 11) Source(20, 18) + SourceIndex(0) +5 >Emitted(59, 16) Source(20, 11) + SourceIndex(0) +6 >Emitted(59, 23) Source(20, 18) + SourceIndex(0) +7 >Emitted(59, 31) Source(29, 2) + SourceIndex(0) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(60, 1) Source(30, 15) + SourceIndex(0) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(61, 5) Source(30, 15) + SourceIndex(0) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(62, 5) Source(30, 32) + SourceIndex(0) +2 >Emitted(62, 6) Source(30, 33) + SourceIndex(0) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(63, 5) Source(30, 32) + SourceIndex(0) +2 >Emitted(63, 21) Source(30, 33) + SourceIndex(0) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(64, 1) Source(30, 32) + SourceIndex(0) +2 >Emitted(64, 2) Source(30, 33) + SourceIndex(0) +3 >Emitted(64, 2) Source(30, 15) + SourceIndex(0) +4 >Emitted(64, 6) Source(30, 33) + SourceIndex(0) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(65, 1) Source(31, 15) + SourceIndex(0) +2 >Emitted(65, 10) Source(31, 24) + SourceIndex(0) +3 >Emitted(65, 21) Source(31, 35) + SourceIndex(0) +4 >Emitted(65, 26) Source(31, 39) + SourceIndex(0) +5 >Emitted(65, 27) Source(31, 40) + SourceIndex(0) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(66, 1) Source(32, 15) + SourceIndex(0) +2 >Emitted(66, 5) Source(32, 25) + SourceIndex(0) +3 >Emitted(66, 22) Source(32, 42) + SourceIndex(0) +4 >Emitted(66, 23) Source(32, 72) + SourceIndex(0) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(67, 1) Source(32, 15) + SourceIndex(0) +2 >Emitted(67, 12) Source(32, 25) + SourceIndex(0) +3 >Emitted(67, 29) Source(32, 42) + SourceIndex(0) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(68, 5) Source(32, 45) + SourceIndex(0) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(69, 9) Source(32, 45) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(70, 9) Source(32, 69) + SourceIndex(0) +2 >Emitted(70, 10) Source(32, 70) + SourceIndex(0) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(71, 9) Source(32, 69) + SourceIndex(0) +2 >Emitted(71, 25) Source(32, 70) + SourceIndex(0) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(72, 5) Source(32, 69) + SourceIndex(0) +2 >Emitted(72, 6) Source(32, 70) + SourceIndex(0) +3 >Emitted(72, 6) Source(32, 45) + SourceIndex(0) +4 >Emitted(72, 10) Source(32, 70) + SourceIndex(0) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(73, 5) Source(32, 58) + SourceIndex(0) +2 >Emitted(73, 32) Source(32, 67) + SourceIndex(0) +3 >Emitted(73, 44) Source(32, 70) + SourceIndex(0) +4 >Emitted(73, 45) Source(32, 70) + SourceIndex(0) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(74, 1) Source(32, 71) + SourceIndex(0) +2 >Emitted(74, 2) Source(32, 72) + SourceIndex(0) +3 >Emitted(74, 4) Source(32, 25) + SourceIndex(0) +4 >Emitted(74, 21) Source(32, 42) + SourceIndex(0) +5 >Emitted(74, 26) Source(32, 25) + SourceIndex(0) +6 >Emitted(74, 43) Source(32, 42) + SourceIndex(0) +7 >Emitted(74, 51) Source(32, 72) + SourceIndex(0) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(75, 1) Source(33, 15) + SourceIndex(0) +2 >Emitted(75, 5) Source(33, 25) + SourceIndex(0) +3 >Emitted(75, 18) Source(33, 38) + SourceIndex(0) +4 >Emitted(75, 19) Source(33, 78) + SourceIndex(0) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(76, 1) Source(33, 15) + SourceIndex(0) +2 >Emitted(76, 12) Source(33, 25) + SourceIndex(0) +3 >Emitted(76, 25) Source(33, 38) + SourceIndex(0) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(77, 5) Source(33, 39) + SourceIndex(0) +2 >Emitted(77, 9) Source(33, 39) + SourceIndex(0) +3 >Emitted(77, 18) Source(33, 48) + SourceIndex(0) +4 >Emitted(77, 19) Source(33, 78) + SourceIndex(0) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(78, 5) Source(33, 39) + SourceIndex(0) +2 >Emitted(78, 16) Source(33, 39) + SourceIndex(0) +3 >Emitted(78, 25) Source(33, 48) + SourceIndex(0) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(79, 9) Source(33, 51) + SourceIndex(0) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(80, 13) Source(33, 51) + SourceIndex(0) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(81, 13) Source(33, 75) + SourceIndex(0) +2 >Emitted(81, 14) Source(33, 76) + SourceIndex(0) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(82, 13) Source(33, 75) + SourceIndex(0) +2 >Emitted(82, 29) Source(33, 76) + SourceIndex(0) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(83, 9) Source(33, 75) + SourceIndex(0) +2 >Emitted(83, 10) Source(33, 76) + SourceIndex(0) +3 >Emitted(83, 10) Source(33, 51) + SourceIndex(0) +4 >Emitted(83, 14) Source(33, 76) + SourceIndex(0) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(84, 9) Source(33, 64) + SourceIndex(0) +2 >Emitted(84, 28) Source(33, 73) + SourceIndex(0) +3 >Emitted(84, 40) Source(33, 76) + SourceIndex(0) +4 >Emitted(84, 41) Source(33, 76) + SourceIndex(0) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(85, 5) Source(33, 77) + SourceIndex(0) +2 >Emitted(85, 6) Source(33, 78) + SourceIndex(0) +3 >Emitted(85, 8) Source(33, 39) + SourceIndex(0) +4 >Emitted(85, 17) Source(33, 48) + SourceIndex(0) +5 >Emitted(85, 20) Source(33, 39) + SourceIndex(0) +6 >Emitted(85, 43) Source(33, 48) + SourceIndex(0) +7 >Emitted(85, 48) Source(33, 39) + SourceIndex(0) +8 >Emitted(85, 71) Source(33, 48) + SourceIndex(0) +9 >Emitted(85, 79) Source(33, 78) + SourceIndex(0) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(86, 1) Source(33, 77) + SourceIndex(0) +2 >Emitted(86, 2) Source(33, 78) + SourceIndex(0) +3 >Emitted(86, 4) Source(33, 25) + SourceIndex(0) +4 >Emitted(86, 17) Source(33, 38) + SourceIndex(0) +5 >Emitted(86, 22) Source(33, 25) + SourceIndex(0) +6 >Emitted(86, 35) Source(33, 38) + SourceIndex(0) +7 >Emitted(86, 43) Source(33, 78) + SourceIndex(0) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(87, 1) Source(34, 15) + SourceIndex(0) +2 >Emitted(87, 5) Source(34, 22) + SourceIndex(0) +3 >Emitted(87, 19) Source(34, 36) + SourceIndex(0) +4 >Emitted(87, 22) Source(34, 39) + SourceIndex(0) +5 >Emitted(87, 39) Source(34, 56) + SourceIndex(0) +6 >Emitted(87, 40) Source(34, 57) + SourceIndex(0) +7 >Emitted(87, 49) Source(34, 66) + SourceIndex(0) +8 >Emitted(87, 50) Source(34, 67) + SourceIndex(0) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(88, 1) Source(36, 15) + SourceIndex(0) +2 >Emitted(88, 5) Source(36, 21) + SourceIndex(0) +3 >Emitted(88, 18) Source(36, 34) + SourceIndex(0) +4 >Emitted(88, 21) Source(36, 37) + SourceIndex(0) +5 >Emitted(88, 23) Source(36, 39) + SourceIndex(0) +6 >Emitted(88, 24) Source(36, 40) + SourceIndex(0) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(89, 1) Source(37, 15) + SourceIndex(0) +2 >Emitted(89, 5) Source(37, 20) + SourceIndex(0) +3 >Emitted(89, 17) Source(37, 44) + SourceIndex(0) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(90, 1) Source(37, 15) + SourceIndex(0) +2 >Emitted(90, 12) Source(37, 20) + SourceIndex(0) +3 >Emitted(90, 24) Source(37, 32) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(91, 5) Source(37, 35) + SourceIndex(0) +2 >Emitted(91, 46) Source(37, 36) + SourceIndex(0) +3 >Emitted(91, 47) Source(37, 36) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(92, 5) Source(37, 38) + SourceIndex(0) +2 >Emitted(92, 46) Source(37, 39) + SourceIndex(0) +3 >Emitted(92, 47) Source(37, 39) + SourceIndex(0) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(93, 5) Source(37, 41) + SourceIndex(0) +2 >Emitted(93, 46) Source(37, 42) + SourceIndex(0) +3 >Emitted(93, 47) Source(37, 42) + SourceIndex(0) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(94, 1) Source(37, 43) + SourceIndex(0) +2 >Emitted(94, 2) Source(37, 44) + SourceIndex(0) +3 >Emitted(94, 4) Source(37, 20) + SourceIndex(0) +4 >Emitted(94, 16) Source(37, 32) + SourceIndex(0) +5 >Emitted(94, 21) Source(37, 20) + SourceIndex(0) +6 >Emitted(94, 33) Source(37, 32) + SourceIndex(0) +7 >Emitted(94, 41) Source(37, 44) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(95, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(96, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(97, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(98, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(98, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(98, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(99, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(99, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(99, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(99, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(99, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(99, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(99, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(99, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(100, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(101, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(102, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(102, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(102, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(102, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3052, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 77, + "kind": "text" + }, + { + "pos": 77, + "end": 151, + "kind": "internal" + }, + { + "pos": 153, + "end": 185, + "kind": "text" + }, + { + "pos": 185, + "end": 577, + "kind": "internal" + }, + { + "pos": 579, + "end": 582, + "kind": "text" + }, + { + "pos": 582, + "end": 995, + "kind": "internal" + }, + { + "pos": 997, + "end": 1045, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-3052) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-77) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (77-151) + constructor(); + prop: string; + method(): void; + c: number; +---------------------------------------------------------------------- +text: (153-185) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (185-577) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (579-582) +} + +---------------------------------------------------------------------- +internal: (582-995) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (997-1045) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/*@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/second/second_part1.ts] +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + +class normalC { + /*@internal*/ constructor() { } + /*@internal*/ prop: string; + /*@internal*/ method() { } + /*@internal*/ get c() { return 10; } + /*@internal*/ set c(val: number) { } +} +namespace normalN { + /*@internal*/ export class C { } + /*@internal*/ export function foo() {} + /*@internal*/ export namespace someNamespace { export class C {} } + /*@internal*/ export namespace someOther.something { export class someClass {} } + /*@internal*/ export import someImport = someNamespace.C; + /*@internal*/ export type internalType = internalC; + /*@internal*/ export const internalConst = 10; + /*@internal*/ export enum internalEnum { a, b, c } +} +/*@internal*/ class internalC {} +/*@internal*/ function internalfoo() {} +/*@internal*/ namespace internalNamespace { export class someClass {} } +/*@internal*/ namespace internalOther.something { export class someClass {} } +/*@internal*/ import internalImport = internalNamespace.someClass; +/*@internal*/ type internalType = internalC; +/*@internal*/ const internalConst = 10; +/*@internal*/ enum internalEnum { a, b, c } + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare const s = "Hello, world"; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(13, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1->Emitted(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(44, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(55, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(56, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(64, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(91, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 3162, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 3162, + "kind": "text" + } + ] + }, + { + "pos": 3162, + "end": 3198, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 116, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 116, + "kind": "text" + } + ] + }, + { + "pos": 116, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 116, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-3162):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-3162) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +})(normalN || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3162-3198) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-116) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (116-276) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, +"stripInternal": true + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js new file mode 100644 index 00000000000..d75f09700f3 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js @@ -0,0 +1,2114 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/second/second_part1.ts": 1, + "/src/second/tripleRef.d.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/third/tripleRef.d.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/2/second-output.d.ts] +/// +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>/// +>>>declare const second_part1Const: secondsecond_part1; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^ +6 > ^ +1 >/// + > +2 > +3 > const +4 > second_part1Const +5 > = new secondsecond_part1() +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) +5 >Emitted(2, 52) Source(2, 51) + SourceIndex(0) +6 >Emitted(2, 53) Source(2, 52) + SourceIndex(0) +--- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > + > +2 >namespace +3 > N +4 > +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(3, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(3, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(3, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(4, 2) Source(5, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 19) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 20) Source(7, 12) + SourceIndex(0) +4 >Emitted(5, 21) Source(7, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(6, 2) Source(13, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(7, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(7, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(7, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(8, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var second_part1Const = new secondsecond_part1(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1 >/// + > +2 >const +3 > second_part1Const +4 > = +5 > new +6 > secondsecond_part1 +7 > () +8 > ; +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(1, 22) Source(2, 24) + SourceIndex(0) +4 >Emitted(1, 25) Source(2, 27) + SourceIndex(0) +5 >Emitted(1, 29) Source(2, 31) + SourceIndex(0) +6 >Emitted(1, 47) Source(2, 49) + SourceIndex(0) +7 >Emitted(1, 49) Source(2, 51) + SourceIndex(0) +8 >Emitted(1, 50) Source(2, 52) + SourceIndex(0) +--- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 6) Source(7, 12) + SourceIndex(0) +4 >Emitted(2, 7) Source(13, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(3, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(3, 12) Source(7, 11) + SourceIndex(0) +3 >Emitted(3, 13) Source(7, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(4, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(4, 14) Source(8, 14) + SourceIndex(0) +3 >Emitted(4, 15) Source(8, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(5, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(5, 16) Source(9, 16) + SourceIndex(0) +3 >Emitted(5, 17) Source(9, 17) + SourceIndex(0) +4 >Emitted(5, 20) Source(9, 20) + SourceIndex(0) +5 >Emitted(5, 21) Source(9, 21) + SourceIndex(0) +6 >Emitted(5, 30) Source(9, 30) + SourceIndex(0) +7 >Emitted(5, 31) Source(9, 31) + SourceIndex(0) +8 >Emitted(5, 32) Source(9, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(7, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(12, 6) + SourceIndex(0) +3 >Emitted(7, 8) Source(12, 8) + SourceIndex(0) +4 >Emitted(7, 9) Source(12, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(13, 2) + SourceIndex(0) +3 >Emitted(8, 4) Source(7, 11) + SourceIndex(0) +4 >Emitted(8, 5) Source(7, 12) + SourceIndex(0) +5 >Emitted(8, 10) Source(7, 11) + SourceIndex(0) +6 >Emitted(8, 11) Source(7, 12) + SourceIndex(0) +7 >Emitted(8, 19) Source(13, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 336, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 49, + "kind": "reference", + "data": "../second/tripleRef.d.ts" + }, + { + "pos": 51, + "end": 205, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-336) +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +reference: (0-49):: ../second/tripleRef.d.ts +/// +---------------------------------------------------------------------- +text: (51-205) +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +/// +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>/// +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(2, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(5, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(5, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(5, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(5, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(5, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(6, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(6, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(6, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(7, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(7, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(7, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>declare const first_part2Const: firstfirst_part2; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > first_part2Const +5 > = new firstfirst_part2() +6 > ; +1->Emitted(9, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(9, 9) Source(2, 1) + SourceIndex(1) +3 >Emitted(9, 15) Source(2, 7) + SourceIndex(1) +4 >Emitted(9, 31) Source(2, 23) + SourceIndex(1) +5 >Emitted(9, 49) Source(2, 48) + SourceIndex(1) +6 >Emitted(9, 50) Source(2, 49) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(10, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>var first_part2Const = new firstfirst_part2(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > first_part2Const +4 > = +5 > new +6 > firstfirst_part2 +7 > () +8 > ; +1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) +4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) +5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) +6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) +7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) +8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) +--- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 158, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 42, + "kind": "reference", + "data": "../tripleRef.d.ts" + }, + { + "pos": 44, + "end": 252, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-158) +var s = "Hello, world"; +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +reference: (0-42):: ../tripleRef.d.ts +/// +---------------------------------------------------------------------- +text: (44-252) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; + +====================================================================== + +//// [/src/first/first_part2.ts] +/// +const first_part2Const = new firstfirst_part2(); +console.log(f()); + + +//// [/src/first/tripleRef.d.ts] +declare class firstfirst_part2 { } + +//// [/src/second/second_part1.ts] +/// +const second_part1Const = new secondsecond_part1(); +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + + +//// [/src/second/tripleRef.d.ts] +declare class secondsecond_part1 { } + +//// [/src/third/thirdjs/output/third-output.d.ts] +/// +/// +/// +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare const third_part1Const: thirdthird_part1; +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>/// +>>>/// +>>>/// +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(4, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(4, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(5, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(5, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(5, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(5, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(5, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(6, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(7, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(7, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(7, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(7, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(8, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(9, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>declare const first_part2Const: firstfirst_part2; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > first_part2Const +5 > = new firstfirst_part2() +6 > ; +1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(11, 9) Source(2, 1) + SourceIndex(1) +3 >Emitted(11, 15) Source(2, 7) + SourceIndex(1) +4 >Emitted(11, 31) Source(2, 23) + SourceIndex(1) +5 >Emitted(11, 49) Source(2, 48) + SourceIndex(1) +6 >Emitted(11, 50) Source(2, 49) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(12, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(12, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(12, 30) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare const second_part1Const: secondsecond_part1; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > second_part1Const +5 > = new secondsecond_part1() +6 > ; +1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(13, 9) Source(2, 1) + SourceIndex(3) +3 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) +4 >Emitted(13, 32) Source(2, 24) + SourceIndex(3) +5 >Emitted(13, 52) Source(2, 51) + SourceIndex(3) +6 >Emitted(13, 53) Source(2, 52) + SourceIndex(3) +--- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > + > +2 >namespace +3 > N +4 > +1 >Emitted(14, 1) Source(3, 1) + SourceIndex(3) +2 >Emitted(14, 19) Source(3, 11) + SourceIndex(3) +3 >Emitted(14, 20) Source(3, 12) + SourceIndex(3) +4 >Emitted(14, 21) Source(3, 13) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(16, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(16, 19) Source(7, 11) + SourceIndex(3) +3 >Emitted(16, 20) Source(7, 12) + SourceIndex(3) +4 >Emitted(16, 21) Source(7, 13) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(17, 2) Source(13, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(4) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(4) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(4) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare const third_part1Const: thirdthird_part1; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > third_part1Const +5 > = new thirdthird_part1() +6 > ; +1->Emitted(21, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(21, 9) Source(2, 1) + SourceIndex(5) +3 >Emitted(21, 15) Source(2, 7) + SourceIndex(5) +4 >Emitted(21, 31) Source(2, 23) + SourceIndex(5) +5 >Emitted(21, 49) Source(2, 48) + SourceIndex(5) +6 >Emitted(21, 50) Source(2, 49) + SourceIndex(5) +--- +>>>declare var c: C; +1 > +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1 >Emitted(22, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(22, 9) Source(3, 1) + SourceIndex(5) +3 >Emitted(22, 13) Source(3, 5) + SourceIndex(5) +4 >Emitted(22, 14) Source(3, 6) + SourceIndex(5) +5 >Emitted(22, 17) Source(3, 16) + SourceIndex(5) +6 >Emitted(22, 18) Source(3, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var third_part1Const = new thirdthird_part1(); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>var first_part2Const = new firstfirst_part2(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > first_part2Const +4 > = +5 > new +6 > firstfirst_part2 +7 > () +8 > ; +1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) +4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) +5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) +6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) +7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) +8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) +--- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var second_part1Const = new secondsecond_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > second_part1Const +4 > = +5 > new +6 > secondsecond_part1 +7 > () +8 > ; +1->Emitted(8, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(2, 7) + SourceIndex(3) +3 >Emitted(8, 22) Source(2, 24) + SourceIndex(3) +4 >Emitted(8, 25) Source(2, 27) + SourceIndex(3) +5 >Emitted(8, 29) Source(2, 31) + SourceIndex(3) +6 >Emitted(8, 47) Source(2, 49) + SourceIndex(3) +7 >Emitted(8, 49) Source(2, 51) + SourceIndex(3) +8 >Emitted(8, 50) Source(2, 52) + SourceIndex(3) +--- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(7, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(13, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(7, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(7, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(8, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(8, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(9, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(9, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(9, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(9, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(9, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(9, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(9, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(9, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(12, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(12, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(12, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(12, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(7, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(7, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(7, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(7, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(13, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var third_part1Const = new thirdthird_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > third_part1Const +4 > = +5 > new +6 > thirdthird_part1 +7 > () +8 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(2, 7) + SourceIndex(5) +3 >Emitted(24, 21) Source(2, 23) + SourceIndex(5) +4 >Emitted(24, 24) Source(2, 26) + SourceIndex(5) +5 >Emitted(24, 28) Source(2, 30) + SourceIndex(5) +6 >Emitted(24, 44) Source(2, 46) + SourceIndex(5) +7 >Emitted(24, 46) Source(2, 48) + SourceIndex(5) +8 >Emitted(24, 47) Source(2, 49) + SourceIndex(5) +--- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1 > + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(25, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(3, 5) + SourceIndex(5) +3 >Emitted(25, 6) Source(3, 6) + SourceIndex(5) +4 >Emitted(25, 9) Source(3, 9) + SourceIndex(5) +5 >Emitted(25, 13) Source(3, 13) + SourceIndex(5) +6 >Emitted(25, 14) Source(3, 14) + SourceIndex(5) +7 >Emitted(25, 16) Source(3, 16) + SourceIndex(5) +8 >Emitted(25, 17) Source(3, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(26, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(26, 2) Source(4, 2) + SourceIndex(5) +3 >Emitted(26, 3) Source(4, 3) + SourceIndex(5) +4 >Emitted(26, 14) Source(4, 14) + SourceIndex(5) +5 >Emitted(26, 16) Source(4, 16) + SourceIndex(5) +6 >Emitted(26, 17) Source(4, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 158, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 158, + "kind": "text" + } + ] + }, + { + "pos": 158, + "end": 494, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 158, + "end": 494, + "kind": "text" + } + ] + }, + { + "pos": 494, + "end": 578, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 45, + "kind": "reference", + "data": "../../tripleRef.d.ts" + }, + { + "pos": 47, + "end": 101, + "kind": "reference", + "data": "../../../first/tripleRef.d.ts" + }, + { + "pos": 103, + "end": 158, + "kind": "reference", + "data": "../../../second/tripleRef.d.ts" + }, + { + "pos": 160, + "end": 368, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 160, + "end": 368, + "kind": "text" + } + ] + }, + { + "pos": 368, + "end": 522, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 368, + "end": 522, + "kind": "text" + } + ] + }, + { + "pos": 522, + "end": 592, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-158):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-158) +var s = "Hello, world"; +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (158-494):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (158-494) +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (494-578) +var third_part1Const = new thirdthird_part1(); +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +reference: (0-45):: ../../tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (47-101):: ../../../first/tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (103-158):: ../../../second/tripleRef.d.ts +/// +---------------------------------------------------------------------- +prepend: (160-368):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (160-368) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (368-522):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (368-522) +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (522-592) +declare const third_part1Const: thirdthird_part1; +declare var c: C; + +====================================================================== + +//// [/src/third/third_part1.ts] +/// +const third_part1Const = new thirdthird_part1(); +var c = new C(); +c.doSomething(); + + +//// [/src/third/tripleRef.d.ts] +declare class thirdthird_part1 { } + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js new file mode 100644 index 00000000000..79fbe880295 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js @@ -0,0 +1,1871 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +/// +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>/// +>>>declare const second_part1Const: secondsecond_part1; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^ +6 > ^ +1 >/// + > +2 > +3 > const +4 > second_part1Const +5 > = new secondsecond_part1() +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) +5 >Emitted(2, 52) Source(2, 51) + SourceIndex(0) +6 >Emitted(2, 53) Source(2, 52) + SourceIndex(0) +--- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > + > +2 >namespace +3 > N +4 > +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(3, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(3, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(3, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(4, 2) Source(5, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 19) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 20) Source(7, 12) + SourceIndex(0) +4 >Emitted(5, 21) Source(7, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(6, 2) Source(13, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(7, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(7, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(7, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(8, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AACA,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var second_part1Const = new secondsecond_part1(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1 >/// + > +2 >const +3 > second_part1Const +4 > = +5 > new +6 > secondsecond_part1 +7 > () +8 > ; +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(1, 22) Source(2, 24) + SourceIndex(0) +4 >Emitted(1, 25) Source(2, 27) + SourceIndex(0) +5 >Emitted(1, 29) Source(2, 31) + SourceIndex(0) +6 >Emitted(1, 47) Source(2, 49) + SourceIndex(0) +7 >Emitted(1, 49) Source(2, 51) + SourceIndex(0) +8 >Emitted(1, 50) Source(2, 52) + SourceIndex(0) +--- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 6) Source(7, 12) + SourceIndex(0) +4 >Emitted(2, 7) Source(13, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(3, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(3, 12) Source(7, 11) + SourceIndex(0) +3 >Emitted(3, 13) Source(7, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(4, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(4, 14) Source(8, 14) + SourceIndex(0) +3 >Emitted(4, 15) Source(8, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(5, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(5, 16) Source(9, 16) + SourceIndex(0) +3 >Emitted(5, 17) Source(9, 17) + SourceIndex(0) +4 >Emitted(5, 20) Source(9, 20) + SourceIndex(0) +5 >Emitted(5, 21) Source(9, 21) + SourceIndex(0) +6 >Emitted(5, 30) Source(9, 30) + SourceIndex(0) +7 >Emitted(5, 31) Source(9, 31) + SourceIndex(0) +8 >Emitted(5, 32) Source(9, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(7, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(12, 6) + SourceIndex(0) +3 >Emitted(7, 8) Source(12, 8) + SourceIndex(0) +4 >Emitted(7, 9) Source(12, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(8, 2) Source(13, 2) + SourceIndex(0) +3 >Emitted(8, 4) Source(7, 11) + SourceIndex(0) +4 >Emitted(8, 5) Source(7, 12) + SourceIndex(0) +5 >Emitted(8, 10) Source(7, 11) + SourceIndex(0) +6 >Emitted(8, 11) Source(7, 12) + SourceIndex(0) +7 >Emitted(8, 19) Source(13, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(16, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(16, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 336, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 49, + "kind": "reference", + "data": "../second/tripleRef.d.ts" + }, + { + "pos": 51, + "end": 205, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-336) +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +reference: (0-49):: ../second/tripleRef.d.ts +/// +---------------------------------------------------------------------- +text: (51-205) +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/second/second_part1.ts] +/// +const second_part1Const = new secondsecond_part1(); +namespace N { + // Comment text +} + +namespace N { + function f() { + console.log('testing'); + } + + f(); +} + + +//// [/src/second/tripleRef.d.ts] +declare class secondsecond_part1 { } + +//// [/src/third/thirdjs/output/third-output.d.ts] +/// +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>/// +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(2, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(5, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(5, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(5, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(5, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(5, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(6, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(6, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(6, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(7, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(7, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(7, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare const second_part1Const: secondsecond_part1; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > second_part1Const +5 > = new secondsecond_part1() +6 > ; +1->Emitted(10, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(10, 9) Source(2, 1) + SourceIndex(2) +3 >Emitted(10, 15) Source(2, 7) + SourceIndex(2) +4 >Emitted(10, 32) Source(2, 24) + SourceIndex(2) +5 >Emitted(10, 52) Source(2, 51) + SourceIndex(2) +6 >Emitted(10, 53) Source(2, 52) + SourceIndex(2) +--- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > + > +2 >namespace +3 > N +4 > +1 >Emitted(11, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(3, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(3, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(3, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(12, 2) Source(5, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(13, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(13, 19) Source(7, 11) + SourceIndex(2) +3 >Emitted(13, 20) Source(7, 12) + SourceIndex(2) +4 >Emitted(13, 21) Source(7, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(14, 2) Source(13, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var second_part1Const = new secondsecond_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > second_part1Const +4 > = +5 > new +6 > secondsecond_part1 +7 > () +8 > ; +1->Emitted(7, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(2, 7) + SourceIndex(3) +3 >Emitted(7, 22) Source(2, 24) + SourceIndex(3) +4 >Emitted(7, 25) Source(2, 27) + SourceIndex(3) +5 >Emitted(7, 29) Source(2, 31) + SourceIndex(3) +6 >Emitted(7, 47) Source(2, 49) + SourceIndex(3) +7 >Emitted(7, 49) Source(2, 51) + SourceIndex(3) +8 >Emitted(7, 50) Source(2, 52) + SourceIndex(3) +--- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(8, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(7, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(7, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(13, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(7, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(7, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(8, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(8, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(9, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(9, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(9, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(9, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(9, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(9, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(9, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(9, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(12, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(12, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(12, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(12, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(13, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(7, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(7, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(7, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(7, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(13, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 446, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 446, + "kind": "text" + } + ] + }, + { + "pos": 446, + "end": 482, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 55, + "kind": "reference", + "data": "../../../second/tripleRef.d.ts" + }, + { + "pos": 57, + "end": 214, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 57, + "end": 214, + "kind": "text" + } + ] + }, + { + "pos": 214, + "end": 368, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 214, + "end": 368, + "kind": "text" + } + ] + }, + { + "pos": 368, + "end": 387, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-446):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-446) +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (446-482) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +reference: (0-55):: ../../../second/tripleRef.d.ts +/// +---------------------------------------------------------------------- +prepend: (57-214):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (57-214) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (214-368):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (214-368) +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (368-387) +declare var c: C; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-incremental.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-incremental.js new file mode 100644 index 00000000000..dc62ade0d97 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-incremental.js @@ -0,0 +1,1744 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:00:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:00:00 PM - Building project '/src/first/tsconfig.json'... + +4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:00:00 PM - Building project '/src/second/tsconfig.json'... + +4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:00:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 285, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-285) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 395, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 395, + "kind": "text" + } + ] + }, + { + "pos": 395, + "end": 431, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-395):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-395) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (395-431) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "incremental": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js new file mode 100644 index 00000000000..655ea2d37bd --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js @@ -0,0 +1,1590 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 285, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-285) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-specifies-tsBuildInfoFile.js new file mode 100644 index 00000000000..89d143e06b4 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-specifies-tsBuildInfoFile.js @@ -0,0 +1,1745 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:00:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:00:00 PM - Building project '/src/first/tsconfig.json'... + +4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:00:00 PM - Building project '/src/second/tsconfig.json'... + +4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:00:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 285, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-285) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 395, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 395, + "kind": "text" + } + ] + }, + { + "pos": 395, + "end": 431, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-395):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-395) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (395-431) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "tsBuildInfoFile": "./thirdjs/output/third.tsbuildinfo", + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js new file mode 100644 index 00000000000..2464f8287d2 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js @@ -0,0 +1,1624 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/third --verbose +4:01:00 PM - Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist + +4:01:00 PM - Building project '/src/first/tsconfig.json'... + +4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist + +4:01:00 PM - Building project '/src/second/tsconfig.json'... + +4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist + +4:01:00 PM - Building project '/src/third/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 285, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-285) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + } + ] + }, + { + "pos": 110, + "end": 395, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 110, + "end": 395, + "kind": "text" + } + ] + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + } + ] + } + }, + "version": "FakeTSVersion" +} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (110-395):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (110-395) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/third/third_part1.ts] + + diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js new file mode 100644 index 00000000000..12929fe77d3 --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js @@ -0,0 +1,366 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/tests --verbose +4:04:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' + +4:04:00 PM - Building project '/src/core/tsconfig.json'... + +4:04:00 PM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... + +4:04:00 PM - Project 'src/logic/tsconfig.json' is out of date because oldest output 'src/logic/index.js' is older than newest input 'src/core' + +4:04:00 PM - Building project '/src/logic/tsconfig.json'... + +4:04:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/core' + +4:04:00 PM - Building project '/src/tests/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/tests/tsconfig.json": 1, + "/src/core/tsconfig.json": 1, + "/src/logic/tsconfig.json": 1, + "/src/core/tsconfig.tsbuildinfo": 1, + "/src/core/anotherModule.ts": 1, + "/src/core/index.ts": 1, + "/src/core/some_decl.d.ts": 1, + "/src/core/index.d.ts": 2, + "/src/logic/tsconfig.tsbuildinfo": 1, + "/src/logic/index.ts": 1, + "/src/core/anotherModule.d.ts": 1, + "/src/logic/index.d.ts": 1, + "/src/tests/tsconfig.tsbuildinfo": 1, + "/src/tests/index.ts": 1, + "/src/tests/index.d.ts": 1 +} + +//// [/src/core/index.d.ts] +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +export declare class someClass { +} +//# sourceMappingURL=index.d.ts.map + +//// [/src/core/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAEhE,qBAAa,SAAS;CAAI"} + +//// [/src/core/index.d.ts.map.baseline.txt] +=================================================================== +JsFile: index.d.ts +mapUrl: index.d.ts.map +sourceRoot: +sources: index.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/core/index.d.ts +sourceFile:index.ts +------------------------------------------------------------------- +>>>export declare const someString: string; +1 > +2 >^^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^ +7 > ^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >export +3 > const +4 > someString +5 > : +6 > string = "HELLO WORLD" +7 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 16) Source(1, 8) + SourceIndex(0) +3 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) +4 >Emitted(1, 32) Source(1, 24) + SourceIndex(0) +5 >Emitted(1, 34) Source(1, 26) + SourceIndex(0) +6 >Emitted(1, 40) Source(1, 48) + SourceIndex(0) +7 >Emitted(1, 41) Source(1, 49) + SourceIndex(0) +--- +>>>export declare function leftPad(s: string, n: number): string; +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^^^^^ +12> ^^^^^^^^^^ +13> ^^-> +1-> + > +2 >export function +3 > leftPad +4 > ( +5 > s +6 > : +7 > string +8 > , +9 > n +10> : +11> number +12> ) { return s + n; } +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 25) Source(2, 17) + SourceIndex(0) +3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) +4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) +5 >Emitted(2, 34) Source(2, 26) + SourceIndex(0) +6 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) +7 >Emitted(2, 42) Source(2, 34) + SourceIndex(0) +8 >Emitted(2, 44) Source(2, 36) + SourceIndex(0) +9 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) +10>Emitted(2, 47) Source(2, 39) + SourceIndex(0) +11>Emitted(2, 53) Source(2, 45) + SourceIndex(0) +12>Emitted(2, 63) Source(2, 64) + SourceIndex(0) +--- +>>>export declare function multiply(a: number, b: number): number; +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^ +4 > ^ +5 > ^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^^^^^ +12> ^^^^^^^^^^ +1-> + > +2 >export function +3 > multiply +4 > ( +5 > a +6 > : +7 > number +8 > , +9 > b +10> : +11> number +12> ) { return a * b; } +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 25) Source(3, 17) + SourceIndex(0) +3 >Emitted(3, 33) Source(3, 25) + SourceIndex(0) +4 >Emitted(3, 34) Source(3, 26) + SourceIndex(0) +5 >Emitted(3, 35) Source(3, 27) + SourceIndex(0) +6 >Emitted(3, 37) Source(3, 29) + SourceIndex(0) +7 >Emitted(3, 43) Source(3, 35) + SourceIndex(0) +8 >Emitted(3, 45) Source(3, 37) + SourceIndex(0) +9 >Emitted(3, 46) Source(3, 38) + SourceIndex(0) +10>Emitted(3, 48) Source(3, 40) + SourceIndex(0) +11>Emitted(3, 54) Source(3, 46) + SourceIndex(0) +12>Emitted(3, 64) Source(3, 65) + SourceIndex(0) +--- +>>>export declare class someClass { +1 > +2 >^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > + > + > +2 >export class +3 > someClass +1 >Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 22) Source(5, 14) + SourceIndex(0) +3 >Emitted(4, 31) Source(5, 23) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(5, 2) Source(5, 27) + SourceIndex(0) +--- +>>>//# sourceMappingURL=index.d.ts.map + +//// [/src/core/index.js] +"use strict"; +exports.__esModule = true; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; +var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; +}()); +exports.someClass = someClass; + + +//// [/src/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +export class someClass { } + +//// [/src/core/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "./index.ts": { + "version": "-13387000654-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nexport class someClass { }", + "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/logic/index.d.ts] file written with same contents +//// [/src/logic/index.js] file written with same contents +//// [/src/logic/index.js.map] file written with same contents +//// [/src/logic/index.js.map.baseline.txt] file written with same contents +//// [/src/logic/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../core/index.ts": { + "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" + }, + "../core/anothermodule.ts": { + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "./index.ts": { + "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./index.ts": [ + "../core/anothermodule.d.ts", + "../core/index.d.ts" + ] + }, + "exportedModulesMap": { + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.ts", + "../core/index.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/tests/index.d.ts] file written with same contents +//// [/src/tests/index.js] file written with same contents +//// [/src/tests/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../core/index.ts": { + "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" + }, + "../core/anothermodule.ts": { + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "../logic/index.ts": { + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + }, + "./index.ts": { + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "../logic/index.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts" + ] + }, + "exportedModulesMap": { + "../logic/index.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.ts", + "../core/index.ts", + "../logic/index.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js new file mode 100644 index 00000000000..d46e6bf0f86 --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js @@ -0,0 +1,71 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/core --verbose +4:04:00 PM - Projects in this build: + * src/core/tsconfig.json + +4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.d.ts' does not exist + +4:04:00 PM - Building project '/src/core/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/core/anotherModule.d.ts] +export declare const World = "hello"; + + +//// [/src/core/anotherModule.js] file written with same contents +//// [/src/core/index.d.ts] +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; + + +//// [/src/core/index.js] file written with same contents +//// [/src/core/tsconfig.json] +{ + "compilerOptions": { + "incremental": true, "declaration": true, + "skipDefaultLibCheck": true + } +} + +//// [/src/core/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "-8396256275-export declare const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n" + } + }, + "options": { + "incremental": true, + "declaration": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js new file mode 100644 index 00000000000..2bdd1aa6219 --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js @@ -0,0 +1,115 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/tests --verbose +4:04:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:04:00 PM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' + +4:04:00 PM - Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than oldest output 'src/logic/index.js' + +4:04:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/tests/tsconfig.json' + +4:04:00 PM - Building project '/src/tests/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/tests/index.d.ts] file written with same contents +//// [/src/tests/index.js] +"use strict"; +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; + return result; +}; +exports.__esModule = true; +var c = __importStar(require("../core/index")); +var logic = __importStar(require("../logic/index")); +c.leftPad("", 10); +logic.getSecondsInDay(); +var mod = __importStar(require("../core/anotherModule")); +exports.m = mod; + + +//// [/src/tests/tsconfig.json] +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" } + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "esModuleInterop": true + } +} + +//// [/src/tests/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../core/index.ts": { + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "../core/anothermodule.ts": { + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "../logic/index.ts": { + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + }, + "./index.ts": { + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "esModuleInterop": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "../logic/index.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts" + ] + }, + "exportedModulesMap": { + "../logic/index.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.ts", + "../core/index.ts", + "../logic/index.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js new file mode 100644 index 00000000000..ba39ab2202f --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js @@ -0,0 +1,172 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/tests --verbose +4:12:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:12:00 PM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' + +4:12:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/decls/index.d.ts' does not exist + +4:12:00 PM - Building project '/src/logic/tsconfig.json'... + +4:12:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/logic' + +4:12:00 PM - Building project '/src/tests/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/tests/tsconfig.json": 1, + "/src/core/tsconfig.json": 1, + "/src/logic/tsconfig.json": 1, + "/src/core/tsconfig.tsbuildinfo": 1, + "/src/logic/tsconfig.tsbuildinfo": 1, + "/src/logic/index.ts": 1, + "/src/core/index.d.ts": 1, + "/src/core/anotherModule.d.ts": 1, + "/src/tests/tsconfig.tsbuildinfo": 1, + "/src/tests/index.ts": 1, + "/src/logic/decls/index.d.ts": 1, + "/src/tests/index.d.ts": 1 +} + +//// [/src/logic/decls/index.d.ts] +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + + +//// [/src/logic/index.js] file written with same contents +//// [/src/logic/index.js.map] file written with same contents +//// [/src/logic/index.js.map.baseline.txt] file written with same contents +//// [/src/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationDir": "decls", + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { "path": "../core" } + ] +} + + +//// [/src/logic/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../core/index.ts": { + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "../core/anothermodule.ts": { + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "./index.ts": { + "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "declarationDir": "./decls", + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./index.ts": [ + "../core/anothermodule.d.ts", + "../core/index.d.ts" + ] + }, + "exportedModulesMap": { + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.ts", + "../core/index.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/tests/index.d.ts] file written with same contents +//// [/src/tests/index.js] file written with same contents +//// [/src/tests/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../core/index.ts": { + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "../core/anothermodule.ts": { + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "../logic/index.ts": { + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + }, + "./index.ts": { + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "../logic/index.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/decls/index.d.ts" + ] + }, + "exportedModulesMap": { + "../logic/index.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.ts", + "../core/index.ts", + "../logic/index.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js new file mode 100644 index 00000000000..5fa1cac3e7e --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js @@ -0,0 +1,78 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/core --verbose +4:04:00 PM - Projects in this build: + * src/core/tsconfig.json + +4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' + +4:04:00 PM - Building project '/src/core/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/core/anotherModule.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.World = "hello"; +}); + + +//// [/src/core/index.js] +define(["require", "exports"], function (require, exports) { + "use strict"; + exports.__esModule = true; + exports.someString = "HELLO WORLD"; + function leftPad(s, n) { return s + n; } + exports.leftPad = leftPad; + function multiply(a, b) { return a * b; } + exports.multiply = multiply; +}); + + +//// [/src/core/tsconfig.json] +{ + "compilerOptions": { + "incremental": true, + "module": "amd" + } +} + +//// [/src/core/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "-8396256275-export declare const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n" + } + }, + "options": { + "incremental": true, + "module": 2, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js new file mode 100644 index 00000000000..b8e3134eb7f --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js @@ -0,0 +1,91 @@ +//// [/lib/incremental-declaration-changesOutput.txt] +/lib/tsc --b /src/core --verbose +4:04:00 PM - Projects in this build: + * src/core/tsconfig.json + +4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' + +4:04:00 PM - Building project '/src/core/tsconfig.json'... + +TSFILE: /src/core/anotherModule.js +TSFILE: /src/core/index.js +TSFILE: /src/core/tsconfig.tsbuildinfo +/lib/lib.d.ts +/lib/lib.esnext.d.ts +/src/core/anotherModule.ts +/src/core/index.ts +/src/core/some_decl.d.ts +exitCode:: 0 + + +//// [/src/core/anotherModule.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.World = "hello"; + + +//// [/src/core/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; + + +//// [/src/core/tsconfig.json] +{ + "compilerOptions": { + "incremental": true, +"listFiles": true, +"listEmittedFiles": true, + "target": "es5", + } +} + +//// [/src/core/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "8926001564-/// \n/// ", + "signature": "8926001564-/// \n/// " + }, + "../../lib/lib.esnext.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "-8396256275-export declare const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n" + } + }, + "options": { + "incremental": true, + "listFiles": true, + "listEmittedFiles": true, + "target": 1, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../../lib/lib.esnext.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js new file mode 100644 index 00000000000..09055358c26 --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js @@ -0,0 +1,100 @@ +//// [/lib/incremental-declaration-doesnt-changeOutput.txt] +/lib/tsc --b /src/tests --verbose +4:08:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:08:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' + +4:08:00 PM - Building project '/src/core/tsconfig.json'... + +4:08:00 PM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... + +4:08:00 PM - Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies + +4:08:00 PM - Updating output timestamps of project '/src/logic/tsconfig.json'... + +4:08:00 PM - Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies + +4:08:00 PM - Updating output timestamps of project '/src/tests/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/tests/tsconfig.json": 1, + "/src/core/tsconfig.json": 1, + "/src/logic/tsconfig.json": 1, + "/src/core/tsconfig.tsbuildinfo": 1, + "/src/core/anotherModule.ts": 1, + "/src/core/index.ts": 1, + "/src/core/some_decl.d.ts": 1, + "/src/core/index.d.ts": 1, + "/src/logic/tsconfig.tsbuildinfo": 1, + "/src/tests/tsconfig.tsbuildinfo": 1 +} + +//// [/src/core/index.d.ts] file written with same contents +//// [/src/core/index.d.ts.map] file written with same contents +//// [/src/core/index.d.ts.map.baseline.txt] file written with same contents +//// [/src/core/index.js] +"use strict"; +exports.__esModule = true; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; +var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; +}()); + + +//// [/src/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + +class someClass { } + +//// [/src/core/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "./index.ts": { + "version": "-16698397488-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n\nclass someClass { }", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/sample.js b/tests/baselines/reference/tsbuild/sample1/initial-build/sample.js new file mode 100644 index 00000000000..6dce93cacfd --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/sample.js @@ -0,0 +1,531 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/tests --verbose +4:01:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist + +4:01:00 PM - Building project '/src/core/tsconfig.json'... + +4:01:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist + +4:01:00 PM - Building project '/src/logic/tsconfig.json'... + +4:01:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist + +4:01:00 PM - Building project '/src/tests/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/tests/tsconfig.json": 1, + "/src/core/tsconfig.json": 1, + "/src/logic/tsconfig.json": 1, + "/src/core/tsconfig.tsbuildinfo": 1, + "/src/core/anotherModule.ts": 1, + "/src/core/index.ts": 1, + "/src/core/some_decl.d.ts": 1, + "/src/logic/tsconfig.tsbuildinfo": 1, + "/src/logic/index.ts": 1, + "/src/core/index.d.ts": 1, + "/src/core/anotherModule.d.ts": 1, + "/src/tests/tsconfig.tsbuildinfo": 1, + "/src/tests/index.ts": 1, + "/src/logic/index.d.ts": 1 +} + +//// [/src/core/anotherModule.d.ts] +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map + +//// [/src/core/anotherModule.d.ts.map] +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} + +//// [/src/core/anotherModule.d.ts.map.baseline.txt] +=================================================================== +JsFile: anotherModule.d.ts +mapUrl: anotherModule.d.ts.map +sourceRoot: +sources: anotherModule.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/core/anotherModule.d.ts +sourceFile:anotherModule.ts +------------------------------------------------------------------- +>>>export declare const World = "hello"; +1 > +2 >^^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +7 > ^^^^^-> +1 > +2 >export +3 > const +4 > World +5 > = "hello" +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 16) Source(1, 8) + SourceIndex(0) +3 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) +4 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +5 >Emitted(1, 37) Source(1, 29) + SourceIndex(0) +6 >Emitted(1, 38) Source(1, 30) + SourceIndex(0) +--- +>>>//# sourceMappingURL=anotherModule.d.ts.map + +//// [/src/core/anotherModule.js] +"use strict"; +exports.__esModule = true; +exports.World = "hello"; + + +//// [/src/core/index.d.ts] +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map + +//// [/src/core/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} + +//// [/src/core/index.d.ts.map.baseline.txt] +=================================================================== +JsFile: index.d.ts +mapUrl: index.d.ts.map +sourceRoot: +sources: index.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/core/index.d.ts +sourceFile:index.ts +------------------------------------------------------------------- +>>>export declare const someString: string; +1 > +2 >^^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^ +7 > ^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >export +3 > const +4 > someString +5 > : +6 > string = "HELLO WORLD" +7 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 16) Source(1, 8) + SourceIndex(0) +3 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) +4 >Emitted(1, 32) Source(1, 24) + SourceIndex(0) +5 >Emitted(1, 34) Source(1, 26) + SourceIndex(0) +6 >Emitted(1, 40) Source(1, 48) + SourceIndex(0) +7 >Emitted(1, 41) Source(1, 49) + SourceIndex(0) +--- +>>>export declare function leftPad(s: string, n: number): string; +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^^^^^ +12> ^^^^^^^^^^ +13> ^^-> +1-> + > +2 >export function +3 > leftPad +4 > ( +5 > s +6 > : +7 > string +8 > , +9 > n +10> : +11> number +12> ) { return s + n; } +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 25) Source(2, 17) + SourceIndex(0) +3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) +4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) +5 >Emitted(2, 34) Source(2, 26) + SourceIndex(0) +6 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) +7 >Emitted(2, 42) Source(2, 34) + SourceIndex(0) +8 >Emitted(2, 44) Source(2, 36) + SourceIndex(0) +9 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) +10>Emitted(2, 47) Source(2, 39) + SourceIndex(0) +11>Emitted(2, 53) Source(2, 45) + SourceIndex(0) +12>Emitted(2, 63) Source(2, 64) + SourceIndex(0) +--- +>>>export declare function multiply(a: number, b: number): number; +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^ +4 > ^ +5 > ^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^^^^^ +12> ^^^^^^^^^^ +1-> + > +2 >export function +3 > multiply +4 > ( +5 > a +6 > : +7 > number +8 > , +9 > b +10> : +11> number +12> ) { return a * b; } +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 25) Source(3, 17) + SourceIndex(0) +3 >Emitted(3, 33) Source(3, 25) + SourceIndex(0) +4 >Emitted(3, 34) Source(3, 26) + SourceIndex(0) +5 >Emitted(3, 35) Source(3, 27) + SourceIndex(0) +6 >Emitted(3, 37) Source(3, 29) + SourceIndex(0) +7 >Emitted(3, 43) Source(3, 35) + SourceIndex(0) +8 >Emitted(3, 45) Source(3, 37) + SourceIndex(0) +9 >Emitted(3, 46) Source(3, 38) + SourceIndex(0) +10>Emitted(3, 48) Source(3, 40) + SourceIndex(0) +11>Emitted(3, 54) Source(3, 46) + SourceIndex(0) +12>Emitted(3, 64) Source(3, 65) + SourceIndex(0) +--- +>>>//# sourceMappingURL=index.d.ts.map + +//// [/src/core/index.js] +"use strict"; +exports.__esModule = true; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; + + +//// [/src/core/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "./index.ts": { + "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/logic/index.d.ts] +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + + +//// [/src/logic/index.js] +"use strict"; +exports.__esModule = true; +var c = require("../core/index"); +function getSecondsInDay() { + return c.multiply(10, 15); +} +exports.getSecondsInDay = getSecondsInDay; +var mod = require("../core/anotherModule"); +exports.m = mod; +//# sourceMappingURL=index.js.map + +//// [/src/logic/index.js.map] +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} + +//// [/src/logic/index.js.map.baseline.txt] +=================================================================== +JsFile: index.js +mapUrl: index.js.map +sourceRoot: +sources: index.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/logic/index.js +sourceFile:index.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>exports.__esModule = true; +>>>var c = require("../core/index"); +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >import * as c from '../core/index'; +1 >Emitted(3, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(3, 34) Source(1, 36) + SourceIndex(0) +--- +>>>function getSecondsInDay() { +1 > +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > +2 >export function +3 > getSecondsInDay +1 >Emitted(4, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 10) Source(2, 17) + SourceIndex(0) +3 >Emitted(4, 25) Source(2, 32) + SourceIndex(0) +--- +>>> return c.multiply(10, 15); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^ +6 > ^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^ +1->() { + > +2 > return +3 > c +4 > . +5 > multiply +6 > ( +7 > 10 +8 > , +9 > 15 +10> ) +11> ; +1->Emitted(5, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(5, 12) Source(3, 12) + SourceIndex(0) +3 >Emitted(5, 13) Source(3, 13) + SourceIndex(0) +4 >Emitted(5, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(5, 22) Source(3, 22) + SourceIndex(0) +6 >Emitted(5, 23) Source(3, 23) + SourceIndex(0) +7 >Emitted(5, 25) Source(3, 25) + SourceIndex(0) +8 >Emitted(5, 27) Source(3, 27) + SourceIndex(0) +9 >Emitted(5, 29) Source(3, 29) + SourceIndex(0) +10>Emitted(5, 30) Source(3, 30) + SourceIndex(0) +11>Emitted(5, 31) Source(3, 31) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) +--- +>>>exports.getSecondsInDay = getSecondsInDay; +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^-> +1-> +2 >export function getSecondsInDay() { + > return c.multiply(10, 15); + >} +1->Emitted(7, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(7, 43) Source(4, 2) + SourceIndex(0) +--- +>>>var mod = require("../core/anotherModule"); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >import * as mod from '../core/anotherModule'; +1->Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 44) Source(5, 46) + SourceIndex(0) +--- +>>>exports.m = mod; +1 > +2 >^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^-> +1 > + >export const +2 > +3 > m +4 > = +5 > mod +6 > ; +1 >Emitted(9, 1) Source(6, 14) + SourceIndex(0) +2 >Emitted(9, 9) Source(6, 14) + SourceIndex(0) +3 >Emitted(9, 10) Source(6, 15) + SourceIndex(0) +4 >Emitted(9, 13) Source(6, 18) + SourceIndex(0) +5 >Emitted(9, 16) Source(6, 21) + SourceIndex(0) +6 >Emitted(9, 17) Source(6, 22) + SourceIndex(0) +--- +>>>//# sourceMappingURL=index.js.map + +//// [/src/logic/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../core/index.ts": { + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "../core/anothermodule.ts": { + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "./index.ts": { + "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./index.ts": [ + "../core/anothermodule.d.ts", + "../core/index.d.ts" + ] + }, + "exportedModulesMap": { + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.ts", + "../core/index.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/tests/index.d.ts] +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + + +//// [/src/tests/index.js] +"use strict"; +exports.__esModule = true; +var c = require("../core/index"); +var logic = require("../logic/index"); +c.leftPad("", 10); +logic.getSecondsInDay(); +var mod = require("../core/anotherModule"); +exports.m = mod; + + +//// [/src/tests/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../core/index.ts": { + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "../core/anothermodule.ts": { + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "../logic/index.ts": { + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + }, + "./index.ts": { + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "../logic/index.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts" + ] + }, + "exportedModulesMap": { + "../logic/index.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.ts", + "../core/index.ts", + "../logic/index.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-build/when-declaration-option-changes.js new file mode 100644 index 00000000000..5e1f8e0cab2 --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/when-declaration-option-changes.js @@ -0,0 +1,74 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/core --verbose +4:01:00 PM - Projects in this build: + * src/core/tsconfig.json + +4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist + +4:01:00 PM - Building project '/src/core/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/core/anotherModule.js] +"use strict"; +exports.__esModule = true; +exports.World = "hello"; + + +//// [/src/core/index.js] +"use strict"; +exports.__esModule = true; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; + + +//// [/src/core/tsconfig.json] +{ + "compilerOptions": { + "incremental": true, + "skipDefaultLibCheck": true + } +} + +//// [/src/core/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "-8396256275-export declare const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n" + } + }, + "options": { + "incremental": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js new file mode 100644 index 00000000000..74b9a998ff1 --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js @@ -0,0 +1,259 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/tests --verbose +4:01:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist + +4:01:00 PM - Building project '/src/core/tsconfig.json'... + +4:01:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist + +4:01:00 PM - Building project '/src/logic/tsconfig.json'... + +4:01:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist + +4:01:00 PM - Building project '/src/tests/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/core/anotherModule.d.ts] +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map + +//// [/src/core/anotherModule.d.ts.map] +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} + +//// [/src/core/anotherModule.js] +"use strict"; +exports.__esModule = true; +exports.World = "hello"; + + +//// [/src/core/index.d.ts] +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map + +//// [/src/core/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} + +//// [/src/core/index.js] +"use strict"; +exports.__esModule = true; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; + + +//// [/src/core/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "./index.ts": { + "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/logic/index.d.ts] +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + + +//// [/src/logic/index.js] +"use strict"; +exports.__esModule = true; +var c = require("../core/index"); +function getSecondsInDay() { + return c.multiply(10, 15); +} +exports.getSecondsInDay = getSecondsInDay; +var mod = require("../core/anotherModule"); +exports.m = mod; +//# sourceMappingURL=index.js.map + +//// [/src/logic/index.js.map] +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} + +//// [/src/logic/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../core/index.ts": { + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "../core/anothermodule.ts": { + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "./index.ts": { + "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./index.ts": [ + "../core/anothermodule.d.ts", + "../core/index.d.ts" + ] + }, + "exportedModulesMap": { + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.ts", + "../core/index.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/tests/index.d.ts] +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + + +//// [/src/tests/index.js] +"use strict"; +exports.__esModule = true; +var c = require("../core/index"); +var logic = require("../logic/index"); +c.leftPad("", 10); +logic.getSecondsInDay(); +var mod = require("../core/anotherModule"); +exports.m = mod; + + +//// [/src/tests/tsconfig.json] +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" } + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "esModuleInterop": false + } +} + +//// [/src/tests/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../core/index.ts": { + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "../core/anothermodule.ts": { + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "../logic/index.ts": { + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + }, + "./index.ts": { + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "esModuleInterop": false, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "../logic/index.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts" + ] + }, + "exportedModulesMap": { + "../logic/index.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.ts", + "../core/index.ts", + "../logic/index.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js new file mode 100644 index 00000000000..480116121fc --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js @@ -0,0 +1,548 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/tests --verbose +4:00:00 PM - Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +4:00:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist + +4:00:00 PM - Building project '/src/core/tsconfig.json'... + +4:00:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist + +4:00:00 PM - Building project '/src/logic/tsconfig.json'... + +4:00:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist + +4:00:00 PM - Building project '/src/tests/tsconfig.json'... + +exitCode:: 0 +readFiles:: { + "/src/tests/tsconfig.json": 1, + "/src/core/tsconfig.json": 1, + "/src/logic/tsconfig.json": 1, + "/src/core/tsconfig.tsbuildinfo": 1, + "/src/core/anotherModule.ts": 1, + "/src/core/index.ts": 1, + "/src/core/some_decl.d.ts": 1, + "/src/logic/ownFile.tsbuildinfo": 1, + "/src/logic/index.ts": 1, + "/src/core/index.d.ts": 1, + "/src/core/anotherModule.d.ts": 1, + "/src/tests/tsconfig.tsbuildinfo": 1, + "/src/tests/index.ts": 1, + "/src/logic/index.d.ts": 1 +} + +//// [/src/core/anotherModule.d.ts] +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map + +//// [/src/core/anotherModule.d.ts.map] +{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"} + +//// [/src/core/anotherModule.d.ts.map.baseline.txt] +=================================================================== +JsFile: anotherModule.d.ts +mapUrl: anotherModule.d.ts.map +sourceRoot: +sources: anotherModule.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/core/anotherModule.d.ts +sourceFile:anotherModule.ts +------------------------------------------------------------------- +>>>export declare const World = "hello"; +1 > +2 >^^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +7 > ^^^^^-> +1 > +2 >export +3 > const +4 > World +5 > = "hello" +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 16) Source(1, 8) + SourceIndex(0) +3 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) +4 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +5 >Emitted(1, 37) Source(1, 29) + SourceIndex(0) +6 >Emitted(1, 38) Source(1, 30) + SourceIndex(0) +--- +>>>//# sourceMappingURL=anotherModule.d.ts.map + +//// [/src/core/anotherModule.js] +"use strict"; +exports.__esModule = true; +exports.World = "hello"; + + +//// [/src/core/index.d.ts] +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map + +//// [/src/core/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} + +//// [/src/core/index.d.ts.map.baseline.txt] +=================================================================== +JsFile: index.d.ts +mapUrl: index.d.ts.map +sourceRoot: +sources: index.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/core/index.d.ts +sourceFile:index.ts +------------------------------------------------------------------- +>>>export declare const someString: string; +1 > +2 >^^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^ +7 > ^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >export +3 > const +4 > someString +5 > : +6 > string = "HELLO WORLD" +7 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 16) Source(1, 8) + SourceIndex(0) +3 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) +4 >Emitted(1, 32) Source(1, 24) + SourceIndex(0) +5 >Emitted(1, 34) Source(1, 26) + SourceIndex(0) +6 >Emitted(1, 40) Source(1, 48) + SourceIndex(0) +7 >Emitted(1, 41) Source(1, 49) + SourceIndex(0) +--- +>>>export declare function leftPad(s: string, n: number): string; +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^^^^^ +12> ^^^^^^^^^^ +13> ^^-> +1-> + > +2 >export function +3 > leftPad +4 > ( +5 > s +6 > : +7 > string +8 > , +9 > n +10> : +11> number +12> ) { return s + n; } +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 25) Source(2, 17) + SourceIndex(0) +3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) +4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) +5 >Emitted(2, 34) Source(2, 26) + SourceIndex(0) +6 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) +7 >Emitted(2, 42) Source(2, 34) + SourceIndex(0) +8 >Emitted(2, 44) Source(2, 36) + SourceIndex(0) +9 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) +10>Emitted(2, 47) Source(2, 39) + SourceIndex(0) +11>Emitted(2, 53) Source(2, 45) + SourceIndex(0) +12>Emitted(2, 63) Source(2, 64) + SourceIndex(0) +--- +>>>export declare function multiply(a: number, b: number): number; +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^ +4 > ^ +5 > ^ +6 > ^^ +7 > ^^^^^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^^^^^ +12> ^^^^^^^^^^ +1-> + > +2 >export function +3 > multiply +4 > ( +5 > a +6 > : +7 > number +8 > , +9 > b +10> : +11> number +12> ) { return a * b; } +1->Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 25) Source(3, 17) + SourceIndex(0) +3 >Emitted(3, 33) Source(3, 25) + SourceIndex(0) +4 >Emitted(3, 34) Source(3, 26) + SourceIndex(0) +5 >Emitted(3, 35) Source(3, 27) + SourceIndex(0) +6 >Emitted(3, 37) Source(3, 29) + SourceIndex(0) +7 >Emitted(3, 43) Source(3, 35) + SourceIndex(0) +8 >Emitted(3, 45) Source(3, 37) + SourceIndex(0) +9 >Emitted(3, 46) Source(3, 38) + SourceIndex(0) +10>Emitted(3, 48) Source(3, 40) + SourceIndex(0) +11>Emitted(3, 54) Source(3, 46) + SourceIndex(0) +12>Emitted(3, 64) Source(3, 65) + SourceIndex(0) +--- +>>>//# sourceMappingURL=index.d.ts.map + +//// [/src/core/index.js] +"use strict"; +exports.__esModule = true; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; + + +//// [/src/core/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "./index.ts": { + "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/logic/index.d.ts] +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + + +//// [/src/logic/index.js] +"use strict"; +exports.__esModule = true; +var c = require("../core/index"); +function getSecondsInDay() { + return c.multiply(10, 15); +} +exports.getSecondsInDay = getSecondsInDay; +var mod = require("../core/anotherModule"); +exports.m = mod; +//# sourceMappingURL=index.js.map + +//// [/src/logic/index.js.map] +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AACnC,SAAgB,eAAe;IAC3B,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9B,CAAC;AAFD,0CAEC;AACD,2CAA6C;AAChC,QAAA,CAAC,GAAG,GAAG,CAAC"} + +//// [/src/logic/index.js.map.baseline.txt] +=================================================================== +JsFile: index.js +mapUrl: index.js.map +sourceRoot: +sources: index.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/logic/index.js +sourceFile:index.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>exports.__esModule = true; +>>>var c = require("../core/index"); +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >import * as c from '../core/index'; +1 >Emitted(3, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(3, 34) Source(1, 36) + SourceIndex(0) +--- +>>>function getSecondsInDay() { +1 > +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > +2 >export function +3 > getSecondsInDay +1 >Emitted(4, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 10) Source(2, 17) + SourceIndex(0) +3 >Emitted(4, 25) Source(2, 32) + SourceIndex(0) +--- +>>> return c.multiply(10, 15); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^ +6 > ^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^ +1->() { + > +2 > return +3 > c +4 > . +5 > multiply +6 > ( +7 > 10 +8 > , +9 > 15 +10> ) +11> ; +1->Emitted(5, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(5, 12) Source(3, 12) + SourceIndex(0) +3 >Emitted(5, 13) Source(3, 13) + SourceIndex(0) +4 >Emitted(5, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(5, 22) Source(3, 22) + SourceIndex(0) +6 >Emitted(5, 23) Source(3, 23) + SourceIndex(0) +7 >Emitted(5, 25) Source(3, 25) + SourceIndex(0) +8 >Emitted(5, 27) Source(3, 27) + SourceIndex(0) +9 >Emitted(5, 29) Source(3, 29) + SourceIndex(0) +10>Emitted(5, 30) Source(3, 30) + SourceIndex(0) +11>Emitted(5, 31) Source(3, 31) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(6, 2) Source(4, 2) + SourceIndex(0) +--- +>>>exports.getSecondsInDay = getSecondsInDay; +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^-> +1-> +2 >export function getSecondsInDay() { + > return c.multiply(10, 15); + >} +1->Emitted(7, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(7, 43) Source(4, 2) + SourceIndex(0) +--- +>>>var mod = require("../core/anotherModule"); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >import * as mod from '../core/anotherModule'; +1->Emitted(8, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(8, 44) Source(5, 46) + SourceIndex(0) +--- +>>>exports.m = mod; +1 > +2 >^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^-> +1 > + >export const +2 > +3 > m +4 > = +5 > mod +6 > ; +1 >Emitted(9, 1) Source(6, 14) + SourceIndex(0) +2 >Emitted(9, 9) Source(6, 14) + SourceIndex(0) +3 >Emitted(9, 10) Source(6, 15) + SourceIndex(0) +4 >Emitted(9, 13) Source(6, 18) + SourceIndex(0) +5 >Emitted(9, 16) Source(6, 21) + SourceIndex(0) +6 >Emitted(9, 17) Source(6, 22) + SourceIndex(0) +--- +>>>//# sourceMappingURL=index.js.map + +//// [/src/logic/ownFile.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../core/index.ts": { + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "../core/anothermodule.ts": { + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "./index.ts": { + "version": "-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "tsBuildInfoFile": "./ownFile.tsbuildinfo", + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "./index.ts": [ + "../core/anothermodule.d.ts", + "../core/index.d.ts" + ] + }, + "exportedModulesMap": { + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.ts", + "../core/index.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/src/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "tsBuildInfoFile": "ownFile.tsbuildinfo", + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { "path": "../core" } + ] +} + + +//// [/src/tests/index.d.ts] +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + + +//// [/src/tests/index.js] +"use strict"; +exports.__esModule = true; +var c = require("../core/index"); +var logic = require("../logic/index"); +c.leftPad("", 10); +logic.getSecondsInDay(); +var mod = require("../core/anotherModule"); +exports.m = mod; + + +//// [/src/tests/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../core/index.ts": { + "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", + "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" + }, + "../core/anothermodule.ts": { + "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", + "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" + }, + "../logic/index.ts": { + "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", + "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + }, + "./index.ts": { + "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", + "signature": "-9209611-import * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" + } + }, + "options": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": { + "../logic/index.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts" + ] + }, + "exportedModulesMap": { + "../logic/index.ts": [ + "../core/anothermodule.d.ts" + ], + "./index.ts": [ + "../core/anothermodule.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "../core/anothermodule.ts", + "../core/index.ts", + "../logic/index.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-build/when-module-option-changes.js new file mode 100644 index 00000000000..7d38706c85e --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/when-module-option-changes.js @@ -0,0 +1,74 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/core --verbose +4:01:00 PM - Projects in this build: + * src/core/tsconfig.json + +4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist + +4:01:00 PM - Building project '/src/core/tsconfig.json'... + +exitCode:: 0 + + +//// [/src/core/anotherModule.js] +"use strict"; +exports.__esModule = true; +exports.World = "hello"; + + +//// [/src/core/index.js] +"use strict"; +exports.__esModule = true; +exports.someString = "HELLO WORLD"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; + + +//// [/src/core/tsconfig.json] +{ + "compilerOptions": { + "incremental": true, + "module": "commonjs" + } +} + +//// [/src/core/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "-8396256275-export declare const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n" + } + }, + "options": { + "incremental": true, + "module": 1, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion" +} + diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-build/when-target-option-changes.js new file mode 100644 index 00000000000..b9370cc5639 --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/when-target-option-changes.js @@ -0,0 +1,108 @@ +//// [/lib/initial-buildOutput.txt] +/lib/tsc --b /src/core --verbose +4:01:00 PM - Projects in this build: + * src/core/tsconfig.json + +4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist + +4:01:00 PM - Building project '/src/core/tsconfig.json'... + +TSFILE: /src/core/anotherModule.js +TSFILE: /src/core/index.js +TSFILE: /src/core/tsconfig.tsbuildinfo +/lib/lib.esnext.d.ts +/lib/lib.esnext.full.d.ts +/src/core/anotherModule.ts +/src/core/index.ts +/src/core/some_decl.d.ts +exitCode:: 0 + + +//// [/lib/lib.d.ts] +/// +/// + +//// [/lib/lib.esnext.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/lib/lib.esnext.full.d.ts] +/// +/// + +//// [/src/core/anotherModule.js] +export const World = "hello"; + + +//// [/src/core/index.js] +export const someString = "HELLO WORLD"; +export function leftPad(s, n) { return s + n; } +export function multiply(a, b) { return a * b; } + + +//// [/src/core/tsconfig.json] +{ + "compilerOptions": { + "incremental": true, +"listFiles": true, +"listEmittedFiles": true, + "target": "esnext", + } +} + +//// [/src/core/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../lib/lib.esnext.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../../lib/lib.esnext.full.d.ts": { + "version": "8926001564-/// \n/// ", + "signature": "8926001564-/// \n/// " + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "-8396256275-export declare const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n" + } + }, + "options": { + "incremental": true, + "listFiles": true, + "listEmittedFiles": true, + "target": 99, + "configFilePath": "./tsconfig.json" + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.esnext.d.ts", + "../../lib/lib.esnext.full.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion" +} + From 382ff17df28f41bef8a634eca7b198e1f53f0710 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 24 Sep 2019 16:18:34 -0700 Subject: [PATCH 155/159] Update emitting timestamps during testing --- src/compiler/tsbuild.ts | 2 +- src/compiler/watch.ts | 13 +++++++++++-- .../modules-and-globals-mixed-in-amd.js | 12 ++++++------ .../multiple-emitHelpers-in-all-projects.js | 12 ++++++------ .../multiple-prologues-in-all-projects.js | 12 ++++++------ .../shebang-in-all-projects.js | 12 ++++++------ .../stripInternal.js | 12 ++++++------ .../triple-slash-refs-in-all-projects.js | 12 ++++++------ .../multiple-emitHelpers-in-all-projects.js | 12 ++++++------ .../multiple-prologues-in-all-projects.js | 12 ++++++------ .../stripInternal.js | 10 +++++----- .../modules-and-globals-mixed-in-amd.js | 10 +++++----- .../multiple-emitHelpers-in-all-projects.js | 10 +++++----- .../multiple-prologues-in-all-projects.js | 10 +++++----- .../initial-build/shebang-in-all-projects.js | 10 +++++----- .../initial-build/stripInternal.js | 10 +++++----- .../triple-slash-refs-in-all-projects.js | 10 +++++----- ...le-resolution-finds-original-source-file.js | 10 +++++----- ...h-emitDeclarationOnly-and-declarationMap.js | 6 +++--- ...-import-project-with-emitDeclarationOnly.js | 6 +++--- ...imports-project-with-emitDeclarationOnly.js | 6 +++--- ...imports-project-with-emitDeclarationOnly.js | 8 ++++---- ...h-emitDeclarationOnly-and-declarationMap.js | 6 +++--- ...-import-project-with-emitDeclarationOnly.js | 6 +++--- ...imports-project-with-emitDeclarationOnly.js | 6 +++--- ...m-transitive-module-with-isolatedModules.js | 8 ++++---- .../inferred-type-from-transitive-module.js | 8 ++++---- ...change-in-signature-with-isolatedModules.js | 6 +++--- ...m-transitive-module-with-isolatedModules.js | 6 +++--- .../inferred-type-from-transitive-module.js | 6 +++--- ...change-in-signature-with-isolatedModules.js | 6 +++--- ...is-merged-and-contains-late-bound-member.js | 8 ++++---- ...is-merged-and-contains-late-bound-member.js | 6 +++--- ...ized-module-specifiers-resolve-correctly.js | 14 +++++++------- .../baseline-sectioned-sourcemaps.js | 12 ++++++------ .../emitHelpers-in-all-projects.js | 12 ++++++------ .../multiple-prologues-in-all-projects.js | 12 ++++++------ .../shebang-in-all-projects.js | 12 ++++++------ .../strict-in-all-projects.js | 12 ++++++------ ...hen-one-two-three-are-prepended-in-order.js | 14 +++++++------- .../stripInternal.js | 12 ++++++------ .../triple-slash-refs-in-all-projects.js | 12 ++++++------ .../baseline-sectioned-sourcemaps.js | 14 +++++++------- .../emitHelpers-in-all-projects.js | 14 +++++++------- ...itHelpers-in-only-one-dependency-project.js | 14 +++++++------- .../multiple-emitHelpers-in-all-projects.js | 14 +++++++------- ...ltiple-emitHelpers-in-different-projects.js | 14 +++++++------- .../multiple-prologues-in-all-projects.js | 14 +++++++------- ...multiple-prologues-in-different-projects.js | 14 +++++++------- .../shebang-in-all-projects.js | 14 +++++++------- .../shebang-in-only-one-dependency-project.js | 14 +++++++------- .../strict-in-all-projects.js | 14 +++++++------- .../strict-in-one-dependency.js | 14 +++++++------- ...hen-one-two-three-are-prepended-in-order.js | 18 +++++++++--------- .../stripInternal-jsdoc-style-comment.js | 14 +++++++------- ...hen-one-two-three-are-prepended-in-order.js | 18 +++++++++--------- ...l-jsdoc-style-with-comments-emit-enabled.js | 14 +++++++------- ...hen-one-two-three-are-prepended-in-order.js | 18 +++++++++--------- ...hen-one-two-three-are-prepended-in-order.js | 18 +++++++++--------- ...stripInternal-with-comments-emit-enabled.js | 14 +++++++------- .../stripInternal.js | 14 +++++++------- .../triple-slash-refs-in-all-projects.js | 14 +++++++------- .../triple-slash-refs-in-one-project.js | 14 +++++++------- ...ot-composite-but-uses-project-references.js | 12 ++++++------ ...n-source-files-are-empty-in-the-own-file.js | 14 +++++++------- .../emitHelpers-in-all-projects.js | 14 +++++++------- ...itHelpers-in-only-one-dependency-project.js | 14 +++++++------- .../multiple-emitHelpers-in-all-projects.js | 14 +++++++------- ...ltiple-emitHelpers-in-different-projects.js | 14 +++++++------- .../multiple-prologues-in-all-projects.js | 14 +++++++------- ...multiple-prologues-in-different-projects.js | 14 +++++++------- .../strict-in-all-projects.js | 14 +++++++------- .../strict-in-one-dependency.js | 14 +++++++------- ...hen-one-two-three-are-prepended-in-order.js | 18 +++++++++--------- .../stripInternal-jsdoc-style-comment.js | 14 +++++++------- ...hen-one-two-three-are-prepended-in-order.js | 18 +++++++++--------- ...hen-one-two-three-are-prepended-in-order.js | 18 +++++++++--------- ...stripInternal-with-comments-emit-enabled.js | 14 +++++++------- .../stripInternal.js | 14 +++++++------- .../baseline-sectioned-sourcemaps.js | 14 +++++++------- .../declarationMap-and-sourceMap-disabled.js | 14 +++++++------- .../emitHelpers-in-all-projects.js | 14 +++++++------- ...itHelpers-in-only-one-dependency-project.js | 14 +++++++------- .../multiple-emitHelpers-in-all-projects.js | 14 +++++++------- ...ltiple-emitHelpers-in-different-projects.js | 14 +++++++------- .../multiple-prologues-in-all-projects.js | 14 +++++++------- ...multiple-prologues-in-different-projects.js | 14 +++++++------- .../initial-build/shebang-in-all-projects.js | 14 +++++++------- .../shebang-in-only-one-dependency-project.js | 14 +++++++------- .../initial-build/strict-in-all-projects.js | 14 +++++++------- .../initial-build/strict-in-one-dependency.js | 14 +++++++------- ...when-internal-is-inside-another-internal.js | 14 +++++++------- ...hen-one-two-three-are-prepended-in-order.js | 14 +++++++------- .../stripInternal-jsdoc-style-comment.js | 14 +++++++------- ...hen-one-two-three-are-prepended-in-order.js | 14 +++++++------- ...l-jsdoc-style-with-comments-emit-enabled.js | 14 +++++++------- ...al-when-few-members-of-enum-are-internal.js | 14 +++++++------- ...hen-one-two-three-are-prepended-in-order.js | 14 +++++++------- ...hen-one-two-three-are-prepended-in-order.js | 14 +++++++------- ...stripInternal-with-comments-emit-enabled.js | 14 +++++++------- .../initial-build/stripInternal.js | 14 +++++++------- .../triple-slash-refs-in-all-projects.js | 14 +++++++------- .../triple-slash-refs-in-one-project.js | 14 +++++++------- ...project-is-not-composite-but-incremental.js | 14 +++++++------- ...ot-composite-but-uses-project-references.js | 14 +++++++------- ...-final-project-specifies-tsBuildInfoFile.js | 14 +++++++------- ...n-source-files-are-empty-in-the-own-file.js | 14 +++++++------- .../incremental-declaration-changes/sample.js | 16 ++++++++-------- .../when-declaration-option-changes.js | 6 +++--- .../when-esModuleInterop-option-changes.js | 10 +++++----- ...hen-logic-config-changes-declaration-dir.js | 12 ++++++------ .../when-module-option-changes.js | 6 +++--- .../when-target-option-changes.js | 6 +++--- .../sample.js | 16 ++++++++-------- .../tsbuild/sample1/initial-build/sample.js | 14 +++++++------- .../when-declaration-option-changes.js | 6 +++--- .../when-esModuleInterop-option-changes.js | 14 +++++++------- .../when-logic-specifies-tsBuildInfoFile.js | 14 +++++++------- .../when-module-option-changes.js | 6 +++--- .../when-target-option-changes.js | 6 +++--- 120 files changed, 739 insertions(+), 730 deletions(-) diff --git a/src/compiler/tsbuild.ts b/src/compiler/tsbuild.ts index 8be92079a5f..2f152d294a7 100644 --- a/src/compiler/tsbuild.ts +++ b/src/compiler/tsbuild.ts @@ -316,7 +316,7 @@ namespace ts { */ export function createBuilderStatusReporter(system: System, pretty?: boolean): DiagnosticReporter { return diagnostic => { - let output = pretty ? `[${formatColorAndReset((system.now ? system.now() : new Date()).toLocaleTimeString(), ForegroundColorEscapeSequences.Grey)}] ` : `${(system.now ? system.now() : new Date()).toLocaleTimeString()} - `; + let output = pretty ? `[${formatColorAndReset(getLocaleTimeString(system), ForegroundColorEscapeSequences.Grey)}] ` : `${getLocaleTimeString(system)} - `; output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${system.newLine + system.newLine}`; system.write(output); }; diff --git a/src/compiler/watch.ts b/src/compiler/watch.ts index 652b85d000d..06871fc9cac 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -54,6 +54,15 @@ namespace ts { : newLine; } + /** + * Get locale specific time based on whether we are in test mode + */ + export function getLocaleTimeString(system: System) { + return !system.now ? + new Date().toLocaleTimeString() : + system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }); + } + /** * Create a function that reports watch status by writing to the system and handles the formating of the diagnostic */ @@ -61,7 +70,7 @@ namespace ts { return pretty ? (diagnostic, newLine, options) => { clearScreenIfNotWatchingForFileChanges(system, diagnostic, options); - let output = `[${formatColorAndReset(new Date().toLocaleTimeString(), ForegroundColorEscapeSequences.Grey)}] `; + let output = `[${formatColorAndReset(getLocaleTimeString(system), ForegroundColorEscapeSequences.Grey)}] `; output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${newLine + newLine}`; system.write(output); } : @@ -72,7 +81,7 @@ namespace ts { output += newLine; } - output += `${new Date().toLocaleTimeString()} - `; + output += `${getLocaleTimeString(system)} - `; output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${getPlainDiagnosticFollowingNewLines(diagnostic, newLine)}`; system.write(output); diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js index d84e3661d87..156e26088e0 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js @@ -1,18 +1,18 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/app --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +12:04:00 AM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:04:00 PM - Building project '/src/lib/tsconfig.json'... +12:04:00 AM - Building project '/src/lib/tsconfig.json'... -4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +12:04:00 AM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/app/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js index 99f30881334..e09e87242a1 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -1,18 +1,18 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/app --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +12:04:00 AM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:04:00 PM - Building project '/src/lib/tsconfig.json'... +12:04:00 AM - Building project '/src/lib/tsconfig.json'... -4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +12:04:00 AM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/app/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js index aef9b460c46..93a7cbf7326 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js @@ -1,18 +1,18 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/app --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +12:04:00 AM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:04:00 PM - Building project '/src/lib/tsconfig.json'... +12:04:00 AM - Building project '/src/lib/tsconfig.json'... -4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +12:04:00 AM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/app/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js index 552db042308..e3daf15bcac 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js @@ -1,18 +1,18 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/app --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +12:04:00 AM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:04:00 PM - Building project '/src/lib/tsconfig.json'... +12:04:00 AM - Building project '/src/lib/tsconfig.json'... -4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +12:04:00 AM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/app/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js index 54ef4f2ee1f..6f6ca38435a 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js @@ -1,18 +1,18 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/app --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +12:04:00 AM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:04:00 PM - Building project '/src/lib/tsconfig.json'... +12:04:00 AM - Building project '/src/lib/tsconfig.json'... -4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +12:04:00 AM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/app/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js index 3f4f863e663..b07879caae0 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js @@ -1,18 +1,18 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/app --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:04:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +12:04:00 AM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:04:00 PM - Building project '/src/lib/tsconfig.json'... +12:04:00 AM - Building project '/src/lib/tsconfig.json'... -4:04:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +12:04:00 AM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:04:00 PM - Updating output of project '/src/app/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/app/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js index 16696da278d..27bdfed7421 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -1,18 +1,18 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/app --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:08:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +12:08:00 AM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:08:00 PM - Building project '/src/lib/tsconfig.json'... +12:08:00 AM - Building project '/src/lib/tsconfig.json'... -4:08:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +12:08:00 AM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:08:00 PM - Updating output of project '/src/app/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/app/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js index c14352761c7..ae8b69e86b9 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js @@ -1,18 +1,18 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/app --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:08:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +12:08:00 AM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:08:00 PM - Building project '/src/lib/tsconfig.json'... +12:08:00 AM - Building project '/src/lib/tsconfig.json'... -4:08:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +12:08:00 AM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:08:00 PM - Updating output of project '/src/app/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/app/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js index 0ed0c54963e..544b25a544d 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js @@ -1,16 +1,16 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/app --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:08:00 PM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' +12:08:00 AM - Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' -4:08:00 PM - Building project '/src/lib/tsconfig.json'... +12:08:00 AM - Building project '/src/lib/tsconfig.json'... -4:08:00 PM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed +12:08:00 AM - Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed -4:08:00 PM - Updating output of project '/src/app/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/modules-and-globals-mixed-in-amd.js index 2773ed36d67..1e6b3c5f9d3 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/modules-and-globals-mixed-in-amd.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/modules-and-globals-mixed-in-amd.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/app --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist +12:01:00 AM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist -4:01:00 PM - Building project '/src/lib/tsconfig.json'... +12:01:00 AM - Building project '/src/lib/tsconfig.json'... -4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +12:01:00 AM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:01:00 PM - Building project '/src/app/tsconfig.json'... +12:01:00 AM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js index bbc069cc44f..4bef255a862 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/app --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist +12:01:00 AM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist -4:01:00 PM - Building project '/src/lib/tsconfig.json'... +12:01:00 AM - Building project '/src/lib/tsconfig.json'... -4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +12:01:00 AM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:01:00 PM - Building project '/src/app/tsconfig.json'... +12:01:00 AM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-prologues-in-all-projects.js index b87b167bc66..0a28b0c5003 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-prologues-in-all-projects.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/app --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist +12:01:00 AM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist -4:01:00 PM - Building project '/src/lib/tsconfig.json'... +12:01:00 AM - Building project '/src/lib/tsconfig.json'... -4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +12:01:00 AM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:01:00 PM - Building project '/src/app/tsconfig.json'... +12:01:00 AM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/shebang-in-all-projects.js index 48e53ba2ecb..16c2c89eab9 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/shebang-in-all-projects.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/app --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist +12:01:00 AM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist -4:01:00 PM - Building project '/src/lib/tsconfig.json'... +12:01:00 AM - Building project '/src/lib/tsconfig.json'... -4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +12:01:00 AM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:01:00 PM - Building project '/src/app/tsconfig.json'... +12:01:00 AM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js index 2180d402e80..2d2bd9809d6 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/app --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist +12:01:00 AM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist -4:01:00 PM - Building project '/src/lib/tsconfig.json'... +12:01:00 AM - Building project '/src/lib/tsconfig.json'... -4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +12:01:00 AM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:01:00 PM - Building project '/src/app/tsconfig.json'... +12:01:00 AM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/triple-slash-refs-in-all-projects.js index 352f657481b..50259e2c93d 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/triple-slash-refs-in-all-projects.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/app --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:01:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist +12:01:00 AM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist -4:01:00 PM - Building project '/src/lib/tsconfig.json'... +12:01:00 AM - Building project '/src/lib/tsconfig.json'... -4:01:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +12:01:00 AM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:01:00 PM - Building project '/src/app/tsconfig.json'... +12:01:00 AM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/when-the-module-resolution-finds-original-source-file.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/when-the-module-resolution-finds-original-source-file.js index 23e2db1476a..9bc7340630f 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/when-the-module-resolution-finds-original-source-file.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/when-the-module-resolution-finds-original-source-file.js @@ -1,16 +1,16 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc -b /src/app --verbose -4:00:00 PM - Projects in this build: +12:00:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -4:00:00 PM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/module.js' does not exist +12:00:00 AM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/module.js' does not exist -4:00:00 PM - Building project '/src/lib/tsconfig.json'... +12:00:00 AM - Building project '/src/lib/tsconfig.json'... -4:00:00 PM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist +12:00:00 AM - Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.js' does not exist -4:00:00 PM - Building project '/src/app/tsconfig.json'... +12:00:00 AM - Building project '/src/app/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js index f6c9acc7f49..d2d70c1b8be 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/tsconfig.json -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' +12:04:00 AM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' -4:04:00 PM - Building project '/src/tsconfig.json'... +12:04:00 AM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js index 30db772ad18..6e6f2bb1805 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/tsconfig.json -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' +12:04:00 AM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' -4:04:00 PM - Building project '/src/tsconfig.json'... +12:04:00 AM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index 68d31fc370e..8bcb33bced7 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-changes/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/tsconfig.json -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' +12:04:00 AM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' -4:04:00 PM - Building project '/src/tsconfig.json'... +12:04:00 AM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index 74786c8fde9..bdfcb1e826f 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/incremental-declaration-doesnt-change/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -1,13 +1,13 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/tsconfig.json -4:08:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' +12:08:00 AM - Project 'src/tsconfig.json' is out of date because oldest output 'src/lib/a.d.ts' is older than newest input 'src/src/a.ts' -4:08:00 PM - Building project '/src/tsconfig.json'... +12:08:00 AM - Building project '/src/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js index 516bc472994..38d8974e900 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/tsconfig.json -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist +12:01:00 AM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist -4:01:00 PM - Building project '/src/tsconfig.json'... +12:01:00 AM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js index 001ed2e2517..6f2bc263212 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/tsconfig.json -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist +12:01:00 AM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist -4:01:00 PM - Building project '/src/tsconfig.json'... +12:01:00 AM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js index f673e36cf40..aabaf41d53b 100644 --- a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/tsconfig.json -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist +12:01:00 AM - Project 'src/tsconfig.json' is out of date because output file 'src/lib/a.d.ts' does not exist -4:01:00 PM - Building project '/src/tsconfig.json'... +12:01:00 AM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js index bf4bee4eab4..a95215cf77f 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module-with-isolatedModules.js @@ -1,13 +1,13 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/tsconfig.json -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' +12:04:00 AM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' -4:04:00 PM - Building project '/src/tsconfig.json'... +12:04:00 AM - Building project '/src/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js index 391ee8b2b0a..5cd9097a200 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/inferred-type-from-transitive-module.js @@ -1,13 +1,13 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/tsconfig.json -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' +12:04:00 AM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' -4:04:00 PM - Building project '/src/tsconfig.json'... +12:04:00 AM - Building project '/src/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js index 000d32c145e..a00425b57a8 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/incremental-declaration-changes/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/tsconfig.json -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' +12:04:00 AM - Project 'src/tsconfig.json' is out of date because oldest output 'src/obj/bar.js' is older than newest input 'src/bar.ts' -4:04:00 PM - Building project '/src/tsconfig.json'... +12:04:00 AM - Building project '/src/tsconfig.json'... src/lazyIndex.ts(4,5): error TS2554: Expected 0 arguments, but got 1. exitCode:: 1 diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module-with-isolatedModules.js index b743ce8ce0e..93a7e296495 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module-with-isolatedModules.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/tsconfig.json -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist +12:01:00 AM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist -4:01:00 PM - Building project '/src/tsconfig.json'... +12:01:00 AM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module.js index c97faefa51b..45a284dc09c 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/tsconfig.json -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist +12:01:00 AM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist -4:01:00 PM - Building project '/src/tsconfig.json'... +12:01:00 AM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js index e8e91111756..39ad2d40a31 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/tsconfig.json -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist +12:01:00 AM - Project 'src/tsconfig.json' is out of date because output file 'src/obj/bar.js' does not exist -4:01:00 PM - Building project '/src/tsconfig.json'... +12:01:00 AM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js b/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js index 8b430f96e07..ffa834ba467 100644 --- a/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js +++ b/tests/baselines/reference/tsbuild/lateBoundSymbol/incremental-declaration-doesnt-change/interface-is-merged-and-contains-late-bound-member.js @@ -1,13 +1,13 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/tsconfig.json --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/tsconfig.json -4:04:00 PM - Project 'src/tsconfig.json' is out of date because oldest output 'src/src/hkt.js' is older than newest input 'src/src/main.ts' +12:04:00 AM - Project 'src/tsconfig.json' is out of date because oldest output 'src/src/hkt.js' is older than newest input 'src/src/main.ts' -4:04:00 PM - Building project '/src/tsconfig.json'... +12:04:00 AM - Building project '/src/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-build/interface-is-merged-and-contains-late-bound-member.js b/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-build/interface-is-merged-and-contains-late-bound-member.js index 1138bdc9f23..86d36097454 100644 --- a/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-build/interface-is-merged-and-contains-late-bound-member.js +++ b/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-build/interface-is-merged-and-contains-late-bound-member.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/tsconfig.json --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/tsconfig.json -4:01:00 PM - Project 'src/tsconfig.json' is out of date because output file 'src/src/hkt.js' does not exist +12:01:00 AM - Project 'src/tsconfig.json' is out of date because output file 'src/src/hkt.js' does not exist -4:01:00 PM - Building project '/src/tsconfig.json'... +12:01:00 AM - Building project '/src/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js b/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js index 2701a84f6b4..fb5eae55d7c 100644 --- a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js +++ b/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js @@ -1,23 +1,23 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc -b /src --verbose -4:00:00 PM - Projects in this build: +12:00:00 AM - Projects in this build: * src/solution/common/tsconfig.json * src/solution/sub-project/tsconfig.json * src/solution/sub-project-2/tsconfig.json * src/solution/tsconfig.json * src/tsconfig.json -4:00:00 PM - Project 'src/solution/common/tsconfig.json' is out of date because output file 'src/lib/solution/common/nominal.js' does not exist +12:00:00 AM - Project 'src/solution/common/tsconfig.json' is out of date because output file 'src/lib/solution/common/nominal.js' does not exist -4:00:00 PM - Building project '/src/solution/common/tsconfig.json'... +12:00:00 AM - Building project '/src/solution/common/tsconfig.json'... -4:00:00 PM - Project 'src/solution/sub-project/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project/index.js' does not exist +12:00:00 AM - Project 'src/solution/sub-project/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project/index.js' does not exist -4:00:00 PM - Building project '/src/solution/sub-project/tsconfig.json'... +12:00:00 AM - Building project '/src/solution/sub-project/tsconfig.json'... -4:00:00 PM - Project 'src/solution/sub-project-2/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project-2/index.js' does not exist +12:00:00 AM - Project 'src/solution/sub-project-2/tsconfig.json' is out of date because output file 'src/lib/solution/sub-project-2/index.js' does not exist -4:00:00 PM - Building project '/src/solution/sub-project-2/tsconfig.json'... +12:00:00 AM - Building project '/src/solution/sub-project-2/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js index 9367a222e95..136509b59b8 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -4:04:00 PM - Building project '/src/third/tsconfig.json'... +12:04:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js index dde86a0a636..605e02ffcc8 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -4:04:00 PM - Building project '/src/third/tsconfig.json'... +12:04:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js index 8b6e2ffc4f1..a10f26edcc3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -4:04:00 PM - Building project '/src/third/tsconfig.json'... +12:04:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js index b01cb4d4cce..874c818de64 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -4:04:00 PM - Building project '/src/third/tsconfig.json'... +12:04:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js index b267bf60ed3..9d7471bf95c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -4:04:00 PM - Building project '/src/third/tsconfig.json'... +12:04:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js index 4f373f2715d..c218edfa8a9 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because oldest output 'src/2/second-output.js' is older than newest input 'src/first' +12:04:00 AM - Project 'src/second/tsconfig.json' is out of date because oldest output 'src/2/second-output.js' is older than newest input 'src/first' -4:04:00 PM - Building project '/src/second/tsconfig.json'... +12:04:00 AM - Building project '/src/second/tsconfig.json'... -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/second' +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/second' -4:04:00 PM - Building project '/src/third/tsconfig.json'... +12:04:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js index 6e0f9dad311..397f586217e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -4:04:00 PM - Building project '/src/third/tsconfig.json'... +12:04:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js index bfdd60afdbe..25cb88e8ddc 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' -4:04:00 PM - Building project '/src/third/tsconfig.json'... +12:04:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js index 554b360c244..e0b14d9a65d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js index 1a351abf785..cb0c5eb2bc6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js index 6c4af8b33e5..11497868243 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js index 8b110dd43d3..d8e06c669bc 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js index ca1beb99e0b..692390e1645 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js index f735bc5dc4c..30075f17e26 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js index b5914e9854d..ba51e272d7e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js index fed09ab53ca..bbddaba06ea 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js index 3d32544f7fb..8cbabe3c880 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js index f5066a128eb..a97bd2a2197 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js index 6959522b4b3..9bdfad323e9 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 83ef9f7b6c8..9c369db811c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/second/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/second/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js index 728eede4865..48790653874 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 063cf4616a5..b7ccf17985a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/second/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/second/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js index 693db25d6cc..beb8d35124e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js index 262c5704c9e..e670e22aab6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/second/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/second/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 5485cd7efe4..eb1f081ead5 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/second/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/second/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js index bef29197431..51479fbc65d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js index a159a645e0b..4a70c73124e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js index 45662bd5aed..b11dc0218e2 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js index f5b05d0504c..8d9f639e805 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js index 42617018b17..66e8fed0677 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Building project '/src/third/tsconfig.json'... +12:04:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js index fb897c92939..c41ea2edc69 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js @@ -1,21 +1,21 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/third --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:04:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:04:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:04:00 PM - Building project '/src/first/tsconfig.json'... +12:04:00 AM - Building project '/src/first/tsconfig.json'... -4:04:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:04:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:04:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:04:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:04:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js index e5b38afe127..971adc119ac 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:12:00 PM - Projects in this build: +12:12:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:12:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:12:00 PM - Building project '/src/first/tsconfig.json'... +12:12:00 AM - Building project '/src/first/tsconfig.json'... -4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:12:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:12:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:12:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:12:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js index 374744c3500..4224fc07853 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js index 8e8099d954e..88807139890 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js index 007758d42c4..2c4350cc261 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js index 0ba862758a7..b7da2a1ff96 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:12:00 PM - Projects in this build: +12:12:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:12:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:12:00 PM - Building project '/src/first/tsconfig.json'... +12:12:00 AM - Building project '/src/first/tsconfig.json'... -4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:12:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:12:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:12:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:12:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js index 63d64eb0a11..7b9dc11ca9b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js index 76ac6adeb78..f762fa7ac29 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:12:00 PM - Projects in this build: +12:12:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:12:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:12:00 PM - Building project '/src/first/tsconfig.json'... +12:12:00 AM - Building project '/src/first/tsconfig.json'... -4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:12:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:12:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:12:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:12:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js index 41468039ec8..0e8a092a7d1 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 0c29565e910..c4c6dc7ab6d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/second/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/second/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js index 6062b244d25..44b2e3afe3f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js index ce3ce9947b2..a157ee39fc9 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:12:00 PM - Projects in this build: +12:12:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:12:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:12:00 PM - Building project '/src/first/tsconfig.json'... +12:12:00 AM - Building project '/src/first/tsconfig.json'... -4:12:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:12:00 AM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:12:00 PM - Updating output of project '/src/second/tsconfig.json'... +12:12:00 AM - Updating output of project '/src/second/tsconfig.json'... -4:12:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +12:12:00 AM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +12:12:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:12:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:12:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 7abd0fd5f78..fb2071dc256 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,25 +1,25 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/second/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/second/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/second/tsconfig.json'... -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js index 634fb0a5b02..a4a3c13a5f4 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:08:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:08:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:08:00 PM - Building project '/src/first/tsconfig.json'... +12:08:00 AM - Building project '/src/first/tsconfig.json'... -4:08:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:08:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:08:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:08:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:08:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js index 3d1c7b448b6..a048c6ecd75 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js @@ -1,21 +1,21 @@ //// [/lib/incremental-headers-change-without-dts-changesOutput.txt] /lib/tsc --b /src/third --verbose -4:12:00 PM - Projects in this build: +12:12:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:12:00 PM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' +12:12:00 AM - Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' -4:12:00 PM - Building project '/src/first/tsconfig.json'... +12:12:00 AM - Building project '/src/first/tsconfig.json'... -4:12:00 PM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' +12:12:00 AM - Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' -4:12:00 PM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed +12:12:00 AM - Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed -4:12:00 PM - Updating output of project '/src/third/tsconfig.json'... +12:12:00 AM - Updating output of project '/src/third/tsconfig.json'... -4:12:00 PM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... +12:12:00 AM - Updating unchanged output timestamps of project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js index 2f7ba873ad3..2b217d8a1d1 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/declarationMap-and-sourceMap-disabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/declarationMap-and-sourceMap-disabled.js index 675fda54149..41e8f94b4aa 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/declarationMap-and-sourceMap-disabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/declarationMap-and-sourceMap-disabled.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:00:00 PM - Projects in this build: +12:00:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:00:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:00:00 PM - Building project '/src/first/tsconfig.json'... +12:00:00 AM - Building project '/src/first/tsconfig.json'... -4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:00:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:00:00 PM - Building project '/src/second/tsconfig.json'... +12:00:00 AM - Building project '/src/second/tsconfig.json'... -4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:00:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:00:00 PM - Building project '/src/third/tsconfig.json'... +12:00:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js index 3130e072f76..7dbec0f66cf 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js index 5e2363bdbe3..b946940addd 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js index da32ae34a23..242690d2885 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js index cda562a0911..93ba9fcc3e3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js index b77ccd7276f..21f8943ae6b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js index 476c1c92004..ea725d85d49 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js index a7dbc818b70..b8adefd8976 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js index 42351781f92..bab82334961 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js index 515d0e260d8..1471bdb3090 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js index 4c801cc2b1e..8a4cce33dfc 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-baseline-when-internal-is-inside-another-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-baseline-when-internal-is-inside-another-internal.js index 295d79ddce8..5595b32ed57 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-baseline-when-internal-is-inside-another-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-baseline-when-internal-is-inside-another-internal.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:00:00 PM - Projects in this build: +12:00:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:00:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:00:00 PM - Building project '/src/first/tsconfig.json'... +12:00:00 AM - Building project '/src/first/tsconfig.json'... -4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:00:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:00:00 PM - Building project '/src/second/tsconfig.json'... +12:00:00 AM - Building project '/src/second/tsconfig.json'... -4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:00:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:00:00 PM - Building project '/src/third/tsconfig.json'... +12:00:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 5a785fe0232..c341d9c5d22 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js index 6e60def2dc2..709634ade27 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 2fbfbc496bf..81653bf15bb 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js index 6832eef63fc..e86999f7bf4 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-few-members-of-enum-are-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-few-members-of-enum-are-internal.js index 37b97a2e325..91cf996eddd 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-few-members-of-enum-are-internal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-few-members-of-enum-are-internal.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:00:00 PM - Projects in this build: +12:00:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:00:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:00:00 PM - Building project '/src/first/tsconfig.json'... +12:00:00 AM - Building project '/src/first/tsconfig.json'... -4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:00:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:00:00 PM - Building project '/src/second/tsconfig.json'... +12:00:00 AM - Building project '/src/second/tsconfig.json'... -4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:00:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:00:00 PM - Building project '/src/third/tsconfig.json'... +12:00:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js index edd66e3d3f6..a858a1e27d8 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 9cce635b198..fa4c05b80fe 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js index 836399723c6..d6818122891 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js index 6c3036fe151..0f0cf474ca7 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js index d75f09700f3..c8efbd205e6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js index 79fbe880295..471309f35f0 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-incremental.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-incremental.js index dc62ade0d97..81bec95d4f6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-incremental.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-incremental.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:00:00 PM - Projects in this build: +12:00:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:00:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:00:00 PM - Building project '/src/first/tsconfig.json'... +12:00:00 AM - Building project '/src/first/tsconfig.json'... -4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:00:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:00:00 PM - Building project '/src/second/tsconfig.json'... +12:00:00 AM - Building project '/src/second/tsconfig.json'... -4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:00:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:00:00 PM - Building project '/src/third/tsconfig.json'... +12:00:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js index 655ea2d37bd..2e7b1f1663f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-specifies-tsBuildInfoFile.js index 89d143e06b4..b0131b6af56 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-specifies-tsBuildInfoFile.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:00:00 PM - Projects in this build: +12:00:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:00:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:00:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:00:00 PM - Building project '/src/first/tsconfig.json'... +12:00:00 AM - Building project '/src/first/tsconfig.json'... -4:00:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:00:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:00:00 PM - Building project '/src/second/tsconfig.json'... +12:00:00 AM - Building project '/src/second/tsconfig.json'... -4:00:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:00:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:00:00 PM - Building project '/src/third/tsconfig.json'... +12:00:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js index 2464f8287d2..deb7dbd86e6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/third --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -4:01:00 PM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist +12:01:00 AM - Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.js' does not exist -4:01:00 PM - Building project '/src/first/tsconfig.json'... +12:01:00 AM - Building project '/src/first/tsconfig.json'... -4:01:00 PM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist +12:01:00 AM - Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.js' does not exist -4:01:00 PM - Building project '/src/second/tsconfig.json'... +12:01:00 AM - Building project '/src/second/tsconfig.json'... -4:01:00 PM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist +12:01:00 AM - Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist -4:01:00 PM - Building project '/src/third/tsconfig.json'... +12:01:00 AM - Building project '/src/third/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js index 12929fe77d3..94a962ebe02 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js @@ -1,23 +1,23 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/tests --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' +12:04:00 AM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' -4:04:00 PM - Building project '/src/core/tsconfig.json'... +12:04:00 AM - Building project '/src/core/tsconfig.json'... -4:04:00 PM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... +12:04:00 AM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... -4:04:00 PM - Project 'src/logic/tsconfig.json' is out of date because oldest output 'src/logic/index.js' is older than newest input 'src/core' +12:04:00 AM - Project 'src/logic/tsconfig.json' is out of date because oldest output 'src/logic/index.js' is older than newest input 'src/core' -4:04:00 PM - Building project '/src/logic/tsconfig.json'... +12:04:00 AM - Building project '/src/logic/tsconfig.json'... -4:04:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/core' +12:04:00 AM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/core' -4:04:00 PM - Building project '/src/tests/tsconfig.json'... +12:04:00 AM - Building project '/src/tests/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js index d46e6bf0f86..2311e64ef2b 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-declaration-option-changes.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/core --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/core/tsconfig.json -4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.d.ts' does not exist +12:04:00 AM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.d.ts' does not exist -4:04:00 PM - Building project '/src/core/tsconfig.json'... +12:04:00 AM - Building project '/src/core/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js index 2bdd1aa6219..dd48841c8af 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js @@ -1,17 +1,17 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/tests --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:04:00 PM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' +12:04:00 AM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' -4:04:00 PM - Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than oldest output 'src/logic/index.js' +12:04:00 AM - Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than oldest output 'src/logic/index.js' -4:04:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/tests/tsconfig.json' +12:04:00 AM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/tests/tsconfig.json' -4:04:00 PM - Building project '/src/tests/tsconfig.json'... +12:04:00 AM - Building project '/src/tests/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js index ba39ab2202f..da943e101e2 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js @@ -1,19 +1,19 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/tests --verbose -4:12:00 PM - Projects in this build: +12:12:00 AM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:12:00 PM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' +12:12:00 AM - Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' -4:12:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/decls/index.d.ts' does not exist +12:12:00 AM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/decls/index.d.ts' does not exist -4:12:00 PM - Building project '/src/logic/tsconfig.json'... +12:12:00 AM - Building project '/src/logic/tsconfig.json'... -4:12:00 PM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/logic' +12:12:00 AM - Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/logic' -4:12:00 PM - Building project '/src/tests/tsconfig.json'... +12:12:00 AM - Building project '/src/tests/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js index 5fa1cac3e7e..0a801843705 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-module-option-changes.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/core --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/core/tsconfig.json -4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' +12:04:00 AM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' -4:04:00 PM - Building project '/src/core/tsconfig.json'... +12:04:00 AM - Building project '/src/core/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js index b8e3134eb7f..bc3a7921993 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-target-option-changes.js @@ -1,11 +1,11 @@ //// [/lib/incremental-declaration-changesOutput.txt] /lib/tsc --b /src/core --verbose -4:04:00 PM - Projects in this build: +12:04:00 AM - Projects in this build: * src/core/tsconfig.json -4:04:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' +12:04:00 AM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/tsconfig.json' -4:04:00 PM - Building project '/src/core/tsconfig.json'... +12:04:00 AM - Building project '/src/core/tsconfig.json'... TSFILE: /src/core/anotherModule.js TSFILE: /src/core/index.js diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js index 09055358c26..a2d9e5a8564 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/sample.js @@ -1,23 +1,23 @@ //// [/lib/incremental-declaration-doesnt-changeOutput.txt] /lib/tsc --b /src/tests --verbose -4:08:00 PM - Projects in this build: +12:08:00 AM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:08:00 PM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' +12:08:00 AM - Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' -4:08:00 PM - Building project '/src/core/tsconfig.json'... +12:08:00 AM - Building project '/src/core/tsconfig.json'... -4:08:00 PM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... +12:08:00 AM - Updating unchanged output timestamps of project '/src/core/tsconfig.json'... -4:08:00 PM - Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies +12:08:00 AM - Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies -4:08:00 PM - Updating output timestamps of project '/src/logic/tsconfig.json'... +12:08:00 AM - Updating output timestamps of project '/src/logic/tsconfig.json'... -4:08:00 PM - Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies +12:08:00 AM - Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies -4:08:00 PM - Updating output timestamps of project '/src/tests/tsconfig.json'... +12:08:00 AM - Updating output timestamps of project '/src/tests/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/sample.js b/tests/baselines/reference/tsbuild/sample1/initial-build/sample.js index 6dce93cacfd..00228056483 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/sample.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/tests --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +12:01:00 AM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist -4:01:00 PM - Building project '/src/core/tsconfig.json'... +12:01:00 AM - Building project '/src/core/tsconfig.json'... -4:01:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist +12:01:00 AM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist -4:01:00 PM - Building project '/src/logic/tsconfig.json'... +12:01:00 AM - Building project '/src/logic/tsconfig.json'... -4:01:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist +12:01:00 AM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist -4:01:00 PM - Building project '/src/tests/tsconfig.json'... +12:01:00 AM - Building project '/src/tests/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-build/when-declaration-option-changes.js index 5e1f8e0cab2..6fcba548d3b 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/when-declaration-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/when-declaration-option-changes.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/core --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/core/tsconfig.json -4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +12:01:00 AM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist -4:01:00 PM - Building project '/src/core/tsconfig.json'... +12:01:00 AM - Building project '/src/core/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js index 74b9a998ff1..0f1ea65c5e4 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/tests --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +12:01:00 AM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist -4:01:00 PM - Building project '/src/core/tsconfig.json'... +12:01:00 AM - Building project '/src/core/tsconfig.json'... -4:01:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist +12:01:00 AM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist -4:01:00 PM - Building project '/src/logic/tsconfig.json'... +12:01:00 AM - Building project '/src/logic/tsconfig.json'... -4:01:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist +12:01:00 AM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist -4:01:00 PM - Building project '/src/tests/tsconfig.json'... +12:01:00 AM - Building project '/src/tests/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js index 480116121fc..fe60d8093d4 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js @@ -1,21 +1,21 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/tests --verbose -4:00:00 PM - Projects in this build: +12:00:00 AM - Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -4:00:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +12:00:00 AM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist -4:00:00 PM - Building project '/src/core/tsconfig.json'... +12:00:00 AM - Building project '/src/core/tsconfig.json'... -4:00:00 PM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist +12:00:00 AM - Project 'src/logic/tsconfig.json' is out of date because output file 'src/logic/index.js' does not exist -4:00:00 PM - Building project '/src/logic/tsconfig.json'... +12:00:00 AM - Building project '/src/logic/tsconfig.json'... -4:00:00 PM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist +12:00:00 AM - Project 'src/tests/tsconfig.json' is out of date because output file 'src/tests/index.js' does not exist -4:00:00 PM - Building project '/src/tests/tsconfig.json'... +12:00:00 AM - Building project '/src/tests/tsconfig.json'... exitCode:: 0 readFiles:: { diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-build/when-module-option-changes.js index 7d38706c85e..c890f0d5766 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/when-module-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/when-module-option-changes.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/core --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/core/tsconfig.json -4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +12:01:00 AM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist -4:01:00 PM - Building project '/src/core/tsconfig.json'... +12:01:00 AM - Building project '/src/core/tsconfig.json'... exitCode:: 0 diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-build/when-target-option-changes.js index b9370cc5639..c615f77eb86 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/when-target-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/when-target-option-changes.js @@ -1,11 +1,11 @@ //// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/core --verbose -4:01:00 PM - Projects in this build: +12:01:00 AM - Projects in this build: * src/core/tsconfig.json -4:01:00 PM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist +12:01:00 AM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist -4:01:00 PM - Building project '/src/core/tsconfig.json'... +12:01:00 AM - Building project '/src/core/tsconfig.json'... TSFILE: /src/core/anotherModule.js TSFILE: /src/core/index.js From 3d30a02c052f9f3a237b25f6828716c0f477b648 Mon Sep 17 00:00:00 2001 From: typescript-bot Date: Wed, 25 Sep 2019 14:16:14 +0000 Subject: [PATCH 156/159] Update user baselines --- tests/baselines/reference/docker/azure-sdk.log | 4 ++-- tests/baselines/reference/docker/office-ui-fabric.log | 1 + tests/baselines/reference/user/prettier.log | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/baselines/reference/docker/azure-sdk.log b/tests/baselines/reference/docker/azure-sdk.log index ba878ab443a..6a02c105f95 100644 --- a/tests/baselines/reference/docker/azure-sdk.log +++ b/tests/baselines/reference/docker/azure-sdk.log @@ -57,7 +57,7 @@ atob (guessing 'atob') (!) Circular dependency: dist-esm/request/RequestHandler.js -> dist-esm/retry/retryUtility.js -> dist-esm/request/RequestHandler.js created dist/index.js in ?s XX of XX: [@azure/eventhubs-checkpointstore-blob] completed successfully in ? seconds -XX of XX: [@azure/keyvault-certificates] completed successfully in ? seconds +XX of XX: [@azure/keyvault-certificates] completed successfully in ? seconds Warning: You have changed the public API signature for this project. Updating review/service-bus.api.md XX of XX: [@azure/storage-blob] completed successfully in ? seconds XX of XX: [@azure/storage-file] completed successfully in ? seconds @@ -81,7 +81,7 @@ SUCCESS (21) @azure/keyvault-secrets (? seconds) @azure/core-asynciterator-polyfill (? seconds) @azure/eventhubs-checkpointstore-blob (? seconds) -@azure/keyvault-certificates (? seconds) +@azure/keyvault-certificates ( ? seconds) @azure/storage-blob (? seconds) @azure/storage-file (? seconds) @azure/storage-queue (? seconds) diff --git a/tests/baselines/reference/docker/office-ui-fabric.log b/tests/baselines/reference/docker/office-ui-fabric.log index e75c479de90..7a8f1b1dcf8 100644 --- a/tests/baselines/reference/docker/office-ui-fabric.log +++ b/tests/baselines/reference/docker/office-ui-fabric.log @@ -200,6 +200,7 @@ Standard output: @uifabric/styling: PASS src/styles/theme.test.ts @uifabric/styling: PASS src/styles/scheme.test.ts @uifabric/styling: PASS src/styles/getGlobalClassNames.test.ts +@uifabric/styling: PASS src/utilities/icons.test.ts @uifabric/styling: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/styling/lib/index.d.ts' @uifabric/styling: Done in ?s. @uifabric/file-type-icons: yarn run vX.X.X diff --git a/tests/baselines/reference/user/prettier.log b/tests/baselines/reference/user/prettier.log index 71fb532b794..6d7d08f01e4 100644 --- a/tests/baselines/reference/user/prettier.log +++ b/tests/baselines/reference/user/prettier.log @@ -258,8 +258,8 @@ src/language-js/printer-estree.js(4562,16): error TS2345: Argument of type '{ ty src/language-js/printer-estree.js(4610,11): error TS2322: Type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }' is not assignable to type 'string'. src/language-js/printer-estree.js(4625,11): error TS2322: Type '{ type: string; parts: any; }' is not assignable to type 'string'. src/language-js/printer-estree.js(4637,9): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. -src/language-js/printer-estree.js(4924,9): error TS2554: Expected 0-2 arguments, but got 3. -src/language-js/printer-estree.js(6131,7): error TS2769: No overload matches this call. +src/language-js/printer-estree.js(4931,9): error TS2554: Expected 0-2 arguments, but got 3. +src/language-js/printer-estree.js(6138,7): error TS2769: No overload matches this call. Overload 1 of 2, '(...items: ConcatArray<(childPath: any) => any>[]): ((childPath: any) => any)[]', gave the following error. Argument of type '(string | number)[]' is not assignable to parameter of type 'ConcatArray<(childPath: any) => any>'. The types returned by 'slice(...)' are incompatible between these types. From 8e232e4d284e96a98317cff5959a97b1e4c5e0c7 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 25 Sep 2019 09:30:25 -0700 Subject: [PATCH 157/159] Limit this.foo(...) reachability checks to explicit this types --- src/compiler/checker.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 2a3f2390cf3..f0637ba31ad 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -17135,7 +17135,7 @@ namespace ts { const symbol = getResolvedSymbol(node); return getExplicitTypeOfSymbol(symbol.flags & SymbolFlags.Alias ? resolveAlias(symbol) : symbol); case SyntaxKind.ThisKeyword: - return checkThisExpression(node); + return getExplicitThisType(node); case SyntaxKind.PropertyAccessExpression: const type = getTypeOfDottedName((node).expression); const prop = type && getPropertyOfType(type, (node).name.escapedText); @@ -18720,6 +18720,20 @@ namespace ts { } } + function getExplicitThisType(node: Expression) { + const container = getThisContainer(node, /*includeArrowFunctions*/ false); + if (isFunctionLike(container)) { + const signature = getSignatureFromDeclaration(container); + if (signature.thisParameter) { + return getExplicitTypeOfSymbol(signature.thisParameter); + } + } + if (isClassLike(container.parent)) { + const symbol = getSymbolOfNode(container.parent); + return hasModifier(container, ModifierFlags.Static) ? getTypeOfSymbol(symbol) : (getDeclaredTypeOfSymbol(symbol) as InterfaceType).thisType!; + } + } + function getClassNameFromPrototypeMethod(container: Node) { // Check if it's the RHS of a x.prototype.y = function [name]() { .... } if (container.kind === SyntaxKind.FunctionExpression && From cefd1e4251f3603c4c90ca4dcfaca9d8552001e9 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 25 Sep 2019 09:34:24 -0700 Subject: [PATCH 158/159] Add regression test --- .../controlFlow/neverReturningFunctions1.ts | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/tests/cases/conformance/controlFlow/neverReturningFunctions1.ts b/tests/cases/conformance/controlFlow/neverReturningFunctions1.ts index 63e7ecf786f..72dd0a13b5a 100644 --- a/tests/cases/conformance/controlFlow/neverReturningFunctions1.ts +++ b/tests/cases/conformance/controlFlow/neverReturningFunctions1.ts @@ -156,3 +156,72 @@ function f42(x: number) { } x; // Unreachable } + +// Repro from #33582 + +export interface Component { + attrName?: string; + data: T; + dependencies?: string[]; + el: any; + id: string; + multiple?: boolean; + name: string; + schema: unknown; + system: any; + + init(data?: T): void; + pause(): void; + play(): void; + remove(): void; + tick?(time: number, timeDelta: number): void; + update(oldData: T): void; + updateSchema?(): void; + + extendSchema(update: unknown): void; + flushToDOM(): void; +} + +export interface ComponentConstructor { + new (el: unknown, attrValue: string, id: string): T & Component; + prototype: T & { + name: string; + system: unknown; + play(): void; + pause(): void; + }; +} + +declare function registerComponent( + name: string, + component: ComponentDefinition +): ComponentConstructor; + +export type ComponentDefinition = T & Partial & ThisType; + +const Component = registerComponent('test-component', { + schema: { + myProperty: { + default: [], + parse() { + return [true]; + } + }, + string: { type: 'string' }, + num: 0 + }, + init() { + this.data.num = 0; + this.el.setAttribute('custom-attribute', 'custom-value'); + }, + update() {}, + tick() {}, + remove() {}, + pause() {}, + play() {}, + + multiply(f: number) { + // Reference to system because both were registered with the same name. + return f * this.data.num * this.system!.data.counter; + } +}); From 0d4e5942d76b46538bab0dddfd37f8166b32b2be Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Wed, 25 Sep 2019 09:34:30 -0700 Subject: [PATCH 159/159] Accept new baselines --- .../neverReturningFunctions1.errors.txt | 69 ++++++ .../reference/neverReturningFunctions1.js | 148 ++++++++++--- .../neverReturningFunctions1.symbols | 193 +++++++++++++++++ .../reference/neverReturningFunctions1.types | 202 ++++++++++++++++++ 4 files changed, 587 insertions(+), 25 deletions(-) diff --git a/tests/baselines/reference/neverReturningFunctions1.errors.txt b/tests/baselines/reference/neverReturningFunctions1.errors.txt index f8656bbed08..5eb6659427c 100644 --- a/tests/baselines/reference/neverReturningFunctions1.errors.txt +++ b/tests/baselines/reference/neverReturningFunctions1.errors.txt @@ -224,4 +224,73 @@ tests/cases/conformance/controlFlow/neverReturningFunctions1.ts(153,5): error TS ~~ !!! error TS7027: Unreachable code detected. } + + // Repro from #33582 + + export interface Component { + attrName?: string; + data: T; + dependencies?: string[]; + el: any; + id: string; + multiple?: boolean; + name: string; + schema: unknown; + system: any; + + init(data?: T): void; + pause(): void; + play(): void; + remove(): void; + tick?(time: number, timeDelta: number): void; + update(oldData: T): void; + updateSchema?(): void; + + extendSchema(update: unknown): void; + flushToDOM(): void; + } + + export interface ComponentConstructor { + new (el: unknown, attrValue: string, id: string): T & Component; + prototype: T & { + name: string; + system: unknown; + play(): void; + pause(): void; + }; + } + + declare function registerComponent( + name: string, + component: ComponentDefinition + ): ComponentConstructor; + + export type ComponentDefinition = T & Partial & ThisType; + + const Component = registerComponent('test-component', { + schema: { + myProperty: { + default: [], + parse() { + return [true]; + } + }, + string: { type: 'string' }, + num: 0 + }, + init() { + this.data.num = 0; + this.el.setAttribute('custom-attribute', 'custom-value'); + }, + update() {}, + tick() {}, + remove() {}, + pause() {}, + play() {}, + + multiply(f: number) { + // Reference to system because both were registered with the same name. + return f * this.data.num * this.system!.data.counter; + } + }); \ No newline at end of file diff --git a/tests/baselines/reference/neverReturningFunctions1.js b/tests/baselines/reference/neverReturningFunctions1.js index cce75c6668a..a99cc51e06d 100644 --- a/tests/baselines/reference/neverReturningFunctions1.js +++ b/tests/baselines/reference/neverReturningFunctions1.js @@ -153,10 +153,80 @@ function f42(x: number) { } x; // Unreachable } + +// Repro from #33582 + +export interface Component { + attrName?: string; + data: T; + dependencies?: string[]; + el: any; + id: string; + multiple?: boolean; + name: string; + schema: unknown; + system: any; + + init(data?: T): void; + pause(): void; + play(): void; + remove(): void; + tick?(time: number, timeDelta: number): void; + update(oldData: T): void; + updateSchema?(): void; + + extendSchema(update: unknown): void; + flushToDOM(): void; +} + +export interface ComponentConstructor { + new (el: unknown, attrValue: string, id: string): T & Component; + prototype: T & { + name: string; + system: unknown; + play(): void; + pause(): void; + }; +} + +declare function registerComponent( + name: string, + component: ComponentDefinition +): ComponentConstructor; + +export type ComponentDefinition = T & Partial & ThisType; + +const Component = registerComponent('test-component', { + schema: { + myProperty: { + default: [], + parse() { + return [true]; + } + }, + string: { type: 'string' }, + num: 0 + }, + init() { + this.data.num = 0; + this.el.setAttribute('custom-attribute', 'custom-value'); + }, + update() {}, + tick() {}, + remove() {}, + pause() {}, + play() {}, + + multiply(f: number) { + // Reference to system because both were registered with the same name. + return f * this.data.num * this.system!.data.counter; + } +}); //// [neverReturningFunctions1.js] "use strict"; +exports.__esModule = true; function fail(message) { throw new Error(message); } @@ -305,33 +375,61 @@ function f42(x) { } x; // Unreachable } +var Component = registerComponent('test-component', { + schema: { + myProperty: { + "default": [], + parse: function () { + return [true]; + } + }, + string: { type: 'string' }, + num: 0 + }, + init: function () { + this.data.num = 0; + this.el.setAttribute('custom-attribute', 'custom-value'); + }, + update: function () { }, + tick: function () { }, + remove: function () { }, + pause: function () { }, + play: function () { }, + multiply: function (f) { + // Reference to system because both were registered with the same name. + return f * this.data.num * this.system.data.counter; + } +}); //// [neverReturningFunctions1.d.ts] -declare function fail(message?: string): never; -declare function f01(x: string | undefined): void; -declare function f02(x: number): number; -declare function f03(x: string): void; -declare function f11(x: string | undefined, fail: (message?: string) => never): void; -declare function f12(x: number, fail: (message?: string) => never): number; -declare function f13(x: string, fail: (message?: string) => never): void; -declare namespace Debug { - function fail(message?: string): never; +export interface Component { + attrName?: string; + data: T; + dependencies?: string[]; + el: any; + id: string; + multiple?: boolean; + name: string; + schema: unknown; + system: any; + init(data?: T): void; + pause(): void; + play(): void; + remove(): void; + tick?(time: number, timeDelta: number): void; + update(oldData: T): void; + updateSchema?(): void; + extendSchema(update: unknown): void; + flushToDOM(): void; } -declare function f21(x: string | undefined): void; -declare function f22(x: number): number; -declare function f23(x: string): void; -declare function f24(x: string): void; -declare class Test { - fail(message?: string): never; - f1(x: string | undefined): void; - f2(x: number): number; - f3(x: string): void; +export interface ComponentConstructor { + new (el: unknown, attrValue: string, id: string): T & Component; + prototype: T & { + name: string; + system: unknown; + play(): void; + pause(): void; + }; } -declare function f30(x: string | number | undefined): void; -declare function f31(x: { - a: string | number; -}): void; -declare function f40(x: number): void; -declare function f41(x: number): void; -declare function f42(x: number): void; +export declare type ComponentDefinition = T & Partial & ThisType; diff --git a/tests/baselines/reference/neverReturningFunctions1.symbols b/tests/baselines/reference/neverReturningFunctions1.symbols index 7f1b5c489ac..2ec4c5f93d3 100644 --- a/tests/baselines/reference/neverReturningFunctions1.symbols +++ b/tests/baselines/reference/neverReturningFunctions1.symbols @@ -385,3 +385,196 @@ function f42(x: number) { >x : Symbol(x, Decl(neverReturningFunctions1.ts, 143, 13)) } +// Repro from #33582 + +export interface Component { +>Component : Symbol(Component, Decl(neverReturningFunctions1.ts, 153, 1)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 157, 27)) + + attrName?: string; +>attrName : Symbol(Component.attrName, Decl(neverReturningFunctions1.ts, 157, 52)) + + data: T; +>data : Symbol(Component.data, Decl(neverReturningFunctions1.ts, 158, 19)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 157, 27)) + + dependencies?: string[]; +>dependencies : Symbol(Component.dependencies, Decl(neverReturningFunctions1.ts, 159, 9)) + + el: any; +>el : Symbol(Component.el, Decl(neverReturningFunctions1.ts, 160, 25)) + + id: string; +>id : Symbol(Component.id, Decl(neverReturningFunctions1.ts, 161, 9)) + + multiple?: boolean; +>multiple : Symbol(Component.multiple, Decl(neverReturningFunctions1.ts, 162, 12)) + + name: string; +>name : Symbol(Component.name, Decl(neverReturningFunctions1.ts, 163, 20)) + + schema: unknown; +>schema : Symbol(Component.schema, Decl(neverReturningFunctions1.ts, 164, 14)) + + system: any; +>system : Symbol(Component.system, Decl(neverReturningFunctions1.ts, 165, 17)) + + init(data?: T): void; +>init : Symbol(Component.init, Decl(neverReturningFunctions1.ts, 166, 13)) +>data : Symbol(data, Decl(neverReturningFunctions1.ts, 168, 6)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 157, 27)) + + pause(): void; +>pause : Symbol(Component.pause, Decl(neverReturningFunctions1.ts, 168, 22)) + + play(): void; +>play : Symbol(Component.play, Decl(neverReturningFunctions1.ts, 169, 15)) + + remove(): void; +>remove : Symbol(Component.remove, Decl(neverReturningFunctions1.ts, 170, 14)) + + tick?(time: number, timeDelta: number): void; +>tick : Symbol(Component.tick, Decl(neverReturningFunctions1.ts, 171, 16)) +>time : Symbol(time, Decl(neverReturningFunctions1.ts, 172, 7)) +>timeDelta : Symbol(timeDelta, Decl(neverReturningFunctions1.ts, 172, 20)) + + update(oldData: T): void; +>update : Symbol(Component.update, Decl(neverReturningFunctions1.ts, 172, 46)) +>oldData : Symbol(oldData, Decl(neverReturningFunctions1.ts, 173, 8)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 157, 27)) + + updateSchema?(): void; +>updateSchema : Symbol(Component.updateSchema, Decl(neverReturningFunctions1.ts, 173, 26)) + + extendSchema(update: unknown): void; +>extendSchema : Symbol(Component.extendSchema, Decl(neverReturningFunctions1.ts, 174, 23)) +>update : Symbol(update, Decl(neverReturningFunctions1.ts, 176, 14)) + + flushToDOM(): void; +>flushToDOM : Symbol(Component.flushToDOM, Decl(neverReturningFunctions1.ts, 176, 37)) +} + +export interface ComponentConstructor { +>ComponentConstructor : Symbol(ComponentConstructor, Decl(neverReturningFunctions1.ts, 178, 1)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 180, 38)) + + new (el: unknown, attrValue: string, id: string): T & Component; +>el : Symbol(el, Decl(neverReturningFunctions1.ts, 181, 6)) +>attrValue : Symbol(attrValue, Decl(neverReturningFunctions1.ts, 181, 18)) +>id : Symbol(id, Decl(neverReturningFunctions1.ts, 181, 37)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 180, 38)) +>Component : Symbol(Component, Decl(neverReturningFunctions1.ts, 153, 1)) + + prototype: T & { +>prototype : Symbol(ComponentConstructor.prototype, Decl(neverReturningFunctions1.ts, 181, 65)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 180, 38)) + + name: string; +>name : Symbol(name, Decl(neverReturningFunctions1.ts, 182, 17)) + + system: unknown; +>system : Symbol(system, Decl(neverReturningFunctions1.ts, 183, 15)) + + play(): void; +>play : Symbol(play, Decl(neverReturningFunctions1.ts, 184, 18)) + + pause(): void; +>pause : Symbol(pause, Decl(neverReturningFunctions1.ts, 185, 15)) + + }; +} + +declare function registerComponent( +>registerComponent : Symbol(registerComponent, Decl(neverReturningFunctions1.ts, 188, 1)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 190, 35)) + + name: string, +>name : Symbol(name, Decl(neverReturningFunctions1.ts, 190, 53)) + + component: ComponentDefinition +>component : Symbol(component, Decl(neverReturningFunctions1.ts, 191, 17)) +>ComponentDefinition : Symbol(ComponentDefinition, Decl(neverReturningFunctions1.ts, 193, 27)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 190, 35)) + +): ComponentConstructor; +>ComponentConstructor : Symbol(ComponentConstructor, Decl(neverReturningFunctions1.ts, 178, 1)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 190, 35)) + +export type ComponentDefinition = T & Partial & ThisType; +>ComponentDefinition : Symbol(ComponentDefinition, Decl(neverReturningFunctions1.ts, 193, 27)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 195, 32)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 195, 32)) +>Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --)) +>Component : Symbol(Component, Decl(neverReturningFunctions1.ts, 153, 1)) +>ThisType : Symbol(ThisType, Decl(lib.es5.d.ts, --, --)) +>T : Symbol(T, Decl(neverReturningFunctions1.ts, 195, 32)) +>Component : Symbol(Component, Decl(neverReturningFunctions1.ts, 153, 1)) + +const Component = registerComponent('test-component', { +>Component : Symbol(Component, Decl(neverReturningFunctions1.ts, 153, 1), Decl(neverReturningFunctions1.ts, 197, 5)) +>registerComponent : Symbol(registerComponent, Decl(neverReturningFunctions1.ts, 188, 1)) + + schema: { +>schema : Symbol(schema, Decl(neverReturningFunctions1.ts, 197, 55)) + + myProperty: { +>myProperty : Symbol(myProperty, Decl(neverReturningFunctions1.ts, 198, 10)) + + default: [], +>default : Symbol(default, Decl(neverReturningFunctions1.ts, 199, 15)) + + parse() { +>parse : Symbol(parse, Decl(neverReturningFunctions1.ts, 200, 15)) + + return [true]; + } + }, + string: { type: 'string' }, +>string : Symbol(string, Decl(neverReturningFunctions1.ts, 204, 4)) +>type : Symbol(type, Decl(neverReturningFunctions1.ts, 205, 11)) + + num: 0 +>num : Symbol(num, Decl(neverReturningFunctions1.ts, 205, 29)) + + }, + init() { +>init : Symbol(init, Decl(neverReturningFunctions1.ts, 207, 3)) + + this.data.num = 0; +>this.data : Symbol(Component.data, Decl(neverReturningFunctions1.ts, 158, 19)) +>data : Symbol(Component.data, Decl(neverReturningFunctions1.ts, 158, 19)) + + this.el.setAttribute('custom-attribute', 'custom-value'); +>this.el : Symbol(Component.el, Decl(neverReturningFunctions1.ts, 160, 25)) +>el : Symbol(Component.el, Decl(neverReturningFunctions1.ts, 160, 25)) + + }, + update() {}, +>update : Symbol(update, Decl(neverReturningFunctions1.ts, 211, 3)) + + tick() {}, +>tick : Symbol(tick, Decl(neverReturningFunctions1.ts, 212, 13)) + + remove() {}, +>remove : Symbol(remove, Decl(neverReturningFunctions1.ts, 213, 11)) + + pause() {}, +>pause : Symbol(pause, Decl(neverReturningFunctions1.ts, 214, 13)) + + play() {}, +>play : Symbol(play, Decl(neverReturningFunctions1.ts, 215, 12)) + + multiply(f: number) { +>multiply : Symbol(multiply, Decl(neverReturningFunctions1.ts, 216, 11)) +>f : Symbol(f, Decl(neverReturningFunctions1.ts, 218, 10)) + + // Reference to system because both were registered with the same name. + return f * this.data.num * this.system!.data.counter; +>f : Symbol(f, Decl(neverReturningFunctions1.ts, 218, 10)) +>this.data : Symbol(Component.data, Decl(neverReturningFunctions1.ts, 158, 19)) +>data : Symbol(Component.data, Decl(neverReturningFunctions1.ts, 158, 19)) +>this.system : Symbol(Component.system, Decl(neverReturningFunctions1.ts, 165, 17)) +>system : Symbol(Component.system, Decl(neverReturningFunctions1.ts, 165, 17)) + } +}); + diff --git a/tests/baselines/reference/neverReturningFunctions1.types b/tests/baselines/reference/neverReturningFunctions1.types index e7d6afa36a5..ed49d1841b8 100644 --- a/tests/baselines/reference/neverReturningFunctions1.types +++ b/tests/baselines/reference/neverReturningFunctions1.types @@ -437,3 +437,205 @@ function f42(x: number) { >x : number } +// Repro from #33582 + +export interface Component { + attrName?: string; +>attrName : string | undefined + + data: T; +>data : T + + dependencies?: string[]; +>dependencies : string[] | undefined + + el: any; +>el : any + + id: string; +>id : string + + multiple?: boolean; +>multiple : boolean | undefined + + name: string; +>name : string + + schema: unknown; +>schema : unknown + + system: any; +>system : any + + init(data?: T): void; +>init : (data?: T | undefined) => void +>data : T | undefined + + pause(): void; +>pause : () => void + + play(): void; +>play : () => void + + remove(): void; +>remove : () => void + + tick?(time: number, timeDelta: number): void; +>tick : ((time: number, timeDelta: number) => void) | undefined +>time : number +>timeDelta : number + + update(oldData: T): void; +>update : (oldData: T) => void +>oldData : T + + updateSchema?(): void; +>updateSchema : (() => void) | undefined + + extendSchema(update: unknown): void; +>extendSchema : (update: unknown) => void +>update : unknown + + flushToDOM(): void; +>flushToDOM : () => void +} + +export interface ComponentConstructor { + new (el: unknown, attrValue: string, id: string): T & Component; +>el : unknown +>attrValue : string +>id : string + + prototype: T & { +>prototype : T & { name: string; system: unknown; play(): void; pause(): void; } + + name: string; +>name : string + + system: unknown; +>system : unknown + + play(): void; +>play : () => void + + pause(): void; +>pause : () => void + + }; +} + +declare function registerComponent( +>registerComponent : (name: string, component: ComponentDefinition) => ComponentConstructor + + name: string, +>name : string + + component: ComponentDefinition +>component : ComponentDefinition + +): ComponentConstructor; + +export type ComponentDefinition = T & Partial & ThisType; +>ComponentDefinition : ComponentDefinition + +const Component = registerComponent('test-component', { +>Component : ComponentConstructor<{ schema: { myProperty: { default: never[]; parse(): boolean[]; }; string: { type: string; }; num: number; }; init(): void; update(): void; tick(): void; remove(): void; pause(): void; play(): void; multiply(f: number): number; }> +>registerComponent('test-component', { schema: { myProperty: { default: [], parse() { return [true]; } }, string: { type: 'string' }, num: 0 }, init() { this.data.num = 0; this.el.setAttribute('custom-attribute', 'custom-value'); }, update() {}, tick() {}, remove() {}, pause() {}, play() {}, multiply(f: number) { // Reference to system because both were registered with the same name. return f * this.data.num * this.system!.data.counter; }}) : ComponentConstructor<{ schema: { myProperty: { default: never[]; parse(): boolean[]; }; string: { type: string; }; num: number; }; init(): void; update(): void; tick(): void; remove(): void; pause(): void; play(): void; multiply(f: number): number; }> +>registerComponent : (name: string, component: ComponentDefinition) => ComponentConstructor +>'test-component' : "test-component" +>{ schema: { myProperty: { default: [], parse() { return [true]; } }, string: { type: 'string' }, num: 0 }, init() { this.data.num = 0; this.el.setAttribute('custom-attribute', 'custom-value'); }, update() {}, tick() {}, remove() {}, pause() {}, play() {}, multiply(f: number) { // Reference to system because both were registered with the same name. return f * this.data.num * this.system!.data.counter; }} : { schema: { myProperty: { default: never[]; parse(): boolean[]; }; string: { type: string; }; num: number; }; init(): void; update(): void; tick(): void; remove(): void; pause(): void; play(): void; multiply(f: number): number; } + + schema: { +>schema : { myProperty: { default: never[]; parse(): boolean[]; }; string: { type: string; }; num: number; } +>{ myProperty: { default: [], parse() { return [true]; } }, string: { type: 'string' }, num: 0 } : { myProperty: { default: never[]; parse(): boolean[]; }; string: { type: string; }; num: number; } + + myProperty: { +>myProperty : { default: never[]; parse(): boolean[]; } +>{ default: [], parse() { return [true]; } } : { default: never[]; parse(): boolean[]; } + + default: [], +>default : never[] +>[] : never[] + + parse() { +>parse : () => boolean[] + + return [true]; +>[true] : true[] +>true : true + } + }, + string: { type: 'string' }, +>string : { type: string; } +>{ type: 'string' } : { type: string; } +>type : string +>'string' : "string" + + num: 0 +>num : number +>0 : 0 + + }, + init() { +>init : () => void + + this.data.num = 0; +>this.data.num = 0 : 0 +>this.data.num : any +>this.data : any +>this : { schema: { myProperty: { default: never[]; parse(): boolean[]; }; string: { type: string; }; num: number; }; init(): void; update(): void; tick(): void; remove(): void; pause(): void; play(): void; multiply(f: number): number; } & Component +>data : any +>num : any +>0 : 0 + + this.el.setAttribute('custom-attribute', 'custom-value'); +>this.el.setAttribute('custom-attribute', 'custom-value') : any +>this.el.setAttribute : any +>this.el : any +>this : { schema: { myProperty: { default: never[]; parse(): boolean[]; }; string: { type: string; }; num: number; }; init(): void; update(): void; tick(): void; remove(): void; pause(): void; play(): void; multiply(f: number): number; } & Component +>el : any +>setAttribute : any +>'custom-attribute' : "custom-attribute" +>'custom-value' : "custom-value" + + }, + update() {}, +>update : () => void + + tick() {}, +>tick : () => void + + remove() {}, +>remove : () => void + + pause() {}, +>pause : () => void + + play() {}, +>play : () => void + + multiply(f: number) { +>multiply : (f: number) => number +>f : number + + // Reference to system because both were registered with the same name. + return f * this.data.num * this.system!.data.counter; +>f * this.data.num * this.system!.data.counter : number +>f * this.data.num : number +>f : number +>this.data.num : any +>this.data : any +>this : { schema: { myProperty: { default: never[]; parse(): boolean[]; }; string: { type: string; }; num: number; }; init(): void; update(): void; tick(): void; remove(): void; pause(): void; play(): void; multiply(f: number): number; } & Component +>data : any +>num : any +>this.system!.data.counter : any +>this.system!.data : any +>this.system! : any +>this.system : any +>this : { schema: { myProperty: { default: never[]; parse(): boolean[]; }; string: { type: string; }; num: number; }; init(): void; update(): void; tick(): void; remove(): void; pause(): void; play(): void; multiply(f: number): number; } & Component +>system : any +>data : any +>counter : any + } +}); +